configure revision 0da4cdcc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-vmmouse 13.0.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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-input-vmmouse'
593PACKAGE_TARNAME='xf86-input-vmmouse'
594PACKAGE_VERSION='13.0.0'
595PACKAGE_STRING='xf86-input-vmmouse 13.0.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
640XORG_LIBS
641XORG_CFLAGS
642HAS_UDEV_RULES_DIR_FALSE
643HAS_UDEV_RULES_DIR_TRUE
644UDEV_RULES_DIR
645UDEV_LIBS
646UDEV_CFLAGS
647HAL_FDI_DIR
648HAL_CALLOUTS_DIR
649HAL_BIN_DIR
650HAS_XORG_CONF_DIR_FALSE
651HAS_XORG_CONF_DIR_TRUE
652XORG_CONF_DIR
653inputdir
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671LIBTOOL
672DRIVER_NAME
673AM_BACKSLASH
674AM_DEFAULT_VERBOSITY
675AM_DEFAULT_V
676AM_V
677MAN_SUBSTS
678XORG_MAN_PAGE
679ADMIN_MAN_DIR
680DRIVER_MAN_DIR
681MISC_MAN_DIR
682FILE_MAN_DIR
683LIB_MAN_DIR
684APP_MAN_DIR
685ADMIN_MAN_SUFFIX
686DRIVER_MAN_SUFFIX
687MISC_MAN_SUFFIX
688FILE_MAN_SUFFIX
689LIB_MAN_SUFFIX
690APP_MAN_SUFFIX
691SED
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700INSTALL_CMD
701PKG_CONFIG_LIBDIR
702PKG_CONFIG_PATH
703PKG_CONFIG
704CHANGELOG_CMD
705STRICT_CFLAGS
706CWARNFLAGS
707BASE_CFLAGS
708EGREP
709GREP
710CPP
711am__fastdepCC_FALSE
712am__fastdepCC_TRUE
713CCDEPMODE
714am__nodep
715AMDEPBACKSLASH
716AMDEP_FALSE
717AMDEP_TRUE
718am__quote
719am__include
720DEPDIR
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_maintainer_mode
796enable_dependency_tracking
797enable_selective_werror
798enable_strict_compilation
799enable_silent_rules
800enable_static
801enable_shared
802with_pic
803enable_fast_install
804with_gnu_ld
805with_sysroot
806enable_libtool_lock
807with_xorg_module_dir
808with_xorg_conf_dir
809with_hal_bin_dir
810with_hal_callouts_dir
811with_hal_fdi_dir
812with_udev_rules_dir
813'
814      ac_precious_vars='build_alias
815host_alias
816target_alias
817CC
818CFLAGS
819LDFLAGS
820LIBS
821CPPFLAGS
822CPP
823PKG_CONFIG
824PKG_CONFIG_PATH
825PKG_CONFIG_LIBDIR
826UDEV_CFLAGS
827UDEV_LIBS
828XORG_CFLAGS
829XORG_LIBS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  # Accept the important Cygnus configure options, so we can diagnose typos.
898
899  case $ac_dashdash$ac_option in
900  --)
901    ac_dashdash=yes ;;
902
903  -bindir | --bindir | --bindi | --bind | --bin | --bi)
904    ac_prev=bindir ;;
905  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906    bindir=$ac_optarg ;;
907
908  -build | --build | --buil | --bui | --bu)
909    ac_prev=build_alias ;;
910  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911    build_alias=$ac_optarg ;;
912
913  -cache-file | --cache-file | --cache-fil | --cache-fi \
914  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915    ac_prev=cache_file ;;
916  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918    cache_file=$ac_optarg ;;
919
920  --config-cache | -C)
921    cache_file=config.cache ;;
922
923  -datadir | --datadir | --datadi | --datad)
924    ac_prev=datadir ;;
925  -datadir=* | --datadir=* | --datadi=* | --datad=*)
926    datadir=$ac_optarg ;;
927
928  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929  | --dataroo | --dataro | --datar)
930    ac_prev=datarootdir ;;
931  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933    datarootdir=$ac_optarg ;;
934
935  -disable-* | --disable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=no ;;
950
951  -docdir | --docdir | --docdi | --doc | --do)
952    ac_prev=docdir ;;
953  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954    docdir=$ac_optarg ;;
955
956  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957    ac_prev=dvidir ;;
958  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959    dvidir=$ac_optarg ;;
960
961  -enable-* | --enable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=\$ac_optarg ;;
976
977  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979  | --exec | --exe | --ex)
980    ac_prev=exec_prefix ;;
981  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983  | --exec=* | --exe=* | --ex=*)
984    exec_prefix=$ac_optarg ;;
985
986  -gas | --gas | --ga | --g)
987    # Obsolete; use --with-gas.
988    with_gas=yes ;;
989
990  -help | --help | --hel | --he | -h)
991    ac_init_help=long ;;
992  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993    ac_init_help=recursive ;;
994  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995    ac_init_help=short ;;
996
997  -host | --host | --hos | --ho)
998    ac_prev=host_alias ;;
999  -host=* | --host=* | --hos=* | --ho=*)
1000    host_alias=$ac_optarg ;;
1001
1002  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003    ac_prev=htmldir ;;
1004  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005  | --ht=*)
1006    htmldir=$ac_optarg ;;
1007
1008  -includedir | --includedir | --includedi | --included | --include \
1009  | --includ | --inclu | --incl | --inc)
1010    ac_prev=includedir ;;
1011  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012  | --includ=* | --inclu=* | --incl=* | --inc=*)
1013    includedir=$ac_optarg ;;
1014
1015  -infodir | --infodir | --infodi | --infod | --info | --inf)
1016    ac_prev=infodir ;;
1017  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018    infodir=$ac_optarg ;;
1019
1020  -libdir | --libdir | --libdi | --libd)
1021    ac_prev=libdir ;;
1022  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023    libdir=$ac_optarg ;;
1024
1025  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026  | --libexe | --libex | --libe)
1027    ac_prev=libexecdir ;;
1028  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029  | --libexe=* | --libex=* | --libe=*)
1030    libexecdir=$ac_optarg ;;
1031
1032  -localedir | --localedir | --localedi | --localed | --locale)
1033    ac_prev=localedir ;;
1034  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035    localedir=$ac_optarg ;;
1036
1037  -localstatedir | --localstatedir | --localstatedi | --localstated \
1038  | --localstate | --localstat | --localsta | --localst | --locals)
1039    ac_prev=localstatedir ;;
1040  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042    localstatedir=$ac_optarg ;;
1043
1044  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045    ac_prev=mandir ;;
1046  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047    mandir=$ac_optarg ;;
1048
1049  -nfp | --nfp | --nf)
1050    # Obsolete; use --without-fp.
1051    with_fp=no ;;
1052
1053  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054  | --no-cr | --no-c | -n)
1055    no_create=yes ;;
1056
1057  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059    no_recursion=yes ;;
1060
1061  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063  | --oldin | --oldi | --old | --ol | --o)
1064    ac_prev=oldincludedir ;;
1065  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068    oldincludedir=$ac_optarg ;;
1069
1070  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071    ac_prev=prefix ;;
1072  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073    prefix=$ac_optarg ;;
1074
1075  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076  | --program-pre | --program-pr | --program-p)
1077    ac_prev=program_prefix ;;
1078  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080    program_prefix=$ac_optarg ;;
1081
1082  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083  | --program-suf | --program-su | --program-s)
1084    ac_prev=program_suffix ;;
1085  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087    program_suffix=$ac_optarg ;;
1088
1089  -program-transform-name | --program-transform-name \
1090  | --program-transform-nam | --program-transform-na \
1091  | --program-transform-n | --program-transform- \
1092  | --program-transform | --program-transfor \
1093  | --program-transfo | --program-transf \
1094  | --program-trans | --program-tran \
1095  | --progr-tra | --program-tr | --program-t)
1096    ac_prev=program_transform_name ;;
1097  -program-transform-name=* | --program-transform-name=* \
1098  | --program-transform-nam=* | --program-transform-na=* \
1099  | --program-transform-n=* | --program-transform-=* \
1100  | --program-transform=* | --program-transfor=* \
1101  | --program-transfo=* | --program-transf=* \
1102  | --program-trans=* | --program-tran=* \
1103  | --progr-tra=* | --program-tr=* | --program-t=*)
1104    program_transform_name=$ac_optarg ;;
1105
1106  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107    ac_prev=pdfdir ;;
1108  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109    pdfdir=$ac_optarg ;;
1110
1111  -psdir | --psdir | --psdi | --psd | --ps)
1112    ac_prev=psdir ;;
1113  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114    psdir=$ac_optarg ;;
1115
1116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117  | -silent | --silent | --silen | --sile | --sil)
1118    silent=yes ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures xf86-input-vmmouse 13.0.0 to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --libdir=DIR            object code libraries [EPREFIX/lib]
1411  --includedir=DIR        C header files [PREFIX/include]
1412  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415  --infodir=DIR           info documentation [DATAROOTDIR/info]
1416  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417  --mandir=DIR            man documentation [DATAROOTDIR/man]
1418  --docdir=DIR            documentation root
1419                          [DATAROOTDIR/doc/xf86-input-vmmouse]
1420  --htmldir=DIR           html documentation [DOCDIR]
1421  --dvidir=DIR            dvi documentation [DOCDIR]
1422  --pdfdir=DIR            pdf documentation [DOCDIR]
1423  --psdir=DIR             ps documentation [DOCDIR]
1424_ACEOF
1425
1426  cat <<\_ACEOF
1427
1428Program names:
1429  --program-prefix=PREFIX            prepend PREFIX to installed program names
1430  --program-suffix=SUFFIX            append SUFFIX to installed program names
1431  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432
1433System types:
1434  --build=BUILD     configure for building on BUILD [guessed]
1435  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440  case $ac_init_help in
1441     short | recursive ) echo "Configuration of xf86-input-vmmouse 13.0.0:";;
1442   esac
1443  cat <<\_ACEOF
1444
1445Optional Features:
1446  --disable-option-checking  ignore unrecognized --enable/--with options
1447  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449  --enable-maintainer-mode  enable make rules and dependencies not useful
1450			  (and sometimes confusing) to the casual installer
1451  --disable-dependency-tracking  speeds up one-time build
1452  --enable-dependency-tracking   do not reject slow dependency extractors
1453  --disable-selective-werror
1454                          Turn off selective compiler errors. (default:
1455                          enabled)
1456  --enable-strict-compilation
1457                          Enable all warnings from compiler and make them
1458                          errors (default: disabled)
1459  --enable-silent-rules          less verbose build output (undo: `make V=1')
1460  --disable-silent-rules         verbose build output (undo: `make V=0')
1461  --enable-static[=PKGS]  build static libraries [default=no]
1462  --enable-shared[=PKGS]  build shared libraries [default=yes]
1463  --enable-fast-install[=PKGS]
1464                          optimize for fast installation [default=yes]
1465  --disable-libtool-lock  avoid locking (might break parallel builds)
1466
1467Optional Packages:
1468  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1471                          both]
1472  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473  --with-sysroot=DIR Search for dependent libraries within DIR
1474                        (or the compiler's sysroot if not specified).
1475  --with-xorg-module-dir=DIR
1476                          Default xorg module directory
1477                          [[default=$libdir/xorg/modules]]
1478  --with-xorg-conf-dir=DIR
1479                          Default xorg.conf.d directory [[default=from
1480                          $PKG_CONFIG xorg-server]]
1481  --with-hal-bin-dir=DIR  Directory where HAL binaries where installed
1482                          [[default=$bindir]]
1483  --with-hal-callouts-dir=DIR
1484                          Directory where HAL expects its callout scripts to
1485                          be located [[default=$libdir/hal]]
1486  --with-hal-fdi-dir=DIR  Directory where HAL expects its fdi files to be
1487                          located
1488                          [[default=$datadir/hal/fdi/policy/20thirdparty]]
1489  --with-udev-rules-dir=DIR
1490                          Default udev rules.d directory
1491                          [[default=($prefix)/lib/udev/rules.d on Linux, none
1492                          otherwise]]
1493
1494Some influential environment variables:
1495  CC          C compiler command
1496  CFLAGS      C compiler flags
1497  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498              nonstandard directory <lib dir>
1499  LIBS        libraries to pass to the linker, e.g. -l<library>
1500  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501              you have headers in a nonstandard directory <include dir>
1502  CPP         C preprocessor
1503  PKG_CONFIG  path to pkg-config utility
1504  PKG_CONFIG_PATH
1505              directories to add to pkg-config's search path
1506  PKG_CONFIG_LIBDIR
1507              path overriding pkg-config's built-in search path
1508  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1509  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1510  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1511  XORG_LIBS   linker flags for XORG, overriding pkg-config
1512
1513Use these variables to override the choices made by `configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
1516Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1517_ACEOF
1518ac_status=$?
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522  # If there are subdirs, report their specific --help.
1523  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524    test -d "$ac_dir" ||
1525      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526      continue
1527    ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533  # A ".." for each directory in $ac_dir_suffix.
1534  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535  case $ac_top_builddir_sub in
1536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538  esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546  .)  # We are building in place.
1547    ac_srcdir=.
1548    ac_top_srcdir=$ac_top_builddir_sub
1549    ac_abs_top_srcdir=$ac_pwd ;;
1550  [\\/]* | ?:[\\/]* )  # Absolute name.
1551    ac_srcdir=$srcdir$ac_dir_suffix;
1552    ac_top_srcdir=$srcdir
1553    ac_abs_top_srcdir=$srcdir ;;
1554  *) # Relative name.
1555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556    ac_top_srcdir=$ac_top_build_prefix$srcdir
1557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561    cd "$ac_dir" || { ac_status=$?; continue; }
1562    # Check for guested configure.
1563    if test -f "$ac_srcdir/configure.gnu"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566    elif test -f "$ac_srcdir/configure"; then
1567      echo &&
1568      $SHELL "$ac_srcdir/configure" --help=recursive
1569    else
1570      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571    fi || ac_status=$?
1572    cd "$ac_pwd" || { ac_status=$?; break; }
1573  done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578  cat <<\_ACEOF
1579xf86-input-vmmouse configure 13.0.0
1580generated by GNU Autoconf 2.69
1581
1582Copyright (C) 2012 Free Software Foundation, Inc.
1583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
1585_ACEOF
1586  exit
1587fi
1588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  rm -f conftest.$ac_objext
1600  if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603  *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607  (eval "$ac_compile") 2>conftest.err
1608  ac_status=$?
1609  if test -s conftest.err; then
1610    grep -v '^ *+' conftest.err >conftest.er1
1611    cat conftest.er1 >&5
1612    mv -f conftest.er1 conftest.err
1613  fi
1614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615  test $ac_status = 0; } && {
1616	 test -z "$ac_c_werror_flag" ||
1617	 test ! -s conftest.err
1618       } && test -s conftest.$ac_objext; then :
1619  ac_retval=0
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624	ac_retval=1
1625fi
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627  as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1632# ---------------------------------------------
1633# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1634# accordingly.
1635ac_fn_c_check_decl ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  as_decl_name=`echo $2|sed 's/ *(.*//'`
1639  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1642if eval \${$3+:} false; then :
1643  $as_echo_n "(cached) " >&6
1644else
1645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646/* end confdefs.h.  */
1647$4
1648int
1649main ()
1650{
1651#ifndef $as_decl_name
1652#ifdef __cplusplus
1653  (void) $as_decl_use;
1654#else
1655  (void) $as_decl_name;
1656#endif
1657#endif
1658
1659  ;
1660  return 0;
1661}
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664  eval "$3=yes"
1665else
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_decl
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } > conftest.i && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_header_compile
1786
1787# ac_fn_c_try_link LINENO
1788# -----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_link ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  rm -f conftest.$ac_objext conftest$ac_exeext
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && {
1810	 test -z "$ac_c_werror_flag" ||
1811	 test ! -s conftest.err
1812       } && test -s conftest$ac_exeext && {
1813	 test "$cross_compiling" = yes ||
1814	 test -x conftest$ac_exeext
1815       }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821	ac_retval=1
1822fi
1823  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825  # interfere with the next link command; also delete a directory that is
1826  # left behind by Apple's compiler.  We do this before executing the actions.
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_link
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&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/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851    which can conflict with char $2 (); below.
1852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853    <limits.h> exists even on freestanding compilers.  */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864   Use char because int might match the return type of a GCC
1865   builtin and then its argument prototype would still apply.  */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871    to always fail with ENOSYS.  Some functions are actually named
1872    something starting with __ and the normal name is an alias.  */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891    conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898} # ac_fn_c_check_func
1899cat >config.log <<_ACEOF
1900This file contains any messages produced by compilers while
1901running configure, to aid debugging if configure makes a mistake.
1902
1903It was created by xf86-input-vmmouse $as_me 13.0.0, which was
1904generated by GNU Autoconf 2.69.  Invocation command line was
1905
1906  $ $0 $@
1907
1908_ACEOF
1909exec 5>>config.log
1910{
1911cat <<_ASUNAME
1912## --------- ##
1913## Platform. ##
1914## --------- ##
1915
1916hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1924
1925/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1926/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1927/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1929/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1930/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1931/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1932
1933_ASUNAME
1934
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
1938  IFS=$as_save_IFS
1939  test -z "$as_dir" && as_dir=.
1940    $as_echo "PATH: $as_dir"
1941  done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967  for ac_arg
1968  do
1969    case $ac_arg in
1970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972    | -silent | --silent | --silen | --sile | --sil)
1973      continue ;;
1974    *\'*)
1975      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976    esac
1977    case $ac_pass in
1978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979    2)
1980      as_fn_append ac_configure_args1 " '$ac_arg'"
1981      if test $ac_must_keep_next = true; then
1982	ac_must_keep_next=false # Got value, back to normal.
1983      else
1984	case $ac_arg in
1985	  *=* | --config-cache | -C | -disable-* | --disable-* \
1986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988	  | -with-* | --with-* | -without-* | --without-* | --x)
1989	    case "$ac_configure_args0 " in
1990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991	    esac
1992	    ;;
1993	  -* ) ac_must_keep_next=true ;;
1994	esac
1995      fi
1996      as_fn_append ac_configure_args " '$ac_arg'"
1997      ;;
1998    esac
1999  done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log.  We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010  # Save into config.log some information that might help in debugging.
2011  {
2012    echo
2013
2014    $as_echo "## ---------------- ##
2015## Cache variables. ##
2016## ---------------- ##"
2017    echo
2018    # The following way of writing the cache mishandles newlines in values,
2019(
2020  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021    eval ac_val=\$$ac_var
2022    case $ac_val in #(
2023    *${as_nl}*)
2024      case $ac_var in #(
2025      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027      esac
2028      case $ac_var in #(
2029      _ | IFS | as_nl) ;; #(
2030      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031      *) { eval $ac_var=; unset $ac_var;} ;;
2032      esac ;;
2033    esac
2034  done
2035  (set) 2>&1 |
2036    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037    *${as_nl}ac_space=\ *)
2038      sed -n \
2039	"s/'\''/'\''\\\\'\'''\''/g;
2040	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041      ;; #(
2042    *)
2043      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044      ;;
2045    esac |
2046    sort
2047)
2048    echo
2049
2050    $as_echo "## ----------------- ##
2051## Output variables. ##
2052## ----------------- ##"
2053    echo
2054    for ac_var in $ac_subst_vars
2055    do
2056      eval ac_val=\$$ac_var
2057      case $ac_val in
2058      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059      esac
2060      $as_echo "$ac_var='\''$ac_val'\''"
2061    done | sort
2062    echo
2063
2064    if test -n "$ac_subst_files"; then
2065      $as_echo "## ------------------- ##
2066## File substitutions. ##
2067## ------------------- ##"
2068      echo
2069      for ac_var in $ac_subst_files
2070      do
2071	eval ac_val=\$$ac_var
2072	case $ac_val in
2073	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074	esac
2075	$as_echo "$ac_var='\''$ac_val'\''"
2076      done | sort
2077      echo
2078    fi
2079
2080    if test -s confdefs.h; then
2081      $as_echo "## ----------- ##
2082## confdefs.h. ##
2083## ----------- ##"
2084      echo
2085      cat confdefs.h
2086      echo
2087    fi
2088    test "$ac_signal" != 0 &&
2089      $as_echo "$as_me: caught signal $ac_signal"
2090    $as_echo "$as_me: exit $exit_status"
2091  } >&5
2092  rm -f core *.core core.conftest.* &&
2093    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094    exit $exit_status
2095' 0
2096for ac_signal in 1 2 13 15; do
2097  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
2102rm -f -r conftest* confdefs.h
2103
2104$as_echo "/* confdefs.h */" > confdefs.h
2105
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
2132
2133# Let the site file select an alternate cache file if it wants to.
2134# Prefer an explicitly selected file to automatically selected ones.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138  # We do not want a PATH search for config.site.
2139  case $CONFIG_SITE in #((
2140    -*)  ac_site_file1=./$CONFIG_SITE;;
2141    */*) ac_site_file1=$CONFIG_SITE;;
2142    *)   ac_site_file1=./$CONFIG_SITE;;
2143  esac
2144elif test "x$prefix" != xNONE; then
2145  ac_site_file1=$prefix/share/config.site
2146  ac_site_file2=$prefix/etc/config.site
2147else
2148  ac_site_file1=$ac_default_prefix/share/config.site
2149  ac_site_file2=$ac_default_prefix/etc/config.site
2150fi
2151for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152do
2153  test "x$ac_site_file" = xNONE && continue
2154  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157    sed 's/^/| /' "$ac_site_file" >&5
2158    . "$ac_site_file" \
2159      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "failed to load site script $ac_site_file
2162See \`config.log' for more details" "$LINENO" 5; }
2163  fi
2164done
2165
2166if test -r "$cache_file"; then
2167  # Some versions of bash will fail to source /dev/null (special files
2168  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2169  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171$as_echo "$as_me: loading cache $cache_file" >&6;}
2172    case $cache_file in
2173      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174      *)                      . "./$cache_file";;
2175    esac
2176  fi
2177else
2178  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179$as_echo "$as_me: creating cache $cache_file" >&6;}
2180  >$cache_file
2181fi
2182
2183# Check that the precious variables saved in the cache have kept the same
2184# value.
2185ac_cache_corrupted=false
2186for ac_var in $ac_precious_vars; do
2187  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188  eval ac_new_set=\$ac_env_${ac_var}_set
2189  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190  eval ac_new_val=\$ac_env_${ac_var}_value
2191  case $ac_old_set,$ac_new_set in
2192    set,)
2193      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195      ac_cache_corrupted=: ;;
2196    ,set)
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199      ac_cache_corrupted=: ;;
2200    ,);;
2201    *)
2202      if test "x$ac_old_val" != "x$ac_new_val"; then
2203	# differences in whitespace do not lead to failure.
2204	ac_old_val_w=`echo x $ac_old_val`
2205	ac_new_val_w=`echo x $ac_new_val`
2206	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209	  ac_cache_corrupted=:
2210	else
2211	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213	  eval $ac_var=\$ac_old_val
2214	fi
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2216$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2217	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2218$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2219      fi;;
2220  esac
2221  # Pass precious variables to config.status.
2222  if test "$ac_new_set" = set; then
2223    case $ac_new_val in
2224    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225    *) ac_arg=$ac_var=$ac_new_val ;;
2226    esac
2227    case " $ac_configure_args " in
2228      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2229      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230    esac
2231  fi
2232done
2233if $ac_cache_corrupted; then
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239fi
2240## -------------------- ##
2241## Main body of script. ##
2242## -------------------- ##
2243
2244ac_ext=c
2245ac_cpp='$CPP $CPPFLAGS'
2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252
2253ac_aux_dir=
2254for ac_dir in . "$srcdir"/.; do
2255  if test -f "$ac_dir/install-sh"; then
2256    ac_aux_dir=$ac_dir
2257    ac_install_sh="$ac_aux_dir/install-sh -c"
2258    break
2259  elif test -f "$ac_dir/install.sh"; then
2260    ac_aux_dir=$ac_dir
2261    ac_install_sh="$ac_aux_dir/install.sh -c"
2262    break
2263  elif test -f "$ac_dir/shtool"; then
2264    ac_aux_dir=$ac_dir
2265    ac_install_sh="$ac_aux_dir/shtool install -c"
2266    break
2267  fi
2268done
2269if test -z "$ac_aux_dir"; then
2270  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2271fi
2272
2273# These three variables are undocumented and unsupported,
2274# and are intended to be withdrawn in a future Autoconf release.
2275# They can cause serious problems if a builder's source tree is in a directory
2276# whose full name contains unusual characters.
2277ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2278ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2279ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2280
2281
2282ac_config_headers="$ac_config_headers config.h"
2283
2284
2285am__api_version='1.11'
2286
2287# Find a good install program.  We prefer a C program (faster),
2288# so one script is as good as another.  But avoid the broken or
2289# incompatible versions:
2290# SysV /etc/install, /usr/sbin/install
2291# SunOS /usr/etc/install
2292# IRIX /sbin/install
2293# AIX /bin/install
2294# AmigaOS /C/install, which installs bootblocks on floppy discs
2295# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298# OS/2's system install, which has a completely different semantic
2299# ./install, which can be erroneously created by make from ./install.sh.
2300# Reject install programs that cannot install multiple files.
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2302$as_echo_n "checking for a BSD-compatible install... " >&6; }
2303if test -z "$INSTALL"; then
2304if ${ac_cv_path_install+:} false; then :
2305  $as_echo_n "(cached) " >&6
2306else
2307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312    # Account for people who put trailing slashes in PATH elements.
2313case $as_dir/ in #((
2314  ./ | .// | /[cC]/* | \
2315  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2317  /usr/ucb/* ) ;;
2318  *)
2319    # OSF1 and SCO ODT 3.0 have their own names for install.
2320    # Don't use installbsd from OSF since it installs stuff as root
2321    # by default.
2322    for ac_prog in ginstall scoinst install; do
2323      for ac_exec_ext in '' $ac_executable_extensions; do
2324	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2325	  if test $ac_prog = install &&
2326	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327	    # AIX install.  It has an incompatible calling convention.
2328	    :
2329	  elif test $ac_prog = install &&
2330	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331	    # program-specific install script used by HP pwplus--don't use.
2332	    :
2333	  else
2334	    rm -rf conftest.one conftest.two conftest.dir
2335	    echo one > conftest.one
2336	    echo two > conftest.two
2337	    mkdir conftest.dir
2338	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339	      test -s conftest.one && test -s conftest.two &&
2340	      test -s conftest.dir/conftest.one &&
2341	      test -s conftest.dir/conftest.two
2342	    then
2343	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344	      break 3
2345	    fi
2346	  fi
2347	fi
2348      done
2349    done
2350    ;;
2351esac
2352
2353  done
2354IFS=$as_save_IFS
2355
2356rm -rf conftest.one conftest.two conftest.dir
2357
2358fi
2359  if test "${ac_cv_path_install+set}" = set; then
2360    INSTALL=$ac_cv_path_install
2361  else
2362    # As a last resort, use the slow shell script.  Don't cache a
2363    # value for INSTALL within a source directory, because that will
2364    # break other packages using the cache if that directory is
2365    # removed, or if the value is a relative name.
2366    INSTALL=$ac_install_sh
2367  fi
2368fi
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2370$as_echo "$INSTALL" >&6; }
2371
2372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373# It thinks the first close brace ends the variable substitution.
2374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375
2376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377
2378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2381$as_echo_n "checking whether build environment is sane... " >&6; }
2382# Just in case
2383sleep 1
2384echo timestamp > conftest.file
2385# Reject unsafe characters in $srcdir or the absolute working directory
2386# name.  Accept space and tab only in the latter.
2387am_lf='
2388'
2389case `pwd` in
2390  *[\\\"\#\$\&\'\`$am_lf]*)
2391    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392esac
2393case $srcdir in
2394  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2395    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2396esac
2397
2398# Do `set' in a subshell so we don't clobber the current shell's
2399# arguments.  Must try -L first in case configure is actually a
2400# symlink; some systems play weird games with the mod time of symlinks
2401# (eg FreeBSD returns the mod time of the symlink's containing
2402# directory).
2403if (
2404   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2405   if test "$*" = "X"; then
2406      # -L didn't work.
2407      set X `ls -t "$srcdir/configure" conftest.file`
2408   fi
2409   rm -f conftest.file
2410   if test "$*" != "X $srcdir/configure conftest.file" \
2411      && test "$*" != "X conftest.file $srcdir/configure"; then
2412
2413      # If neither matched, then we have a broken ls.  This can happen
2414      # if, for instance, CONFIG_SHELL is bash and it inherits a
2415      # broken ls alias from the environment.  This has actually
2416      # happened.  Such a system could not be considered "sane".
2417      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2418alias in your environment" "$LINENO" 5
2419   fi
2420
2421   test "$2" = conftest.file
2422   )
2423then
2424   # Ok.
2425   :
2426else
2427   as_fn_error $? "newly created file is older than distributed files!
2428Check your system clock" "$LINENO" 5
2429fi
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2431$as_echo "yes" >&6; }
2432test "$program_prefix" != NONE &&
2433  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434# Use a double $ so make ignores it.
2435test "$program_suffix" != NONE &&
2436  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437# Double any \ or $.
2438# By default was `s,x,x', remove it if useless.
2439ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441
2442# expand $ac_aux_dir to an absolute path
2443am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445if test x"${MISSING+set}" != xset; then
2446  case $am_aux_dir in
2447  *\ * | *\	*)
2448    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449  *)
2450    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451  esac
2452fi
2453# Use eval to expand $SHELL
2454if eval "$MISSING --run true"; then
2455  am_missing_run="$MISSING --run "
2456else
2457  am_missing_run=
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2459$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460fi
2461
2462if test x"${install_sh}" != xset; then
2463  case $am_aux_dir in
2464  *\ * | *\	*)
2465    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466  *)
2467    install_sh="\${SHELL} $am_aux_dir/install-sh"
2468  esac
2469fi
2470
2471# Installed binaries are usually stripped using `strip' when the user
2472# run `make install-strip'.  However `strip' might not be the right
2473# tool to use in cross-compilation environments, therefore Automake
2474# will honor the `STRIP' environment variable to overrule this program.
2475if test "$cross_compiling" != no; then
2476  if test -n "$ac_tool_prefix"; then
2477  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478set dummy ${ac_tool_prefix}strip; ac_word=$2
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if ${ac_cv_prog_STRIP+:} false; then :
2482  $as_echo_n "(cached) " >&6
2483else
2484  if test -n "$STRIP"; then
2485  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492    for ac_exec_ext in '' $ac_executable_extensions; do
2493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496    break 2
2497  fi
2498done
2499  done
2500IFS=$as_save_IFS
2501
2502fi
2503fi
2504STRIP=$ac_cv_prog_STRIP
2505if test -n "$STRIP"; then
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2507$as_echo "$STRIP" >&6; }
2508else
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
2511fi
2512
2513
2514fi
2515if test -z "$ac_cv_prog_STRIP"; then
2516  ac_ct_STRIP=$STRIP
2517  # Extract the first word of "strip", so it can be a program name with args.
2518set dummy strip; ac_word=$2
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test -n "$ac_ct_STRIP"; then
2525  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_exec_ext in '' $ac_executable_extensions; do
2533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534    ac_cv_prog_ac_ct_STRIP="strip"
2535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536    break 2
2537  fi
2538done
2539  done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545if test -n "$ac_ct_STRIP"; then
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2547$as_echo "$ac_ct_STRIP" >&6; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551fi
2552
2553  if test "x$ac_ct_STRIP" = x; then
2554    STRIP=":"
2555  else
2556    case $cross_compiling:$ac_tool_warned in
2557yes:)
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560ac_tool_warned=yes ;;
2561esac
2562    STRIP=$ac_ct_STRIP
2563  fi
2564else
2565  STRIP="$ac_cv_prog_STRIP"
2566fi
2567
2568fi
2569INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2572$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573if test -z "$MKDIR_P"; then
2574  if ${ac_cv_path_mkdir+:} false; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2579do
2580  IFS=$as_save_IFS
2581  test -z "$as_dir" && as_dir=.
2582    for ac_prog in mkdir gmkdir; do
2583	 for ac_exec_ext in '' $ac_executable_extensions; do
2584	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2585	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586	     'mkdir (GNU coreutils) '* | \
2587	     'mkdir (coreutils) '* | \
2588	     'mkdir (fileutils) '4.1*)
2589	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590	       break 3;;
2591	   esac
2592	 done
2593       done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598
2599  test -d ./--version && rmdir ./--version
2600  if test "${ac_cv_path_mkdir+set}" = set; then
2601    MKDIR_P="$ac_cv_path_mkdir -p"
2602  else
2603    # As a last resort, use the slow shell script.  Don't cache a
2604    # value for MKDIR_P within a source directory, because that will
2605    # break other packages using the cache if that directory is
2606    # removed, or if the value is a relative name.
2607    MKDIR_P="$ac_install_sh -d"
2608  fi
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2611$as_echo "$MKDIR_P" >&6; }
2612
2613mkdir_p="$MKDIR_P"
2614case $mkdir_p in
2615  [\\/$]* | ?:[\\/]*) ;;
2616  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617esac
2618
2619for ac_prog in gawk mawk nawk awk
2620do
2621  # Extract the first word of "$ac_prog", so it can be a program name with args.
2622set dummy $ac_prog; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if ${ac_cv_prog_AWK+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test -n "$AWK"; then
2629  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_exec_ext in '' $ac_executable_extensions; do
2637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638    ac_cv_prog_AWK="$ac_prog"
2639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648AWK=$ac_cv_prog_AWK
2649if test -n "$AWK"; then
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651$as_echo "$AWK" >&6; }
2652else
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657
2658  test -n "$AWK" && break
2659done
2660
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663set x ${MAKE-make}
2664ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  cat >conftest.make <<\_ACEOF
2669SHELL = /bin/sh
2670all:
2671	@echo '@@@%%%=$(MAKE)=@@@%%%'
2672_ACEOF
2673# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675  *@@@%%%=?*=@@@%%%*)
2676    eval ac_cv_prog_make_${ac_make}_set=yes;;
2677  *)
2678    eval ac_cv_prog_make_${ac_make}_set=no;;
2679esac
2680rm -f conftest.make
2681fi
2682if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684$as_echo "yes" >&6; }
2685  SET_MAKE=
2686else
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689  SET_MAKE="MAKE=${MAKE-make}"
2690fi
2691
2692rm -rf .tst 2>/dev/null
2693mkdir .tst 2>/dev/null
2694if test -d .tst; then
2695  am__leading_dot=.
2696else
2697  am__leading_dot=_
2698fi
2699rmdir .tst 2>/dev/null
2700
2701if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703  # is not polluted with repeated "-I."
2704  am__isrc=' -I$(srcdir)'
2705  # test to see if srcdir already configured
2706  if test -f $srcdir/config.status; then
2707    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2708  fi
2709fi
2710
2711# test whether we have cygpath
2712if test -z "$CYGPATH_W"; then
2713  if (cygpath --version) >/dev/null 2>/dev/null; then
2714    CYGPATH_W='cygpath -w'
2715  else
2716    CYGPATH_W=echo
2717  fi
2718fi
2719
2720
2721# Define the identity of the package.
2722 PACKAGE='xf86-input-vmmouse'
2723 VERSION='13.0.0'
2724
2725
2726cat >>confdefs.h <<_ACEOF
2727#define PACKAGE "$PACKAGE"
2728_ACEOF
2729
2730
2731cat >>confdefs.h <<_ACEOF
2732#define VERSION "$VERSION"
2733_ACEOF
2734
2735# Some tools Automake needs.
2736
2737ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2738
2739
2740AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2741
2742
2743AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2744
2745
2746AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2747
2748
2749MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2750
2751# We need awk for the "check" target.  The system "awk" is bad on
2752# some platforms.
2753# Always define AMTAR for backward compatibility.  Yes, it's still used
2754# in the wild :-(  We should find a proper way to deprecate it ...
2755AMTAR='$${TAR-tar}'
2756
2757am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2758
2759
2760
2761
2762
2763
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2766$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2767    # Check whether --enable-maintainer-mode was given.
2768if test "${enable_maintainer_mode+set}" = set; then :
2769  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2770else
2771  USE_MAINTAINER_MODE=no
2772fi
2773
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2775$as_echo "$USE_MAINTAINER_MODE" >&6; }
2776   if test $USE_MAINTAINER_MODE = yes; then
2777  MAINTAINER_MODE_TRUE=
2778  MAINTAINER_MODE_FALSE='#'
2779else
2780  MAINTAINER_MODE_TRUE='#'
2781  MAINTAINER_MODE_FALSE=
2782fi
2783
2784  MAINT=$MAINTAINER_MODE_TRUE
2785
2786
2787
2788# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800DEPDIR="${am__leading_dot}deps"
2801
2802ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805am_make=${MAKE-make}
2806cat > confinc << 'END'
2807am__doit:
2808	@echo this is the am__doit target
2809.PHONY: am__doit
2810END
2811# If we don't find an include directive, just comment out the code.
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813$as_echo_n "checking for style of include used by $am_make... " >&6; }
2814am__include="#"
2815am__quote=
2816_am_result=none
2817# First try GNU make style include.
2818echo "include confinc" > confmf
2819# Ignore all kinds of additional output from `make'.
2820case `$am_make -s -f confmf 2> /dev/null` in #(
2821*the\ am__doit\ target*)
2822  am__include=include
2823  am__quote=
2824  _am_result=GNU
2825  ;;
2826esac
2827# Now try BSD make style include.
2828if test "$am__include" = "#"; then
2829   echo '.include "confinc"' > confmf
2830   case `$am_make -s -f confmf 2> /dev/null` in #(
2831   *the\ am__doit\ target*)
2832     am__include=.include
2833     am__quote="\""
2834     _am_result=BSD
2835     ;;
2836   esac
2837fi
2838
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841$as_echo "$_am_result" >&6; }
2842rm -f confinc confmf
2843
2844# Check whether --enable-dependency-tracking was given.
2845if test "${enable_dependency_tracking+set}" = set; then :
2846  enableval=$enable_dependency_tracking;
2847fi
2848
2849if test "x$enable_dependency_tracking" != xno; then
2850  am_depcomp="$ac_aux_dir/depcomp"
2851  AMDEPBACKSLASH='\'
2852  am__nodep='_no'
2853fi
2854 if test "x$enable_dependency_tracking" != xno; then
2855  AMDEP_TRUE=
2856  AMDEP_FALSE='#'
2857else
2858  AMDEP_TRUE='#'
2859  AMDEP_FALSE=
2860fi
2861
2862
2863ac_ext=c
2864ac_cpp='$CPP $CPPFLAGS'
2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_CC"; then
2908  ac_ct_CC=$CC
2909  # Extract the first word of "gcc", so it can be a program name with args.
2910set dummy gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_CC"; then
2917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_CC="gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if test -n "$ac_ct_CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939$as_echo "$ac_ct_CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945  if test "x$ac_ct_CC" = x; then
2946    CC=""
2947  else
2948    case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954    CC=$ac_ct_CC
2955  fi
2956else
2957  CC="$ac_cv_prog_CC"
2958fi
2959
2960if test -z "$CC"; then
2961          if test -n "$ac_tool_prefix"; then
2962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}cc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_CC="${ac_tool_prefix}cc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CC=$ac_cv_prog_CC
2990if test -n "$CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992$as_echo "$CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  fi
3000fi
3001if test -z "$CC"; then
3002  # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012  ac_prog_rejected=no
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021       ac_prog_rejected=yes
3022       continue
3023     fi
3024    ac_cv_prog_CC="cc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032if test $ac_prog_rejected = yes; then
3033  # We found a bogon in the path, so make sure we never use it.
3034  set dummy $ac_cv_prog_CC
3035  shift
3036  if test $# != 0; then
3037    # We chose a different compiler from the bogus one.
3038    # However, it has the same basename, so the bogon will be chosen
3039    # first if we set CC to just the basename; use the full file name.
3040    shift
3041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042  fi
3043fi
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$CC"; then
3058  if test -n "$ac_tool_prefix"; then
3059  for ac_prog in cl.exe
3060  do
3061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098    test -n "$CC" && break
3099  done
3100fi
3101if test -z "$CC"; then
3102  ac_ct_CC=$CC
3103  for ac_prog in cl.exe
3104do
3105  # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$ac_ct_CC"; then
3113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_CC="$ac_prog"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133if test -n "$ac_ct_CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135$as_echo "$ac_ct_CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  test -n "$ac_ct_CC" && break
3143done
3144
3145  if test "x$ac_ct_CC" = x; then
3146    CC=""
3147  else
3148    case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154    CC=$ac_ct_CC
3155  fi
3156fi
3157
3158fi
3159
3160
3161test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error $? "no acceptable C compiler found in \$PATH
3164See \`config.log' for more details" "$LINENO" 5; }
3165
3166# Provide some information about the compiler.
3167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168set X $ac_compile
3169ac_compiler=$2
3170for ac_option in --version -v -V -qversion; do
3171  { { ac_try="$ac_compiler $ac_option >&5"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179  ac_status=$?
3180  if test -s conftest.err; then
3181    sed '10a\
3182... rest of stderr output deleted ...
3183         10q' conftest.err >conftest.er1
3184    cat conftest.er1 >&5
3185  fi
3186  rm -f conftest.er1 conftest.err
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }
3189done
3190
3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202ac_clean_files_save=$ac_clean_files
3203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204# Try to create an executable without -o first, disregard a.out.
3205# It will help us diagnose broken compilers, and finding out an intuition
3206# of exeext.
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208$as_echo_n "checking whether the C compiler works... " >&6; }
3209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211# The possible output files:
3212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214ac_rmfiles=
3215for ac_file in $ac_files
3216do
3217  case $ac_file in
3218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220  esac
3221done
3222rm -f $ac_rmfiles
3223
3224if { { ac_try="$ac_link_default"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link_default") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238# so that the user can short-circuit this test for compilers unknown to
3239# Autoconf.
3240for ac_file in $ac_files ''
3241do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245	;;
3246    [ab].out )
3247	# We found the default executable, but exeext='' is most
3248	# certainly right.
3249	break;;
3250    *.* )
3251	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252	then :; else
3253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254	fi
3255	# We set ac_cv_exeext here because the later test for it is not
3256	# safe: cross compilers may not add the suffix if given an `-o'
3257	# argument, so we may need to know it at that point already.
3258	# Even if this section looks crufty: it has the advantage of
3259	# actually working.
3260	break;;
3261    * )
3262	break;;
3263  esac
3264done
3265test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267else
3268  ac_file=''
3269fi
3270if test -z "$ac_file"; then :
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273$as_echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278as_fn_error 77 "C compiler cannot create executables
3279See \`config.log' for more details" "$LINENO" 5; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
3288ac_exeext=$ac_cv_exeext
3289
3290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291ac_clean_files=$ac_clean_files_save
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293$as_echo_n "checking for suffix of executables... " >&6; }
3294if { { ac_try="$ac_link"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	  break;;
3315    * ) break;;
3316  esac
3317done
3318else
3319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details" "$LINENO" 5; }
3323fi
3324rm -f conftest conftest$ac_cv_exeext
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326$as_echo "$ac_cv_exeext" >&6; }
3327
3328rm -f conftest.$ac_ext
3329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run.  If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350  { { ac_try="$ac_link"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357  (eval "$ac_link") 2>&5
3358  ac_status=$?
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361  if { ac_try='./conftest$ac_cv_exeext'
3362  { { case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_try") 2>&5
3369  ac_status=$?
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }; }; then
3372    cross_compiling=no
3373  else
3374    if test "$cross_compiling" = maybe; then
3375	cross_compiling=yes
3376    else
3377	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error $? "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details" "$LINENO" 5; }
3382    fi
3383  fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391$as_echo_n "checking for suffix of object files... " >&6; }
3392if ${ac_cv_objext+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
3407if { { ac_try="$ac_compile"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_compile") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  for ac_file in conftest.o conftest.obj conftest.*; do
3419  test -f "$ac_file" || continue;
3420  case $ac_file in
3421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423       break;;
3424  esac
3425done
3426else
3427  $as_echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details" "$LINENO" 5; }
3434fi
3435rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438$as_echo "$ac_cv_objext" >&6; }
3439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443if ${ac_cv_c_compiler_gnu+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453       choke me
3454#endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"; then :
3461  ac_compiler_gnu=yes
3462else
3463  ac_compiler_gnu=no
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472  GCC=yes
3473else
3474  GCC=
3475fi
3476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479$as_echo_n "checking whether $CC accepts -g... " >&6; }
3480if ${ac_cv_prog_cc_g+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_save_c_werror_flag=$ac_c_werror_flag
3484   ac_c_werror_flag=yes
3485   ac_cv_prog_cc_g=no
3486   CFLAGS="-g"
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_compile "$LINENO"; then :
3499  ac_cv_prog_cc_g=yes
3500else
3501  CFLAGS=""
3502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514
3515else
3516  ac_c_werror_flag=$ac_save_c_werror_flag
3517	 CFLAGS="-g"
3518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540$as_echo "$ac_cv_prog_cc_g" >&6; }
3541if test "$ac_test_CFLAGS" = set; then
3542  CFLAGS=$ac_save_CFLAGS
3543elif test $ac_cv_prog_cc_g = yes; then
3544  if test "$GCC" = yes; then
3545    CFLAGS="-g -O2"
3546  else
3547    CFLAGS="-g"
3548  fi
3549else
3550  if test "$GCC" = yes; then
3551    CFLAGS="-O2"
3552  else
3553    CFLAGS=
3554  fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558if ${ac_cv_prog_cc_c89+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_cv_prog_cc_c89=no
3562ac_save_CC=$CC
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdarg.h>
3566#include <stdio.h>
3567struct stat;
3568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3569struct buf { int x; };
3570FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571static char *e (p, i)
3572     char **p;
3573     int i;
3574{
3575  return p[i];
3576}
3577static char *f (char * (*g) (char **, int), char **p, ...)
3578{
3579  char *s;
3580  va_list v;
3581  va_start (v,p);
3582  s = g (p, va_arg (v,int));
3583  va_end (v);
3584  return s;
3585}
3586
3587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3588   function prototypes and stuff, but not '\xHH' hex character constants.
3589   These don't provoke an error unfortunately, instead are silently treated
3590   as 'x'.  The following induces an error, until -std is added to get
3591   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3592   array size at least.  It's necessary to write '\x00'==0 to get something
3593   that's true only with -std.  */
3594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597   inside strings and character constants.  */
3598#define FOO(x) 'x'
3599int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601int test (int i, double x);
3602struct s1 {int (*f) (int a);};
3603struct s2 {int (*f) (double a);};
3604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605int argc;
3606char **argv;
3607int
3608main ()
3609{
3610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617do
3618  CC="$ac_save_CC $ac_arg"
3619  if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_cv_prog_cc_c89=$ac_arg
3621fi
3622rm -f core conftest.err conftest.$ac_objext
3623  test "x$ac_cv_prog_cc_c89" != "xno" && break
3624done
3625rm -f conftest.$ac_ext
3626CC=$ac_save_CC
3627
3628fi
3629# AC_CACHE_VAL
3630case "x$ac_cv_prog_cc_c89" in
3631  x)
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633$as_echo "none needed" >&6; } ;;
3634  xno)
3635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636$as_echo "unsupported" >&6; } ;;
3637  *)
3638    CC="$CC $ac_cv_prog_cc_c89"
3639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641esac
3642if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652depcc="$CC"   am_compiler_list=
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655$as_echo_n "checking dependency style of $depcc... " >&6; }
3656if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660  # We make a subdir and do the tests there.  Otherwise we can end up
3661  # making bogus files that we don't know about and never remove.  For
3662  # instance it was reported that on HP-UX the gcc test will end up
3663  # making a dummy file named `D' -- because `-MD' means `put the output
3664  # in D'.
3665  rm -rf conftest.dir
3666  mkdir conftest.dir
3667  # Copy depcomp to subdir because otherwise we won't find it if we're
3668  # using a relative directory.
3669  cp "$am_depcomp" conftest.dir
3670  cd conftest.dir
3671  # We will build objects and dependencies in a subdirectory because
3672  # it helps to detect inapplicable dependency modes.  For instance
3673  # both Tru64's cc and ICC support -MD to output dependencies as a
3674  # side effect of compilation, but ICC will put the dependencies in
3675  # the current directory while Tru64 will put them in the object
3676  # directory.
3677  mkdir sub
3678
3679  am_cv_CC_dependencies_compiler_type=none
3680  if test "$am_compiler_list" = ""; then
3681     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682  fi
3683  am__universal=false
3684  case " $depcc " in #(
3685     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3686     esac
3687
3688  for depmode in $am_compiler_list; do
3689    # Setup a source with many dependencies, because some compilers
3690    # like to wrap large dependency lists on column 80 (with \), and
3691    # we should not choose a depcomp mode which is confused by this.
3692    #
3693    # We need to recreate these files for each test, as the compiler may
3694    # overwrite some of them when testing with obscure command lines.
3695    # This happens at least with the AIX C compiler.
3696    : > sub/conftest.c
3697    for i in 1 2 3 4 5 6; do
3698      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3699      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3700      # Solaris 8's {/usr,}/bin/sh.
3701      touch sub/conftst$i.h
3702    done
3703    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
3705    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3706    # mode.  It turns out that the SunPro C++ compiler does not properly
3707    # handle `-M -o', and we need to detect this.  Also, some Intel
3708    # versions had trouble with output in subdirs
3709    am__obj=sub/conftest.${OBJEXT-o}
3710    am__minus_obj="-o $am__obj"
3711    case $depmode in
3712    gcc)
3713      # This depmode causes a compiler race in universal mode.
3714      test "$am__universal" = false || continue
3715      ;;
3716    nosideeffect)
3717      # after this tag, mechanisms are not by side-effect, so they'll
3718      # only be used when explicitly requested
3719      if test "x$enable_dependency_tracking" = xyes; then
3720	continue
3721      else
3722	break
3723      fi
3724      ;;
3725    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3726      # This compiler won't grok `-c -o', but also, the minuso test has
3727      # not run yet.  These depmodes are late enough in the game, and
3728      # so weak that their functioning should not be impacted.
3729      am__obj=conftest.${OBJEXT-o}
3730      am__minus_obj=
3731      ;;
3732    none) break ;;
3733    esac
3734    if depmode=$depmode \
3735       source=sub/conftest.c object=$am__obj \
3736       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3738         >/dev/null 2>conftest.err &&
3739       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3740       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3741       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3742       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3743      # icc doesn't choke on unknown options, it will just issue warnings
3744      # or remarks (even with -Werror).  So we grep stderr for any message
3745      # that says an option was ignored or not supported.
3746      # When given -MP, icc 7.0 and 7.1 complain thusly:
3747      #   icc: Command line warning: ignoring option '-M'; no argument required
3748      # The diagnosis changed in icc 8.0:
3749      #   icc: Command line remark: option '-MP' not supported
3750      if (grep 'ignoring option' conftest.err ||
3751          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3752        am_cv_CC_dependencies_compiler_type=$depmode
3753        break
3754      fi
3755    fi
3756  done
3757
3758  cd ..
3759  rm -rf conftest.dir
3760else
3761  am_cv_CC_dependencies_compiler_type=none
3762fi
3763
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3766$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3767CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3768
3769 if
3770  test "x$enable_dependency_tracking" != xno \
3771  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772  am__fastdepCC_TRUE=
3773  am__fastdepCC_FALSE='#'
3774else
3775  am__fastdepCC_TRUE='#'
3776  am__fastdepCC_FALSE=
3777fi
3778
3779
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3781$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3782if ${ac_cv_prog_cc_c99+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  ac_cv_prog_cc_c99=no
3786ac_save_CC=$CC
3787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789#include <stdarg.h>
3790#include <stdbool.h>
3791#include <stdlib.h>
3792#include <wchar.h>
3793#include <stdio.h>
3794
3795// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3796#define debug(...) fprintf (stderr, __VA_ARGS__)
3797#define showlist(...) puts (#__VA_ARGS__)
3798#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3799static void
3800test_varargs_macros (void)
3801{
3802  int x = 1234;
3803  int y = 5678;
3804  debug ("Flag");
3805  debug ("X = %d\n", x);
3806  showlist (The first, second, and third items.);
3807  report (x>y, "x is %d but y is %d", x, y);
3808}
3809
3810// Check long long types.
3811#define BIG64 18446744073709551615ull
3812#define BIG32 4294967295ul
3813#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3814#if !BIG_OK
3815  your preprocessor is broken;
3816#endif
3817#if BIG_OK
3818#else
3819  your preprocessor is broken;
3820#endif
3821static long long int bignum = -9223372036854775807LL;
3822static unsigned long long int ubignum = BIG64;
3823
3824struct incomplete_array
3825{
3826  int datasize;
3827  double data[];
3828};
3829
3830struct named_init {
3831  int number;
3832  const wchar_t *name;
3833  double average;
3834};
3835
3836typedef const char *ccp;
3837
3838static inline int
3839test_restrict (ccp restrict text)
3840{
3841  // See if C++-style comments work.
3842  // Iterate through items via the restricted pointer.
3843  // Also check for declarations in for loops.
3844  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3845    continue;
3846  return 0;
3847}
3848
3849// Check varargs and va_copy.
3850static void
3851test_varargs (const char *format, ...)
3852{
3853  va_list args;
3854  va_start (args, format);
3855  va_list args_copy;
3856  va_copy (args_copy, args);
3857
3858  const char *str;
3859  int number;
3860  float fnumber;
3861
3862  while (*format)
3863    {
3864      switch (*format++)
3865	{
3866	case 's': // string
3867	  str = va_arg (args_copy, const char *);
3868	  break;
3869	case 'd': // int
3870	  number = va_arg (args_copy, int);
3871	  break;
3872	case 'f': // float
3873	  fnumber = va_arg (args_copy, double);
3874	  break;
3875	default:
3876	  break;
3877	}
3878    }
3879  va_end (args_copy);
3880  va_end (args);
3881}
3882
3883int
3884main ()
3885{
3886
3887  // Check bool.
3888  _Bool success = false;
3889
3890  // Check restrict.
3891  if (test_restrict ("String literal") == 0)
3892    success = true;
3893  char *restrict newvar = "Another string";
3894
3895  // Check varargs.
3896  test_varargs ("s, d' f .", "string", 65, 34.234);
3897  test_varargs_macros ();
3898
3899  // Check flexible array members.
3900  struct incomplete_array *ia =
3901    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3902  ia->datasize = 10;
3903  for (int i = 0; i < ia->datasize; ++i)
3904    ia->data[i] = i * 1.234;
3905
3906  // Check named initializers.
3907  struct named_init ni = {
3908    .number = 34,
3909    .name = L"Test wide string",
3910    .average = 543.34343,
3911  };
3912
3913  ni.number = 58;
3914
3915  int dynamic_array[ni.number];
3916  dynamic_array[ni.number - 1] = 543;
3917
3918  // work around unused variable warnings
3919  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3920	  || dynamic_array[ni.number - 1] != 543);
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3927do
3928  CC="$ac_save_CC $ac_arg"
3929  if ac_fn_c_try_compile "$LINENO"; then :
3930  ac_cv_prog_cc_c99=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933  test "x$ac_cv_prog_cc_c99" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c99" in
3941  x)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944  xno)
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947  *)
3948    CC="$CC $ac_cv_prog_cc_c99"
3949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3950$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c99" != xno; then :
3953
3954fi
3955
3956
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964$as_echo_n "checking how to run the C preprocessor... " >&6; }
3965# On Suns, sometimes $CPP names a directory.
3966if test -n "$CPP" && test -d "$CPP"; then
3967  CPP=
3968fi
3969if test -z "$CPP"; then
3970  if ${ac_cv_prog_CPP+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973      # Double quotes because CPP needs to be expanded
3974    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975    do
3976      ac_preproc_ok=false
3977for ac_c_preproc_warn_flag in '' yes
3978do
3979  # Use a header file that comes with gcc, so configuring glibc
3980  # with a fresh cross-compiler works.
3981  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982  # <limits.h> exists even on freestanding compilers.
3983  # On the NeXT, cc -E runs the code through the compiler's parser,
3984  # not just through cpp. "Syntax error" is here to catch this case.
3985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987#ifdef __STDC__
3988# include <limits.h>
3989#else
3990# include <assert.h>
3991#endif
3992		     Syntax error
3993_ACEOF
3994if ac_fn_c_try_cpp "$LINENO"; then :
3995
3996else
3997  # Broken: fails on valid input.
3998continue
3999fi
4000rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002  # OK, works on sane cases.  Now check whether nonexistent headers
4003  # can be detected and how.
4004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006#include <ac_nonexistent.h>
4007_ACEOF
4008if ac_fn_c_try_cpp "$LINENO"; then :
4009  # Broken: success on invalid input.
4010continue
4011else
4012  # Passes both tests.
4013ac_preproc_ok=:
4014break
4015fi
4016rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018done
4019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020rm -f conftest.i conftest.err conftest.$ac_ext
4021if $ac_preproc_ok; then :
4022  break
4023fi
4024
4025    done
4026    ac_cv_prog_CPP=$CPP
4027
4028fi
4029  CPP=$ac_cv_prog_CPP
4030else
4031  ac_cv_prog_CPP=$CPP
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034$as_echo "$CPP" >&6; }
4035ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#ifdef __STDC__
4047# include <limits.h>
4048#else
4049# include <assert.h>
4050#endif
4051		     Syntax error
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055else
4056  # Broken: fails on valid input.
4057continue
4058fi
4059rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061  # OK, works on sane cases.  Now check whether nonexistent headers
4062  # can be detected and how.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <ac_nonexistent.h>
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068  # Broken: success on invalid input.
4069continue
4070else
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.i conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then :
4081
4082else
4083  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086See \`config.log' for more details" "$LINENO" 5; }
4087fi
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098if ${ac_cv_path_GREP+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  if test -z "$GREP"; then
4102  ac_path_GREP_found=false
4103  # Loop through the user's path and test for each of PROGNAME-LIST
4104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109    for ac_prog in grep ggrep; do
4110    for ac_exec_ext in '' $ac_executable_extensions; do
4111      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112      as_fn_executable_p "$ac_path_GREP" || continue
4113# Check for GNU ac_path_GREP and select it if it is found.
4114  # Check for GNU $ac_path_GREP
4115case `"$ac_path_GREP" --version 2>&1` in
4116*GNU*)
4117  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118*)
4119  ac_count=0
4120  $as_echo_n 0123456789 >"conftest.in"
4121  while :
4122  do
4123    cat "conftest.in" "conftest.in" >"conftest.tmp"
4124    mv "conftest.tmp" "conftest.in"
4125    cp "conftest.in" "conftest.nl"
4126    $as_echo 'GREP' >> "conftest.nl"
4127    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129    as_fn_arith $ac_count + 1 && ac_count=$as_val
4130    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131      # Best one so far, save it but keep looking for a better one
4132      ac_cv_path_GREP="$ac_path_GREP"
4133      ac_path_GREP_max=$ac_count
4134    fi
4135    # 10*(2^10) chars as input seems more than enough
4136    test $ac_count -gt 10 && break
4137  done
4138  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139esac
4140
4141      $ac_path_GREP_found && break 3
4142    done
4143  done
4144  done
4145IFS=$as_save_IFS
4146  if test -z "$ac_cv_path_GREP"; then
4147    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148  fi
4149else
4150  ac_cv_path_GREP=$GREP
4151fi
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155$as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP="$ac_cv_path_GREP"
4157
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160$as_echo_n "checking for egrep... " >&6; }
4161if ${ac_cv_path_EGREP+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165   then ac_cv_path_EGREP="$GREP -E"
4166   else
4167     if test -z "$EGREP"; then
4168  ac_path_EGREP_found=false
4169  # Loop through the user's path and test for each of PROGNAME-LIST
4170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_prog in egrep; do
4176    for ac_exec_ext in '' $ac_executable_extensions; do
4177      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178      as_fn_executable_p "$ac_path_EGREP" || continue
4179# Check for GNU ac_path_EGREP and select it if it is found.
4180  # Check for GNU $ac_path_EGREP
4181case `"$ac_path_EGREP" --version 2>&1` in
4182*GNU*)
4183  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184*)
4185  ac_count=0
4186  $as_echo_n 0123456789 >"conftest.in"
4187  while :
4188  do
4189    cat "conftest.in" "conftest.in" >"conftest.tmp"
4190    mv "conftest.tmp" "conftest.in"
4191    cp "conftest.in" "conftest.nl"
4192    $as_echo 'EGREP' >> "conftest.nl"
4193    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195    as_fn_arith $ac_count + 1 && ac_count=$as_val
4196    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197      # Best one so far, save it but keep looking for a better one
4198      ac_cv_path_EGREP="$ac_path_EGREP"
4199      ac_path_EGREP_max=$ac_count
4200    fi
4201    # 10*(2^10) chars as input seems more than enough
4202    test $ac_count -gt 10 && break
4203  done
4204  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205esac
4206
4207      $ac_path_EGREP_found && break 3
4208    done
4209  done
4210  done
4211IFS=$as_save_IFS
4212  if test -z "$ac_cv_path_EGREP"; then
4213    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214  fi
4215else
4216  ac_cv_path_EGREP=$EGREP
4217fi
4218
4219   fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222$as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP="$ac_cv_path_EGREP"
4224
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227$as_echo_n "checking for ANSI C header files... " >&6; }
4228if ${ac_cv_header_stdc+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <stdlib.h>
4234#include <stdarg.h>
4235#include <string.h>
4236#include <float.h>
4237
4238int
4239main ()
4240{
4241
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246if ac_fn_c_try_compile "$LINENO"; then :
4247  ac_cv_header_stdc=yes
4248else
4249  ac_cv_header_stdc=no
4250fi
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253if test $ac_cv_header_stdc = yes; then
4254  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257#include <string.h>
4258
4259_ACEOF
4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261  $EGREP "memchr" >/dev/null 2>&1; then :
4262
4263else
4264  ac_cv_header_stdc=no
4265fi
4266rm -f conftest*
4267
4268fi
4269
4270if test $ac_cv_header_stdc = yes; then
4271  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274#include <stdlib.h>
4275
4276_ACEOF
4277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278  $EGREP "free" >/dev/null 2>&1; then :
4279
4280else
4281  ac_cv_header_stdc=no
4282fi
4283rm -f conftest*
4284
4285fi
4286
4287if test $ac_cv_header_stdc = yes; then
4288  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289  if test "$cross_compiling" = yes; then :
4290  :
4291else
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#include <ctype.h>
4295#include <stdlib.h>
4296#if ((' ' & 0x0FF) == 0x020)
4297# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299#else
4300# define ISLOWER(c) \
4301		   (('a' <= (c) && (c) <= 'i') \
4302		     || ('j' <= (c) && (c) <= 'r') \
4303		     || ('s' <= (c) && (c) <= 'z'))
4304# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305#endif
4306
4307#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308int
4309main ()
4310{
4311  int i;
4312  for (i = 0; i < 256; i++)
4313    if (XOR (islower (i), ISLOWER (i))
4314	|| toupper (i) != TOUPPER (i))
4315      return 2;
4316  return 0;
4317}
4318_ACEOF
4319if ac_fn_c_try_run "$LINENO"; then :
4320
4321else
4322  ac_cv_header_stdc=no
4323fi
4324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325  conftest.$ac_objext conftest.beam conftest.$ac_ext
4326fi
4327
4328fi
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331$as_echo "$ac_cv_header_stdc" >&6; }
4332if test $ac_cv_header_stdc = yes; then
4333
4334$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4335
4336fi
4337
4338# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340		  inttypes.h stdint.h unistd.h
4341do :
4342  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344"
4345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346  cat >>confdefs.h <<_ACEOF
4347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348_ACEOF
4349
4350fi
4351
4352done
4353
4354
4355
4356
4357
4358
4359ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4360if test "x$ac_cv_have_decl___clang__" = xyes; then :
4361  CLANGCC="yes"
4362else
4363  CLANGCC="no"
4364fi
4365
4366ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4367if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4368  INTELCC="yes"
4369else
4370  INTELCC="no"
4371fi
4372
4373ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4374if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4375  SUNCC="yes"
4376else
4377  SUNCC="no"
4378fi
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4389	if test -n "$ac_tool_prefix"; then
4390  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393$as_echo_n "checking for $ac_word... " >&6; }
4394if ${ac_cv_path_PKG_CONFIG+:} false; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  case $PKG_CONFIG in
4398  [\\/]* | ?:[\\/]*)
4399  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4400  ;;
4401  *)
4402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405  IFS=$as_save_IFS
4406  test -z "$as_dir" && as_dir=.
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411    break 2
4412  fi
4413done
4414  done
4415IFS=$as_save_IFS
4416
4417  ;;
4418esac
4419fi
4420PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4421if test -n "$PKG_CONFIG"; then
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4423$as_echo "$PKG_CONFIG" >&6; }
4424else
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430fi
4431if test -z "$ac_cv_path_PKG_CONFIG"; then
4432  ac_pt_PKG_CONFIG=$PKG_CONFIG
4433  # Extract the first word of "pkg-config", so it can be a program name with args.
4434set dummy pkg-config; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  case $ac_pt_PKG_CONFIG in
4441  [\\/]* | ?:[\\/]*)
4442  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4443  ;;
4444  *)
4445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450    for ac_exec_ext in '' $ac_executable_extensions; do
4451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457  done
4458IFS=$as_save_IFS
4459
4460  ;;
4461esac
4462fi
4463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4464if test -n "$ac_pt_PKG_CONFIG"; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4466$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4467else
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469$as_echo "no" >&6; }
4470fi
4471
4472  if test "x$ac_pt_PKG_CONFIG" = x; then
4473    PKG_CONFIG=""
4474  else
4475    case $cross_compiling:$ac_tool_warned in
4476yes:)
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479ac_tool_warned=yes ;;
4480esac
4481    PKG_CONFIG=$ac_pt_PKG_CONFIG
4482  fi
4483else
4484  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4485fi
4486
4487fi
4488if test -n "$PKG_CONFIG"; then
4489	_pkg_min_version=0.9.0
4490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4491$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4492	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494$as_echo "yes" >&6; }
4495	else
4496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498		PKG_CONFIG=""
4499	fi
4500fi
4501# Make sure we can run config.sub.
4502$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4503  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4506$as_echo_n "checking build system type... " >&6; }
4507if ${ac_cv_build+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  ac_build_alias=$build_alias
4511test "x$ac_build_alias" = x &&
4512  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4513test "x$ac_build_alias" = x &&
4514  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4515ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4516  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4517
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4520$as_echo "$ac_cv_build" >&6; }
4521case $ac_cv_build in
4522*-*-*) ;;
4523*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4524esac
4525build=$ac_cv_build
4526ac_save_IFS=$IFS; IFS='-'
4527set x $ac_cv_build
4528shift
4529build_cpu=$1
4530build_vendor=$2
4531shift; shift
4532# Remember, the first character of IFS is used to create $*,
4533# except with old shells:
4534build_os=$*
4535IFS=$ac_save_IFS
4536case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4537
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4540$as_echo_n "checking host system type... " >&6; }
4541if ${ac_cv_host+:} false; then :
4542  $as_echo_n "(cached) " >&6
4543else
4544  if test "x$host_alias" = x; then
4545  ac_cv_host=$ac_cv_build
4546else
4547  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4548    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4549fi
4550
4551fi
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4553$as_echo "$ac_cv_host" >&6; }
4554case $ac_cv_host in
4555*-*-*) ;;
4556*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4557esac
4558host=$ac_cv_host
4559ac_save_IFS=$IFS; IFS='-'
4560set x $ac_cv_host
4561shift
4562host_cpu=$1
4563host_vendor=$2
4564shift; shift
4565# Remember, the first character of IFS is used to create $*,
4566# except with old shells:
4567host_os=$*
4568IFS=$ac_save_IFS
4569case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4570
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4573$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4574if ${ac_cv_path_SED+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4578     for ac_i in 1 2 3 4 5 6 7; do
4579       ac_script="$ac_script$as_nl$ac_script"
4580     done
4581     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4582     { ac_script=; unset ac_script;}
4583     if test -z "$SED"; then
4584  ac_path_SED_found=false
4585  # Loop through the user's path and test for each of PROGNAME-LIST
4586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_prog in sed gsed; do
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4594      as_fn_executable_p "$ac_path_SED" || continue
4595# Check for GNU ac_path_SED and select it if it is found.
4596  # Check for GNU $ac_path_SED
4597case `"$ac_path_SED" --version 2>&1` in
4598*GNU*)
4599  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4600*)
4601  ac_count=0
4602  $as_echo_n 0123456789 >"conftest.in"
4603  while :
4604  do
4605    cat "conftest.in" "conftest.in" >"conftest.tmp"
4606    mv "conftest.tmp" "conftest.in"
4607    cp "conftest.in" "conftest.nl"
4608    $as_echo '' >> "conftest.nl"
4609    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611    as_fn_arith $ac_count + 1 && ac_count=$as_val
4612    if test $ac_count -gt ${ac_path_SED_max-0}; then
4613      # Best one so far, save it but keep looking for a better one
4614      ac_cv_path_SED="$ac_path_SED"
4615      ac_path_SED_max=$ac_count
4616    fi
4617    # 10*(2^10) chars as input seems more than enough
4618    test $ac_count -gt 10 && break
4619  done
4620  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621esac
4622
4623      $ac_path_SED_found && break 3
4624    done
4625  done
4626  done
4627IFS=$as_save_IFS
4628  if test -z "$ac_cv_path_SED"; then
4629    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4630  fi
4631else
4632  ac_cv_path_SED=$SED
4633fi
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4637$as_echo "$ac_cv_path_SED" >&6; }
4638 SED="$ac_cv_path_SED"
4639  rm -f conftest.sed
4640
4641
4642
4643
4644
4645
4646# Check whether --enable-selective-werror was given.
4647if test "${enable_selective_werror+set}" = set; then :
4648  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4649else
4650  SELECTIVE_WERROR=yes
4651fi
4652
4653
4654
4655
4656
4657# -v is too short to test reliably with XORG_TESTSET_CFLAG
4658if test "x$SUNCC" = "xyes"; then
4659    BASE_CFLAGS="-v"
4660else
4661    BASE_CFLAGS=""
4662fi
4663
4664# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678xorg_testset_save_CFLAGS="$CFLAGS"
4679
4680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h.  */
4689int i;
4690_ACEOF
4691if ac_fn_c_try_compile "$LINENO"; then :
4692  xorg_cv_cc_flag_unknown_warning_option=yes
4693else
4694  xorg_cv_cc_flag_unknown_warning_option=no
4695fi
4696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4701	CFLAGS="$xorg_testset_save_CFLAGS"
4702fi
4703
4704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4707	fi
4708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716int i;
4717_ACEOF
4718if ac_fn_c_try_compile "$LINENO"; then :
4719  xorg_cv_cc_flag_unused_command_line_argument=yes
4720else
4721  xorg_cv_cc_flag_unused_command_line_argument=no
4722fi
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4728	CFLAGS="$xorg_testset_save_CFLAGS"
4729fi
4730
4731found="no"
4732
4733	if test $found = "no" ; then
4734		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4736		fi
4737
4738		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740		fi
4741
4742		CFLAGS="$CFLAGS -Wall"
4743
4744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4745$as_echo_n "checking if $CC supports-Wall... " >&6; }
4746		cacheid=xorg_cv_cc_flag__Wall
4747		if eval \${$cacheid+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752int i;
4753int
4754main ()
4755{
4756
4757  ;
4758  return 0;
4759}
4760_ACEOF
4761if ac_fn_c_try_link "$LINENO"; then :
4762  eval $cacheid=yes
4763else
4764  eval $cacheid=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext \
4767    conftest$ac_exeext conftest.$ac_ext
4768fi
4769
4770
4771		CFLAGS="$xorg_testset_save_CFLAGS"
4772
4773		eval supported=\$$cacheid
4774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4775$as_echo "$supported" >&6; }
4776		if test "$supported" = "yes" ; then
4777			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4778			found="yes"
4779		fi
4780	fi
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807int i;
4808_ACEOF
4809if ac_fn_c_try_compile "$LINENO"; then :
4810  xorg_cv_cc_flag_unknown_warning_option=yes
4811else
4812  xorg_cv_cc_flag_unknown_warning_option=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819	CFLAGS="$xorg_testset_save_CFLAGS"
4820fi
4821
4822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825	fi
4826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"; then :
4837  xorg_cv_cc_flag_unused_command_line_argument=yes
4838else
4839  xorg_cv_cc_flag_unused_command_line_argument=no
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846	CFLAGS="$xorg_testset_save_CFLAGS"
4847fi
4848
4849found="no"
4850
4851	if test $found = "no" ; then
4852		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854		fi
4855
4856		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858		fi
4859
4860		CFLAGS="$CFLAGS -Wpointer-arith"
4861
4862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4863$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4864		cacheid=xorg_cv_cc_flag__Wpointer_arith
4865		if eval \${$cacheid+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870int i;
4871int
4872main ()
4873{
4874
4875  ;
4876  return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_link "$LINENO"; then :
4880  eval $cacheid=yes
4881else
4882  eval $cacheid=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext \
4885    conftest$ac_exeext conftest.$ac_ext
4886fi
4887
4888
4889		CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891		eval supported=\$$cacheid
4892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893$as_echo "$supported" >&6; }
4894		if test "$supported" = "yes" ; then
4895			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4896			found="yes"
4897		fi
4898	fi
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914xorg_testset_save_CFLAGS="$CFLAGS"
4915
4916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925int i;
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928  xorg_cv_cc_flag_unknown_warning_option=yes
4929else
4930  xorg_cv_cc_flag_unknown_warning_option=no
4931fi
4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937	CFLAGS="$xorg_testset_save_CFLAGS"
4938fi
4939
4940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943	fi
4944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952int i;
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955  xorg_cv_cc_flag_unused_command_line_argument=yes
4956else
4957  xorg_cv_cc_flag_unused_command_line_argument=no
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4964	CFLAGS="$xorg_testset_save_CFLAGS"
4965fi
4966
4967found="no"
4968
4969	if test $found = "no" ; then
4970		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972		fi
4973
4974		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976		fi
4977
4978		CFLAGS="$CFLAGS -Wmissing-declarations"
4979
4980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4981$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4982		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4983		if eval \${$cacheid+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988int i;
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_link "$LINENO"; then :
4998  eval $cacheid=yes
4999else
5000  eval $cacheid=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext \
5003    conftest$ac_exeext conftest.$ac_ext
5004fi
5005
5006
5007		CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009		eval supported=\$$cacheid
5010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011$as_echo "$supported" >&6; }
5012		if test "$supported" = "yes" ; then
5013			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5014			found="yes"
5015		fi
5016	fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043int i;
5044_ACEOF
5045if ac_fn_c_try_compile "$LINENO"; then :
5046  xorg_cv_cc_flag_unknown_warning_option=yes
5047else
5048  xorg_cv_cc_flag_unknown_warning_option=no
5049fi
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5055	CFLAGS="$xorg_testset_save_CFLAGS"
5056fi
5057
5058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061	fi
5062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int i;
5071_ACEOF
5072if ac_fn_c_try_compile "$LINENO"; then :
5073  xorg_cv_cc_flag_unused_command_line_argument=yes
5074else
5075  xorg_cv_cc_flag_unused_command_line_argument=no
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5082	CFLAGS="$xorg_testset_save_CFLAGS"
5083fi
5084
5085found="no"
5086
5087	if test $found = "no" ; then
5088		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090		fi
5091
5092		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094		fi
5095
5096		CFLAGS="$CFLAGS -Wformat=2"
5097
5098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5099$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5100		cacheid=xorg_cv_cc_flag__Wformat_2
5101		if eval \${$cacheid+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107int
5108main ()
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"; then :
5116  eval $cacheid=yes
5117else
5118  eval $cacheid=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext \
5121    conftest$ac_exeext conftest.$ac_ext
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129$as_echo "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5132			found="yes"
5133		fi
5134	fi
5135
5136	if test $found = "no" ; then
5137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139		fi
5140
5141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143		fi
5144
5145		CFLAGS="$CFLAGS -Wformat"
5146
5147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5148$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5149		cacheid=xorg_cv_cc_flag__Wformat
5150		if eval \${$cacheid+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155int i;
5156int
5157main ()
5158{
5159
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_link "$LINENO"; then :
5165  eval $cacheid=yes
5166else
5167  eval $cacheid=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext \
5170    conftest$ac_exeext conftest.$ac_ext
5171fi
5172
5173
5174		CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176		eval supported=\$$cacheid
5177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178$as_echo "$supported" >&6; }
5179		if test "$supported" = "yes" ; then
5180			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5181			found="yes"
5182		fi
5183	fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201xorg_testset_save_CFLAGS="$CFLAGS"
5202
5203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"; then :
5215  xorg_cv_cc_flag_unknown_warning_option=yes
5216else
5217  xorg_cv_cc_flag_unknown_warning_option=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230	fi
5231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239int i;
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242  xorg_cv_cc_flag_unused_command_line_argument=yes
5243else
5244  xorg_cv_cc_flag_unused_command_line_argument=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5251	CFLAGS="$xorg_testset_save_CFLAGS"
5252fi
5253
5254found="no"
5255
5256	if test $found = "no" ; then
5257		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259		fi
5260
5261		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5263		fi
5264
5265		CFLAGS="$CFLAGS -Wstrict-prototypes"
5266
5267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5268$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5269		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5270		if eval \${$cacheid+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275int i;
5276int
5277main ()
5278{
5279
5280  ;
5281  return 0;
5282}
5283_ACEOF
5284if ac_fn_c_try_link "$LINENO"; then :
5285  eval $cacheid=yes
5286else
5287  eval $cacheid=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext \
5290    conftest$ac_exeext conftest.$ac_ext
5291fi
5292
5293
5294		CFLAGS="$xorg_testset_save_CFLAGS"
5295
5296		eval supported=\$$cacheid
5297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298$as_echo "$supported" >&6; }
5299		if test "$supported" = "yes" ; then
5300			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5301			found="yes"
5302		fi
5303	fi
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319xorg_testset_save_CFLAGS="$CFLAGS"
5320
5321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h.  */
5330int i;
5331_ACEOF
5332if ac_fn_c_try_compile "$LINENO"; then :
5333  xorg_cv_cc_flag_unknown_warning_option=yes
5334else
5335  xorg_cv_cc_flag_unknown_warning_option=no
5336fi
5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5342	CFLAGS="$xorg_testset_save_CFLAGS"
5343fi
5344
5345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5348	fi
5349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357int i;
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360  xorg_cv_cc_flag_unused_command_line_argument=yes
5361else
5362  xorg_cv_cc_flag_unused_command_line_argument=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5369	CFLAGS="$xorg_testset_save_CFLAGS"
5370fi
5371
5372found="no"
5373
5374	if test $found = "no" ; then
5375		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377		fi
5378
5379		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381		fi
5382
5383		CFLAGS="$CFLAGS -Wmissing-prototypes"
5384
5385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5386$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5387		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5388		if eval \${$cacheid+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394int
5395main ()
5396{
5397
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402if ac_fn_c_try_link "$LINENO"; then :
5403  eval $cacheid=yes
5404else
5405  eval $cacheid=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext \
5408    conftest$ac_exeext conftest.$ac_ext
5409fi
5410
5411
5412		CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414		eval supported=\$$cacheid
5415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416$as_echo "$supported" >&6; }
5417		if test "$supported" = "yes" ; then
5418			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5419			found="yes"
5420		fi
5421	fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437xorg_testset_save_CFLAGS="$CFLAGS"
5438
5439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448int i;
5449_ACEOF
5450if ac_fn_c_try_compile "$LINENO"; then :
5451  xorg_cv_cc_flag_unknown_warning_option=yes
5452else
5453  xorg_cv_cc_flag_unknown_warning_option=no
5454fi
5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5460	CFLAGS="$xorg_testset_save_CFLAGS"
5461fi
5462
5463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466	fi
5467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475int i;
5476_ACEOF
5477if ac_fn_c_try_compile "$LINENO"; then :
5478  xorg_cv_cc_flag_unused_command_line_argument=yes
5479else
5480  xorg_cv_cc_flag_unused_command_line_argument=no
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5487	CFLAGS="$xorg_testset_save_CFLAGS"
5488fi
5489
5490found="no"
5491
5492	if test $found = "no" ; then
5493		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495		fi
5496
5497		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499		fi
5500
5501		CFLAGS="$CFLAGS -Wnested-externs"
5502
5503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5504$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5505		cacheid=xorg_cv_cc_flag__Wnested_externs
5506		if eval \${$cacheid+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h.  */
5511int i;
5512int
5513main ()
5514{
5515
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520if ac_fn_c_try_link "$LINENO"; then :
5521  eval $cacheid=yes
5522else
5523  eval $cacheid=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext \
5526    conftest$ac_exeext conftest.$ac_ext
5527fi
5528
5529
5530		CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532		eval supported=\$$cacheid
5533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534$as_echo "$supported" >&6; }
5535		if test "$supported" = "yes" ; then
5536			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5537			found="yes"
5538		fi
5539	fi
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555xorg_testset_save_CFLAGS="$CFLAGS"
5556
5557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566int i;
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"; then :
5569  xorg_cv_cc_flag_unknown_warning_option=yes
5570else
5571  xorg_cv_cc_flag_unknown_warning_option=no
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5578	CFLAGS="$xorg_testset_save_CFLAGS"
5579fi
5580
5581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584	fi
5585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594_ACEOF
5595if ac_fn_c_try_compile "$LINENO"; then :
5596  xorg_cv_cc_flag_unused_command_line_argument=yes
5597else
5598  xorg_cv_cc_flag_unused_command_line_argument=no
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5605	CFLAGS="$xorg_testset_save_CFLAGS"
5606fi
5607
5608found="no"
5609
5610	if test $found = "no" ; then
5611		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613		fi
5614
5615		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617		fi
5618
5619		CFLAGS="$CFLAGS -Wbad-function-cast"
5620
5621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5622$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5623		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5624		if eval \${$cacheid+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h.  */
5629int i;
5630int
5631main ()
5632{
5633
5634  ;
5635  return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_link "$LINENO"; then :
5639  eval $cacheid=yes
5640else
5641  eval $cacheid=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext \
5644    conftest$ac_exeext conftest.$ac_ext
5645fi
5646
5647
5648		CFLAGS="$xorg_testset_save_CFLAGS"
5649
5650		eval supported=\$$cacheid
5651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5652$as_echo "$supported" >&6; }
5653		if test "$supported" = "yes" ; then
5654			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5655			found="yes"
5656		fi
5657	fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684int i;
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"; then :
5687  xorg_cv_cc_flag_unknown_warning_option=yes
5688else
5689  xorg_cv_cc_flag_unknown_warning_option=no
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5696	CFLAGS="$xorg_testset_save_CFLAGS"
5697fi
5698
5699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702	fi
5703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714  xorg_cv_cc_flag_unused_command_line_argument=yes
5715else
5716  xorg_cv_cc_flag_unused_command_line_argument=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5723	CFLAGS="$xorg_testset_save_CFLAGS"
5724fi
5725
5726found="no"
5727
5728	if test $found = "no" ; then
5729		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731		fi
5732
5733		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735		fi
5736
5737		CFLAGS="$CFLAGS -Wold-style-definition"
5738
5739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5740$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5741		cacheid=xorg_cv_cc_flag__Wold_style_definition
5742		if eval \${$cacheid+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747int i;
5748int
5749main ()
5750{
5751
5752  ;
5753  return 0;
5754}
5755_ACEOF
5756if ac_fn_c_try_link "$LINENO"; then :
5757  eval $cacheid=yes
5758else
5759  eval $cacheid=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764
5765
5766		CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768		eval supported=\$$cacheid
5769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770$as_echo "$supported" >&6; }
5771		if test "$supported" = "yes" ; then
5772			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5773			found="yes"
5774		fi
5775	fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802int i;
5803_ACEOF
5804if ac_fn_c_try_compile "$LINENO"; then :
5805  xorg_cv_cc_flag_unknown_warning_option=yes
5806else
5807  xorg_cv_cc_flag_unknown_warning_option=no
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810fi
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5814	CFLAGS="$xorg_testset_save_CFLAGS"
5815fi
5816
5817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820	fi
5821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h.  */
5829int i;
5830_ACEOF
5831if ac_fn_c_try_compile "$LINENO"; then :
5832  xorg_cv_cc_flag_unused_command_line_argument=yes
5833else
5834  xorg_cv_cc_flag_unused_command_line_argument=no
5835fi
5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5841	CFLAGS="$xorg_testset_save_CFLAGS"
5842fi
5843
5844found="no"
5845
5846	if test $found = "no" ; then
5847		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5849		fi
5850
5851		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853		fi
5854
5855		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5856
5857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5858$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5859		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5860		if eval \${$cacheid+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865int i;
5866int
5867main ()
5868{
5869
5870  ;
5871  return 0;
5872}
5873_ACEOF
5874if ac_fn_c_try_link "$LINENO"; then :
5875  eval $cacheid=yes
5876else
5877  eval $cacheid=no
5878fi
5879rm -f core conftest.err conftest.$ac_objext \
5880    conftest$ac_exeext conftest.$ac_ext
5881fi
5882
5883
5884		CFLAGS="$xorg_testset_save_CFLAGS"
5885
5886		eval supported=\$$cacheid
5887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5888$as_echo "$supported" >&6; }
5889		if test "$supported" = "yes" ; then
5890			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5891			found="yes"
5892		fi
5893	fi
5894
5895
5896
5897
5898
5899# This chunk adds additional warnings that could catch undesired effects.
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913xorg_testset_save_CFLAGS="$CFLAGS"
5914
5915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924int i;
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"; then :
5927  xorg_cv_cc_flag_unknown_warning_option=yes
5928else
5929  xorg_cv_cc_flag_unknown_warning_option=no
5930fi
5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5936	CFLAGS="$xorg_testset_save_CFLAGS"
5937fi
5938
5939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942	fi
5943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"; then :
5954  xorg_cv_cc_flag_unused_command_line_argument=yes
5955else
5956  xorg_cv_cc_flag_unused_command_line_argument=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5963	CFLAGS="$xorg_testset_save_CFLAGS"
5964fi
5965
5966found="no"
5967
5968	if test $found = "no" ; then
5969		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971		fi
5972
5973		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5975		fi
5976
5977		CFLAGS="$CFLAGS -Wunused"
5978
5979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5980$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5981		cacheid=xorg_cv_cc_flag__Wunused
5982		if eval \${$cacheid+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987int i;
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_link "$LINENO"; then :
5997  eval $cacheid=yes
5998else
5999  eval $cacheid=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext \
6002    conftest$ac_exeext conftest.$ac_ext
6003fi
6004
6005
6006		CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008		eval supported=\$$cacheid
6009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010$as_echo "$supported" >&6; }
6011		if test "$supported" = "yes" ; then
6012			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6013			found="yes"
6014		fi
6015	fi
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031xorg_testset_save_CFLAGS="$CFLAGS"
6032
6033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6038  $as_echo_n "(cached) " >&6
6039else
6040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h.  */
6042int i;
6043_ACEOF
6044if ac_fn_c_try_compile "$LINENO"; then :
6045  xorg_cv_cc_flag_unknown_warning_option=yes
6046else
6047  xorg_cv_cc_flag_unknown_warning_option=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6054	CFLAGS="$xorg_testset_save_CFLAGS"
6055fi
6056
6057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060	fi
6061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069int i;
6070_ACEOF
6071if ac_fn_c_try_compile "$LINENO"; then :
6072  xorg_cv_cc_flag_unused_command_line_argument=yes
6073else
6074  xorg_cv_cc_flag_unused_command_line_argument=no
6075fi
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077fi
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6081	CFLAGS="$xorg_testset_save_CFLAGS"
6082fi
6083
6084found="no"
6085
6086	if test $found = "no" ; then
6087		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089		fi
6090
6091		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6093		fi
6094
6095		CFLAGS="$CFLAGS -Wuninitialized"
6096
6097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6098$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6099		cacheid=xorg_cv_cc_flag__Wuninitialized
6100		if eval \${$cacheid+:} false; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105int i;
6106int
6107main ()
6108{
6109
6110  ;
6111  return 0;
6112}
6113_ACEOF
6114if ac_fn_c_try_link "$LINENO"; then :
6115  eval $cacheid=yes
6116else
6117  eval $cacheid=no
6118fi
6119rm -f core conftest.err conftest.$ac_objext \
6120    conftest$ac_exeext conftest.$ac_ext
6121fi
6122
6123
6124		CFLAGS="$xorg_testset_save_CFLAGS"
6125
6126		eval supported=\$$cacheid
6127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6128$as_echo "$supported" >&6; }
6129		if test "$supported" = "yes" ; then
6130			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6131			found="yes"
6132		fi
6133	fi
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149xorg_testset_save_CFLAGS="$CFLAGS"
6150
6151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160int i;
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163  xorg_cv_cc_flag_unknown_warning_option=yes
6164else
6165  xorg_cv_cc_flag_unknown_warning_option=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168fi
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6172	CFLAGS="$xorg_testset_save_CFLAGS"
6173fi
6174
6175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178	fi
6179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190  xorg_cv_cc_flag_unused_command_line_argument=yes
6191else
6192  xorg_cv_cc_flag_unused_command_line_argument=no
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6199	CFLAGS="$xorg_testset_save_CFLAGS"
6200fi
6201
6202found="no"
6203
6204	if test $found = "no" ; then
6205		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207		fi
6208
6209		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211		fi
6212
6213		CFLAGS="$CFLAGS -Wshadow"
6214
6215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6216$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6217		cacheid=xorg_cv_cc_flag__Wshadow
6218		if eval \${$cacheid+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223int i;
6224int
6225main ()
6226{
6227
6228  ;
6229  return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_link "$LINENO"; then :
6233  eval $cacheid=yes
6234else
6235  eval $cacheid=no
6236fi
6237rm -f core conftest.err conftest.$ac_objext \
6238    conftest$ac_exeext conftest.$ac_ext
6239fi
6240
6241
6242		CFLAGS="$xorg_testset_save_CFLAGS"
6243
6244		eval supported=\$$cacheid
6245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6246$as_echo "$supported" >&6; }
6247		if test "$supported" = "yes" ; then
6248			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6249			found="yes"
6250		fi
6251	fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267xorg_testset_save_CFLAGS="$CFLAGS"
6268
6269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h.  */
6278int i;
6279_ACEOF
6280if ac_fn_c_try_compile "$LINENO"; then :
6281  xorg_cv_cc_flag_unknown_warning_option=yes
6282else
6283  xorg_cv_cc_flag_unknown_warning_option=no
6284fi
6285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6290	CFLAGS="$xorg_testset_save_CFLAGS"
6291fi
6292
6293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296	fi
6297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305int i;
6306_ACEOF
6307if ac_fn_c_try_compile "$LINENO"; then :
6308  xorg_cv_cc_flag_unused_command_line_argument=yes
6309else
6310  xorg_cv_cc_flag_unused_command_line_argument=no
6311fi
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6317	CFLAGS="$xorg_testset_save_CFLAGS"
6318fi
6319
6320found="no"
6321
6322	if test $found = "no" ; then
6323		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325		fi
6326
6327		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6329		fi
6330
6331		CFLAGS="$CFLAGS -Wcast-qual"
6332
6333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6334$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6335		cacheid=xorg_cv_cc_flag__Wcast_qual
6336		if eval \${$cacheid+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h.  */
6341int i;
6342int
6343main ()
6344{
6345
6346  ;
6347  return 0;
6348}
6349_ACEOF
6350if ac_fn_c_try_link "$LINENO"; then :
6351  eval $cacheid=yes
6352else
6353  eval $cacheid=no
6354fi
6355rm -f core conftest.err conftest.$ac_objext \
6356    conftest$ac_exeext conftest.$ac_ext
6357fi
6358
6359
6360		CFLAGS="$xorg_testset_save_CFLAGS"
6361
6362		eval supported=\$$cacheid
6363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6364$as_echo "$supported" >&6; }
6365		if test "$supported" = "yes" ; then
6366			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6367			found="yes"
6368		fi
6369	fi
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385xorg_testset_save_CFLAGS="$CFLAGS"
6386
6387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396int i;
6397_ACEOF
6398if ac_fn_c_try_compile "$LINENO"; then :
6399  xorg_cv_cc_flag_unknown_warning_option=yes
6400else
6401  xorg_cv_cc_flag_unknown_warning_option=no
6402fi
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6408	CFLAGS="$xorg_testset_save_CFLAGS"
6409fi
6410
6411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414	fi
6415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423int i;
6424_ACEOF
6425if ac_fn_c_try_compile "$LINENO"; then :
6426  xorg_cv_cc_flag_unused_command_line_argument=yes
6427else
6428  xorg_cv_cc_flag_unused_command_line_argument=no
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431fi
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6435	CFLAGS="$xorg_testset_save_CFLAGS"
6436fi
6437
6438found="no"
6439
6440	if test $found = "no" ; then
6441		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443		fi
6444
6445		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6447		fi
6448
6449		CFLAGS="$CFLAGS -Wmissing-noreturn"
6450
6451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6452$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6453		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6454		if eval \${$cacheid+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460int
6461main ()
6462{
6463
6464  ;
6465  return 0;
6466}
6467_ACEOF
6468if ac_fn_c_try_link "$LINENO"; then :
6469  eval $cacheid=yes
6470else
6471  eval $cacheid=no
6472fi
6473rm -f core conftest.err conftest.$ac_objext \
6474    conftest$ac_exeext conftest.$ac_ext
6475fi
6476
6477
6478		CFLAGS="$xorg_testset_save_CFLAGS"
6479
6480		eval supported=\$$cacheid
6481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6482$as_echo "$supported" >&6; }
6483		if test "$supported" = "yes" ; then
6484			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6485			found="yes"
6486		fi
6487	fi
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503xorg_testset_save_CFLAGS="$CFLAGS"
6504
6505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513/* end confdefs.h.  */
6514int i;
6515_ACEOF
6516if ac_fn_c_try_compile "$LINENO"; then :
6517  xorg_cv_cc_flag_unknown_warning_option=yes
6518else
6519  xorg_cv_cc_flag_unknown_warning_option=no
6520fi
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6526	CFLAGS="$xorg_testset_save_CFLAGS"
6527fi
6528
6529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532	fi
6533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542_ACEOF
6543if ac_fn_c_try_compile "$LINENO"; then :
6544  xorg_cv_cc_flag_unused_command_line_argument=yes
6545else
6546  xorg_cv_cc_flag_unused_command_line_argument=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553	CFLAGS="$xorg_testset_save_CFLAGS"
6554fi
6555
6556found="no"
6557
6558	if test $found = "no" ; then
6559		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561		fi
6562
6563		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565		fi
6566
6567		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6568
6569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6570$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6571		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6572		if eval \${$cacheid+:} false; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577int i;
6578int
6579main ()
6580{
6581
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586if ac_fn_c_try_link "$LINENO"; then :
6587  eval $cacheid=yes
6588else
6589  eval $cacheid=no
6590fi
6591rm -f core conftest.err conftest.$ac_objext \
6592    conftest$ac_exeext conftest.$ac_ext
6593fi
6594
6595
6596		CFLAGS="$xorg_testset_save_CFLAGS"
6597
6598		eval supported=\$$cacheid
6599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6600$as_echo "$supported" >&6; }
6601		if test "$supported" = "yes" ; then
6602			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6603			found="yes"
6604		fi
6605	fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621xorg_testset_save_CFLAGS="$CFLAGS"
6622
6623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632int i;
6633_ACEOF
6634if ac_fn_c_try_compile "$LINENO"; then :
6635  xorg_cv_cc_flag_unknown_warning_option=yes
6636else
6637  xorg_cv_cc_flag_unknown_warning_option=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640fi
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650	fi
6651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659int i;
6660_ACEOF
6661if ac_fn_c_try_compile "$LINENO"; then :
6662  xorg_cv_cc_flag_unused_command_line_argument=yes
6663else
6664  xorg_cv_cc_flag_unused_command_line_argument=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6671	CFLAGS="$xorg_testset_save_CFLAGS"
6672fi
6673
6674found="no"
6675
6676	if test $found = "no" ; then
6677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679		fi
6680
6681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683		fi
6684
6685		CFLAGS="$CFLAGS -Wredundant-decls"
6686
6687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6688$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6689		cacheid=xorg_cv_cc_flag__Wredundant_decls
6690		if eval \${$cacheid+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695int i;
6696int
6697main ()
6698{
6699
6700  ;
6701  return 0;
6702}
6703_ACEOF
6704if ac_fn_c_try_link "$LINENO"; then :
6705  eval $cacheid=yes
6706else
6707  eval $cacheid=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710    conftest$ac_exeext conftest.$ac_ext
6711fi
6712
6713
6714		CFLAGS="$xorg_testset_save_CFLAGS"
6715
6716		eval supported=\$$cacheid
6717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6718$as_echo "$supported" >&6; }
6719		if test "$supported" = "yes" ; then
6720			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6721			found="yes"
6722		fi
6723	fi
6724
6725
6726
6727# These are currently disabled because they are noisy.  They will be enabled
6728# in the future once the codebase is sufficiently modernized to silence
6729# them.  For now, I don't want them to drown out the other warnings.
6730# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6731# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6732# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6733
6734# Turn some warnings into errors, so we don't accidently get successful builds
6735# when there are problems that should be fixed.
6736
6737if test "x$SELECTIVE_WERROR" = "xyes" ; then
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751xorg_testset_save_CFLAGS="$CFLAGS"
6752
6753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762int i;
6763_ACEOF
6764if ac_fn_c_try_compile "$LINENO"; then :
6765  xorg_cv_cc_flag_unknown_warning_option=yes
6766else
6767  xorg_cv_cc_flag_unknown_warning_option=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770fi
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	fi
6781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  xorg_cv_cc_flag_unused_command_line_argument=yes
6793else
6794  xorg_cv_cc_flag_unused_command_line_argument=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804found="no"
6805
6806	if test $found = "no" ; then
6807		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809		fi
6810
6811		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813		fi
6814
6815		CFLAGS="$CFLAGS -Werror=implicit"
6816
6817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6818$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6819		cacheid=xorg_cv_cc_flag__Werror_implicit
6820		if eval \${$cacheid+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826int
6827main ()
6828{
6829
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835  eval $cacheid=yes
6836else
6837  eval $cacheid=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840    conftest$ac_exeext conftest.$ac_ext
6841fi
6842
6843
6844		CFLAGS="$xorg_testset_save_CFLAGS"
6845
6846		eval supported=\$$cacheid
6847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6848$as_echo "$supported" >&6; }
6849		if test "$supported" = "yes" ; then
6850			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6851			found="yes"
6852		fi
6853	fi
6854
6855	if test $found = "no" ; then
6856		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858		fi
6859
6860		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862		fi
6863
6864		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6865
6866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6867$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6868		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6869		if eval \${$cacheid+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main ()
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"; then :
6884  eval $cacheid=yes
6885else
6886  eval $cacheid=no
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889    conftest$ac_exeext conftest.$ac_ext
6890fi
6891
6892
6893		CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895		eval supported=\$$cacheid
6896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897$as_echo "$supported" >&6; }
6898		if test "$supported" = "yes" ; then
6899			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6900			found="yes"
6901		fi
6902	fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918xorg_testset_save_CFLAGS="$CFLAGS"
6919
6920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929int i;
6930_ACEOF
6931if ac_fn_c_try_compile "$LINENO"; then :
6932  xorg_cv_cc_flag_unknown_warning_option=yes
6933else
6934  xorg_cv_cc_flag_unknown_warning_option=no
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6941	CFLAGS="$xorg_testset_save_CFLAGS"
6942fi
6943
6944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6947	fi
6948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956int i;
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959  xorg_cv_cc_flag_unused_command_line_argument=yes
6960else
6961  xorg_cv_cc_flag_unused_command_line_argument=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6968	CFLAGS="$xorg_testset_save_CFLAGS"
6969fi
6970
6971found="no"
6972
6973	if test $found = "no" ; then
6974		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976		fi
6977
6978		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980		fi
6981
6982		CFLAGS="$CFLAGS -Werror=nonnull"
6983
6984		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6985$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6986		cacheid=xorg_cv_cc_flag__Werror_nonnull
6987		if eval \${$cacheid+:} false; then :
6988  $as_echo_n "(cached) " >&6
6989else
6990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991/* end confdefs.h.  */
6992int i;
6993int
6994main ()
6995{
6996
6997  ;
6998  return 0;
6999}
7000_ACEOF
7001if ac_fn_c_try_link "$LINENO"; then :
7002  eval $cacheid=yes
7003else
7004  eval $cacheid=no
7005fi
7006rm -f core conftest.err conftest.$ac_objext \
7007    conftest$ac_exeext conftest.$ac_ext
7008fi
7009
7010
7011		CFLAGS="$xorg_testset_save_CFLAGS"
7012
7013		eval supported=\$$cacheid
7014		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7015$as_echo "$supported" >&6; }
7016		if test "$supported" = "yes" ; then
7017			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7018			found="yes"
7019		fi
7020	fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036xorg_testset_save_CFLAGS="$CFLAGS"
7037
7038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048_ACEOF
7049if ac_fn_c_try_compile "$LINENO"; then :
7050  xorg_cv_cc_flag_unknown_warning_option=yes
7051else
7052  xorg_cv_cc_flag_unknown_warning_option=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7059	CFLAGS="$xorg_testset_save_CFLAGS"
7060fi
7061
7062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065	fi
7066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7070  $as_echo_n "(cached) " >&6
7071else
7072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074int i;
7075_ACEOF
7076if ac_fn_c_try_compile "$LINENO"; then :
7077  xorg_cv_cc_flag_unused_command_line_argument=yes
7078else
7079  xorg_cv_cc_flag_unused_command_line_argument=no
7080fi
7081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7086	CFLAGS="$xorg_testset_save_CFLAGS"
7087fi
7088
7089found="no"
7090
7091	if test $found = "no" ; then
7092		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094		fi
7095
7096		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7098		fi
7099
7100		CFLAGS="$CFLAGS -Werror=init-self"
7101
7102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7103$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7104		cacheid=xorg_cv_cc_flag__Werror_init_self
7105		if eval \${$cacheid+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110int i;
7111int
7112main ()
7113{
7114
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119if ac_fn_c_try_link "$LINENO"; then :
7120  eval $cacheid=yes
7121else
7122  eval $cacheid=no
7123fi
7124rm -f core conftest.err conftest.$ac_objext \
7125    conftest$ac_exeext conftest.$ac_ext
7126fi
7127
7128
7129		CFLAGS="$xorg_testset_save_CFLAGS"
7130
7131		eval supported=\$$cacheid
7132		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7133$as_echo "$supported" >&6; }
7134		if test "$supported" = "yes" ; then
7135			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7136			found="yes"
7137		fi
7138	fi
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154xorg_testset_save_CFLAGS="$CFLAGS"
7155
7156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166_ACEOF
7167if ac_fn_c_try_compile "$LINENO"; then :
7168  xorg_cv_cc_flag_unknown_warning_option=yes
7169else
7170  xorg_cv_cc_flag_unknown_warning_option=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7177	CFLAGS="$xorg_testset_save_CFLAGS"
7178fi
7179
7180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183	fi
7184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193_ACEOF
7194if ac_fn_c_try_compile "$LINENO"; then :
7195  xorg_cv_cc_flag_unused_command_line_argument=yes
7196else
7197  xorg_cv_cc_flag_unused_command_line_argument=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200fi
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7204	CFLAGS="$xorg_testset_save_CFLAGS"
7205fi
7206
7207found="no"
7208
7209	if test $found = "no" ; then
7210		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212		fi
7213
7214		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216		fi
7217
7218		CFLAGS="$CFLAGS -Werror=main"
7219
7220		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7221$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7222		cacheid=xorg_cv_cc_flag__Werror_main
7223		if eval \${$cacheid+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228int i;
7229int
7230main ()
7231{
7232
7233  ;
7234  return 0;
7235}
7236_ACEOF
7237if ac_fn_c_try_link "$LINENO"; then :
7238  eval $cacheid=yes
7239else
7240  eval $cacheid=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext \
7243    conftest$ac_exeext conftest.$ac_ext
7244fi
7245
7246
7247		CFLAGS="$xorg_testset_save_CFLAGS"
7248
7249		eval supported=\$$cacheid
7250		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7251$as_echo "$supported" >&6; }
7252		if test "$supported" = "yes" ; then
7253			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7254			found="yes"
7255		fi
7256	fi
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272xorg_testset_save_CFLAGS="$CFLAGS"
7273
7274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7279  $as_echo_n "(cached) " >&6
7280else
7281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283int i;
7284_ACEOF
7285if ac_fn_c_try_compile "$LINENO"; then :
7286  xorg_cv_cc_flag_unknown_warning_option=yes
7287else
7288  xorg_cv_cc_flag_unknown_warning_option=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291fi
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7295	CFLAGS="$xorg_testset_save_CFLAGS"
7296fi
7297
7298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301	fi
7302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311_ACEOF
7312if ac_fn_c_try_compile "$LINENO"; then :
7313  xorg_cv_cc_flag_unused_command_line_argument=yes
7314else
7315  xorg_cv_cc_flag_unused_command_line_argument=no
7316fi
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318fi
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7322	CFLAGS="$xorg_testset_save_CFLAGS"
7323fi
7324
7325found="no"
7326
7327	if test $found = "no" ; then
7328		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330		fi
7331
7332		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334		fi
7335
7336		CFLAGS="$CFLAGS -Werror=missing-braces"
7337
7338		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7339$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7340		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7341		if eval \${$cacheid+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347int
7348main ()
7349{
7350
7351  ;
7352  return 0;
7353}
7354_ACEOF
7355if ac_fn_c_try_link "$LINENO"; then :
7356  eval $cacheid=yes
7357else
7358  eval $cacheid=no
7359fi
7360rm -f core conftest.err conftest.$ac_objext \
7361    conftest$ac_exeext conftest.$ac_ext
7362fi
7363
7364
7365		CFLAGS="$xorg_testset_save_CFLAGS"
7366
7367		eval supported=\$$cacheid
7368		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7369$as_echo "$supported" >&6; }
7370		if test "$supported" = "yes" ; then
7371			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7372			found="yes"
7373		fi
7374	fi
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390xorg_testset_save_CFLAGS="$CFLAGS"
7391
7392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401int i;
7402_ACEOF
7403if ac_fn_c_try_compile "$LINENO"; then :
7404  xorg_cv_cc_flag_unknown_warning_option=yes
7405else
7406  xorg_cv_cc_flag_unknown_warning_option=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7413	CFLAGS="$xorg_testset_save_CFLAGS"
7414fi
7415
7416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419	fi
7420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429_ACEOF
7430if ac_fn_c_try_compile "$LINENO"; then :
7431  xorg_cv_cc_flag_unused_command_line_argument=yes
7432else
7433  xorg_cv_cc_flag_unused_command_line_argument=no
7434fi
7435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7440	CFLAGS="$xorg_testset_save_CFLAGS"
7441fi
7442
7443found="no"
7444
7445	if test $found = "no" ; then
7446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448		fi
7449
7450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452		fi
7453
7454		CFLAGS="$CFLAGS -Werror=sequence-point"
7455
7456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7457$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7458		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7459		if eval \${$cacheid+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464int i;
7465int
7466main ()
7467{
7468
7469  ;
7470  return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_link "$LINENO"; then :
7474  eval $cacheid=yes
7475else
7476  eval $cacheid=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext \
7479    conftest$ac_exeext conftest.$ac_ext
7480fi
7481
7482
7483		CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485		eval supported=\$$cacheid
7486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487$as_echo "$supported" >&6; }
7488		if test "$supported" = "yes" ; then
7489			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7490			found="yes"
7491		fi
7492	fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519int i;
7520_ACEOF
7521if ac_fn_c_try_compile "$LINENO"; then :
7522  xorg_cv_cc_flag_unknown_warning_option=yes
7523else
7524  xorg_cv_cc_flag_unknown_warning_option=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7531	CFLAGS="$xorg_testset_save_CFLAGS"
7532fi
7533
7534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537	fi
7538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546int i;
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  xorg_cv_cc_flag_unused_command_line_argument=yes
7550else
7551  xorg_cv_cc_flag_unused_command_line_argument=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7558	CFLAGS="$xorg_testset_save_CFLAGS"
7559fi
7560
7561found="no"
7562
7563	if test $found = "no" ; then
7564		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566		fi
7567
7568		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570		fi
7571
7572		CFLAGS="$CFLAGS -Werror=return-type"
7573
7574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7575$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7576		cacheid=xorg_cv_cc_flag__Werror_return_type
7577		if eval \${$cacheid+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582int i;
7583int
7584main ()
7585{
7586
7587  ;
7588  return 0;
7589}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"; then :
7592  eval $cacheid=yes
7593else
7594  eval $cacheid=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext \
7597    conftest$ac_exeext conftest.$ac_ext
7598fi
7599
7600
7601		CFLAGS="$xorg_testset_save_CFLAGS"
7602
7603		eval supported=\$$cacheid
7604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7605$as_echo "$supported" >&6; }
7606		if test "$supported" = "yes" ; then
7607			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7608			found="yes"
7609		fi
7610	fi
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7622
7623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7624$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7625		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7626		if eval \${$cacheid+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_link "$LINENO"; then :
7641  eval $cacheid=yes
7642else
7643  eval $cacheid=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext \
7646    conftest$ac_exeext conftest.$ac_ext
7647fi
7648
7649
7650		CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652		eval supported=\$$cacheid
7653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654$as_echo "$supported" >&6; }
7655		if test "$supported" = "yes" ; then
7656			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7657			found="yes"
7658		fi
7659	fi
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675xorg_testset_save_CFLAGS="$CFLAGS"
7676
7677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"; then :
7689  xorg_cv_cc_flag_unknown_warning_option=yes
7690else
7691  xorg_cv_cc_flag_unknown_warning_option=no
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7698	CFLAGS="$xorg_testset_save_CFLAGS"
7699fi
7700
7701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704	fi
7705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713int i;
7714_ACEOF
7715if ac_fn_c_try_compile "$LINENO"; then :
7716  xorg_cv_cc_flag_unused_command_line_argument=yes
7717else
7718  xorg_cv_cc_flag_unused_command_line_argument=no
7719fi
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7725	CFLAGS="$xorg_testset_save_CFLAGS"
7726fi
7727
7728found="no"
7729
7730	if test $found = "no" ; then
7731		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733		fi
7734
7735		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737		fi
7738
7739		CFLAGS="$CFLAGS -Werror=trigraphs"
7740
7741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7742$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7743		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7744		if eval \${$cacheid+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749int i;
7750int
7751main ()
7752{
7753
7754  ;
7755  return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_link "$LINENO"; then :
7759  eval $cacheid=yes
7760else
7761  eval $cacheid=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext \
7764    conftest$ac_exeext conftest.$ac_ext
7765fi
7766
7767
7768		CFLAGS="$xorg_testset_save_CFLAGS"
7769
7770		eval supported=\$$cacheid
7771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7772$as_echo "$supported" >&6; }
7773		if test "$supported" = "yes" ; then
7774			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7775			found="yes"
7776		fi
7777	fi
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793xorg_testset_save_CFLAGS="$CFLAGS"
7794
7795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h.  */
7804int i;
7805_ACEOF
7806if ac_fn_c_try_compile "$LINENO"; then :
7807  xorg_cv_cc_flag_unknown_warning_option=yes
7808else
7809  xorg_cv_cc_flag_unknown_warning_option=no
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812fi
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7816	CFLAGS="$xorg_testset_save_CFLAGS"
7817fi
7818
7819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822	fi
7823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h.  */
7831int i;
7832_ACEOF
7833if ac_fn_c_try_compile "$LINENO"; then :
7834  xorg_cv_cc_flag_unused_command_line_argument=yes
7835else
7836  xorg_cv_cc_flag_unused_command_line_argument=no
7837fi
7838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7843	CFLAGS="$xorg_testset_save_CFLAGS"
7844fi
7845
7846found="no"
7847
7848	if test $found = "no" ; then
7849		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851		fi
7852
7853		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855		fi
7856
7857		CFLAGS="$CFLAGS -Werror=array-bounds"
7858
7859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7860$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7861		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7862		if eval \${$cacheid+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867int i;
7868int
7869main ()
7870{
7871
7872  ;
7873  return 0;
7874}
7875_ACEOF
7876if ac_fn_c_try_link "$LINENO"; then :
7877  eval $cacheid=yes
7878else
7879  eval $cacheid=no
7880fi
7881rm -f core conftest.err conftest.$ac_objext \
7882    conftest$ac_exeext conftest.$ac_ext
7883fi
7884
7885
7886		CFLAGS="$xorg_testset_save_CFLAGS"
7887
7888		eval supported=\$$cacheid
7889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7890$as_echo "$supported" >&6; }
7891		if test "$supported" = "yes" ; then
7892			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7893			found="yes"
7894		fi
7895	fi
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911xorg_testset_save_CFLAGS="$CFLAGS"
7912
7913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h.  */
7922int i;
7923_ACEOF
7924if ac_fn_c_try_compile "$LINENO"; then :
7925  xorg_cv_cc_flag_unknown_warning_option=yes
7926else
7927  xorg_cv_cc_flag_unknown_warning_option=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7934	CFLAGS="$xorg_testset_save_CFLAGS"
7935fi
7936
7937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940	fi
7941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"; then :
7952  xorg_cv_cc_flag_unused_command_line_argument=yes
7953else
7954  xorg_cv_cc_flag_unused_command_line_argument=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7961	CFLAGS="$xorg_testset_save_CFLAGS"
7962fi
7963
7964found="no"
7965
7966	if test $found = "no" ; then
7967		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969		fi
7970
7971		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973		fi
7974
7975		CFLAGS="$CFLAGS -Werror=write-strings"
7976
7977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7978$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7979		cacheid=xorg_cv_cc_flag__Werror_write_strings
7980		if eval \${$cacheid+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986int
7987main ()
7988{
7989
7990  ;
7991  return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_link "$LINENO"; then :
7995  eval $cacheid=yes
7996else
7997  eval $cacheid=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext \
8000    conftest$ac_exeext conftest.$ac_ext
8001fi
8002
8003
8004		CFLAGS="$xorg_testset_save_CFLAGS"
8005
8006		eval supported=\$$cacheid
8007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8008$as_echo "$supported" >&6; }
8009		if test "$supported" = "yes" ; then
8010			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8011			found="yes"
8012		fi
8013	fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029xorg_testset_save_CFLAGS="$CFLAGS"
8030
8031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h.  */
8040int i;
8041_ACEOF
8042if ac_fn_c_try_compile "$LINENO"; then :
8043  xorg_cv_cc_flag_unknown_warning_option=yes
8044else
8045  xorg_cv_cc_flag_unknown_warning_option=no
8046fi
8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8052	CFLAGS="$xorg_testset_save_CFLAGS"
8053fi
8054
8055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058	fi
8059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067int i;
8068_ACEOF
8069if ac_fn_c_try_compile "$LINENO"; then :
8070  xorg_cv_cc_flag_unused_command_line_argument=yes
8071else
8072  xorg_cv_cc_flag_unused_command_line_argument=no
8073fi
8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079	CFLAGS="$xorg_testset_save_CFLAGS"
8080fi
8081
8082found="no"
8083
8084	if test $found = "no" ; then
8085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087		fi
8088
8089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091		fi
8092
8093		CFLAGS="$CFLAGS -Werror=address"
8094
8095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8096$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8097		cacheid=xorg_cv_cc_flag__Werror_address
8098		if eval \${$cacheid+:} false; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103int i;
8104int
8105main ()
8106{
8107
8108  ;
8109  return 0;
8110}
8111_ACEOF
8112if ac_fn_c_try_link "$LINENO"; then :
8113  eval $cacheid=yes
8114else
8115  eval $cacheid=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext \
8118    conftest$ac_exeext conftest.$ac_ext
8119fi
8120
8121
8122		CFLAGS="$xorg_testset_save_CFLAGS"
8123
8124		eval supported=\$$cacheid
8125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126$as_echo "$supported" >&6; }
8127		if test "$supported" = "yes" ; then
8128			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8129			found="yes"
8130		fi
8131	fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147xorg_testset_save_CFLAGS="$CFLAGS"
8148
8149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158int i;
8159_ACEOF
8160if ac_fn_c_try_compile "$LINENO"; then :
8161  xorg_cv_cc_flag_unknown_warning_option=yes
8162else
8163  xorg_cv_cc_flag_unknown_warning_option=no
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170	CFLAGS="$xorg_testset_save_CFLAGS"
8171fi
8172
8173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176	fi
8177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  xorg_cv_cc_flag_unused_command_line_argument=yes
8189else
8190  xorg_cv_cc_flag_unused_command_line_argument=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8197	CFLAGS="$xorg_testset_save_CFLAGS"
8198fi
8199
8200found="no"
8201
8202	if test $found = "no" ; then
8203		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205		fi
8206
8207		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8209		fi
8210
8211		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8212
8213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8214$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8215		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8216		if eval \${$cacheid+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222int
8223main ()
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230if ac_fn_c_try_link "$LINENO"; then :
8231  eval $cacheid=yes
8232else
8233  eval $cacheid=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext \
8236    conftest$ac_exeext conftest.$ac_ext
8237fi
8238
8239
8240		CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242		eval supported=\$$cacheid
8243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244$as_echo "$supported" >&6; }
8245		if test "$supported" = "yes" ; then
8246			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8247			found="yes"
8248		fi
8249	fi
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8261
8262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8263$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8264		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8265		if eval \${$cacheid+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271int
8272main ()
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"; then :
8280  eval $cacheid=yes
8281else
8282  eval $cacheid=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext \
8285    conftest$ac_exeext conftest.$ac_ext
8286fi
8287
8288
8289		CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291		eval supported=\$$cacheid
8292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293$as_echo "$supported" >&6; }
8294		if test "$supported" = "yes" ; then
8295			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8296			found="yes"
8297		fi
8298	fi
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314xorg_testset_save_CFLAGS="$CFLAGS"
8315
8316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324/* end confdefs.h.  */
8325int i;
8326_ACEOF
8327if ac_fn_c_try_compile "$LINENO"; then :
8328  xorg_cv_cc_flag_unknown_warning_option=yes
8329else
8330  xorg_cv_cc_flag_unknown_warning_option=no
8331fi
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333fi
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8337	CFLAGS="$xorg_testset_save_CFLAGS"
8338fi
8339
8340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343	fi
8344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h.  */
8352int i;
8353_ACEOF
8354if ac_fn_c_try_compile "$LINENO"; then :
8355  xorg_cv_cc_flag_unused_command_line_argument=yes
8356else
8357  xorg_cv_cc_flag_unused_command_line_argument=no
8358fi
8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8364	CFLAGS="$xorg_testset_save_CFLAGS"
8365fi
8366
8367found="no"
8368
8369	if test $found = "no" ; then
8370		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372		fi
8373
8374		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376		fi
8377
8378		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8379
8380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8381$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8382		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8383		if eval \${$cacheid+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h.  */
8388int i;
8389int
8390main ()
8391{
8392
8393  ;
8394  return 0;
8395}
8396_ACEOF
8397if ac_fn_c_try_link "$LINENO"; then :
8398  eval $cacheid=yes
8399else
8400  eval $cacheid=no
8401fi
8402rm -f core conftest.err conftest.$ac_objext \
8403    conftest$ac_exeext conftest.$ac_ext
8404fi
8405
8406
8407		CFLAGS="$xorg_testset_save_CFLAGS"
8408
8409		eval supported=\$$cacheid
8410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8411$as_echo "$supported" >&6; }
8412		if test "$supported" = "yes" ; then
8413			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8414			found="yes"
8415		fi
8416	fi
8417
8418 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8419else
8420{ $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
8421$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;}
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435xorg_testset_save_CFLAGS="$CFLAGS"
8436
8437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"; then :
8449  xorg_cv_cc_flag_unknown_warning_option=yes
8450else
8451  xorg_cv_cc_flag_unknown_warning_option=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8458	CFLAGS="$xorg_testset_save_CFLAGS"
8459fi
8460
8461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464	fi
8465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476  xorg_cv_cc_flag_unused_command_line_argument=yes
8477else
8478  xorg_cv_cc_flag_unused_command_line_argument=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8485	CFLAGS="$xorg_testset_save_CFLAGS"
8486fi
8487
8488found="no"
8489
8490	if test $found = "no" ; then
8491		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493		fi
8494
8495		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8497		fi
8498
8499		CFLAGS="$CFLAGS -Wimplicit"
8500
8501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8502$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8503		cacheid=xorg_cv_cc_flag__Wimplicit
8504		if eval \${$cacheid+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510int
8511main ()
8512{
8513
8514  ;
8515  return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_link "$LINENO"; then :
8519  eval $cacheid=yes
8520else
8521  eval $cacheid=no
8522fi
8523rm -f core conftest.err conftest.$ac_objext \
8524    conftest$ac_exeext conftest.$ac_ext
8525fi
8526
8527
8528		CFLAGS="$xorg_testset_save_CFLAGS"
8529
8530		eval supported=\$$cacheid
8531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8532$as_echo "$supported" >&6; }
8533		if test "$supported" = "yes" ; then
8534			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8535			found="yes"
8536		fi
8537	fi
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553xorg_testset_save_CFLAGS="$CFLAGS"
8554
8555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564int i;
8565_ACEOF
8566if ac_fn_c_try_compile "$LINENO"; then :
8567  xorg_cv_cc_flag_unknown_warning_option=yes
8568else
8569  xorg_cv_cc_flag_unknown_warning_option=no
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8576	CFLAGS="$xorg_testset_save_CFLAGS"
8577fi
8578
8579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582	fi
8583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8587  $as_echo_n "(cached) " >&6
8588else
8589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591int i;
8592_ACEOF
8593if ac_fn_c_try_compile "$LINENO"; then :
8594  xorg_cv_cc_flag_unused_command_line_argument=yes
8595else
8596  xorg_cv_cc_flag_unused_command_line_argument=no
8597fi
8598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599fi
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8603	CFLAGS="$xorg_testset_save_CFLAGS"
8604fi
8605
8606found="no"
8607
8608	if test $found = "no" ; then
8609		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611		fi
8612
8613		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8615		fi
8616
8617		CFLAGS="$CFLAGS -Wnonnull"
8618
8619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8620$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8621		cacheid=xorg_cv_cc_flag__Wnonnull
8622		if eval \${$cacheid+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627int i;
8628int
8629main ()
8630{
8631
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636if ac_fn_c_try_link "$LINENO"; then :
8637  eval $cacheid=yes
8638else
8639  eval $cacheid=no
8640fi
8641rm -f core conftest.err conftest.$ac_objext \
8642    conftest$ac_exeext conftest.$ac_ext
8643fi
8644
8645
8646		CFLAGS="$xorg_testset_save_CFLAGS"
8647
8648		eval supported=\$$cacheid
8649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8650$as_echo "$supported" >&6; }
8651		if test "$supported" = "yes" ; then
8652			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8653			found="yes"
8654		fi
8655	fi
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671xorg_testset_save_CFLAGS="$CFLAGS"
8672
8673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8678  $as_echo_n "(cached) " >&6
8679else
8680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h.  */
8682int i;
8683_ACEOF
8684if ac_fn_c_try_compile "$LINENO"; then :
8685  xorg_cv_cc_flag_unknown_warning_option=yes
8686else
8687  xorg_cv_cc_flag_unknown_warning_option=no
8688fi
8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8694	CFLAGS="$xorg_testset_save_CFLAGS"
8695fi
8696
8697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700	fi
8701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710_ACEOF
8711if ac_fn_c_try_compile "$LINENO"; then :
8712  xorg_cv_cc_flag_unused_command_line_argument=yes
8713else
8714  xorg_cv_cc_flag_unused_command_line_argument=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717fi
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8721	CFLAGS="$xorg_testset_save_CFLAGS"
8722fi
8723
8724found="no"
8725
8726	if test $found = "no" ; then
8727		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729		fi
8730
8731		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733		fi
8734
8735		CFLAGS="$CFLAGS -Winit-self"
8736
8737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8738$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8739		cacheid=xorg_cv_cc_flag__Winit_self
8740		if eval \${$cacheid+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int i;
8746int
8747main ()
8748{
8749
8750  ;
8751  return 0;
8752}
8753_ACEOF
8754if ac_fn_c_try_link "$LINENO"; then :
8755  eval $cacheid=yes
8756else
8757  eval $cacheid=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext \
8760    conftest$ac_exeext conftest.$ac_ext
8761fi
8762
8763
8764		CFLAGS="$xorg_testset_save_CFLAGS"
8765
8766		eval supported=\$$cacheid
8767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8768$as_echo "$supported" >&6; }
8769		if test "$supported" = "yes" ; then
8770			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8771			found="yes"
8772		fi
8773	fi
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789xorg_testset_save_CFLAGS="$CFLAGS"
8790
8791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799/* end confdefs.h.  */
8800int i;
8801_ACEOF
8802if ac_fn_c_try_compile "$LINENO"; then :
8803  xorg_cv_cc_flag_unknown_warning_option=yes
8804else
8805  xorg_cv_cc_flag_unknown_warning_option=no
8806fi
8807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808fi
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8812	CFLAGS="$xorg_testset_save_CFLAGS"
8813fi
8814
8815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818	fi
8819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827int i;
8828_ACEOF
8829if ac_fn_c_try_compile "$LINENO"; then :
8830  xorg_cv_cc_flag_unused_command_line_argument=yes
8831else
8832  xorg_cv_cc_flag_unused_command_line_argument=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8839	CFLAGS="$xorg_testset_save_CFLAGS"
8840fi
8841
8842found="no"
8843
8844	if test $found = "no" ; then
8845		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847		fi
8848
8849		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851		fi
8852
8853		CFLAGS="$CFLAGS -Wmain"
8854
8855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8856$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8857		cacheid=xorg_cv_cc_flag__Wmain
8858		if eval \${$cacheid+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864int
8865main ()
8866{
8867
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873  eval $cacheid=yes
8874else
8875  eval $cacheid=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878    conftest$ac_exeext conftest.$ac_ext
8879fi
8880
8881
8882		CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884		eval supported=\$$cacheid
8885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886$as_echo "$supported" >&6; }
8887		if test "$supported" = "yes" ; then
8888			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8889			found="yes"
8890		fi
8891	fi
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907xorg_testset_save_CFLAGS="$CFLAGS"
8908
8909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8914  $as_echo_n "(cached) " >&6
8915else
8916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918int i;
8919_ACEOF
8920if ac_fn_c_try_compile "$LINENO"; then :
8921  xorg_cv_cc_flag_unknown_warning_option=yes
8922else
8923  xorg_cv_cc_flag_unknown_warning_option=no
8924fi
8925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8930	CFLAGS="$xorg_testset_save_CFLAGS"
8931fi
8932
8933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936	fi
8937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946_ACEOF
8947if ac_fn_c_try_compile "$LINENO"; then :
8948  xorg_cv_cc_flag_unused_command_line_argument=yes
8949else
8950  xorg_cv_cc_flag_unused_command_line_argument=no
8951fi
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8957	CFLAGS="$xorg_testset_save_CFLAGS"
8958fi
8959
8960found="no"
8961
8962	if test $found = "no" ; then
8963		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965		fi
8966
8967		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969		fi
8970
8971		CFLAGS="$CFLAGS -Wmissing-braces"
8972
8973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8974$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8975		cacheid=xorg_cv_cc_flag__Wmissing_braces
8976		if eval \${$cacheid+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h.  */
8981int i;
8982int
8983main ()
8984{
8985
8986  ;
8987  return 0;
8988}
8989_ACEOF
8990if ac_fn_c_try_link "$LINENO"; then :
8991  eval $cacheid=yes
8992else
8993  eval $cacheid=no
8994fi
8995rm -f core conftest.err conftest.$ac_objext \
8996    conftest$ac_exeext conftest.$ac_ext
8997fi
8998
8999
9000		CFLAGS="$xorg_testset_save_CFLAGS"
9001
9002		eval supported=\$$cacheid
9003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9004$as_echo "$supported" >&6; }
9005		if test "$supported" = "yes" ; then
9006			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9007			found="yes"
9008		fi
9009	fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025xorg_testset_save_CFLAGS="$CFLAGS"
9026
9027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035/* end confdefs.h.  */
9036int i;
9037_ACEOF
9038if ac_fn_c_try_compile "$LINENO"; then :
9039  xorg_cv_cc_flag_unknown_warning_option=yes
9040else
9041  xorg_cv_cc_flag_unknown_warning_option=no
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044fi
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048	CFLAGS="$xorg_testset_save_CFLAGS"
9049fi
9050
9051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054	fi
9055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9059  $as_echo_n "(cached) " >&6
9060else
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"; then :
9066  xorg_cv_cc_flag_unused_command_line_argument=yes
9067else
9068  xorg_cv_cc_flag_unused_command_line_argument=no
9069fi
9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9075	CFLAGS="$xorg_testset_save_CFLAGS"
9076fi
9077
9078found="no"
9079
9080	if test $found = "no" ; then
9081		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083		fi
9084
9085		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9087		fi
9088
9089		CFLAGS="$CFLAGS -Wsequence-point"
9090
9091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9092$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9093		cacheid=xorg_cv_cc_flag__Wsequence_point
9094		if eval \${$cacheid+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100int
9101main ()
9102{
9103
9104  ;
9105  return 0;
9106}
9107_ACEOF
9108if ac_fn_c_try_link "$LINENO"; then :
9109  eval $cacheid=yes
9110else
9111  eval $cacheid=no
9112fi
9113rm -f core conftest.err conftest.$ac_objext \
9114    conftest$ac_exeext conftest.$ac_ext
9115fi
9116
9117
9118		CFLAGS="$xorg_testset_save_CFLAGS"
9119
9120		eval supported=\$$cacheid
9121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122$as_echo "$supported" >&6; }
9123		if test "$supported" = "yes" ; then
9124			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9125			found="yes"
9126		fi
9127	fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143xorg_testset_save_CFLAGS="$CFLAGS"
9144
9145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154int i;
9155_ACEOF
9156if ac_fn_c_try_compile "$LINENO"; then :
9157  xorg_cv_cc_flag_unknown_warning_option=yes
9158else
9159  xorg_cv_cc_flag_unknown_warning_option=no
9160fi
9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9166	CFLAGS="$xorg_testset_save_CFLAGS"
9167fi
9168
9169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172	fi
9173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9177  $as_echo_n "(cached) " >&6
9178else
9179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int i;
9182_ACEOF
9183if ac_fn_c_try_compile "$LINENO"; then :
9184  xorg_cv_cc_flag_unused_command_line_argument=yes
9185else
9186  xorg_cv_cc_flag_unused_command_line_argument=no
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9193	CFLAGS="$xorg_testset_save_CFLAGS"
9194fi
9195
9196found="no"
9197
9198	if test $found = "no" ; then
9199		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201		fi
9202
9203		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205		fi
9206
9207		CFLAGS="$CFLAGS -Wreturn-type"
9208
9209		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9210$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9211		cacheid=xorg_cv_cc_flag__Wreturn_type
9212		if eval \${$cacheid+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217int i;
9218int
9219main ()
9220{
9221
9222  ;
9223  return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"; then :
9227  eval $cacheid=yes
9228else
9229  eval $cacheid=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232    conftest$ac_exeext conftest.$ac_ext
9233fi
9234
9235
9236		CFLAGS="$xorg_testset_save_CFLAGS"
9237
9238		eval supported=\$$cacheid
9239		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9240$as_echo "$supported" >&6; }
9241		if test "$supported" = "yes" ; then
9242			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9243			found="yes"
9244		fi
9245	fi
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261xorg_testset_save_CFLAGS="$CFLAGS"
9262
9263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9268  $as_echo_n "(cached) " >&6
9269else
9270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h.  */
9272int i;
9273_ACEOF
9274if ac_fn_c_try_compile "$LINENO"; then :
9275  xorg_cv_cc_flag_unknown_warning_option=yes
9276else
9277  xorg_cv_cc_flag_unknown_warning_option=no
9278fi
9279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280fi
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9283	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9284	CFLAGS="$xorg_testset_save_CFLAGS"
9285fi
9286
9287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9288	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290	fi
9291	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298/* end confdefs.h.  */
9299int i;
9300_ACEOF
9301if ac_fn_c_try_compile "$LINENO"; then :
9302  xorg_cv_cc_flag_unused_command_line_argument=yes
9303else
9304  xorg_cv_cc_flag_unused_command_line_argument=no
9305fi
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9311	CFLAGS="$xorg_testset_save_CFLAGS"
9312fi
9313
9314found="no"
9315
9316	if test $found = "no" ; then
9317		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319		fi
9320
9321		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323		fi
9324
9325		CFLAGS="$CFLAGS -Wtrigraphs"
9326
9327		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9328$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9329		cacheid=xorg_cv_cc_flag__Wtrigraphs
9330		if eval \${$cacheid+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335int i;
9336int
9337main ()
9338{
9339
9340  ;
9341  return 0;
9342}
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345  eval $cacheid=yes
9346else
9347  eval $cacheid=no
9348fi
9349rm -f core conftest.err conftest.$ac_objext \
9350    conftest$ac_exeext conftest.$ac_ext
9351fi
9352
9353
9354		CFLAGS="$xorg_testset_save_CFLAGS"
9355
9356		eval supported=\$$cacheid
9357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9358$as_echo "$supported" >&6; }
9359		if test "$supported" = "yes" ; then
9360			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9361			found="yes"
9362		fi
9363	fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379xorg_testset_save_CFLAGS="$CFLAGS"
9380
9381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9386  $as_echo_n "(cached) " >&6
9387else
9388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h.  */
9390int i;
9391_ACEOF
9392if ac_fn_c_try_compile "$LINENO"; then :
9393  xorg_cv_cc_flag_unknown_warning_option=yes
9394else
9395  xorg_cv_cc_flag_unknown_warning_option=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9402	CFLAGS="$xorg_testset_save_CFLAGS"
9403fi
9404
9405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408	fi
9409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418_ACEOF
9419if ac_fn_c_try_compile "$LINENO"; then :
9420  xorg_cv_cc_flag_unused_command_line_argument=yes
9421else
9422  xorg_cv_cc_flag_unused_command_line_argument=no
9423fi
9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9429	CFLAGS="$xorg_testset_save_CFLAGS"
9430fi
9431
9432found="no"
9433
9434	if test $found = "no" ; then
9435		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437		fi
9438
9439		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9441		fi
9442
9443		CFLAGS="$CFLAGS -Warray-bounds"
9444
9445		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9446$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9447		cacheid=xorg_cv_cc_flag__Warray_bounds
9448		if eval \${$cacheid+:} false; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h.  */
9453int i;
9454int
9455main ()
9456{
9457
9458  ;
9459  return 0;
9460}
9461_ACEOF
9462if ac_fn_c_try_link "$LINENO"; then :
9463  eval $cacheid=yes
9464else
9465  eval $cacheid=no
9466fi
9467rm -f core conftest.err conftest.$ac_objext \
9468    conftest$ac_exeext conftest.$ac_ext
9469fi
9470
9471
9472		CFLAGS="$xorg_testset_save_CFLAGS"
9473
9474		eval supported=\$$cacheid
9475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9476$as_echo "$supported" >&6; }
9477		if test "$supported" = "yes" ; then
9478			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9479			found="yes"
9480		fi
9481	fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497xorg_testset_save_CFLAGS="$CFLAGS"
9498
9499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507/* end confdefs.h.  */
9508int i;
9509_ACEOF
9510if ac_fn_c_try_compile "$LINENO"; then :
9511  xorg_cv_cc_flag_unknown_warning_option=yes
9512else
9513  xorg_cv_cc_flag_unknown_warning_option=no
9514fi
9515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9520	CFLAGS="$xorg_testset_save_CFLAGS"
9521fi
9522
9523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526	fi
9527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535int i;
9536_ACEOF
9537if ac_fn_c_try_compile "$LINENO"; then :
9538  xorg_cv_cc_flag_unused_command_line_argument=yes
9539else
9540  xorg_cv_cc_flag_unused_command_line_argument=no
9541fi
9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543fi
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547	CFLAGS="$xorg_testset_save_CFLAGS"
9548fi
9549
9550found="no"
9551
9552	if test $found = "no" ; then
9553		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555		fi
9556
9557		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559		fi
9560
9561		CFLAGS="$CFLAGS -Wwrite-strings"
9562
9563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9564$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9565		cacheid=xorg_cv_cc_flag__Wwrite_strings
9566		if eval \${$cacheid+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571int i;
9572int
9573main ()
9574{
9575
9576  ;
9577  return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"; then :
9581  eval $cacheid=yes
9582else
9583  eval $cacheid=no
9584fi
9585rm -f core conftest.err conftest.$ac_objext \
9586    conftest$ac_exeext conftest.$ac_ext
9587fi
9588
9589
9590		CFLAGS="$xorg_testset_save_CFLAGS"
9591
9592		eval supported=\$$cacheid
9593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9594$as_echo "$supported" >&6; }
9595		if test "$supported" = "yes" ; then
9596			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9597			found="yes"
9598		fi
9599	fi
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615xorg_testset_save_CFLAGS="$CFLAGS"
9616
9617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9622  $as_echo_n "(cached) " >&6
9623else
9624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625/* end confdefs.h.  */
9626int i;
9627_ACEOF
9628if ac_fn_c_try_compile "$LINENO"; then :
9629  xorg_cv_cc_flag_unknown_warning_option=yes
9630else
9631  xorg_cv_cc_flag_unknown_warning_option=no
9632fi
9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634fi
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9638	CFLAGS="$xorg_testset_save_CFLAGS"
9639fi
9640
9641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644	fi
9645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int i;
9654_ACEOF
9655if ac_fn_c_try_compile "$LINENO"; then :
9656  xorg_cv_cc_flag_unused_command_line_argument=yes
9657else
9658  xorg_cv_cc_flag_unused_command_line_argument=no
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9665	CFLAGS="$xorg_testset_save_CFLAGS"
9666fi
9667
9668found="no"
9669
9670	if test $found = "no" ; then
9671		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673		fi
9674
9675		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677		fi
9678
9679		CFLAGS="$CFLAGS -Waddress"
9680
9681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9682$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9683		cacheid=xorg_cv_cc_flag__Waddress
9684		if eval \${$cacheid+:} false; then :
9685  $as_echo_n "(cached) " >&6
9686else
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690int
9691main ()
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"; then :
9699  eval $cacheid=yes
9700else
9701  eval $cacheid=no
9702fi
9703rm -f core conftest.err conftest.$ac_objext \
9704    conftest$ac_exeext conftest.$ac_ext
9705fi
9706
9707
9708		CFLAGS="$xorg_testset_save_CFLAGS"
9709
9710		eval supported=\$$cacheid
9711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9712$as_echo "$supported" >&6; }
9713		if test "$supported" = "yes" ; then
9714			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9715			found="yes"
9716		fi
9717	fi
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733xorg_testset_save_CFLAGS="$CFLAGS"
9734
9735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h.  */
9744int i;
9745_ACEOF
9746if ac_fn_c_try_compile "$LINENO"; then :
9747  xorg_cv_cc_flag_unknown_warning_option=yes
9748else
9749  xorg_cv_cc_flag_unknown_warning_option=no
9750fi
9751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752fi
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9756	CFLAGS="$xorg_testset_save_CFLAGS"
9757fi
9758
9759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762	fi
9763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772_ACEOF
9773if ac_fn_c_try_compile "$LINENO"; then :
9774  xorg_cv_cc_flag_unused_command_line_argument=yes
9775else
9776  xorg_cv_cc_flag_unused_command_line_argument=no
9777fi
9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9783	CFLAGS="$xorg_testset_save_CFLAGS"
9784fi
9785
9786found="no"
9787
9788	if test $found = "no" ; then
9789		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791		fi
9792
9793		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9795		fi
9796
9797		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9798
9799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9800$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9801		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9802		if eval \${$cacheid+:} false; then :
9803  $as_echo_n "(cached) " >&6
9804else
9805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h.  */
9807int i;
9808int
9809main ()
9810{
9811
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_link "$LINENO"; then :
9817  eval $cacheid=yes
9818else
9819  eval $cacheid=no
9820fi
9821rm -f core conftest.err conftest.$ac_objext \
9822    conftest$ac_exeext conftest.$ac_ext
9823fi
9824
9825
9826		CFLAGS="$xorg_testset_save_CFLAGS"
9827
9828		eval supported=\$$cacheid
9829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9830$as_echo "$supported" >&6; }
9831		if test "$supported" = "yes" ; then
9832			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9833			found="yes"
9834		fi
9835	fi
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851xorg_testset_save_CFLAGS="$CFLAGS"
9852
9853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9858  $as_echo_n "(cached) " >&6
9859else
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h.  */
9862int i;
9863_ACEOF
9864if ac_fn_c_try_compile "$LINENO"; then :
9865  xorg_cv_cc_flag_unknown_warning_option=yes
9866else
9867  xorg_cv_cc_flag_unknown_warning_option=no
9868fi
9869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870fi
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9874	CFLAGS="$xorg_testset_save_CFLAGS"
9875fi
9876
9877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880	fi
9881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890_ACEOF
9891if ac_fn_c_try_compile "$LINENO"; then :
9892  xorg_cv_cc_flag_unused_command_line_argument=yes
9893else
9894  xorg_cv_cc_flag_unused_command_line_argument=no
9895fi
9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9901	CFLAGS="$xorg_testset_save_CFLAGS"
9902fi
9903
9904found="no"
9905
9906	if test $found = "no" ; then
9907		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909		fi
9910
9911		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913		fi
9914
9915		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9916
9917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9918$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9919		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9920		if eval \${$cacheid+:} false; then :
9921  $as_echo_n "(cached) " >&6
9922else
9923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924/* end confdefs.h.  */
9925int i;
9926int
9927main ()
9928{
9929
9930  ;
9931  return 0;
9932}
9933_ACEOF
9934if ac_fn_c_try_link "$LINENO"; then :
9935  eval $cacheid=yes
9936else
9937  eval $cacheid=no
9938fi
9939rm -f core conftest.err conftest.$ac_objext \
9940    conftest$ac_exeext conftest.$ac_ext
9941fi
9942
9943
9944		CFLAGS="$xorg_testset_save_CFLAGS"
9945
9946		eval supported=\$$cacheid
9947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9948$as_echo "$supported" >&6; }
9949		if test "$supported" = "yes" ; then
9950			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9951			found="yes"
9952		fi
9953	fi
9954
9955
9956fi
9957
9958
9959
9960
9961
9962
9963
9964		CWARNFLAGS="$BASE_CFLAGS"
9965		if  test "x$GCC" = xyes ; then
9966		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9967		fi
9968
9969
9970
9971
9972
9973
9974
9975
9976# Check whether --enable-strict-compilation was given.
9977if test "${enable_strict_compilation+set}" = set; then :
9978  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9979else
9980  STRICT_COMPILE=no
9981fi
9982
9983
9984
9985
9986
9987
9988STRICT_CFLAGS=""
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009  $as_echo_n "(cached) " >&6
10010else
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"; then :
10016  xorg_cv_cc_flag_unknown_warning_option=yes
10017else
10018  xorg_cv_cc_flag_unknown_warning_option=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	fi
10032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unused_command_line_argument=yes
10044else
10045  xorg_cv_cc_flag_unused_command_line_argument=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055found="no"
10056
10057	if test $found = "no" ; then
10058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060		fi
10061
10062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064		fi
10065
10066		CFLAGS="$CFLAGS -pedantic"
10067
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10069$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10070		cacheid=xorg_cv_cc_flag__pedantic
10071		if eval \${$cacheid+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main ()
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  eval $cacheid=yes
10087else
10088  eval $cacheid=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092fi
10093
10094
10095		CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097		eval supported=\$$cacheid
10098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099$as_echo "$supported" >&6; }
10100		if test "$supported" = "yes" ; then
10101			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10102			found="yes"
10103		fi
10104	fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120xorg_testset_save_CFLAGS="$CFLAGS"
10121
10122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10127  $as_echo_n "(cached) " >&6
10128else
10129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130/* end confdefs.h.  */
10131int i;
10132_ACEOF
10133if ac_fn_c_try_compile "$LINENO"; then :
10134  xorg_cv_cc_flag_unknown_warning_option=yes
10135else
10136  xorg_cv_cc_flag_unknown_warning_option=no
10137fi
10138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	fi
10150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159_ACEOF
10160if ac_fn_c_try_compile "$LINENO"; then :
10161  xorg_cv_cc_flag_unused_command_line_argument=yes
10162else
10163  xorg_cv_cc_flag_unused_command_line_argument=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10170	CFLAGS="$xorg_testset_save_CFLAGS"
10171fi
10172
10173found="no"
10174
10175	if test $found = "no" ; then
10176		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178		fi
10179
10180		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10182		fi
10183
10184		CFLAGS="$CFLAGS -Werror"
10185
10186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10187$as_echo_n "checking if $CC supports-Werror... " >&6; }
10188		cacheid=xorg_cv_cc_flag__Werror
10189		if eval \${$cacheid+:} false; then :
10190  $as_echo_n "(cached) " >&6
10191else
10192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h.  */
10194int i;
10195int
10196main ()
10197{
10198
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204  eval $cacheid=yes
10205else
10206  eval $cacheid=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext \
10209    conftest$ac_exeext conftest.$ac_ext
10210fi
10211
10212
10213		CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215		eval supported=\$$cacheid
10216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217$as_echo "$supported" >&6; }
10218		if test "$supported" = "yes" ; then
10219			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10220			found="yes"
10221		fi
10222	fi
10223
10224	if test $found = "no" ; then
10225		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227		fi
10228
10229		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231		fi
10232
10233		CFLAGS="$CFLAGS -errwarn"
10234
10235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10236$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10237		cacheid=xorg_cv_cc_flag__errwarn
10238		if eval \${$cacheid+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244int
10245main ()
10246{
10247
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"; then :
10253  eval $cacheid=yes
10254else
10255  eval $cacheid=no
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258    conftest$ac_exeext conftest.$ac_ext
10259fi
10260
10261
10262		CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264		eval supported=\$$cacheid
10265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266$as_echo "$supported" >&6; }
10267		if test "$supported" = "yes" ; then
10268			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10269			found="yes"
10270		fi
10271	fi
10272
10273
10274
10275# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10276# activate it with -Werror, so we add it here explicitly.
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290xorg_testset_save_CFLAGS="$CFLAGS"
10291
10292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"; then :
10304  xorg_cv_cc_flag_unknown_warning_option=yes
10305else
10306  xorg_cv_cc_flag_unknown_warning_option=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329_ACEOF
10330if ac_fn_c_try_compile "$LINENO"; then :
10331  xorg_cv_cc_flag_unused_command_line_argument=yes
10332else
10333  xorg_cv_cc_flag_unused_command_line_argument=no
10334fi
10335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10340	CFLAGS="$xorg_testset_save_CFLAGS"
10341fi
10342
10343found="no"
10344
10345	if test $found = "no" ; then
10346		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348		fi
10349
10350		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352		fi
10353
10354		CFLAGS="$CFLAGS -Werror=attributes"
10355
10356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10357$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10358		cacheid=xorg_cv_cc_flag__Werror_attributes
10359		if eval \${$cacheid+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365int
10366main ()
10367{
10368
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  eval $cacheid=yes
10375else
10376  eval $cacheid=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380fi
10381
10382
10383		CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385		eval supported=\$$cacheid
10386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387$as_echo "$supported" >&6; }
10388		if test "$supported" = "yes" ; then
10389			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10390			found="yes"
10391		fi
10392	fi
10393
10394
10395
10396if test "x$STRICT_COMPILE" = "xyes"; then
10397    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10398    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10399fi
10400
10401
10402
10403
10404
10405
10406cat >>confdefs.h <<_ACEOF
10407#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10408_ACEOF
10409
10410	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10411	if test "x$PVM" = "x"; then
10412		PVM="0"
10413	fi
10414
10415cat >>confdefs.h <<_ACEOF
10416#define PACKAGE_VERSION_MINOR $PVM
10417_ACEOF
10418
10419	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10420	if test "x$PVP" = "x"; then
10421		PVP="0"
10422	fi
10423
10424cat >>confdefs.h <<_ACEOF
10425#define PACKAGE_VERSION_PATCHLEVEL $PVP
10426_ACEOF
10427
10428
10429
10430CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10431mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10432|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10433echo 'git directory not found: installing possibly empty changelog.' >&2)"
10434
10435
10436
10437
10438macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10439INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10440mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10441|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10442echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10443
10444
10445
10446
10447
10448
10449if test x$APP_MAN_SUFFIX = x    ; then
10450    APP_MAN_SUFFIX=1
10451fi
10452if test x$APP_MAN_DIR = x    ; then
10453    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10454fi
10455
10456if test x$LIB_MAN_SUFFIX = x    ; then
10457    LIB_MAN_SUFFIX=3
10458fi
10459if test x$LIB_MAN_DIR = x    ; then
10460    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10461fi
10462
10463if test x$FILE_MAN_SUFFIX = x    ; then
10464    case $host_os in
10465	solaris*)	FILE_MAN_SUFFIX=4  ;;
10466	*)		FILE_MAN_SUFFIX=5  ;;
10467    esac
10468fi
10469if test x$FILE_MAN_DIR = x    ; then
10470    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10471fi
10472
10473if test x$MISC_MAN_SUFFIX = x    ; then
10474    case $host_os in
10475	solaris*)	MISC_MAN_SUFFIX=5  ;;
10476	*)		MISC_MAN_SUFFIX=7  ;;
10477    esac
10478fi
10479if test x$MISC_MAN_DIR = x    ; then
10480    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10481fi
10482
10483if test x$DRIVER_MAN_SUFFIX = x    ; then
10484    case $host_os in
10485	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10486	*)		DRIVER_MAN_SUFFIX=4  ;;
10487    esac
10488fi
10489if test x$DRIVER_MAN_DIR = x    ; then
10490    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10491fi
10492
10493if test x$ADMIN_MAN_SUFFIX = x    ; then
10494    case $host_os in
10495	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10496	*)		ADMIN_MAN_SUFFIX=8  ;;
10497    esac
10498fi
10499if test x$ADMIN_MAN_DIR = x    ; then
10500    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10501fi
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517XORG_MAN_PAGE="X Version 11"
10518
10519MAN_SUBSTS="\
10520	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10521	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10522	-e 's|__xservername__|Xorg|g' \
10523	-e 's|__xconfigfile__|xorg.conf|g' \
10524	-e 's|__projectroot__|\$(prefix)|g' \
10525	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10526	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10527	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10528	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10529	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10530	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10531	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10532
10533
10534
10535# Check whether --enable-silent-rules was given.
10536if test "${enable_silent_rules+set}" = set; then :
10537  enableval=$enable_silent_rules;
10538fi
10539
10540case $enable_silent_rules in
10541yes) AM_DEFAULT_VERBOSITY=0;;
10542no)  AM_DEFAULT_VERBOSITY=1;;
10543*)   AM_DEFAULT_VERBOSITY=0;;
10544esac
10545am_make=${MAKE-make}
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10547$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10548if ${am_cv_make_support_nested_variables+:} false; then :
10549  $as_echo_n "(cached) " >&6
10550else
10551  if $as_echo 'TRUE=$(BAR$(V))
10552BAR0=false
10553BAR1=true
10554V=1
10555am__doit:
10556	@$(TRUE)
10557.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10558  am_cv_make_support_nested_variables=yes
10559else
10560  am_cv_make_support_nested_variables=no
10561fi
10562fi
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10564$as_echo "$am_cv_make_support_nested_variables" >&6; }
10565if test $am_cv_make_support_nested_variables = yes; then
10566    AM_V='$(V)'
10567  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10568else
10569  AM_V=$AM_DEFAULT_VERBOSITY
10570  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10571fi
10572AM_BACKSLASH='\'
10573
10574
10575
10576DRIVER_NAME=vmmouse
10577
10578
10579# Checks for programs.
10580# Check whether --enable-static was given.
10581if test "${enable_static+set}" = set; then :
10582  enableval=$enable_static; p=${PACKAGE-default}
10583    case $enableval in
10584    yes) enable_static=yes ;;
10585    no) enable_static=no ;;
10586    *)
10587     enable_static=no
10588      # Look at the argument we got.  We use all the common list separators.
10589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10590      for pkg in $enableval; do
10591	IFS="$lt_save_ifs"
10592	if test "X$pkg" = "X$p"; then
10593	  enable_static=yes
10594	fi
10595      done
10596      IFS="$lt_save_ifs"
10597      ;;
10598    esac
10599else
10600  enable_static=no
10601fi
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611case `pwd` in
10612  *\ * | *\	*)
10613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10614$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10615esac
10616
10617
10618
10619macro_version='2.4.2'
10620macro_revision='1.3337'
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634ltmain="$ac_aux_dir/ltmain.sh"
10635
10636# Backslashify metacharacters that are still active within
10637# double-quoted strings.
10638sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10639
10640# Same as above, but do not quote variable references.
10641double_quote_subst='s/\(["`\\]\)/\\\1/g'
10642
10643# Sed substitution to delay expansion of an escaped shell variable in a
10644# double_quote_subst'ed string.
10645delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10646
10647# Sed substitution to delay expansion of an escaped single quote.
10648delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10649
10650# Sed substitution to avoid accidental globbing in evaled expressions
10651no_glob_subst='s/\*/\\\*/g'
10652
10653ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10654ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10655ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10656
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10658$as_echo_n "checking how to print strings... " >&6; }
10659# Test print first, because it will be a builtin if present.
10660if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10661   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10662  ECHO='print -r --'
10663elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10664  ECHO='printf %s\n'
10665else
10666  # Use this function as a fallback that always works.
10667  func_fallback_echo ()
10668  {
10669    eval 'cat <<_LTECHO_EOF
10670$1
10671_LTECHO_EOF'
10672  }
10673  ECHO='func_fallback_echo'
10674fi
10675
10676# func_echo_all arg...
10677# Invoke $ECHO with all args, space-separated.
10678func_echo_all ()
10679{
10680    $ECHO ""
10681}
10682
10683case "$ECHO" in
10684  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10685$as_echo "printf" >&6; } ;;
10686  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10687$as_echo "print -r" >&6; } ;;
10688  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10689$as_echo "cat" >&6; } ;;
10690esac
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10706$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10707if ${ac_cv_path_SED+:} false; then :
10708  $as_echo_n "(cached) " >&6
10709else
10710            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10711     for ac_i in 1 2 3 4 5 6 7; do
10712       ac_script="$ac_script$as_nl$ac_script"
10713     done
10714     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10715     { ac_script=; unset ac_script;}
10716     if test -z "$SED"; then
10717  ac_path_SED_found=false
10718  # Loop through the user's path and test for each of PROGNAME-LIST
10719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722  IFS=$as_save_IFS
10723  test -z "$as_dir" && as_dir=.
10724    for ac_prog in sed gsed; do
10725    for ac_exec_ext in '' $ac_executable_extensions; do
10726      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10727      as_fn_executable_p "$ac_path_SED" || continue
10728# Check for GNU ac_path_SED and select it if it is found.
10729  # Check for GNU $ac_path_SED
10730case `"$ac_path_SED" --version 2>&1` in
10731*GNU*)
10732  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10733*)
10734  ac_count=0
10735  $as_echo_n 0123456789 >"conftest.in"
10736  while :
10737  do
10738    cat "conftest.in" "conftest.in" >"conftest.tmp"
10739    mv "conftest.tmp" "conftest.in"
10740    cp "conftest.in" "conftest.nl"
10741    $as_echo '' >> "conftest.nl"
10742    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10743    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10744    as_fn_arith $ac_count + 1 && ac_count=$as_val
10745    if test $ac_count -gt ${ac_path_SED_max-0}; then
10746      # Best one so far, save it but keep looking for a better one
10747      ac_cv_path_SED="$ac_path_SED"
10748      ac_path_SED_max=$ac_count
10749    fi
10750    # 10*(2^10) chars as input seems more than enough
10751    test $ac_count -gt 10 && break
10752  done
10753  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10754esac
10755
10756      $ac_path_SED_found && break 3
10757    done
10758  done
10759  done
10760IFS=$as_save_IFS
10761  if test -z "$ac_cv_path_SED"; then
10762    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10763  fi
10764else
10765  ac_cv_path_SED=$SED
10766fi
10767
10768fi
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10770$as_echo "$ac_cv_path_SED" >&6; }
10771 SED="$ac_cv_path_SED"
10772  rm -f conftest.sed
10773
10774test -z "$SED" && SED=sed
10775Xsed="$SED -e 1s/^X//"
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10788$as_echo_n "checking for fgrep... " >&6; }
10789if ${ac_cv_path_FGREP+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10793   then ac_cv_path_FGREP="$GREP -F"
10794   else
10795     if test -z "$FGREP"; then
10796  ac_path_FGREP_found=false
10797  # Loop through the user's path and test for each of PROGNAME-LIST
10798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10800do
10801  IFS=$as_save_IFS
10802  test -z "$as_dir" && as_dir=.
10803    for ac_prog in fgrep; do
10804    for ac_exec_ext in '' $ac_executable_extensions; do
10805      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10806      as_fn_executable_p "$ac_path_FGREP" || continue
10807# Check for GNU ac_path_FGREP and select it if it is found.
10808  # Check for GNU $ac_path_FGREP
10809case `"$ac_path_FGREP" --version 2>&1` in
10810*GNU*)
10811  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10812*)
10813  ac_count=0
10814  $as_echo_n 0123456789 >"conftest.in"
10815  while :
10816  do
10817    cat "conftest.in" "conftest.in" >"conftest.tmp"
10818    mv "conftest.tmp" "conftest.in"
10819    cp "conftest.in" "conftest.nl"
10820    $as_echo 'FGREP' >> "conftest.nl"
10821    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10823    as_fn_arith $ac_count + 1 && ac_count=$as_val
10824    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10825      # Best one so far, save it but keep looking for a better one
10826      ac_cv_path_FGREP="$ac_path_FGREP"
10827      ac_path_FGREP_max=$ac_count
10828    fi
10829    # 10*(2^10) chars as input seems more than enough
10830    test $ac_count -gt 10 && break
10831  done
10832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10833esac
10834
10835      $ac_path_FGREP_found && break 3
10836    done
10837  done
10838  done
10839IFS=$as_save_IFS
10840  if test -z "$ac_cv_path_FGREP"; then
10841    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10842  fi
10843else
10844  ac_cv_path_FGREP=$FGREP
10845fi
10846
10847   fi
10848fi
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10850$as_echo "$ac_cv_path_FGREP" >&6; }
10851 FGREP="$ac_cv_path_FGREP"
10852
10853
10854test -z "$GREP" && GREP=grep
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874# Check whether --with-gnu-ld was given.
10875if test "${with_gnu_ld+set}" = set; then :
10876  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10877else
10878  with_gnu_ld=no
10879fi
10880
10881ac_prog=ld
10882if test "$GCC" = yes; then
10883  # Check if gcc -print-prog-name=ld gives a path.
10884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10885$as_echo_n "checking for ld used by $CC... " >&6; }
10886  case $host in
10887  *-*-mingw*)
10888    # gcc leaves a trailing carriage return which upsets mingw
10889    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10890  *)
10891    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10892  esac
10893  case $ac_prog in
10894    # Accept absolute paths.
10895    [\\/]* | ?:[\\/]*)
10896      re_direlt='/[^/][^/]*/\.\./'
10897      # Canonicalize the pathname of ld
10898      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10899      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10900	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10901      done
10902      test -z "$LD" && LD="$ac_prog"
10903      ;;
10904  "")
10905    # If it fails, then pretend we aren't using GCC.
10906    ac_prog=ld
10907    ;;
10908  *)
10909    # If it is relative, then search for the first ld in PATH.
10910    with_gnu_ld=unknown
10911    ;;
10912  esac
10913elif test "$with_gnu_ld" = yes; then
10914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10915$as_echo_n "checking for GNU ld... " >&6; }
10916else
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10918$as_echo_n "checking for non-GNU ld... " >&6; }
10919fi
10920if ${lt_cv_path_LD+:} false; then :
10921  $as_echo_n "(cached) " >&6
10922else
10923  if test -z "$LD"; then
10924  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10925  for ac_dir in $PATH; do
10926    IFS="$lt_save_ifs"
10927    test -z "$ac_dir" && ac_dir=.
10928    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10929      lt_cv_path_LD="$ac_dir/$ac_prog"
10930      # Check to see if the program is GNU ld.  I'd rather use --version,
10931      # but apparently some variants of GNU ld only accept -v.
10932      # Break only if it was the GNU/non-GNU ld that we prefer.
10933      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10934      *GNU* | *'with BFD'*)
10935	test "$with_gnu_ld" != no && break
10936	;;
10937      *)
10938	test "$with_gnu_ld" != yes && break
10939	;;
10940      esac
10941    fi
10942  done
10943  IFS="$lt_save_ifs"
10944else
10945  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10946fi
10947fi
10948
10949LD="$lt_cv_path_LD"
10950if test -n "$LD"; then
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10952$as_echo "$LD" >&6; }
10953else
10954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
10956fi
10957test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10959$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10960if ${lt_cv_prog_gnu_ld+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10964case `$LD -v 2>&1 </dev/null` in
10965*GNU* | *'with BFD'*)
10966  lt_cv_prog_gnu_ld=yes
10967  ;;
10968*)
10969  lt_cv_prog_gnu_ld=no
10970  ;;
10971esac
10972fi
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10974$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10975with_gnu_ld=$lt_cv_prog_gnu_ld
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10986$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10987if ${lt_cv_path_NM+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  if test -n "$NM"; then
10991  # Let the user override the test.
10992  lt_cv_path_NM="$NM"
10993else
10994  lt_nm_to_check="${ac_tool_prefix}nm"
10995  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10996    lt_nm_to_check="$lt_nm_to_check nm"
10997  fi
10998  for lt_tmp_nm in $lt_nm_to_check; do
10999    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11000    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11001      IFS="$lt_save_ifs"
11002      test -z "$ac_dir" && ac_dir=.
11003      tmp_nm="$ac_dir/$lt_tmp_nm"
11004      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11005	# Check to see if the nm accepts a BSD-compat flag.
11006	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11007	#   nm: unknown option "B" ignored
11008	# Tru64's nm complains that /dev/null is an invalid object file
11009	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11010	*/dev/null* | *'Invalid file or object type'*)
11011	  lt_cv_path_NM="$tmp_nm -B"
11012	  break
11013	  ;;
11014	*)
11015	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11016	  */dev/null*)
11017	    lt_cv_path_NM="$tmp_nm -p"
11018	    break
11019	    ;;
11020	  *)
11021	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11022	    continue # so that we can try to find one that supports BSD flags
11023	    ;;
11024	  esac
11025	  ;;
11026	esac
11027      fi
11028    done
11029    IFS="$lt_save_ifs"
11030  done
11031  : ${lt_cv_path_NM=no}
11032fi
11033fi
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11035$as_echo "$lt_cv_path_NM" >&6; }
11036if test "$lt_cv_path_NM" != "no"; then
11037  NM="$lt_cv_path_NM"
11038else
11039  # Didn't find any BSD compatible name lister, look for dumpbin.
11040  if test -n "$DUMPBIN"; then :
11041    # Let the user override the test.
11042  else
11043    if test -n "$ac_tool_prefix"; then
11044  for ac_prog in dumpbin "link -dump"
11045  do
11046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
11050if ${ac_cv_prog_DUMPBIN+:} false; then :
11051  $as_echo_n "(cached) " >&6
11052else
11053  if test -n "$DUMPBIN"; then
11054  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059  IFS=$as_save_IFS
11060  test -z "$as_dir" && as_dir=.
11061    for ac_exec_ext in '' $ac_executable_extensions; do
11062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065    break 2
11066  fi
11067done
11068  done
11069IFS=$as_save_IFS
11070
11071fi
11072fi
11073DUMPBIN=$ac_cv_prog_DUMPBIN
11074if test -n "$DUMPBIN"; then
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11076$as_echo "$DUMPBIN" >&6; }
11077else
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
11080fi
11081
11082
11083    test -n "$DUMPBIN" && break
11084  done
11085fi
11086if test -z "$DUMPBIN"; then
11087  ac_ct_DUMPBIN=$DUMPBIN
11088  for ac_prog in dumpbin "link -dump"
11089do
11090  # Extract the first word of "$ac_prog", so it can be a program name with args.
11091set dummy $ac_prog; ac_word=$2
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  if test -n "$ac_ct_DUMPBIN"; then
11098  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11099else
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103  IFS=$as_save_IFS
11104  test -z "$as_dir" && as_dir=.
11105    for ac_exec_ext in '' $ac_executable_extensions; do
11106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109    break 2
11110  fi
11111done
11112  done
11113IFS=$as_save_IFS
11114
11115fi
11116fi
11117ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11118if test -n "$ac_ct_DUMPBIN"; then
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11120$as_echo "$ac_ct_DUMPBIN" >&6; }
11121else
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125
11126
11127  test -n "$ac_ct_DUMPBIN" && break
11128done
11129
11130  if test "x$ac_ct_DUMPBIN" = x; then
11131    DUMPBIN=":"
11132  else
11133    case $cross_compiling:$ac_tool_warned in
11134yes:)
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11137ac_tool_warned=yes ;;
11138esac
11139    DUMPBIN=$ac_ct_DUMPBIN
11140  fi
11141fi
11142
11143    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11144    *COFF*)
11145      DUMPBIN="$DUMPBIN -symbols"
11146      ;;
11147    *)
11148      DUMPBIN=:
11149      ;;
11150    esac
11151  fi
11152
11153  if test "$DUMPBIN" != ":"; then
11154    NM="$DUMPBIN"
11155  fi
11156fi
11157test -z "$NM" && NM=nm
11158
11159
11160
11161
11162
11163
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11165$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11166if ${lt_cv_nm_interface+:} false; then :
11167  $as_echo_n "(cached) " >&6
11168else
11169  lt_cv_nm_interface="BSD nm"
11170  echo "int some_variable = 0;" > conftest.$ac_ext
11171  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11172  (eval "$ac_compile" 2>conftest.err)
11173  cat conftest.err >&5
11174  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11175  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11176  cat conftest.err >&5
11177  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11178  cat conftest.out >&5
11179  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11180    lt_cv_nm_interface="MS dumpbin"
11181  fi
11182  rm -f conftest*
11183fi
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11185$as_echo "$lt_cv_nm_interface" >&6; }
11186
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11188$as_echo_n "checking whether ln -s works... " >&6; }
11189LN_S=$as_ln_s
11190if test "$LN_S" = "ln -s"; then
11191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192$as_echo "yes" >&6; }
11193else
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11195$as_echo "no, using $LN_S" >&6; }
11196fi
11197
11198# find the maximum length of command line arguments
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11200$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11201if ${lt_cv_sys_max_cmd_len+:} false; then :
11202  $as_echo_n "(cached) " >&6
11203else
11204    i=0
11205  teststring="ABCD"
11206
11207  case $build_os in
11208  msdosdjgpp*)
11209    # On DJGPP, this test can blow up pretty badly due to problems in libc
11210    # (any single argument exceeding 2000 bytes causes a buffer overrun
11211    # during glob expansion).  Even if it were fixed, the result of this
11212    # check would be larger than it should be.
11213    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11214    ;;
11215
11216  gnu*)
11217    # Under GNU Hurd, this test is not required because there is
11218    # no limit to the length of command line arguments.
11219    # Libtool will interpret -1 as no limit whatsoever
11220    lt_cv_sys_max_cmd_len=-1;
11221    ;;
11222
11223  cygwin* | mingw* | cegcc*)
11224    # On Win9x/ME, this test blows up -- it succeeds, but takes
11225    # about 5 minutes as the teststring grows exponentially.
11226    # Worse, since 9x/ME are not pre-emptively multitasking,
11227    # you end up with a "frozen" computer, even though with patience
11228    # the test eventually succeeds (with a max line length of 256k).
11229    # Instead, let's just punt: use the minimum linelength reported by
11230    # all of the supported platforms: 8192 (on NT/2K/XP).
11231    lt_cv_sys_max_cmd_len=8192;
11232    ;;
11233
11234  mint*)
11235    # On MiNT this can take a long time and run out of memory.
11236    lt_cv_sys_max_cmd_len=8192;
11237    ;;
11238
11239  amigaos*)
11240    # On AmigaOS with pdksh, this test takes hours, literally.
11241    # So we just punt and use a minimum line length of 8192.
11242    lt_cv_sys_max_cmd_len=8192;
11243    ;;
11244
11245  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11246    # This has been around since 386BSD, at least.  Likely further.
11247    if test -x /sbin/sysctl; then
11248      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11249    elif test -x /usr/sbin/sysctl; then
11250      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11251    else
11252      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11253    fi
11254    # And add a safety zone
11255    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11256    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11257    ;;
11258
11259  interix*)
11260    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11261    lt_cv_sys_max_cmd_len=196608
11262    ;;
11263
11264  os2*)
11265    # The test takes a long time on OS/2.
11266    lt_cv_sys_max_cmd_len=8192
11267    ;;
11268
11269  osf*)
11270    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11271    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11272    # nice to cause kernel panics so lets avoid the loop below.
11273    # First set a reasonable default.
11274    lt_cv_sys_max_cmd_len=16384
11275    #
11276    if test -x /sbin/sysconfig; then
11277      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11278        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11279      esac
11280    fi
11281    ;;
11282  sco3.2v5*)
11283    lt_cv_sys_max_cmd_len=102400
11284    ;;
11285  sysv5* | sco5v6* | sysv4.2uw2*)
11286    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11287    if test -n "$kargmax"; then
11288      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11289    else
11290      lt_cv_sys_max_cmd_len=32768
11291    fi
11292    ;;
11293  *)
11294    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11295    if test -n "$lt_cv_sys_max_cmd_len"; then
11296      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11297      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11298    else
11299      # Make teststring a little bigger before we do anything with it.
11300      # a 1K string should be a reasonable start.
11301      for i in 1 2 3 4 5 6 7 8 ; do
11302        teststring=$teststring$teststring
11303      done
11304      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11305      # If test is not a shell built-in, we'll probably end up computing a
11306      # maximum length that is only half of the actual maximum length, but
11307      # we can't tell.
11308      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11309	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11310	      test $i != 17 # 1/2 MB should be enough
11311      do
11312        i=`expr $i + 1`
11313        teststring=$teststring$teststring
11314      done
11315      # Only check the string length outside the loop.
11316      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11317      teststring=
11318      # Add a significant safety factor because C++ compilers can tack on
11319      # massive amounts of additional arguments before passing them to the
11320      # linker.  It appears as though 1/2 is a usable value.
11321      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11322    fi
11323    ;;
11324  esac
11325
11326fi
11327
11328if test -n $lt_cv_sys_max_cmd_len ; then
11329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11330$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11331else
11332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11333$as_echo "none" >&6; }
11334fi
11335max_cmd_len=$lt_cv_sys_max_cmd_len
11336
11337
11338
11339
11340
11341
11342: ${CP="cp -f"}
11343: ${MV="mv -f"}
11344: ${RM="rm -f"}
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11347$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11348# Try some XSI features
11349xsi_shell=no
11350( _lt_dummy="a/b/c"
11351  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11352      = c,a/b,b/c, \
11353    && eval 'test $(( 1 + 1 )) -eq 2 \
11354    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11355  && xsi_shell=yes
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11357$as_echo "$xsi_shell" >&6; }
11358
11359
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11361$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11362lt_shell_append=no
11363( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11364    >/dev/null 2>&1 \
11365  && lt_shell_append=yes
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11367$as_echo "$lt_shell_append" >&6; }
11368
11369
11370if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11371  lt_unset=unset
11372else
11373  lt_unset=false
11374fi
11375
11376
11377
11378
11379
11380# test EBCDIC or ASCII
11381case `echo X|tr X '\101'` in
11382 A) # ASCII based system
11383    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11384  lt_SP2NL='tr \040 \012'
11385  lt_NL2SP='tr \015\012 \040\040'
11386  ;;
11387 *) # EBCDIC based system
11388  lt_SP2NL='tr \100 \n'
11389  lt_NL2SP='tr \r\n \100\100'
11390  ;;
11391esac
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11402$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11403if ${lt_cv_to_host_file_cmd+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  case $host in
11407  *-*-mingw* )
11408    case $build in
11409      *-*-mingw* ) # actually msys
11410        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11411        ;;
11412      *-*-cygwin* )
11413        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11414        ;;
11415      * ) # otherwise, assume *nix
11416        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11417        ;;
11418    esac
11419    ;;
11420  *-*-cygwin* )
11421    case $build in
11422      *-*-mingw* ) # actually msys
11423        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11424        ;;
11425      *-*-cygwin* )
11426        lt_cv_to_host_file_cmd=func_convert_file_noop
11427        ;;
11428      * ) # otherwise, assume *nix
11429        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11430        ;;
11431    esac
11432    ;;
11433  * ) # unhandled hosts (and "normal" native builds)
11434    lt_cv_to_host_file_cmd=func_convert_file_noop
11435    ;;
11436esac
11437
11438fi
11439
11440to_host_file_cmd=$lt_cv_to_host_file_cmd
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11442$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11443
11444
11445
11446
11447
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11449$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11450if ${lt_cv_to_tool_file_cmd+:} false; then :
11451  $as_echo_n "(cached) " >&6
11452else
11453  #assume ordinary cross tools, or native build.
11454lt_cv_to_tool_file_cmd=func_convert_file_noop
11455case $host in
11456  *-*-mingw* )
11457    case $build in
11458      *-*-mingw* ) # actually msys
11459        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11460        ;;
11461    esac
11462    ;;
11463esac
11464
11465fi
11466
11467to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11469$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11470
11471
11472
11473
11474
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11476$as_echo_n "checking for $LD option to reload object files... " >&6; }
11477if ${lt_cv_ld_reload_flag+:} false; then :
11478  $as_echo_n "(cached) " >&6
11479else
11480  lt_cv_ld_reload_flag='-r'
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11483$as_echo "$lt_cv_ld_reload_flag" >&6; }
11484reload_flag=$lt_cv_ld_reload_flag
11485case $reload_flag in
11486"" | " "*) ;;
11487*) reload_flag=" $reload_flag" ;;
11488esac
11489reload_cmds='$LD$reload_flag -o $output$reload_objs'
11490case $host_os in
11491  cygwin* | mingw* | pw32* | cegcc*)
11492    if test "$GCC" != yes; then
11493      reload_cmds=false
11494    fi
11495    ;;
11496  darwin*)
11497    if test "$GCC" = yes; then
11498      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11499    else
11500      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11501    fi
11502    ;;
11503esac
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513if test -n "$ac_tool_prefix"; then
11514  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11515set dummy ${ac_tool_prefix}objdump; ac_word=$2
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517$as_echo_n "checking for $ac_word... " >&6; }
11518if ${ac_cv_prog_OBJDUMP+:} false; then :
11519  $as_echo_n "(cached) " >&6
11520else
11521  if test -n "$OBJDUMP"; then
11522  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527  IFS=$as_save_IFS
11528  test -z "$as_dir" && as_dir=.
11529    for ac_exec_ext in '' $ac_executable_extensions; do
11530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533    break 2
11534  fi
11535done
11536  done
11537IFS=$as_save_IFS
11538
11539fi
11540fi
11541OBJDUMP=$ac_cv_prog_OBJDUMP
11542if test -n "$OBJDUMP"; then
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11544$as_echo "$OBJDUMP" >&6; }
11545else
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548fi
11549
11550
11551fi
11552if test -z "$ac_cv_prog_OBJDUMP"; then
11553  ac_ct_OBJDUMP=$OBJDUMP
11554  # Extract the first word of "objdump", so it can be a program name with args.
11555set dummy objdump; ac_word=$2
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
11558if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11559  $as_echo_n "(cached) " >&6
11560else
11561  if test -n "$ac_ct_OBJDUMP"; then
11562  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567  IFS=$as_save_IFS
11568  test -z "$as_dir" && as_dir=.
11569    for ac_exec_ext in '' $ac_executable_extensions; do
11570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573    break 2
11574  fi
11575done
11576  done
11577IFS=$as_save_IFS
11578
11579fi
11580fi
11581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11582if test -n "$ac_ct_OBJDUMP"; then
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11584$as_echo "$ac_ct_OBJDUMP" >&6; }
11585else
11586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588fi
11589
11590  if test "x$ac_ct_OBJDUMP" = x; then
11591    OBJDUMP="false"
11592  else
11593    case $cross_compiling:$ac_tool_warned in
11594yes:)
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11597ac_tool_warned=yes ;;
11598esac
11599    OBJDUMP=$ac_ct_OBJDUMP
11600  fi
11601else
11602  OBJDUMP="$ac_cv_prog_OBJDUMP"
11603fi
11604
11605test -z "$OBJDUMP" && OBJDUMP=objdump
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11616$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11617if ${lt_cv_deplibs_check_method+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  lt_cv_file_magic_cmd='$MAGIC_CMD'
11621lt_cv_file_magic_test_file=
11622lt_cv_deplibs_check_method='unknown'
11623# Need to set the preceding variable on all platforms that support
11624# interlibrary dependencies.
11625# 'none' -- dependencies not supported.
11626# `unknown' -- same as none, but documents that we really don't know.
11627# 'pass_all' -- all dependencies passed with no checks.
11628# 'test_compile' -- check by making test program.
11629# 'file_magic [[regex]]' -- check by looking for files in library path
11630# which responds to the $file_magic_cmd with a given extended regex.
11631# If you have `file' or equivalent on your system and you're not sure
11632# whether `pass_all' will *always* work, you probably want this one.
11633
11634case $host_os in
11635aix[4-9]*)
11636  lt_cv_deplibs_check_method=pass_all
11637  ;;
11638
11639beos*)
11640  lt_cv_deplibs_check_method=pass_all
11641  ;;
11642
11643bsdi[45]*)
11644  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11645  lt_cv_file_magic_cmd='/usr/bin/file -L'
11646  lt_cv_file_magic_test_file=/shlib/libc.so
11647  ;;
11648
11649cygwin*)
11650  # func_win32_libid is a shell function defined in ltmain.sh
11651  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11652  lt_cv_file_magic_cmd='func_win32_libid'
11653  ;;
11654
11655mingw* | pw32*)
11656  # Base MSYS/MinGW do not provide the 'file' command needed by
11657  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11658  # unless we find 'file', for example because we are cross-compiling.
11659  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11660  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11661    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11662    lt_cv_file_magic_cmd='func_win32_libid'
11663  else
11664    # Keep this pattern in sync with the one in func_win32_libid.
11665    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11666    lt_cv_file_magic_cmd='$OBJDUMP -f'
11667  fi
11668  ;;
11669
11670cegcc*)
11671  # use the weaker test based on 'objdump'. See mingw*.
11672  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11673  lt_cv_file_magic_cmd='$OBJDUMP -f'
11674  ;;
11675
11676darwin* | rhapsody*)
11677  lt_cv_deplibs_check_method=pass_all
11678  ;;
11679
11680freebsd* | dragonfly*)
11681  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11682    case $host_cpu in
11683    i*86 )
11684      # Not sure whether the presence of OpenBSD here was a mistake.
11685      # Let's accept both of them until this is cleared up.
11686      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11687      lt_cv_file_magic_cmd=/usr/bin/file
11688      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11689      ;;
11690    esac
11691  else
11692    lt_cv_deplibs_check_method=pass_all
11693  fi
11694  ;;
11695
11696gnu*)
11697  lt_cv_deplibs_check_method=pass_all
11698  ;;
11699
11700haiku*)
11701  lt_cv_deplibs_check_method=pass_all
11702  ;;
11703
11704hpux10.20* | hpux11*)
11705  lt_cv_file_magic_cmd=/usr/bin/file
11706  case $host_cpu in
11707  ia64*)
11708    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11709    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11710    ;;
11711  hppa*64*)
11712    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]'
11713    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11714    ;;
11715  *)
11716    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11717    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11718    ;;
11719  esac
11720  ;;
11721
11722interix[3-9]*)
11723  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11724  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11725  ;;
11726
11727irix5* | irix6* | nonstopux*)
11728  case $LD in
11729  *-32|*"-32 ") libmagic=32-bit;;
11730  *-n32|*"-n32 ") libmagic=N32;;
11731  *-64|*"-64 ") libmagic=64-bit;;
11732  *) libmagic=never-match;;
11733  esac
11734  lt_cv_deplibs_check_method=pass_all
11735  ;;
11736
11737# This must be glibc/ELF.
11738linux* | k*bsd*-gnu | kopensolaris*-gnu)
11739  lt_cv_deplibs_check_method=pass_all
11740  ;;
11741
11742netbsd* | netbsdelf*-gnu)
11743  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11744    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11745  else
11746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11747  fi
11748  ;;
11749
11750newos6*)
11751  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11752  lt_cv_file_magic_cmd=/usr/bin/file
11753  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11754  ;;
11755
11756*nto* | *qnx*)
11757  lt_cv_deplibs_check_method=pass_all
11758  ;;
11759
11760openbsd*)
11761  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11762    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11763  else
11764    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11765  fi
11766  ;;
11767
11768osf3* | osf4* | osf5*)
11769  lt_cv_deplibs_check_method=pass_all
11770  ;;
11771
11772rdos*)
11773  lt_cv_deplibs_check_method=pass_all
11774  ;;
11775
11776solaris*)
11777  lt_cv_deplibs_check_method=pass_all
11778  ;;
11779
11780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11781  lt_cv_deplibs_check_method=pass_all
11782  ;;
11783
11784sysv4 | sysv4.3*)
11785  case $host_vendor in
11786  motorola)
11787    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]'
11788    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11789    ;;
11790  ncr)
11791    lt_cv_deplibs_check_method=pass_all
11792    ;;
11793  sequent)
11794    lt_cv_file_magic_cmd='/bin/file'
11795    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11796    ;;
11797  sni)
11798    lt_cv_file_magic_cmd='/bin/file'
11799    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11800    lt_cv_file_magic_test_file=/lib/libc.so
11801    ;;
11802  siemens)
11803    lt_cv_deplibs_check_method=pass_all
11804    ;;
11805  pc)
11806    lt_cv_deplibs_check_method=pass_all
11807    ;;
11808  esac
11809  ;;
11810
11811tpf*)
11812  lt_cv_deplibs_check_method=pass_all
11813  ;;
11814esac
11815
11816fi
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11818$as_echo "$lt_cv_deplibs_check_method" >&6; }
11819
11820file_magic_glob=
11821want_nocaseglob=no
11822if test "$build" = "$host"; then
11823  case $host_os in
11824  mingw* | pw32*)
11825    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11826      want_nocaseglob=yes
11827    else
11828      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11829    fi
11830    ;;
11831  esac
11832fi
11833
11834file_magic_cmd=$lt_cv_file_magic_cmd
11835deplibs_check_method=$lt_cv_deplibs_check_method
11836test -z "$deplibs_check_method" && deplibs_check_method=unknown
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859if test -n "$ac_tool_prefix"; then
11860  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if ${ac_cv_prog_DLLTOOL+:} false; then :
11865  $as_echo_n "(cached) " >&6
11866else
11867  if test -n "$DLLTOOL"; then
11868  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873  IFS=$as_save_IFS
11874  test -z "$as_dir" && as_dir=.
11875    for ac_exec_ext in '' $ac_executable_extensions; do
11876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879    break 2
11880  fi
11881done
11882  done
11883IFS=$as_save_IFS
11884
11885fi
11886fi
11887DLLTOOL=$ac_cv_prog_DLLTOOL
11888if test -n "$DLLTOOL"; then
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11890$as_echo "$DLLTOOL" >&6; }
11891else
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
11894fi
11895
11896
11897fi
11898if test -z "$ac_cv_prog_DLLTOOL"; then
11899  ac_ct_DLLTOOL=$DLLTOOL
11900  # Extract the first word of "dlltool", so it can be a program name with args.
11901set dummy dlltool; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11905  $as_echo_n "(cached) " >&6
11906else
11907  if test -n "$ac_ct_DLLTOOL"; then
11908  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913  IFS=$as_save_IFS
11914  test -z "$as_dir" && as_dir=.
11915    for ac_exec_ext in '' $ac_executable_extensions; do
11916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919    break 2
11920  fi
11921done
11922  done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11928if test -n "$ac_ct_DLLTOOL"; then
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11930$as_echo "$ac_ct_DLLTOOL" >&6; }
11931else
11932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936  if test "x$ac_ct_DLLTOOL" = x; then
11937    DLLTOOL="false"
11938  else
11939    case $cross_compiling:$ac_tool_warned in
11940yes:)
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943ac_tool_warned=yes ;;
11944esac
11945    DLLTOOL=$ac_ct_DLLTOOL
11946  fi
11947else
11948  DLLTOOL="$ac_cv_prog_DLLTOOL"
11949fi
11950
11951test -z "$DLLTOOL" && DLLTOOL=dlltool
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11963$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11964if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11965  $as_echo_n "(cached) " >&6
11966else
11967  lt_cv_sharedlib_from_linklib_cmd='unknown'
11968
11969case $host_os in
11970cygwin* | mingw* | pw32* | cegcc*)
11971  # two different shell functions defined in ltmain.sh
11972  # decide which to use based on capabilities of $DLLTOOL
11973  case `$DLLTOOL --help 2>&1` in
11974  *--identify-strict*)
11975    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11976    ;;
11977  *)
11978    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11979    ;;
11980  esac
11981  ;;
11982*)
11983  # fallback: assume linklib IS sharedlib
11984  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11985  ;;
11986esac
11987
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11990$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11991sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11992test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11993
11994
11995
11996
11997
11998
11999
12000if test -n "$ac_tool_prefix"; then
12001  for ac_prog in ar
12002  do
12003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006$as_echo_n "checking for $ac_word... " >&6; }
12007if ${ac_cv_prog_AR+:} false; then :
12008  $as_echo_n "(cached) " >&6
12009else
12010  if test -n "$AR"; then
12011  ac_cv_prog_AR="$AR" # Let the user override the test.
12012else
12013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014for as_dir in $PATH
12015do
12016  IFS=$as_save_IFS
12017  test -z "$as_dir" && as_dir=.
12018    for ac_exec_ext in '' $ac_executable_extensions; do
12019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022    break 2
12023  fi
12024done
12025  done
12026IFS=$as_save_IFS
12027
12028fi
12029fi
12030AR=$ac_cv_prog_AR
12031if test -n "$AR"; then
12032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12033$as_echo "$AR" >&6; }
12034else
12035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
12037fi
12038
12039
12040    test -n "$AR" && break
12041  done
12042fi
12043if test -z "$AR"; then
12044  ac_ct_AR=$AR
12045  for ac_prog in ar
12046do
12047  # Extract the first word of "$ac_prog", so it can be a program name with args.
12048set dummy $ac_prog; ac_word=$2
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
12051if ${ac_cv_prog_ac_ct_AR+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  if test -n "$ac_ct_AR"; then
12055  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12056else
12057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060  IFS=$as_save_IFS
12061  test -z "$as_dir" && as_dir=.
12062    for ac_exec_ext in '' $ac_executable_extensions; do
12063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064    ac_cv_prog_ac_ct_AR="$ac_prog"
12065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066    break 2
12067  fi
12068done
12069  done
12070IFS=$as_save_IFS
12071
12072fi
12073fi
12074ac_ct_AR=$ac_cv_prog_ac_ct_AR
12075if test -n "$ac_ct_AR"; then
12076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12077$as_echo "$ac_ct_AR" >&6; }
12078else
12079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
12081fi
12082
12083
12084  test -n "$ac_ct_AR" && break
12085done
12086
12087  if test "x$ac_ct_AR" = x; then
12088    AR="false"
12089  else
12090    case $cross_compiling:$ac_tool_warned in
12091yes:)
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12094ac_tool_warned=yes ;;
12095esac
12096    AR=$ac_ct_AR
12097  fi
12098fi
12099
12100: ${AR=ar}
12101: ${AR_FLAGS=cru}
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12114$as_echo_n "checking for archiver @FILE support... " >&6; }
12115if ${lt_cv_ar_at_file+:} false; then :
12116  $as_echo_n "(cached) " >&6
12117else
12118  lt_cv_ar_at_file=no
12119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h.  */
12121
12122int
12123main ()
12124{
12125
12126  ;
12127  return 0;
12128}
12129_ACEOF
12130if ac_fn_c_try_compile "$LINENO"; then :
12131  echo conftest.$ac_objext > conftest.lst
12132      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12133      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12134  (eval $lt_ar_try) 2>&5
12135  ac_status=$?
12136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12137  test $ac_status = 0; }
12138      if test "$ac_status" -eq 0; then
12139	# Ensure the archiver fails upon bogus file names.
12140	rm -f conftest.$ac_objext libconftest.a
12141	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12142  (eval $lt_ar_try) 2>&5
12143  ac_status=$?
12144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145  test $ac_status = 0; }
12146	if test "$ac_status" -ne 0; then
12147          lt_cv_ar_at_file=@
12148        fi
12149      fi
12150      rm -f conftest.* libconftest.a
12151
12152fi
12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154
12155fi
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12157$as_echo "$lt_cv_ar_at_file" >&6; }
12158
12159if test "x$lt_cv_ar_at_file" = xno; then
12160  archiver_list_spec=
12161else
12162  archiver_list_spec=$lt_cv_ar_at_file
12163fi
12164
12165
12166
12167
12168
12169
12170
12171if test -n "$ac_tool_prefix"; then
12172  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12173set dummy ${ac_tool_prefix}strip; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if ${ac_cv_prog_STRIP+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  if test -n "$STRIP"; then
12180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12181else
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185  IFS=$as_save_IFS
12186  test -z "$as_dir" && as_dir=.
12187    for ac_exec_ext in '' $ac_executable_extensions; do
12188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191    break 2
12192  fi
12193done
12194  done
12195IFS=$as_save_IFS
12196
12197fi
12198fi
12199STRIP=$ac_cv_prog_STRIP
12200if test -n "$STRIP"; then
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12202$as_echo "$STRIP" >&6; }
12203else
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209fi
12210if test -z "$ac_cv_prog_STRIP"; then
12211  ac_ct_STRIP=$STRIP
12212  # Extract the first word of "strip", so it can be a program name with args.
12213set dummy strip; ac_word=$2
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215$as_echo_n "checking for $ac_word... " >&6; }
12216if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  if test -n "$ac_ct_STRIP"; then
12220  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12221else
12222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225  IFS=$as_save_IFS
12226  test -z "$as_dir" && as_dir=.
12227    for ac_exec_ext in '' $ac_executable_extensions; do
12228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12229    ac_cv_prog_ac_ct_STRIP="strip"
12230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231    break 2
12232  fi
12233done
12234  done
12235IFS=$as_save_IFS
12236
12237fi
12238fi
12239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12240if test -n "$ac_ct_STRIP"; then
12241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12242$as_echo "$ac_ct_STRIP" >&6; }
12243else
12244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246fi
12247
12248  if test "x$ac_ct_STRIP" = x; then
12249    STRIP=":"
12250  else
12251    case $cross_compiling:$ac_tool_warned in
12252yes:)
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12255ac_tool_warned=yes ;;
12256esac
12257    STRIP=$ac_ct_STRIP
12258  fi
12259else
12260  STRIP="$ac_cv_prog_STRIP"
12261fi
12262
12263test -z "$STRIP" && STRIP=:
12264
12265
12266
12267
12268
12269
12270if test -n "$ac_tool_prefix"; then
12271  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12272set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
12275if ${ac_cv_prog_RANLIB+:} false; then :
12276  $as_echo_n "(cached) " >&6
12277else
12278  if test -n "$RANLIB"; then
12279  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12280else
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284  IFS=$as_save_IFS
12285  test -z "$as_dir" && as_dir=.
12286    for ac_exec_ext in '' $ac_executable_extensions; do
12287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290    break 2
12291  fi
12292done
12293  done
12294IFS=$as_save_IFS
12295
12296fi
12297fi
12298RANLIB=$ac_cv_prog_RANLIB
12299if test -n "$RANLIB"; then
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12301$as_echo "$RANLIB" >&6; }
12302else
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
12305fi
12306
12307
12308fi
12309if test -z "$ac_cv_prog_RANLIB"; then
12310  ac_ct_RANLIB=$RANLIB
12311  # Extract the first word of "ranlib", so it can be a program name with args.
12312set dummy ranlib; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12316  $as_echo_n "(cached) " >&6
12317else
12318  if test -n "$ac_ct_RANLIB"; then
12319  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324  IFS=$as_save_IFS
12325  test -z "$as_dir" && as_dir=.
12326    for ac_exec_ext in '' $ac_executable_extensions; do
12327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12328    ac_cv_prog_ac_ct_RANLIB="ranlib"
12329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330    break 2
12331  fi
12332done
12333  done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12339if test -n "$ac_ct_RANLIB"; then
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12341$as_echo "$ac_ct_RANLIB" >&6; }
12342else
12343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347  if test "x$ac_ct_RANLIB" = x; then
12348    RANLIB=":"
12349  else
12350    case $cross_compiling:$ac_tool_warned in
12351yes:)
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12354ac_tool_warned=yes ;;
12355esac
12356    RANLIB=$ac_ct_RANLIB
12357  fi
12358else
12359  RANLIB="$ac_cv_prog_RANLIB"
12360fi
12361
12362test -z "$RANLIB" && RANLIB=:
12363
12364
12365
12366
12367
12368
12369# Determine commands to create old-style static archives.
12370old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12371old_postinstall_cmds='chmod 644 $oldlib'
12372old_postuninstall_cmds=
12373
12374if test -n "$RANLIB"; then
12375  case $host_os in
12376  openbsd*)
12377    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12378    ;;
12379  *)
12380    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12381    ;;
12382  esac
12383  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12384fi
12385
12386case $host_os in
12387  darwin*)
12388    lock_old_archive_extraction=yes ;;
12389  *)
12390    lock_old_archive_extraction=no ;;
12391esac
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431# If no C compiler was specified, use CC.
12432LTCC=${LTCC-"$CC"}
12433
12434# If no C compiler flags were specified, use CFLAGS.
12435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12436
12437# Allow CC to be a program name with arguments.
12438compiler=$CC
12439
12440
12441# Check for command to grab the raw symbol name followed by C symbol from nm.
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12443$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12444if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12445  $as_echo_n "(cached) " >&6
12446else
12447
12448# These are sane defaults that work on at least a few old systems.
12449# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12450
12451# Character class describing NM global symbol codes.
12452symcode='[BCDEGRST]'
12453
12454# Regexp to match symbols that can be accessed directly from C.
12455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12456
12457# Define system-specific variables.
12458case $host_os in
12459aix*)
12460  symcode='[BCDT]'
12461  ;;
12462cygwin* | mingw* | pw32* | cegcc*)
12463  symcode='[ABCDGISTW]'
12464  ;;
12465hpux*)
12466  if test "$host_cpu" = ia64; then
12467    symcode='[ABCDEGRST]'
12468  fi
12469  ;;
12470irix* | nonstopux*)
12471  symcode='[BCDEGRST]'
12472  ;;
12473osf*)
12474  symcode='[BCDEGQRST]'
12475  ;;
12476solaris*)
12477  symcode='[BDRT]'
12478  ;;
12479sco3.2v5*)
12480  symcode='[DT]'
12481  ;;
12482sysv4.2uw2*)
12483  symcode='[DT]'
12484  ;;
12485sysv5* | sco5v6* | unixware* | OpenUNIX*)
12486  symcode='[ABDT]'
12487  ;;
12488sysv4)
12489  symcode='[DFNSTU]'
12490  ;;
12491esac
12492
12493# If we're using GNU nm, then use its standard symbol codes.
12494case `$NM -V 2>&1` in
12495*GNU* | *'with BFD'*)
12496  symcode='[ABCDGIRSTW]' ;;
12497esac
12498
12499# Transform an extracted symbol line into a proper C declaration.
12500# Some systems (esp. on ia64) link data and code symbols differently,
12501# so use this general approach.
12502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12503
12504# Transform an extracted symbol line into symbol name and symbol address
12505lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12506lt_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'"
12507
12508# Handle CRLF in mingw tool chain
12509opt_cr=
12510case $build_os in
12511mingw*)
12512  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12513  ;;
12514esac
12515
12516# Try without a prefix underscore, then with it.
12517for ac_symprfx in "" "_"; do
12518
12519  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12520  symxfrm="\\1 $ac_symprfx\\2 \\2"
12521
12522  # Write the raw and C identifiers.
12523  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12524    # Fake it for dumpbin and say T for any non-static function
12525    # and D for any global variable.
12526    # Also find C++ and __fastcall symbols from MSVC++,
12527    # which start with @ or ?.
12528    lt_cv_sys_global_symbol_pipe="$AWK '"\
12529"     {last_section=section; section=\$ 3};"\
12530"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12531"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12532"     \$ 0!~/External *\|/{next};"\
12533"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12534"     {if(hide[section]) next};"\
12535"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12536"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12537"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12538"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12539"     ' prfx=^$ac_symprfx"
12540  else
12541    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12542  fi
12543  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12544
12545  # Check to see that the pipe works correctly.
12546  pipe_works=no
12547
12548  rm -f conftest*
12549  cat > conftest.$ac_ext <<_LT_EOF
12550#ifdef __cplusplus
12551extern "C" {
12552#endif
12553char nm_test_var;
12554void nm_test_func(void);
12555void nm_test_func(void){}
12556#ifdef __cplusplus
12557}
12558#endif
12559int main(){nm_test_var='a';nm_test_func();return(0);}
12560_LT_EOF
12561
12562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12563  (eval $ac_compile) 2>&5
12564  ac_status=$?
12565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566  test $ac_status = 0; }; then
12567    # Now try to grab the symbols.
12568    nlist=conftest.nm
12569    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12570  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12571  ac_status=$?
12572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573  test $ac_status = 0; } && test -s "$nlist"; then
12574      # Try sorting and uniquifying the output.
12575      if sort "$nlist" | uniq > "$nlist"T; then
12576	mv -f "$nlist"T "$nlist"
12577      else
12578	rm -f "$nlist"T
12579      fi
12580
12581      # Make sure that we snagged all the symbols we need.
12582      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12583	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12584	  cat <<_LT_EOF > conftest.$ac_ext
12585/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12586#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12587/* DATA imports from DLLs on WIN32 con't be const, because runtime
12588   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12589# define LT_DLSYM_CONST
12590#elif defined(__osf__)
12591/* This system does not cope well with relocations in const data.  */
12592# define LT_DLSYM_CONST
12593#else
12594# define LT_DLSYM_CONST const
12595#endif
12596
12597#ifdef __cplusplus
12598extern "C" {
12599#endif
12600
12601_LT_EOF
12602	  # Now generate the symbol file.
12603	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12604
12605	  cat <<_LT_EOF >> conftest.$ac_ext
12606
12607/* The mapping between symbol names and symbols.  */
12608LT_DLSYM_CONST struct {
12609  const char *name;
12610  void       *address;
12611}
12612lt__PROGRAM__LTX_preloaded_symbols[] =
12613{
12614  { "@PROGRAM@", (void *) 0 },
12615_LT_EOF
12616	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12617	  cat <<\_LT_EOF >> conftest.$ac_ext
12618  {0, (void *) 0}
12619};
12620
12621/* This works around a problem in FreeBSD linker */
12622#ifdef FREEBSD_WORKAROUND
12623static const void *lt_preloaded_setup() {
12624  return lt__PROGRAM__LTX_preloaded_symbols;
12625}
12626#endif
12627
12628#ifdef __cplusplus
12629}
12630#endif
12631_LT_EOF
12632	  # Now try linking the two files.
12633	  mv conftest.$ac_objext conftstm.$ac_objext
12634	  lt_globsym_save_LIBS=$LIBS
12635	  lt_globsym_save_CFLAGS=$CFLAGS
12636	  LIBS="conftstm.$ac_objext"
12637	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12638	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12639  (eval $ac_link) 2>&5
12640  ac_status=$?
12641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12642  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12643	    pipe_works=yes
12644	  fi
12645	  LIBS=$lt_globsym_save_LIBS
12646	  CFLAGS=$lt_globsym_save_CFLAGS
12647	else
12648	  echo "cannot find nm_test_func in $nlist" >&5
12649	fi
12650      else
12651	echo "cannot find nm_test_var in $nlist" >&5
12652      fi
12653    else
12654      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12655    fi
12656  else
12657    echo "$progname: failed program was:" >&5
12658    cat conftest.$ac_ext >&5
12659  fi
12660  rm -rf conftest* conftst*
12661
12662  # Do not use the global_symbol_pipe unless it works.
12663  if test "$pipe_works" = yes; then
12664    break
12665  else
12666    lt_cv_sys_global_symbol_pipe=
12667  fi
12668done
12669
12670fi
12671
12672if test -z "$lt_cv_sys_global_symbol_pipe"; then
12673  lt_cv_sys_global_symbol_to_cdecl=
12674fi
12675if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12677$as_echo "failed" >&6; }
12678else
12679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12680$as_echo "ok" >&6; }
12681fi
12682
12683# Response file support.
12684if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12685  nm_file_list_spec='@'
12686elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12687  nm_file_list_spec='@'
12688fi
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12717$as_echo_n "checking for sysroot... " >&6; }
12718
12719# Check whether --with-sysroot was given.
12720if test "${with_sysroot+set}" = set; then :
12721  withval=$with_sysroot;
12722else
12723  with_sysroot=no
12724fi
12725
12726
12727lt_sysroot=
12728case ${with_sysroot} in #(
12729 yes)
12730   if test "$GCC" = yes; then
12731     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12732   fi
12733   ;; #(
12734 /*)
12735   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12736   ;; #(
12737 no|'')
12738   ;; #(
12739 *)
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12741$as_echo "${with_sysroot}" >&6; }
12742   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12743   ;;
12744esac
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12747$as_echo "${lt_sysroot:-no}" >&6; }
12748
12749
12750
12751
12752
12753# Check whether --enable-libtool-lock was given.
12754if test "${enable_libtool_lock+set}" = set; then :
12755  enableval=$enable_libtool_lock;
12756fi
12757
12758test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12759
12760# Some flags need to be propagated to the compiler or linker for good
12761# libtool support.
12762case $host in
12763ia64-*-hpux*)
12764  # Find out which ABI we are using.
12765  echo 'int i;' > conftest.$ac_ext
12766  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12767  (eval $ac_compile) 2>&5
12768  ac_status=$?
12769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770  test $ac_status = 0; }; then
12771    case `/usr/bin/file conftest.$ac_objext` in
12772      *ELF-32*)
12773	HPUX_IA64_MODE="32"
12774	;;
12775      *ELF-64*)
12776	HPUX_IA64_MODE="64"
12777	;;
12778    esac
12779  fi
12780  rm -rf conftest*
12781  ;;
12782*-*-irix6*)
12783  # Find out which ABI we are using.
12784  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12785  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12786  (eval $ac_compile) 2>&5
12787  ac_status=$?
12788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12789  test $ac_status = 0; }; then
12790    if test "$lt_cv_prog_gnu_ld" = yes; then
12791      case `/usr/bin/file conftest.$ac_objext` in
12792	*32-bit*)
12793	  LD="${LD-ld} -melf32bsmip"
12794	  ;;
12795	*N32*)
12796	  LD="${LD-ld} -melf32bmipn32"
12797	  ;;
12798	*64-bit*)
12799	  LD="${LD-ld} -melf64bmip"
12800	;;
12801      esac
12802    else
12803      case `/usr/bin/file conftest.$ac_objext` in
12804	*32-bit*)
12805	  LD="${LD-ld} -32"
12806	  ;;
12807	*N32*)
12808	  LD="${LD-ld} -n32"
12809	  ;;
12810	*64-bit*)
12811	  LD="${LD-ld} -64"
12812	  ;;
12813      esac
12814    fi
12815  fi
12816  rm -rf conftest*
12817  ;;
12818
12819x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12820s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12821  # Find out which ABI we are using.
12822  echo 'int i;' > conftest.$ac_ext
12823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12824  (eval $ac_compile) 2>&5
12825  ac_status=$?
12826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12827  test $ac_status = 0; }; then
12828    case `/usr/bin/file conftest.o` in
12829      *32-bit*)
12830	case $host in
12831	  x86_64-*kfreebsd*-gnu)
12832	    LD="${LD-ld} -m elf_i386_fbsd"
12833	    ;;
12834	  x86_64-*linux*)
12835	    LD="${LD-ld} -m elf_i386"
12836	    ;;
12837	  ppc64-*linux*|powerpc64-*linux*)
12838	    LD="${LD-ld} -m elf32ppclinux"
12839	    ;;
12840	  s390x-*linux*)
12841	    LD="${LD-ld} -m elf_s390"
12842	    ;;
12843	  sparc64-*linux*)
12844	    LD="${LD-ld} -m elf32_sparc"
12845	    ;;
12846	esac
12847	;;
12848      *64-bit*)
12849	case $host in
12850	  x86_64-*kfreebsd*-gnu)
12851	    LD="${LD-ld} -m elf_x86_64_fbsd"
12852	    ;;
12853	  x86_64-*linux*)
12854	    LD="${LD-ld} -m elf_x86_64"
12855	    ;;
12856	  ppc*-*linux*|powerpc*-*linux*)
12857	    LD="${LD-ld} -m elf64ppc"
12858	    ;;
12859	  s390*-*linux*|s390*-*tpf*)
12860	    LD="${LD-ld} -m elf64_s390"
12861	    ;;
12862	  sparc*-*linux*)
12863	    LD="${LD-ld} -m elf64_sparc"
12864	    ;;
12865	esac
12866	;;
12867    esac
12868  fi
12869  rm -rf conftest*
12870  ;;
12871
12872*-*-sco3.2v5*)
12873  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12874  SAVE_CFLAGS="$CFLAGS"
12875  CFLAGS="$CFLAGS -belf"
12876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12877$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12878if ${lt_cv_cc_needs_belf+:} false; then :
12879  $as_echo_n "(cached) " >&6
12880else
12881  ac_ext=c
12882ac_cpp='$CPP $CPPFLAGS'
12883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12885ac_compiler_gnu=$ac_cv_c_compiler_gnu
12886
12887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888/* end confdefs.h.  */
12889
12890int
12891main ()
12892{
12893
12894  ;
12895  return 0;
12896}
12897_ACEOF
12898if ac_fn_c_try_link "$LINENO"; then :
12899  lt_cv_cc_needs_belf=yes
12900else
12901  lt_cv_cc_needs_belf=no
12902fi
12903rm -f core conftest.err conftest.$ac_objext \
12904    conftest$ac_exeext conftest.$ac_ext
12905     ac_ext=c
12906ac_cpp='$CPP $CPPFLAGS'
12907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12913$as_echo "$lt_cv_cc_needs_belf" >&6; }
12914  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12915    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12916    CFLAGS="$SAVE_CFLAGS"
12917  fi
12918  ;;
12919*-*solaris*)
12920  # Find out which ABI we are using.
12921  echo 'int i;' > conftest.$ac_ext
12922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12923  (eval $ac_compile) 2>&5
12924  ac_status=$?
12925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926  test $ac_status = 0; }; then
12927    case `/usr/bin/file conftest.o` in
12928    *64-bit*)
12929      case $lt_cv_prog_gnu_ld in
12930      yes*)
12931        case $host in
12932        i?86-*-solaris*)
12933          LD="${LD-ld} -m elf_x86_64"
12934          ;;
12935        sparc*-*-solaris*)
12936          LD="${LD-ld} -m elf64_sparc"
12937          ;;
12938        esac
12939        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12940        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12941          LD="${LD-ld}_sol2"
12942        fi
12943        ;;
12944      *)
12945	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12946	  LD="${LD-ld} -64"
12947	fi
12948	;;
12949      esac
12950      ;;
12951    esac
12952  fi
12953  rm -rf conftest*
12954  ;;
12955esac
12956
12957need_locks="$enable_libtool_lock"
12958
12959if test -n "$ac_tool_prefix"; then
12960  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12961set dummy ${ac_tool_prefix}mt; ac_word=$2
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963$as_echo_n "checking for $ac_word... " >&6; }
12964if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  if test -n "$MANIFEST_TOOL"; then
12968  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12969else
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973  IFS=$as_save_IFS
12974  test -z "$as_dir" && as_dir=.
12975    for ac_exec_ext in '' $ac_executable_extensions; do
12976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979    break 2
12980  fi
12981done
12982  done
12983IFS=$as_save_IFS
12984
12985fi
12986fi
12987MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12988if test -n "$MANIFEST_TOOL"; then
12989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12990$as_echo "$MANIFEST_TOOL" >&6; }
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
12994fi
12995
12996
12997fi
12998if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12999  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13000  # Extract the first word of "mt", so it can be a program name with args.
13001set dummy mt; ac_word=$2
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003$as_echo_n "checking for $ac_word... " >&6; }
13004if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13005  $as_echo_n "(cached) " >&6
13006else
13007  if test -n "$ac_ct_MANIFEST_TOOL"; then
13008  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13009else
13010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011for as_dir in $PATH
13012do
13013  IFS=$as_save_IFS
13014  test -z "$as_dir" && as_dir=.
13015    for ac_exec_ext in '' $ac_executable_extensions; do
13016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019    break 2
13020  fi
13021done
13022  done
13023IFS=$as_save_IFS
13024
13025fi
13026fi
13027ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13028if test -n "$ac_ct_MANIFEST_TOOL"; then
13029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13030$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13031else
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
13034fi
13035
13036  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13037    MANIFEST_TOOL=":"
13038  else
13039    case $cross_compiling:$ac_tool_warned in
13040yes:)
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13043ac_tool_warned=yes ;;
13044esac
13045    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13046  fi
13047else
13048  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13049fi
13050
13051test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13053$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13054if ${lt_cv_path_mainfest_tool+:} false; then :
13055  $as_echo_n "(cached) " >&6
13056else
13057  lt_cv_path_mainfest_tool=no
13058  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13059  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13060  cat conftest.err >&5
13061  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13062    lt_cv_path_mainfest_tool=yes
13063  fi
13064  rm -f conftest*
13065fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13067$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13068if test "x$lt_cv_path_mainfest_tool" != xyes; then
13069  MANIFEST_TOOL=:
13070fi
13071
13072
13073
13074
13075
13076
13077  case $host_os in
13078    rhapsody* | darwin*)
13079    if test -n "$ac_tool_prefix"; then
13080  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13081set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083$as_echo_n "checking for $ac_word... " >&6; }
13084if ${ac_cv_prog_DSYMUTIL+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  if test -n "$DSYMUTIL"; then
13088  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13089else
13090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $PATH
13092do
13093  IFS=$as_save_IFS
13094  test -z "$as_dir" && as_dir=.
13095    for ac_exec_ext in '' $ac_executable_extensions; do
13096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13097    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099    break 2
13100  fi
13101done
13102  done
13103IFS=$as_save_IFS
13104
13105fi
13106fi
13107DSYMUTIL=$ac_cv_prog_DSYMUTIL
13108if test -n "$DSYMUTIL"; then
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13110$as_echo "$DSYMUTIL" >&6; }
13111else
13112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
13114fi
13115
13116
13117fi
13118if test -z "$ac_cv_prog_DSYMUTIL"; then
13119  ac_ct_DSYMUTIL=$DSYMUTIL
13120  # Extract the first word of "dsymutil", so it can be a program name with args.
13121set dummy dsymutil; ac_word=$2
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123$as_echo_n "checking for $ac_word... " >&6; }
13124if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13125  $as_echo_n "(cached) " >&6
13126else
13127  if test -n "$ac_ct_DSYMUTIL"; then
13128  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13129else
13130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131for as_dir in $PATH
13132do
13133  IFS=$as_save_IFS
13134  test -z "$as_dir" && as_dir=.
13135    for ac_exec_ext in '' $ac_executable_extensions; do
13136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139    break 2
13140  fi
13141done
13142  done
13143IFS=$as_save_IFS
13144
13145fi
13146fi
13147ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13148if test -n "$ac_ct_DSYMUTIL"; then
13149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13150$as_echo "$ac_ct_DSYMUTIL" >&6; }
13151else
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
13154fi
13155
13156  if test "x$ac_ct_DSYMUTIL" = x; then
13157    DSYMUTIL=":"
13158  else
13159    case $cross_compiling:$ac_tool_warned in
13160yes:)
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13163ac_tool_warned=yes ;;
13164esac
13165    DSYMUTIL=$ac_ct_DSYMUTIL
13166  fi
13167else
13168  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13169fi
13170
13171    if test -n "$ac_tool_prefix"; then
13172  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13173set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if ${ac_cv_prog_NMEDIT+:} false; then :
13177  $as_echo_n "(cached) " >&6
13178else
13179  if test -n "$NMEDIT"; then
13180  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  test -z "$as_dir" && as_dir=.
13187    for ac_exec_ext in '' $ac_executable_extensions; do
13188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191    break 2
13192  fi
13193done
13194  done
13195IFS=$as_save_IFS
13196
13197fi
13198fi
13199NMEDIT=$ac_cv_prog_NMEDIT
13200if test -n "$NMEDIT"; then
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13202$as_echo "$NMEDIT" >&6; }
13203else
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
13206fi
13207
13208
13209fi
13210if test -z "$ac_cv_prog_NMEDIT"; then
13211  ac_ct_NMEDIT=$NMEDIT
13212  # Extract the first word of "nmedit", so it can be a program name with args.
13213set dummy nmedit; ac_word=$2
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215$as_echo_n "checking for $ac_word... " >&6; }
13216if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  if test -n "$ac_ct_NMEDIT"; then
13220  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13221else
13222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225  IFS=$as_save_IFS
13226  test -z "$as_dir" && as_dir=.
13227    for ac_exec_ext in '' $ac_executable_extensions; do
13228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231    break 2
13232  fi
13233done
13234  done
13235IFS=$as_save_IFS
13236
13237fi
13238fi
13239ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13240if test -n "$ac_ct_NMEDIT"; then
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13242$as_echo "$ac_ct_NMEDIT" >&6; }
13243else
13244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
13246fi
13247
13248  if test "x$ac_ct_NMEDIT" = x; then
13249    NMEDIT=":"
13250  else
13251    case $cross_compiling:$ac_tool_warned in
13252yes:)
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13255ac_tool_warned=yes ;;
13256esac
13257    NMEDIT=$ac_ct_NMEDIT
13258  fi
13259else
13260  NMEDIT="$ac_cv_prog_NMEDIT"
13261fi
13262
13263    if test -n "$ac_tool_prefix"; then
13264  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13265set dummy ${ac_tool_prefix}lipo; ac_word=$2
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if ${ac_cv_prog_LIPO+:} false; then :
13269  $as_echo_n "(cached) " >&6
13270else
13271  if test -n "$LIPO"; then
13272  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277  IFS=$as_save_IFS
13278  test -z "$as_dir" && as_dir=.
13279    for ac_exec_ext in '' $ac_executable_extensions; do
13280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283    break 2
13284  fi
13285done
13286  done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291LIPO=$ac_cv_prog_LIPO
13292if test -n "$LIPO"; then
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13294$as_echo "$LIPO" >&6; }
13295else
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298fi
13299
13300
13301fi
13302if test -z "$ac_cv_prog_LIPO"; then
13303  ac_ct_LIPO=$LIPO
13304  # Extract the first word of "lipo", so it can be a program name with args.
13305set dummy lipo; ac_word=$2
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307$as_echo_n "checking for $ac_word... " >&6; }
13308if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13309  $as_echo_n "(cached) " >&6
13310else
13311  if test -n "$ac_ct_LIPO"; then
13312  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13313else
13314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317  IFS=$as_save_IFS
13318  test -z "$as_dir" && as_dir=.
13319    for ac_exec_ext in '' $ac_executable_extensions; do
13320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321    ac_cv_prog_ac_ct_LIPO="lipo"
13322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323    break 2
13324  fi
13325done
13326  done
13327IFS=$as_save_IFS
13328
13329fi
13330fi
13331ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13332if test -n "$ac_ct_LIPO"; then
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13334$as_echo "$ac_ct_LIPO" >&6; }
13335else
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338fi
13339
13340  if test "x$ac_ct_LIPO" = x; then
13341    LIPO=":"
13342  else
13343    case $cross_compiling:$ac_tool_warned in
13344yes:)
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13347ac_tool_warned=yes ;;
13348esac
13349    LIPO=$ac_ct_LIPO
13350  fi
13351else
13352  LIPO="$ac_cv_prog_LIPO"
13353fi
13354
13355    if test -n "$ac_tool_prefix"; then
13356  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13357set dummy ${ac_tool_prefix}otool; ac_word=$2
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359$as_echo_n "checking for $ac_word... " >&6; }
13360if ${ac_cv_prog_OTOOL+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  if test -n "$OTOOL"; then
13364  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13365else
13366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367for as_dir in $PATH
13368do
13369  IFS=$as_save_IFS
13370  test -z "$as_dir" && as_dir=.
13371    for ac_exec_ext in '' $ac_executable_extensions; do
13372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375    break 2
13376  fi
13377done
13378  done
13379IFS=$as_save_IFS
13380
13381fi
13382fi
13383OTOOL=$ac_cv_prog_OTOOL
13384if test -n "$OTOOL"; then
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13386$as_echo "$OTOOL" >&6; }
13387else
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
13390fi
13391
13392
13393fi
13394if test -z "$ac_cv_prog_OTOOL"; then
13395  ac_ct_OTOOL=$OTOOL
13396  # Extract the first word of "otool", so it can be a program name with args.
13397set dummy otool; ac_word=$2
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399$as_echo_n "checking for $ac_word... " >&6; }
13400if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13401  $as_echo_n "(cached) " >&6
13402else
13403  if test -n "$ac_ct_OTOOL"; then
13404  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13405else
13406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407for as_dir in $PATH
13408do
13409  IFS=$as_save_IFS
13410  test -z "$as_dir" && as_dir=.
13411    for ac_exec_ext in '' $ac_executable_extensions; do
13412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413    ac_cv_prog_ac_ct_OTOOL="otool"
13414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415    break 2
13416  fi
13417done
13418  done
13419IFS=$as_save_IFS
13420
13421fi
13422fi
13423ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13424if test -n "$ac_ct_OTOOL"; then
13425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13426$as_echo "$ac_ct_OTOOL" >&6; }
13427else
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
13430fi
13431
13432  if test "x$ac_ct_OTOOL" = x; then
13433    OTOOL=":"
13434  else
13435    case $cross_compiling:$ac_tool_warned in
13436yes:)
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439ac_tool_warned=yes ;;
13440esac
13441    OTOOL=$ac_ct_OTOOL
13442  fi
13443else
13444  OTOOL="$ac_cv_prog_OTOOL"
13445fi
13446
13447    if test -n "$ac_tool_prefix"; then
13448  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13449set dummy ${ac_tool_prefix}otool64; ac_word=$2
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451$as_echo_n "checking for $ac_word... " >&6; }
13452if ${ac_cv_prog_OTOOL64+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455  if test -n "$OTOOL64"; then
13456  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13457else
13458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459for as_dir in $PATH
13460do
13461  IFS=$as_save_IFS
13462  test -z "$as_dir" && as_dir=.
13463    for ac_exec_ext in '' $ac_executable_extensions; do
13464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467    break 2
13468  fi
13469done
13470  done
13471IFS=$as_save_IFS
13472
13473fi
13474fi
13475OTOOL64=$ac_cv_prog_OTOOL64
13476if test -n "$OTOOL64"; then
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13478$as_echo "$OTOOL64" >&6; }
13479else
13480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
13482fi
13483
13484
13485fi
13486if test -z "$ac_cv_prog_OTOOL64"; then
13487  ac_ct_OTOOL64=$OTOOL64
13488  # Extract the first word of "otool64", so it can be a program name with args.
13489set dummy otool64; ac_word=$2
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491$as_echo_n "checking for $ac_word... " >&6; }
13492if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13493  $as_echo_n "(cached) " >&6
13494else
13495  if test -n "$ac_ct_OTOOL64"; then
13496  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13497else
13498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499for as_dir in $PATH
13500do
13501  IFS=$as_save_IFS
13502  test -z "$as_dir" && as_dir=.
13503    for ac_exec_ext in '' $ac_executable_extensions; do
13504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505    ac_cv_prog_ac_ct_OTOOL64="otool64"
13506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507    break 2
13508  fi
13509done
13510  done
13511IFS=$as_save_IFS
13512
13513fi
13514fi
13515ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13516if test -n "$ac_ct_OTOOL64"; then
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13518$as_echo "$ac_ct_OTOOL64" >&6; }
13519else
13520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521$as_echo "no" >&6; }
13522fi
13523
13524  if test "x$ac_ct_OTOOL64" = x; then
13525    OTOOL64=":"
13526  else
13527    case $cross_compiling:$ac_tool_warned in
13528yes:)
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531ac_tool_warned=yes ;;
13532esac
13533    OTOOL64=$ac_ct_OTOOL64
13534  fi
13535else
13536  OTOOL64="$ac_cv_prog_OTOOL64"
13537fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13566$as_echo_n "checking for -single_module linker flag... " >&6; }
13567if ${lt_cv_apple_cc_single_mod+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  lt_cv_apple_cc_single_mod=no
13571      if test -z "${LT_MULTI_MODULE}"; then
13572	# By default we will add the -single_module flag. You can override
13573	# by either setting the environment variable LT_MULTI_MODULE
13574	# non-empty at configure time, or by adding -multi_module to the
13575	# link flags.
13576	rm -rf libconftest.dylib*
13577	echo "int foo(void){return 1;}" > conftest.c
13578	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13579-dynamiclib -Wl,-single_module conftest.c" >&5
13580	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13581	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13582        _lt_result=$?
13583	# If there is a non-empty error log, and "single_module"
13584	# appears in it, assume the flag caused a linker warning
13585        if test -s conftest.err && $GREP single_module conftest.err; then
13586	  cat conftest.err >&5
13587	# Otherwise, if the output was created with a 0 exit code from
13588	# the compiler, it worked.
13589	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13590	  lt_cv_apple_cc_single_mod=yes
13591	else
13592	  cat conftest.err >&5
13593	fi
13594	rm -rf libconftest.dylib*
13595	rm -f conftest.*
13596      fi
13597fi
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13599$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13600
13601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13602$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13603if ${lt_cv_ld_exported_symbols_list+:} false; then :
13604  $as_echo_n "(cached) " >&6
13605else
13606  lt_cv_ld_exported_symbols_list=no
13607      save_LDFLAGS=$LDFLAGS
13608      echo "_main" > conftest.sym
13609      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13610      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612
13613int
13614main ()
13615{
13616
13617  ;
13618  return 0;
13619}
13620_ACEOF
13621if ac_fn_c_try_link "$LINENO"; then :
13622  lt_cv_ld_exported_symbols_list=yes
13623else
13624  lt_cv_ld_exported_symbols_list=no
13625fi
13626rm -f core conftest.err conftest.$ac_objext \
13627    conftest$ac_exeext conftest.$ac_ext
13628	LDFLAGS="$save_LDFLAGS"
13629
13630fi
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13632$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13633
13634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13635$as_echo_n "checking for -force_load linker flag... " >&6; }
13636if ${lt_cv_ld_force_load+:} false; then :
13637  $as_echo_n "(cached) " >&6
13638else
13639  lt_cv_ld_force_load=no
13640      cat > conftest.c << _LT_EOF
13641int forced_loaded() { return 2;}
13642_LT_EOF
13643      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13644      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13645      echo "$AR cru libconftest.a conftest.o" >&5
13646      $AR cru libconftest.a conftest.o 2>&5
13647      echo "$RANLIB libconftest.a" >&5
13648      $RANLIB libconftest.a 2>&5
13649      cat > conftest.c << _LT_EOF
13650int main() { return 0;}
13651_LT_EOF
13652      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13653      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13654      _lt_result=$?
13655      if test -s conftest.err && $GREP force_load conftest.err; then
13656	cat conftest.err >&5
13657      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13658	lt_cv_ld_force_load=yes
13659      else
13660	cat conftest.err >&5
13661      fi
13662        rm -f conftest.err libconftest.a conftest conftest.c
13663        rm -rf conftest.dSYM
13664
13665fi
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13667$as_echo "$lt_cv_ld_force_load" >&6; }
13668    case $host_os in
13669    rhapsody* | darwin1.[012])
13670      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13671    darwin1.*)
13672      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13673    darwin*) # darwin 5.x on
13674      # if running on 10.5 or later, the deployment target defaults
13675      # to the OS version, if on x86, and 10.4, the deployment
13676      # target defaults to 10.4. Don't you love it?
13677      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13678	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13679	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13680	10.[012]*)
13681	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13682	10.*)
13683	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13684      esac
13685    ;;
13686  esac
13687    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13688      _lt_dar_single_mod='$single_module'
13689    fi
13690    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13691      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13692    else
13693      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13694    fi
13695    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13696      _lt_dsymutil='~$DSYMUTIL $lib || :'
13697    else
13698      _lt_dsymutil=
13699    fi
13700    ;;
13701  esac
13702
13703for ac_header in dlfcn.h
13704do :
13705  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13706"
13707if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13708  cat >>confdefs.h <<_ACEOF
13709#define HAVE_DLFCN_H 1
13710_ACEOF
13711
13712fi
13713
13714done
13715
13716
13717
13718
13719
13720# Set options
13721
13722
13723
13724        enable_dlopen=no
13725
13726
13727  enable_win32_dll=no
13728
13729
13730            # Check whether --enable-shared was given.
13731if test "${enable_shared+set}" = set; then :
13732  enableval=$enable_shared; p=${PACKAGE-default}
13733    case $enableval in
13734    yes) enable_shared=yes ;;
13735    no) enable_shared=no ;;
13736    *)
13737      enable_shared=no
13738      # Look at the argument we got.  We use all the common list separators.
13739      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13740      for pkg in $enableval; do
13741	IFS="$lt_save_ifs"
13742	if test "X$pkg" = "X$p"; then
13743	  enable_shared=yes
13744	fi
13745      done
13746      IFS="$lt_save_ifs"
13747      ;;
13748    esac
13749else
13750  enable_shared=yes
13751fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763# Check whether --with-pic was given.
13764if test "${with_pic+set}" = set; then :
13765  withval=$with_pic; lt_p=${PACKAGE-default}
13766    case $withval in
13767    yes|no) pic_mode=$withval ;;
13768    *)
13769      pic_mode=default
13770      # Look at the argument we got.  We use all the common list separators.
13771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13772      for lt_pkg in $withval; do
13773	IFS="$lt_save_ifs"
13774	if test "X$lt_pkg" = "X$lt_p"; then
13775	  pic_mode=yes
13776	fi
13777      done
13778      IFS="$lt_save_ifs"
13779      ;;
13780    esac
13781else
13782  pic_mode=default
13783fi
13784
13785
13786test -z "$pic_mode" && pic_mode=default
13787
13788
13789
13790
13791
13792
13793
13794  # Check whether --enable-fast-install was given.
13795if test "${enable_fast_install+set}" = set; then :
13796  enableval=$enable_fast_install; p=${PACKAGE-default}
13797    case $enableval in
13798    yes) enable_fast_install=yes ;;
13799    no) enable_fast_install=no ;;
13800    *)
13801      enable_fast_install=no
13802      # Look at the argument we got.  We use all the common list separators.
13803      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13804      for pkg in $enableval; do
13805	IFS="$lt_save_ifs"
13806	if test "X$pkg" = "X$p"; then
13807	  enable_fast_install=yes
13808	fi
13809      done
13810      IFS="$lt_save_ifs"
13811      ;;
13812    esac
13813else
13814  enable_fast_install=yes
13815fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827# This can be used to rebuild libtool when needed
13828LIBTOOL_DEPS="$ltmain"
13829
13830# Always use our own libtool.
13831LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862test -z "$LN_S" && LN_S="ln -s"
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877if test -n "${ZSH_VERSION+set}" ; then
13878   setopt NO_GLOB_SUBST
13879fi
13880
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13882$as_echo_n "checking for objdir... " >&6; }
13883if ${lt_cv_objdir+:} false; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  rm -f .libs 2>/dev/null
13887mkdir .libs 2>/dev/null
13888if test -d .libs; then
13889  lt_cv_objdir=.libs
13890else
13891  # MS-DOS does not allow filenames that begin with a dot.
13892  lt_cv_objdir=_libs
13893fi
13894rmdir .libs 2>/dev/null
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13897$as_echo "$lt_cv_objdir" >&6; }
13898objdir=$lt_cv_objdir
13899
13900
13901
13902
13903
13904cat >>confdefs.h <<_ACEOF
13905#define LT_OBJDIR "$lt_cv_objdir/"
13906_ACEOF
13907
13908
13909
13910
13911case $host_os in
13912aix3*)
13913  # AIX sometimes has problems with the GCC collect2 program.  For some
13914  # reason, if we set the COLLECT_NAMES environment variable, the problems
13915  # vanish in a puff of smoke.
13916  if test "X${COLLECT_NAMES+set}" != Xset; then
13917    COLLECT_NAMES=
13918    export COLLECT_NAMES
13919  fi
13920  ;;
13921esac
13922
13923# Global variables:
13924ofile=libtool
13925can_build_shared=yes
13926
13927# All known linkers require a `.a' archive for static linking (except MSVC,
13928# which needs '.lib').
13929libext=a
13930
13931with_gnu_ld="$lt_cv_prog_gnu_ld"
13932
13933old_CC="$CC"
13934old_CFLAGS="$CFLAGS"
13935
13936# Set sane defaults for various variables
13937test -z "$CC" && CC=cc
13938test -z "$LTCC" && LTCC=$CC
13939test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13940test -z "$LD" && LD=ld
13941test -z "$ac_objext" && ac_objext=o
13942
13943for cc_temp in $compiler""; do
13944  case $cc_temp in
13945    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13946    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13947    \-*) ;;
13948    *) break;;
13949  esac
13950done
13951cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13952
13953
13954# Only perform the check for file, if the check method requires it
13955test -z "$MAGIC_CMD" && MAGIC_CMD=file
13956case $deplibs_check_method in
13957file_magic*)
13958  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13960$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13961if ${lt_cv_path_MAGIC_CMD+:} false; then :
13962  $as_echo_n "(cached) " >&6
13963else
13964  case $MAGIC_CMD in
13965[\\/*] |  ?:[\\/]*)
13966  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13967  ;;
13968*)
13969  lt_save_MAGIC_CMD="$MAGIC_CMD"
13970  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13971  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13972  for ac_dir in $ac_dummy; do
13973    IFS="$lt_save_ifs"
13974    test -z "$ac_dir" && ac_dir=.
13975    if test -f $ac_dir/${ac_tool_prefix}file; then
13976      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13977      if test -n "$file_magic_test_file"; then
13978	case $deplibs_check_method in
13979	"file_magic "*)
13980	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13981	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13982	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13983	    $EGREP "$file_magic_regex" > /dev/null; then
13984	    :
13985	  else
13986	    cat <<_LT_EOF 1>&2
13987
13988*** Warning: the command libtool uses to detect shared libraries,
13989*** $file_magic_cmd, produces output that libtool cannot recognize.
13990*** The result is that libtool may fail to recognize shared libraries
13991*** as such.  This will affect the creation of libtool libraries that
13992*** depend on shared libraries, but programs linked with such libtool
13993*** libraries will work regardless of this problem.  Nevertheless, you
13994*** may want to report the problem to your system manager and/or to
13995*** bug-libtool@gnu.org
13996
13997_LT_EOF
13998	  fi ;;
13999	esac
14000      fi
14001      break
14002    fi
14003  done
14004  IFS="$lt_save_ifs"
14005  MAGIC_CMD="$lt_save_MAGIC_CMD"
14006  ;;
14007esac
14008fi
14009
14010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14011if test -n "$MAGIC_CMD"; then
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14013$as_echo "$MAGIC_CMD" >&6; }
14014else
14015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016$as_echo "no" >&6; }
14017fi
14018
14019
14020
14021
14022
14023if test -z "$lt_cv_path_MAGIC_CMD"; then
14024  if test -n "$ac_tool_prefix"; then
14025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14026$as_echo_n "checking for file... " >&6; }
14027if ${lt_cv_path_MAGIC_CMD+:} false; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030  case $MAGIC_CMD in
14031[\\/*] |  ?:[\\/]*)
14032  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14033  ;;
14034*)
14035  lt_save_MAGIC_CMD="$MAGIC_CMD"
14036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14037  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14038  for ac_dir in $ac_dummy; do
14039    IFS="$lt_save_ifs"
14040    test -z "$ac_dir" && ac_dir=.
14041    if test -f $ac_dir/file; then
14042      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14043      if test -n "$file_magic_test_file"; then
14044	case $deplibs_check_method in
14045	"file_magic "*)
14046	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14047	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14048	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14049	    $EGREP "$file_magic_regex" > /dev/null; then
14050	    :
14051	  else
14052	    cat <<_LT_EOF 1>&2
14053
14054*** Warning: the command libtool uses to detect shared libraries,
14055*** $file_magic_cmd, produces output that libtool cannot recognize.
14056*** The result is that libtool may fail to recognize shared libraries
14057*** as such.  This will affect the creation of libtool libraries that
14058*** depend on shared libraries, but programs linked with such libtool
14059*** libraries will work regardless of this problem.  Nevertheless, you
14060*** may want to report the problem to your system manager and/or to
14061*** bug-libtool@gnu.org
14062
14063_LT_EOF
14064	  fi ;;
14065	esac
14066      fi
14067      break
14068    fi
14069  done
14070  IFS="$lt_save_ifs"
14071  MAGIC_CMD="$lt_save_MAGIC_CMD"
14072  ;;
14073esac
14074fi
14075
14076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14077if test -n "$MAGIC_CMD"; then
14078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14079$as_echo "$MAGIC_CMD" >&6; }
14080else
14081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082$as_echo "no" >&6; }
14083fi
14084
14085
14086  else
14087    MAGIC_CMD=:
14088  fi
14089fi
14090
14091  fi
14092  ;;
14093esac
14094
14095# Use C for the default configuration in the libtool script
14096
14097lt_save_CC="$CC"
14098ac_ext=c
14099ac_cpp='$CPP $CPPFLAGS'
14100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14102ac_compiler_gnu=$ac_cv_c_compiler_gnu
14103
14104
14105# Source file extension for C test sources.
14106ac_ext=c
14107
14108# Object file extension for compiled C test sources.
14109objext=o
14110objext=$objext
14111
14112# Code to be used in simple compile tests
14113lt_simple_compile_test_code="int some_variable = 0;"
14114
14115# Code to be used in simple link tests
14116lt_simple_link_test_code='int main(){return(0);}'
14117
14118
14119
14120
14121
14122
14123
14124# If no C compiler was specified, use CC.
14125LTCC=${LTCC-"$CC"}
14126
14127# If no C compiler flags were specified, use CFLAGS.
14128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14129
14130# Allow CC to be a program name with arguments.
14131compiler=$CC
14132
14133# Save the default compiler, since it gets overwritten when the other
14134# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14135compiler_DEFAULT=$CC
14136
14137# save warnings/boilerplate of simple test code
14138ac_outfile=conftest.$ac_objext
14139echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14141_lt_compiler_boilerplate=`cat conftest.err`
14142$RM conftest*
14143
14144ac_outfile=conftest.$ac_objext
14145echo "$lt_simple_link_test_code" >conftest.$ac_ext
14146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14147_lt_linker_boilerplate=`cat conftest.err`
14148$RM -r conftest*
14149
14150
14151if test -n "$compiler"; then
14152
14153lt_prog_compiler_no_builtin_flag=
14154
14155if test "$GCC" = yes; then
14156  case $cc_basename in
14157  nvcc*)
14158    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14159  *)
14160    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14161  esac
14162
14163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14164$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14165if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14166  $as_echo_n "(cached) " >&6
14167else
14168  lt_cv_prog_compiler_rtti_exceptions=no
14169   ac_outfile=conftest.$ac_objext
14170   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14171   lt_compiler_flag="-fno-rtti -fno-exceptions"
14172   # Insert the option either (1) after the last *FLAGS variable, or
14173   # (2) before a word containing "conftest.", or (3) at the end.
14174   # Note that $ac_compile itself does not contain backslashes and begins
14175   # with a dollar sign (not a hyphen), so the echo should work correctly.
14176   # The option is referenced via a variable to avoid confusing sed.
14177   lt_compile=`echo "$ac_compile" | $SED \
14178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14180   -e 's:$: $lt_compiler_flag:'`
14181   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14182   (eval "$lt_compile" 2>conftest.err)
14183   ac_status=$?
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   if (exit $ac_status) && test -s "$ac_outfile"; then
14187     # The compiler can only warn and ignore the option if not recognized
14188     # So say no if there are warnings other than the usual output.
14189     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14190     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14191     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14192       lt_cv_prog_compiler_rtti_exceptions=yes
14193     fi
14194   fi
14195   $RM conftest*
14196
14197fi
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14199$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14200
14201if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14202    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14203else
14204    :
14205fi
14206
14207fi
14208
14209
14210
14211
14212
14213
14214  lt_prog_compiler_wl=
14215lt_prog_compiler_pic=
14216lt_prog_compiler_static=
14217
14218
14219  if test "$GCC" = yes; then
14220    lt_prog_compiler_wl='-Wl,'
14221    lt_prog_compiler_static='-static'
14222
14223    case $host_os in
14224      aix*)
14225      # All AIX code is PIC.
14226      if test "$host_cpu" = ia64; then
14227	# AIX 5 now supports IA64 processor
14228	lt_prog_compiler_static='-Bstatic'
14229      fi
14230      ;;
14231
14232    amigaos*)
14233      case $host_cpu in
14234      powerpc)
14235            # see comment about AmigaOS4 .so support
14236            lt_prog_compiler_pic='-fPIC'
14237        ;;
14238      m68k)
14239            # FIXME: we need at least 68020 code to build shared libraries, but
14240            # adding the `-m68020' flag to GCC prevents building anything better,
14241            # like `-m68040'.
14242            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14243        ;;
14244      esac
14245      ;;
14246
14247    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14248      # PIC is the default for these OSes.
14249      ;;
14250
14251    mingw* | cygwin* | pw32* | os2* | cegcc*)
14252      # This hack is so that the source file can tell whether it is being
14253      # built for inclusion in a dll (and should export symbols for example).
14254      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14255      # (--disable-auto-import) libraries
14256      lt_prog_compiler_pic='-DDLL_EXPORT'
14257      ;;
14258
14259    darwin* | rhapsody*)
14260      # PIC is the default on this platform
14261      # Common symbols not allowed in MH_DYLIB files
14262      lt_prog_compiler_pic='-fno-common'
14263      ;;
14264
14265    haiku*)
14266      # PIC is the default for Haiku.
14267      # The "-static" flag exists, but is broken.
14268      lt_prog_compiler_static=
14269      ;;
14270
14271    hpux*)
14272      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14273      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14274      # sets the default TLS model and affects inlining.
14275      case $host_cpu in
14276      hppa*64*)
14277	# +Z the default
14278	;;
14279      *)
14280	lt_prog_compiler_pic='-fPIC'
14281	;;
14282      esac
14283      ;;
14284
14285    interix[3-9]*)
14286      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14287      # Instead, we relocate shared libraries at runtime.
14288      ;;
14289
14290    msdosdjgpp*)
14291      # Just because we use GCC doesn't mean we suddenly get shared libraries
14292      # on systems that don't support them.
14293      lt_prog_compiler_can_build_shared=no
14294      enable_shared=no
14295      ;;
14296
14297    *nto* | *qnx*)
14298      # QNX uses GNU C++, but need to define -shared option too, otherwise
14299      # it will coredump.
14300      lt_prog_compiler_pic='-fPIC -shared'
14301      ;;
14302
14303    sysv4*MP*)
14304      if test -d /usr/nec; then
14305	lt_prog_compiler_pic=-Kconform_pic
14306      fi
14307      ;;
14308
14309    *)
14310      lt_prog_compiler_pic='-fPIC'
14311      ;;
14312    esac
14313
14314    case $cc_basename in
14315    nvcc*) # Cuda Compiler Driver 2.2
14316      lt_prog_compiler_wl='-Xlinker '
14317      if test -n "$lt_prog_compiler_pic"; then
14318        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14319      fi
14320      ;;
14321    esac
14322  else
14323    # PORTME Check for flag to pass linker flags through the system compiler.
14324    case $host_os in
14325    aix*)
14326      lt_prog_compiler_wl='-Wl,'
14327      if test "$host_cpu" = ia64; then
14328	# AIX 5 now supports IA64 processor
14329	lt_prog_compiler_static='-Bstatic'
14330      else
14331	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14332      fi
14333      ;;
14334
14335    mingw* | cygwin* | pw32* | os2* | cegcc*)
14336      # This hack is so that the source file can tell whether it is being
14337      # built for inclusion in a dll (and should export symbols for example).
14338      lt_prog_compiler_pic='-DDLL_EXPORT'
14339      ;;
14340
14341    hpux9* | hpux10* | hpux11*)
14342      lt_prog_compiler_wl='-Wl,'
14343      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14344      # not for PA HP-UX.
14345      case $host_cpu in
14346      hppa*64*|ia64*)
14347	# +Z the default
14348	;;
14349      *)
14350	lt_prog_compiler_pic='+Z'
14351	;;
14352      esac
14353      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14354      lt_prog_compiler_static='${wl}-a ${wl}archive'
14355      ;;
14356
14357    irix5* | irix6* | nonstopux*)
14358      lt_prog_compiler_wl='-Wl,'
14359      # PIC (with -KPIC) is the default.
14360      lt_prog_compiler_static='-non_shared'
14361      ;;
14362
14363    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14364      case $cc_basename in
14365      # old Intel for x86_64 which still supported -KPIC.
14366      ecc*)
14367	lt_prog_compiler_wl='-Wl,'
14368	lt_prog_compiler_pic='-KPIC'
14369	lt_prog_compiler_static='-static'
14370        ;;
14371      # icc used to be incompatible with GCC.
14372      # ICC 10 doesn't accept -KPIC any more.
14373      icc* | ifort*)
14374	lt_prog_compiler_wl='-Wl,'
14375	lt_prog_compiler_pic='-fPIC'
14376	lt_prog_compiler_static='-static'
14377        ;;
14378      # Lahey Fortran 8.1.
14379      lf95*)
14380	lt_prog_compiler_wl='-Wl,'
14381	lt_prog_compiler_pic='--shared'
14382	lt_prog_compiler_static='--static'
14383	;;
14384      nagfor*)
14385	# NAG Fortran compiler
14386	lt_prog_compiler_wl='-Wl,-Wl,,'
14387	lt_prog_compiler_pic='-PIC'
14388	lt_prog_compiler_static='-Bstatic'
14389	;;
14390      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14391        # Portland Group compilers (*not* the Pentium gcc compiler,
14392	# which looks to be a dead project)
14393	lt_prog_compiler_wl='-Wl,'
14394	lt_prog_compiler_pic='-fpic'
14395	lt_prog_compiler_static='-Bstatic'
14396        ;;
14397      ccc*)
14398        lt_prog_compiler_wl='-Wl,'
14399        # All Alpha code is PIC.
14400        lt_prog_compiler_static='-non_shared'
14401        ;;
14402      xl* | bgxl* | bgf* | mpixl*)
14403	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14404	lt_prog_compiler_wl='-Wl,'
14405	lt_prog_compiler_pic='-qpic'
14406	lt_prog_compiler_static='-qstaticlink'
14407	;;
14408      *)
14409	case `$CC -V 2>&1 | sed 5q` in
14410	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14411	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14412	  lt_prog_compiler_pic='-KPIC'
14413	  lt_prog_compiler_static='-Bstatic'
14414	  lt_prog_compiler_wl=''
14415	  ;;
14416	*Sun\ F* | *Sun*Fortran*)
14417	  lt_prog_compiler_pic='-KPIC'
14418	  lt_prog_compiler_static='-Bstatic'
14419	  lt_prog_compiler_wl='-Qoption ld '
14420	  ;;
14421	*Sun\ C*)
14422	  # Sun C 5.9
14423	  lt_prog_compiler_pic='-KPIC'
14424	  lt_prog_compiler_static='-Bstatic'
14425	  lt_prog_compiler_wl='-Wl,'
14426	  ;;
14427        *Intel*\ [CF]*Compiler*)
14428	  lt_prog_compiler_wl='-Wl,'
14429	  lt_prog_compiler_pic='-fPIC'
14430	  lt_prog_compiler_static='-static'
14431	  ;;
14432	*Portland\ Group*)
14433	  lt_prog_compiler_wl='-Wl,'
14434	  lt_prog_compiler_pic='-fpic'
14435	  lt_prog_compiler_static='-Bstatic'
14436	  ;;
14437	esac
14438	;;
14439      esac
14440      ;;
14441
14442    newsos6)
14443      lt_prog_compiler_pic='-KPIC'
14444      lt_prog_compiler_static='-Bstatic'
14445      ;;
14446
14447    *nto* | *qnx*)
14448      # QNX uses GNU C++, but need to define -shared option too, otherwise
14449      # it will coredump.
14450      lt_prog_compiler_pic='-fPIC -shared'
14451      ;;
14452
14453    osf3* | osf4* | osf5*)
14454      lt_prog_compiler_wl='-Wl,'
14455      # All OSF/1 code is PIC.
14456      lt_prog_compiler_static='-non_shared'
14457      ;;
14458
14459    rdos*)
14460      lt_prog_compiler_static='-non_shared'
14461      ;;
14462
14463    solaris*)
14464      lt_prog_compiler_pic='-KPIC'
14465      lt_prog_compiler_static='-Bstatic'
14466      case $cc_basename in
14467      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14468	lt_prog_compiler_wl='-Qoption ld ';;
14469      *)
14470	lt_prog_compiler_wl='-Wl,';;
14471      esac
14472      ;;
14473
14474    sunos4*)
14475      lt_prog_compiler_wl='-Qoption ld '
14476      lt_prog_compiler_pic='-PIC'
14477      lt_prog_compiler_static='-Bstatic'
14478      ;;
14479
14480    sysv4 | sysv4.2uw2* | sysv4.3*)
14481      lt_prog_compiler_wl='-Wl,'
14482      lt_prog_compiler_pic='-KPIC'
14483      lt_prog_compiler_static='-Bstatic'
14484      ;;
14485
14486    sysv4*MP*)
14487      if test -d /usr/nec ;then
14488	lt_prog_compiler_pic='-Kconform_pic'
14489	lt_prog_compiler_static='-Bstatic'
14490      fi
14491      ;;
14492
14493    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14494      lt_prog_compiler_wl='-Wl,'
14495      lt_prog_compiler_pic='-KPIC'
14496      lt_prog_compiler_static='-Bstatic'
14497      ;;
14498
14499    unicos*)
14500      lt_prog_compiler_wl='-Wl,'
14501      lt_prog_compiler_can_build_shared=no
14502      ;;
14503
14504    uts4*)
14505      lt_prog_compiler_pic='-pic'
14506      lt_prog_compiler_static='-Bstatic'
14507      ;;
14508
14509    *)
14510      lt_prog_compiler_can_build_shared=no
14511      ;;
14512    esac
14513  fi
14514
14515case $host_os in
14516  # For platforms which do not support PIC, -DPIC is meaningless:
14517  *djgpp*)
14518    lt_prog_compiler_pic=
14519    ;;
14520  *)
14521    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14522    ;;
14523esac
14524
14525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14526$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14527if ${lt_cv_prog_compiler_pic+:} false; then :
14528  $as_echo_n "(cached) " >&6
14529else
14530  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14533$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14534lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14535
14536#
14537# Check to make sure the PIC flag actually works.
14538#
14539if test -n "$lt_prog_compiler_pic"; then
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14541$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14542if ${lt_cv_prog_compiler_pic_works+:} false; then :
14543  $as_echo_n "(cached) " >&6
14544else
14545  lt_cv_prog_compiler_pic_works=no
14546   ac_outfile=conftest.$ac_objext
14547   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14548   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14549   # Insert the option either (1) after the last *FLAGS variable, or
14550   # (2) before a word containing "conftest.", or (3) at the end.
14551   # Note that $ac_compile itself does not contain backslashes and begins
14552   # with a dollar sign (not a hyphen), so the echo should work correctly.
14553   # The option is referenced via a variable to avoid confusing sed.
14554   lt_compile=`echo "$ac_compile" | $SED \
14555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14557   -e 's:$: $lt_compiler_flag:'`
14558   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14559   (eval "$lt_compile" 2>conftest.err)
14560   ac_status=$?
14561   cat conftest.err >&5
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   if (exit $ac_status) && test -s "$ac_outfile"; then
14564     # The compiler can only warn and ignore the option if not recognized
14565     # So say no if there are warnings other than the usual output.
14566     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14567     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14568     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14569       lt_cv_prog_compiler_pic_works=yes
14570     fi
14571   fi
14572   $RM conftest*
14573
14574fi
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14576$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14577
14578if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14579    case $lt_prog_compiler_pic in
14580     "" | " "*) ;;
14581     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14582     esac
14583else
14584    lt_prog_compiler_pic=
14585     lt_prog_compiler_can_build_shared=no
14586fi
14587
14588fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600#
14601# Check to make sure the static flag actually works.
14602#
14603wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14605$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14606if ${lt_cv_prog_compiler_static_works+:} false; then :
14607  $as_echo_n "(cached) " >&6
14608else
14609  lt_cv_prog_compiler_static_works=no
14610   save_LDFLAGS="$LDFLAGS"
14611   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14612   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14613   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14614     # The linker can only warn and ignore the option if not recognized
14615     # So say no if there are warnings
14616     if test -s conftest.err; then
14617       # Append any errors to the config.log.
14618       cat conftest.err 1>&5
14619       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14620       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14621       if diff conftest.exp conftest.er2 >/dev/null; then
14622         lt_cv_prog_compiler_static_works=yes
14623       fi
14624     else
14625       lt_cv_prog_compiler_static_works=yes
14626     fi
14627   fi
14628   $RM -r conftest*
14629   LDFLAGS="$save_LDFLAGS"
14630
14631fi
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14633$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14634
14635if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14636    :
14637else
14638    lt_prog_compiler_static=
14639fi
14640
14641
14642
14643
14644
14645
14646
14647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14648$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14649if ${lt_cv_prog_compiler_c_o+:} false; then :
14650  $as_echo_n "(cached) " >&6
14651else
14652  lt_cv_prog_compiler_c_o=no
14653   $RM -r conftest 2>/dev/null
14654   mkdir conftest
14655   cd conftest
14656   mkdir out
14657   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14658
14659   lt_compiler_flag="-o out/conftest2.$ac_objext"
14660   # Insert the option either (1) after the last *FLAGS variable, or
14661   # (2) before a word containing "conftest.", or (3) at the end.
14662   # Note that $ac_compile itself does not contain backslashes and begins
14663   # with a dollar sign (not a hyphen), so the echo should work correctly.
14664   lt_compile=`echo "$ac_compile" | $SED \
14665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667   -e 's:$: $lt_compiler_flag:'`
14668   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14669   (eval "$lt_compile" 2>out/conftest.err)
14670   ac_status=$?
14671   cat out/conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14674   then
14675     # The compiler can only warn and ignore the option if not recognized
14676     # So say no if there are warnings
14677     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14678     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14679     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14680       lt_cv_prog_compiler_c_o=yes
14681     fi
14682   fi
14683   chmod u+w . 2>&5
14684   $RM conftest*
14685   # SGI C++ compiler will create directory out/ii_files/ for
14686   # template instantiation
14687   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14688   $RM out/* && rmdir out
14689   cd ..
14690   $RM -r conftest
14691   $RM conftest*
14692
14693fi
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14695$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14696
14697
14698
14699
14700
14701
14702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14703$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14704if ${lt_cv_prog_compiler_c_o+:} false; then :
14705  $as_echo_n "(cached) " >&6
14706else
14707  lt_cv_prog_compiler_c_o=no
14708   $RM -r conftest 2>/dev/null
14709   mkdir conftest
14710   cd conftest
14711   mkdir out
14712   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14713
14714   lt_compiler_flag="-o out/conftest2.$ac_objext"
14715   # Insert the option either (1) after the last *FLAGS variable, or
14716   # (2) before a word containing "conftest.", or (3) at the end.
14717   # Note that $ac_compile itself does not contain backslashes and begins
14718   # with a dollar sign (not a hyphen), so the echo should work correctly.
14719   lt_compile=`echo "$ac_compile" | $SED \
14720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722   -e 's:$: $lt_compiler_flag:'`
14723   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14724   (eval "$lt_compile" 2>out/conftest.err)
14725   ac_status=$?
14726   cat out/conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14729   then
14730     # The compiler can only warn and ignore the option if not recognized
14731     # So say no if there are warnings
14732     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14733     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14734     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14735       lt_cv_prog_compiler_c_o=yes
14736     fi
14737   fi
14738   chmod u+w . 2>&5
14739   $RM conftest*
14740   # SGI C++ compiler will create directory out/ii_files/ for
14741   # template instantiation
14742   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14743   $RM out/* && rmdir out
14744   cd ..
14745   $RM -r conftest
14746   $RM conftest*
14747
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14750$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14751
14752
14753
14754
14755hard_links="nottested"
14756if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14757  # do not overwrite the value of need_locks provided by the user
14758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14759$as_echo_n "checking if we can lock with hard links... " >&6; }
14760  hard_links=yes
14761  $RM conftest*
14762  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14763  touch conftest.a
14764  ln conftest.a conftest.b 2>&5 || hard_links=no
14765  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14767$as_echo "$hard_links" >&6; }
14768  if test "$hard_links" = no; then
14769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14770$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14771    need_locks=warn
14772  fi
14773else
14774  need_locks=no
14775fi
14776
14777
14778
14779
14780
14781
14782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14783$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14784
14785  runpath_var=
14786  allow_undefined_flag=
14787  always_export_symbols=no
14788  archive_cmds=
14789  archive_expsym_cmds=
14790  compiler_needs_object=no
14791  enable_shared_with_static_runtimes=no
14792  export_dynamic_flag_spec=
14793  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14794  hardcode_automatic=no
14795  hardcode_direct=no
14796  hardcode_direct_absolute=no
14797  hardcode_libdir_flag_spec=
14798  hardcode_libdir_separator=
14799  hardcode_minus_L=no
14800  hardcode_shlibpath_var=unsupported
14801  inherit_rpath=no
14802  link_all_deplibs=unknown
14803  module_cmds=
14804  module_expsym_cmds=
14805  old_archive_from_new_cmds=
14806  old_archive_from_expsyms_cmds=
14807  thread_safe_flag_spec=
14808  whole_archive_flag_spec=
14809  # include_expsyms should be a list of space-separated symbols to be *always*
14810  # included in the symbol list
14811  include_expsyms=
14812  # exclude_expsyms can be an extended regexp of symbols to exclude
14813  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14814  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14815  # as well as any symbol that contains `d'.
14816  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14817  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14818  # platforms (ab)use it in PIC code, but their linkers get confused if
14819  # the symbol is explicitly referenced.  Since portable code cannot
14820  # rely on this symbol name, it's probably fine to never include it in
14821  # preloaded symbol tables.
14822  # Exclude shared library initialization/finalization symbols.
14823  extract_expsyms_cmds=
14824
14825  case $host_os in
14826  cygwin* | mingw* | pw32* | cegcc*)
14827    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14828    # When not using gcc, we currently assume that we are using
14829    # Microsoft Visual C++.
14830    if test "$GCC" != yes; then
14831      with_gnu_ld=no
14832    fi
14833    ;;
14834  interix*)
14835    # we just hope/assume this is gcc and not c89 (= MSVC++)
14836    with_gnu_ld=yes
14837    ;;
14838  openbsd*)
14839    with_gnu_ld=no
14840    ;;
14841  linux* | k*bsd*-gnu | gnu*)
14842    link_all_deplibs=no
14843    ;;
14844  esac
14845
14846  ld_shlibs=yes
14847
14848  # On some targets, GNU ld is compatible enough with the native linker
14849  # that we're better off using the native interface for both.
14850  lt_use_gnu_ld_interface=no
14851  if test "$with_gnu_ld" = yes; then
14852    case $host_os in
14853      aix*)
14854	# The AIX port of GNU ld has always aspired to compatibility
14855	# with the native linker.  However, as the warning in the GNU ld
14856	# block says, versions before 2.19.5* couldn't really create working
14857	# shared libraries, regardless of the interface used.
14858	case `$LD -v 2>&1` in
14859	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14860	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14861	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14862	  *)
14863	    lt_use_gnu_ld_interface=yes
14864	    ;;
14865	esac
14866	;;
14867      *)
14868	lt_use_gnu_ld_interface=yes
14869	;;
14870    esac
14871  fi
14872
14873  if test "$lt_use_gnu_ld_interface" = yes; then
14874    # If archive_cmds runs LD, not CC, wlarc should be empty
14875    wlarc='${wl}'
14876
14877    # Set some defaults for GNU ld with shared library support. These
14878    # are reset later if shared libraries are not supported. Putting them
14879    # here allows them to be overridden if necessary.
14880    runpath_var=LD_RUN_PATH
14881    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14882    export_dynamic_flag_spec='${wl}--export-dynamic'
14883    # ancient GNU ld didn't support --whole-archive et. al.
14884    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14885      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14886    else
14887      whole_archive_flag_spec=
14888    fi
14889    supports_anon_versioning=no
14890    case `$LD -v 2>&1` in
14891      *GNU\ gold*) supports_anon_versioning=yes ;;
14892      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14893      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14894      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14895      *\ 2.11.*) ;; # other 2.11 versions
14896      *) supports_anon_versioning=yes ;;
14897    esac
14898
14899    # See if GNU ld supports shared libraries.
14900    case $host_os in
14901    aix[3-9]*)
14902      # On AIX/PPC, the GNU linker is very broken
14903      if test "$host_cpu" != ia64; then
14904	ld_shlibs=no
14905	cat <<_LT_EOF 1>&2
14906
14907*** Warning: the GNU linker, at least up to release 2.19, is reported
14908*** to be unable to reliably create shared libraries on AIX.
14909*** Therefore, libtool is disabling shared libraries support.  If you
14910*** really care for shared libraries, you may want to install binutils
14911*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14912*** You will then need to restart the configuration process.
14913
14914_LT_EOF
14915      fi
14916      ;;
14917
14918    amigaos*)
14919      case $host_cpu in
14920      powerpc)
14921            # see comment about AmigaOS4 .so support
14922            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923            archive_expsym_cmds=''
14924        ;;
14925      m68k)
14926            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)'
14927            hardcode_libdir_flag_spec='-L$libdir'
14928            hardcode_minus_L=yes
14929        ;;
14930      esac
14931      ;;
14932
14933    beos*)
14934      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14935	allow_undefined_flag=unsupported
14936	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14937	# support --undefined.  This deserves some investigation.  FIXME
14938	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939      else
14940	ld_shlibs=no
14941      fi
14942      ;;
14943
14944    cygwin* | mingw* | pw32* | cegcc*)
14945      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14946      # as there is no search path for DLLs.
14947      hardcode_libdir_flag_spec='-L$libdir'
14948      export_dynamic_flag_spec='${wl}--export-all-symbols'
14949      allow_undefined_flag=unsupported
14950      always_export_symbols=no
14951      enable_shared_with_static_runtimes=yes
14952      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'
14953      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14954
14955      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14956        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14957	# If the export-symbols file already is a .def file (1st line
14958	# is EXPORTS), use it as is; otherwise, prepend...
14959	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14960	  cp $export_symbols $output_objdir/$soname.def;
14961	else
14962	  echo EXPORTS > $output_objdir/$soname.def;
14963	  cat $export_symbols >> $output_objdir/$soname.def;
14964	fi~
14965	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14966      else
14967	ld_shlibs=no
14968      fi
14969      ;;
14970
14971    haiku*)
14972      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973      link_all_deplibs=yes
14974      ;;
14975
14976    interix[3-9]*)
14977      hardcode_direct=no
14978      hardcode_shlibpath_var=no
14979      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14980      export_dynamic_flag_spec='${wl}-E'
14981      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14982      # Instead, shared libraries are loaded at an image base (0x10000000 by
14983      # default) and relocated if they conflict, which is a slow very memory
14984      # consuming and fragmenting process.  To avoid this, we pick a random,
14985      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14986      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14987      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14988      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'
14989      ;;
14990
14991    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14992      tmp_diet=no
14993      if test "$host_os" = linux-dietlibc; then
14994	case $cc_basename in
14995	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14996	esac
14997      fi
14998      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14999	 && test "$tmp_diet" = no
15000      then
15001	tmp_addflag=' $pic_flag'
15002	tmp_sharedflag='-shared'
15003	case $cc_basename,$host_cpu in
15004        pgcc*)				# Portland Group C compiler
15005	  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'
15006	  tmp_addflag=' $pic_flag'
15007	  ;;
15008	pgf77* | pgf90* | pgf95* | pgfortran*)
15009					# Portland Group f77 and f90 compilers
15010	  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'
15011	  tmp_addflag=' $pic_flag -Mnomain' ;;
15012	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15013	  tmp_addflag=' -i_dynamic' ;;
15014	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15015	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15016	ifc* | ifort*)			# Intel Fortran compiler
15017	  tmp_addflag=' -nofor_main' ;;
15018	lf95*)				# Lahey Fortran 8.1
15019	  whole_archive_flag_spec=
15020	  tmp_sharedflag='--shared' ;;
15021	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15022	  tmp_sharedflag='-qmkshrobj'
15023	  tmp_addflag= ;;
15024	nvcc*)	# Cuda Compiler Driver 2.2
15025	  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'
15026	  compiler_needs_object=yes
15027	  ;;
15028	esac
15029	case `$CC -V 2>&1 | sed 5q` in
15030	*Sun\ C*)			# Sun C 5.9
15031	  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'
15032	  compiler_needs_object=yes
15033	  tmp_sharedflag='-G' ;;
15034	*Sun\ F*)			# Sun Fortran 8.3
15035	  tmp_sharedflag='-G' ;;
15036	esac
15037	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
15039        if test "x$supports_anon_versioning" = xyes; then
15040          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15041	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15042	    echo "local: *; };" >> $output_objdir/$libname.ver~
15043	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15044        fi
15045
15046	case $cc_basename in
15047	xlf* | bgf* | bgxlf* | mpixlf*)
15048	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15049	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15050	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15051	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15052	  if test "x$supports_anon_versioning" = xyes; then
15053	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15054	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15055	      echo "local: *; };" >> $output_objdir/$libname.ver~
15056	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15057	  fi
15058	  ;;
15059	esac
15060      else
15061        ld_shlibs=no
15062      fi
15063      ;;
15064
15065    netbsd* | netbsdelf*-gnu)
15066      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15067	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15068	wlarc=
15069      else
15070	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15071	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15072      fi
15073      ;;
15074
15075    solaris*)
15076      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15077	ld_shlibs=no
15078	cat <<_LT_EOF 1>&2
15079
15080*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15081*** create shared libraries on Solaris systems.  Therefore, libtool
15082*** is disabling shared libraries support.  We urge you to upgrade GNU
15083*** binutils to release 2.9.1 or newer.  Another option is to modify
15084*** your PATH or compiler configuration so that the native linker is
15085*** used, and then restart.
15086
15087_LT_EOF
15088      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15089	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15090	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15091      else
15092	ld_shlibs=no
15093      fi
15094      ;;
15095
15096    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15097      case `$LD -v 2>&1` in
15098        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15099	ld_shlibs=no
15100	cat <<_LT_EOF 1>&2
15101
15102*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15103*** reliably create shared libraries on SCO systems.  Therefore, libtool
15104*** is disabling shared libraries support.  We urge you to upgrade GNU
15105*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15106*** your PATH or compiler configuration so that the native linker is
15107*** used, and then restart.
15108
15109_LT_EOF
15110	;;
15111	*)
15112	  # For security reasons, it is highly recommended that you always
15113	  # use absolute paths for naming shared libraries, and exclude the
15114	  # DT_RUNPATH tag from executables and libraries.  But doing so
15115	  # requires that you compile everything twice, which is a pain.
15116	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15117	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15118	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15120	  else
15121	    ld_shlibs=no
15122	  fi
15123	;;
15124      esac
15125      ;;
15126
15127    sunos4*)
15128      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15129      wlarc=
15130      hardcode_direct=yes
15131      hardcode_shlibpath_var=no
15132      ;;
15133
15134    *)
15135      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15136	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138      else
15139	ld_shlibs=no
15140      fi
15141      ;;
15142    esac
15143
15144    if test "$ld_shlibs" = no; then
15145      runpath_var=
15146      hardcode_libdir_flag_spec=
15147      export_dynamic_flag_spec=
15148      whole_archive_flag_spec=
15149    fi
15150  else
15151    # PORTME fill in a description of your system's linker (not GNU ld)
15152    case $host_os in
15153    aix3*)
15154      allow_undefined_flag=unsupported
15155      always_export_symbols=yes
15156      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'
15157      # Note: this linker hardcodes the directories in LIBPATH if there
15158      # are no directories specified by -L.
15159      hardcode_minus_L=yes
15160      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15161	# Neither direct hardcoding nor static linking is supported with a
15162	# broken collect2.
15163	hardcode_direct=unsupported
15164      fi
15165      ;;
15166
15167    aix[4-9]*)
15168      if test "$host_cpu" = ia64; then
15169	# On IA64, the linker does run time linking by default, so we don't
15170	# have to do anything special.
15171	aix_use_runtimelinking=no
15172	exp_sym_flag='-Bexport'
15173	no_entry_flag=""
15174      else
15175	# If we're using GNU nm, then we don't want the "-C" option.
15176	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15177	# Also, AIX nm treats weak defined symbols like other global
15178	# defined symbols, whereas GNU nm marks them as "W".
15179	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15180	  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'
15181	else
15182	  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'
15183	fi
15184	aix_use_runtimelinking=no
15185
15186	# Test if we are trying to use run time linking or normal
15187	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15188	# need to do runtime linking.
15189	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15190	  for ld_flag in $LDFLAGS; do
15191	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15192	    aix_use_runtimelinking=yes
15193	    break
15194	  fi
15195	  done
15196	  ;;
15197	esac
15198
15199	exp_sym_flag='-bexport'
15200	no_entry_flag='-bnoentry'
15201      fi
15202
15203      # When large executables or shared objects are built, AIX ld can
15204      # have problems creating the table of contents.  If linking a library
15205      # or program results in "error TOC overflow" add -mminimal-toc to
15206      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15207      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15208
15209      archive_cmds=''
15210      hardcode_direct=yes
15211      hardcode_direct_absolute=yes
15212      hardcode_libdir_separator=':'
15213      link_all_deplibs=yes
15214      file_list_spec='${wl}-f,'
15215
15216      if test "$GCC" = yes; then
15217	case $host_os in aix4.[012]|aix4.[012].*)
15218	# We only want to do this on AIX 4.2 and lower, the check
15219	# below for broken collect2 doesn't work under 4.3+
15220	  collect2name=`${CC} -print-prog-name=collect2`
15221	  if test -f "$collect2name" &&
15222	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15223	  then
15224	  # We have reworked collect2
15225	  :
15226	  else
15227	  # We have old collect2
15228	  hardcode_direct=unsupported
15229	  # It fails to find uninstalled libraries when the uninstalled
15230	  # path is not listed in the libpath.  Setting hardcode_minus_L
15231	  # to unsupported forces relinking
15232	  hardcode_minus_L=yes
15233	  hardcode_libdir_flag_spec='-L$libdir'
15234	  hardcode_libdir_separator=
15235	  fi
15236	  ;;
15237	esac
15238	shared_flag='-shared'
15239	if test "$aix_use_runtimelinking" = yes; then
15240	  shared_flag="$shared_flag "'${wl}-G'
15241	fi
15242	link_all_deplibs=no
15243      else
15244	# not using gcc
15245	if test "$host_cpu" = ia64; then
15246	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15247	# chokes on -Wl,-G. The following line is correct:
15248	  shared_flag='-G'
15249	else
15250	  if test "$aix_use_runtimelinking" = yes; then
15251	    shared_flag='${wl}-G'
15252	  else
15253	    shared_flag='${wl}-bM:SRE'
15254	  fi
15255	fi
15256      fi
15257
15258      export_dynamic_flag_spec='${wl}-bexpall'
15259      # It seems that -bexpall does not export symbols beginning with
15260      # underscore (_), so it is better to generate a list of symbols to export.
15261      always_export_symbols=yes
15262      if test "$aix_use_runtimelinking" = yes; then
15263	# Warning - without using the other runtime loading flags (-brtl),
15264	# -berok will link without error, but may produce a broken library.
15265	allow_undefined_flag='-berok'
15266        # Determine the default libpath from the value encoded in an
15267        # empty executable.
15268        if test "${lt_cv_aix_libpath+set}" = set; then
15269  aix_libpath=$lt_cv_aix_libpath
15270else
15271  if ${lt_cv_aix_libpath_+:} false; then :
15272  $as_echo_n "(cached) " >&6
15273else
15274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275/* end confdefs.h.  */
15276
15277int
15278main ()
15279{
15280
15281  ;
15282  return 0;
15283}
15284_ACEOF
15285if ac_fn_c_try_link "$LINENO"; then :
15286
15287  lt_aix_libpath_sed='
15288      /Import File Strings/,/^$/ {
15289	  /^0/ {
15290	      s/^0  *\([^ ]*\) *$/\1/
15291	      p
15292	  }
15293      }'
15294  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15295  # Check for a 64-bit object if we didn't find anything.
15296  if test -z "$lt_cv_aix_libpath_"; then
15297    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15298  fi
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301    conftest$ac_exeext conftest.$ac_ext
15302  if test -z "$lt_cv_aix_libpath_"; then
15303    lt_cv_aix_libpath_="/usr/lib:/lib"
15304  fi
15305
15306fi
15307
15308  aix_libpath=$lt_cv_aix_libpath_
15309fi
15310
15311        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15312        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"
15313      else
15314	if test "$host_cpu" = ia64; then
15315	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15316	  allow_undefined_flag="-z nodefs"
15317	  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"
15318	else
15319	 # Determine the default libpath from the value encoded in an
15320	 # empty executable.
15321	 if test "${lt_cv_aix_libpath+set}" = set; then
15322  aix_libpath=$lt_cv_aix_libpath
15323else
15324  if ${lt_cv_aix_libpath_+:} false; then :
15325  $as_echo_n "(cached) " >&6
15326else
15327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h.  */
15329
15330int
15331main ()
15332{
15333
15334  ;
15335  return 0;
15336}
15337_ACEOF
15338if ac_fn_c_try_link "$LINENO"; then :
15339
15340  lt_aix_libpath_sed='
15341      /Import File Strings/,/^$/ {
15342	  /^0/ {
15343	      s/^0  *\([^ ]*\) *$/\1/
15344	      p
15345	  }
15346      }'
15347  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15348  # Check for a 64-bit object if we didn't find anything.
15349  if test -z "$lt_cv_aix_libpath_"; then
15350    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351  fi
15352fi
15353rm -f core conftest.err conftest.$ac_objext \
15354    conftest$ac_exeext conftest.$ac_ext
15355  if test -z "$lt_cv_aix_libpath_"; then
15356    lt_cv_aix_libpath_="/usr/lib:/lib"
15357  fi
15358
15359fi
15360
15361  aix_libpath=$lt_cv_aix_libpath_
15362fi
15363
15364	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15365	  # Warning - without using the other run time loading flags,
15366	  # -berok will link without error, but may produce a broken library.
15367	  no_undefined_flag=' ${wl}-bernotok'
15368	  allow_undefined_flag=' ${wl}-berok'
15369	  if test "$with_gnu_ld" = yes; then
15370	    # We only use this code for GNU lds that support --whole-archive.
15371	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15372	  else
15373	    # Exported symbols can be pulled into shared objects from archives
15374	    whole_archive_flag_spec='$convenience'
15375	  fi
15376	  archive_cmds_need_lc=yes
15377	  # This is similar to how AIX traditionally builds its shared libraries.
15378	  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'
15379	fi
15380      fi
15381      ;;
15382
15383    amigaos*)
15384      case $host_cpu in
15385      powerpc)
15386            # see comment about AmigaOS4 .so support
15387            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388            archive_expsym_cmds=''
15389        ;;
15390      m68k)
15391            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)'
15392            hardcode_libdir_flag_spec='-L$libdir'
15393            hardcode_minus_L=yes
15394        ;;
15395      esac
15396      ;;
15397
15398    bsdi[45]*)
15399      export_dynamic_flag_spec=-rdynamic
15400      ;;
15401
15402    cygwin* | mingw* | pw32* | cegcc*)
15403      # When not using gcc, we currently assume that we are using
15404      # Microsoft Visual C++.
15405      # hardcode_libdir_flag_spec is actually meaningless, as there is
15406      # no search path for DLLs.
15407      case $cc_basename in
15408      cl*)
15409	# Native MSVC
15410	hardcode_libdir_flag_spec=' '
15411	allow_undefined_flag=unsupported
15412	always_export_symbols=yes
15413	file_list_spec='@'
15414	# Tell ltmain to make .lib files, not .a files.
15415	libext=lib
15416	# Tell ltmain to make .dll files, not .so files.
15417	shrext_cmds=".dll"
15418	# FIXME: Setting linknames here is a bad hack.
15419	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15420	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15421	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15422	  else
15423	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15424	  fi~
15425	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15426	  linknames='
15427	# The linker will not automatically build a static lib if we build a DLL.
15428	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15429	enable_shared_with_static_runtimes=yes
15430	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15431	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15432	# Don't use ranlib
15433	old_postinstall_cmds='chmod 644 $oldlib'
15434	postlink_cmds='lt_outputfile="@OUTPUT@"~
15435	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15436	  case $lt_outputfile in
15437	    *.exe|*.EXE) ;;
15438	    *)
15439	      lt_outputfile="$lt_outputfile.exe"
15440	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15441	      ;;
15442	  esac~
15443	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15444	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15445	    $RM "$lt_outputfile.manifest";
15446	  fi'
15447	;;
15448      *)
15449	# Assume MSVC wrapper
15450	hardcode_libdir_flag_spec=' '
15451	allow_undefined_flag=unsupported
15452	# Tell ltmain to make .lib files, not .a files.
15453	libext=lib
15454	# Tell ltmain to make .dll files, not .so files.
15455	shrext_cmds=".dll"
15456	# FIXME: Setting linknames here is a bad hack.
15457	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15458	# The linker will automatically build a .lib file if we build a DLL.
15459	old_archive_from_new_cmds='true'
15460	# FIXME: Should let the user specify the lib program.
15461	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15462	enable_shared_with_static_runtimes=yes
15463	;;
15464      esac
15465      ;;
15466
15467    darwin* | rhapsody*)
15468
15469
15470  archive_cmds_need_lc=no
15471  hardcode_direct=no
15472  hardcode_automatic=yes
15473  hardcode_shlibpath_var=unsupported
15474  if test "$lt_cv_ld_force_load" = "yes"; then
15475    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\"`'
15476
15477  else
15478    whole_archive_flag_spec=''
15479  fi
15480  link_all_deplibs=yes
15481  allow_undefined_flag="$_lt_dar_allow_undefined"
15482  case $cc_basename in
15483     ifort*) _lt_dar_can_shared=yes ;;
15484     *) _lt_dar_can_shared=$GCC ;;
15485  esac
15486  if test "$_lt_dar_can_shared" = "yes"; then
15487    output_verbose_link_cmd=func_echo_all
15488    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15489    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15490    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}"
15491    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}"
15492
15493  else
15494  ld_shlibs=no
15495  fi
15496
15497      ;;
15498
15499    dgux*)
15500      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501      hardcode_libdir_flag_spec='-L$libdir'
15502      hardcode_shlibpath_var=no
15503      ;;
15504
15505    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15506    # support.  Future versions do this automatically, but an explicit c++rt0.o
15507    # does not break anything, and helps significantly (at the cost of a little
15508    # extra space).
15509    freebsd2.2*)
15510      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15511      hardcode_libdir_flag_spec='-R$libdir'
15512      hardcode_direct=yes
15513      hardcode_shlibpath_var=no
15514      ;;
15515
15516    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15517    freebsd2.*)
15518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519      hardcode_direct=yes
15520      hardcode_minus_L=yes
15521      hardcode_shlibpath_var=no
15522      ;;
15523
15524    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15525    freebsd* | dragonfly*)
15526      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15527      hardcode_libdir_flag_spec='-R$libdir'
15528      hardcode_direct=yes
15529      hardcode_shlibpath_var=no
15530      ;;
15531
15532    hpux9*)
15533      if test "$GCC" = yes; then
15534	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'
15535      else
15536	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'
15537      fi
15538      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15539      hardcode_libdir_separator=:
15540      hardcode_direct=yes
15541
15542      # hardcode_minus_L: Not really in the search PATH,
15543      # but as the default location of the library.
15544      hardcode_minus_L=yes
15545      export_dynamic_flag_spec='${wl}-E'
15546      ;;
15547
15548    hpux10*)
15549      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15550	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15551      else
15552	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15553      fi
15554      if test "$with_gnu_ld" = no; then
15555	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15556	hardcode_libdir_separator=:
15557	hardcode_direct=yes
15558	hardcode_direct_absolute=yes
15559	export_dynamic_flag_spec='${wl}-E'
15560	# hardcode_minus_L: Not really in the search PATH,
15561	# but as the default location of the library.
15562	hardcode_minus_L=yes
15563      fi
15564      ;;
15565
15566    hpux11*)
15567      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15568	case $host_cpu in
15569	hppa*64*)
15570	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15571	  ;;
15572	ia64*)
15573	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15574	  ;;
15575	*)
15576	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15577	  ;;
15578	esac
15579      else
15580	case $host_cpu in
15581	hppa*64*)
15582	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583	  ;;
15584	ia64*)
15585	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15586	  ;;
15587	*)
15588
15589	  # Older versions of the 11.00 compiler do not understand -b yet
15590	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15591	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15592$as_echo_n "checking if $CC understands -b... " >&6; }
15593if ${lt_cv_prog_compiler__b+:} false; then :
15594  $as_echo_n "(cached) " >&6
15595else
15596  lt_cv_prog_compiler__b=no
15597   save_LDFLAGS="$LDFLAGS"
15598   LDFLAGS="$LDFLAGS -b"
15599   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15600   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15601     # The linker can only warn and ignore the option if not recognized
15602     # So say no if there are warnings
15603     if test -s conftest.err; then
15604       # Append any errors to the config.log.
15605       cat conftest.err 1>&5
15606       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15607       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15608       if diff conftest.exp conftest.er2 >/dev/null; then
15609         lt_cv_prog_compiler__b=yes
15610       fi
15611     else
15612       lt_cv_prog_compiler__b=yes
15613     fi
15614   fi
15615   $RM -r conftest*
15616   LDFLAGS="$save_LDFLAGS"
15617
15618fi
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15620$as_echo "$lt_cv_prog_compiler__b" >&6; }
15621
15622if test x"$lt_cv_prog_compiler__b" = xyes; then
15623    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624else
15625    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626fi
15627
15628	  ;;
15629	esac
15630      fi
15631      if test "$with_gnu_ld" = no; then
15632	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15633	hardcode_libdir_separator=:
15634
15635	case $host_cpu in
15636	hppa*64*|ia64*)
15637	  hardcode_direct=no
15638	  hardcode_shlibpath_var=no
15639	  ;;
15640	*)
15641	  hardcode_direct=yes
15642	  hardcode_direct_absolute=yes
15643	  export_dynamic_flag_spec='${wl}-E'
15644
15645	  # hardcode_minus_L: Not really in the search PATH,
15646	  # but as the default location of the library.
15647	  hardcode_minus_L=yes
15648	  ;;
15649	esac
15650      fi
15651      ;;
15652
15653    irix5* | irix6* | nonstopux*)
15654      if test "$GCC" = yes; then
15655	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'
15656	# Try to use the -exported_symbol ld option, if it does not
15657	# work, assume that -exports_file does not work either and
15658	# implicitly export all symbols.
15659	# This should be the same for all languages, so no per-tag cache variable.
15660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15661$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15662if ${lt_cv_irix_exported_symbol+:} false; then :
15663  $as_echo_n "(cached) " >&6
15664else
15665  save_LDFLAGS="$LDFLAGS"
15666	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15667	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668/* end confdefs.h.  */
15669int foo (void) { return 0; }
15670_ACEOF
15671if ac_fn_c_try_link "$LINENO"; then :
15672  lt_cv_irix_exported_symbol=yes
15673else
15674  lt_cv_irix_exported_symbol=no
15675fi
15676rm -f core conftest.err conftest.$ac_objext \
15677    conftest$ac_exeext conftest.$ac_ext
15678           LDFLAGS="$save_LDFLAGS"
15679fi
15680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15681$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15682	if test "$lt_cv_irix_exported_symbol" = yes; then
15683          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'
15684	fi
15685      else
15686	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'
15687	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'
15688      fi
15689      archive_cmds_need_lc='no'
15690      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691      hardcode_libdir_separator=:
15692      inherit_rpath=yes
15693      link_all_deplibs=yes
15694      ;;
15695
15696    netbsd* | netbsdelf*-gnu)
15697      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15699      else
15700	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15701      fi
15702      hardcode_libdir_flag_spec='-R$libdir'
15703      hardcode_direct=yes
15704      hardcode_shlibpath_var=no
15705      ;;
15706
15707    newsos6)
15708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709      hardcode_direct=yes
15710      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15711      hardcode_libdir_separator=:
15712      hardcode_shlibpath_var=no
15713      ;;
15714
15715    *nto* | *qnx*)
15716      ;;
15717
15718    openbsd*)
15719      if test -f /usr/libexec/ld.so; then
15720	hardcode_direct=yes
15721	hardcode_shlibpath_var=no
15722	hardcode_direct_absolute=yes
15723	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15724	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15726	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15727	  export_dynamic_flag_spec='${wl}-E'
15728	else
15729	  case $host_os in
15730	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15731	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732	     hardcode_libdir_flag_spec='-R$libdir'
15733	     ;;
15734	   *)
15735	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15736	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15737	     ;;
15738	  esac
15739	fi
15740      else
15741	ld_shlibs=no
15742      fi
15743      ;;
15744
15745    os2*)
15746      hardcode_libdir_flag_spec='-L$libdir'
15747      hardcode_minus_L=yes
15748      allow_undefined_flag=unsupported
15749      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'
15750      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15751      ;;
15752
15753    osf3*)
15754      if test "$GCC" = yes; then
15755	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756	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'
15757      else
15758	allow_undefined_flag=' -expect_unresolved \*'
15759	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'
15760      fi
15761      archive_cmds_need_lc='no'
15762      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763      hardcode_libdir_separator=:
15764      ;;
15765
15766    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15767      if test "$GCC" = yes; then
15768	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15769	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'
15770	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15771      else
15772	allow_undefined_flag=' -expect_unresolved \*'
15773	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'
15774	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~
15775	$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'
15776
15777	# Both c and cxx compiler support -rpath directly
15778	hardcode_libdir_flag_spec='-rpath $libdir'
15779      fi
15780      archive_cmds_need_lc='no'
15781      hardcode_libdir_separator=:
15782      ;;
15783
15784    solaris*)
15785      no_undefined_flag=' -z defs'
15786      if test "$GCC" = yes; then
15787	wlarc='${wl}'
15788	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15790	  $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'
15791      else
15792	case `$CC -V 2>&1` in
15793	*"Compilers 5.0"*)
15794	  wlarc=''
15795	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15797	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15798	  ;;
15799	*)
15800	  wlarc='${wl}'
15801	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15802	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15803	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15804	  ;;
15805	esac
15806      fi
15807      hardcode_libdir_flag_spec='-R$libdir'
15808      hardcode_shlibpath_var=no
15809      case $host_os in
15810      solaris2.[0-5] | solaris2.[0-5].*) ;;
15811      *)
15812	# The compiler driver will combine and reorder linker options,
15813	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15814	# but is careful enough not to reorder.
15815	# Supported since Solaris 2.6 (maybe 2.5.1?)
15816	if test "$GCC" = yes; then
15817	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15818	else
15819	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15820	fi
15821	;;
15822      esac
15823      link_all_deplibs=yes
15824      ;;
15825
15826    sunos4*)
15827      if test "x$host_vendor" = xsequent; then
15828	# Use $CC to link under sequent, because it throws in some extra .o
15829	# files that make .init and .fini sections work.
15830	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15831      else
15832	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15833      fi
15834      hardcode_libdir_flag_spec='-L$libdir'
15835      hardcode_direct=yes
15836      hardcode_minus_L=yes
15837      hardcode_shlibpath_var=no
15838      ;;
15839
15840    sysv4)
15841      case $host_vendor in
15842	sni)
15843	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844	  hardcode_direct=yes # is this really true???
15845	;;
15846	siemens)
15847	  ## LD is ld it makes a PLAMLIB
15848	  ## CC just makes a GrossModule.
15849	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15850	  reload_cmds='$CC -r -o $output$reload_objs'
15851	  hardcode_direct=no
15852        ;;
15853	motorola)
15854	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15856	;;
15857      esac
15858      runpath_var='LD_RUN_PATH'
15859      hardcode_shlibpath_var=no
15860      ;;
15861
15862    sysv4.3*)
15863      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864      hardcode_shlibpath_var=no
15865      export_dynamic_flag_spec='-Bexport'
15866      ;;
15867
15868    sysv4*MP*)
15869      if test -d /usr/nec; then
15870	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15871	hardcode_shlibpath_var=no
15872	runpath_var=LD_RUN_PATH
15873	hardcode_runpath_var=yes
15874	ld_shlibs=yes
15875      fi
15876      ;;
15877
15878    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15879      no_undefined_flag='${wl}-z,text'
15880      archive_cmds_need_lc=no
15881      hardcode_shlibpath_var=no
15882      runpath_var='LD_RUN_PATH'
15883
15884      if test "$GCC" = yes; then
15885	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887      else
15888	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15889	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890      fi
15891      ;;
15892
15893    sysv5* | sco3.2v5* | sco5v6*)
15894      # Note: We can NOT use -z defs as we might desire, because we do not
15895      # link with -lc, and that would cause any symbols used from libc to
15896      # always be unresolved, which means just about no library would
15897      # ever link correctly.  If we're not using GNU ld we use -z text
15898      # though, which does catch some bad symbols but isn't as heavy-handed
15899      # as -z defs.
15900      no_undefined_flag='${wl}-z,text'
15901      allow_undefined_flag='${wl}-z,nodefs'
15902      archive_cmds_need_lc=no
15903      hardcode_shlibpath_var=no
15904      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15905      hardcode_libdir_separator=':'
15906      link_all_deplibs=yes
15907      export_dynamic_flag_spec='${wl}-Bexport'
15908      runpath_var='LD_RUN_PATH'
15909
15910      if test "$GCC" = yes; then
15911	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15912	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15913      else
15914	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15915	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15916      fi
15917      ;;
15918
15919    uts4*)
15920      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921      hardcode_libdir_flag_spec='-L$libdir'
15922      hardcode_shlibpath_var=no
15923      ;;
15924
15925    *)
15926      ld_shlibs=no
15927      ;;
15928    esac
15929
15930    if test x$host_vendor = xsni; then
15931      case $host in
15932      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15933	export_dynamic_flag_spec='${wl}-Blargedynsym'
15934	;;
15935      esac
15936    fi
15937  fi
15938
15939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15940$as_echo "$ld_shlibs" >&6; }
15941test "$ld_shlibs" = no && can_build_shared=no
15942
15943with_gnu_ld=$with_gnu_ld
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959#
15960# Do we need to explicitly link libc?
15961#
15962case "x$archive_cmds_need_lc" in
15963x|xyes)
15964  # Assume -lc should be added
15965  archive_cmds_need_lc=yes
15966
15967  if test "$enable_shared" = yes && test "$GCC" = yes; then
15968    case $archive_cmds in
15969    *'~'*)
15970      # FIXME: we may have to deal with multi-command sequences.
15971      ;;
15972    '$CC '*)
15973      # Test whether the compiler implicitly links with -lc since on some
15974      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15975      # to ld, don't add -lc before -lgcc.
15976      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15977$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15978if ${lt_cv_archive_cmds_need_lc+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  $RM conftest*
15982	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15985  (eval $ac_compile) 2>&5
15986  ac_status=$?
15987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15988  test $ac_status = 0; } 2>conftest.err; then
15989	  soname=conftest
15990	  lib=conftest
15991	  libobjs=conftest.$ac_objext
15992	  deplibs=
15993	  wl=$lt_prog_compiler_wl
15994	  pic_flag=$lt_prog_compiler_pic
15995	  compiler_flags=-v
15996	  linker_flags=-v
15997	  verstring=
15998	  output_objdir=.
15999	  libname=conftest
16000	  lt_save_allow_undefined_flag=$allow_undefined_flag
16001	  allow_undefined_flag=
16002	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16003  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16004  ac_status=$?
16005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16006  test $ac_status = 0; }
16007	  then
16008	    lt_cv_archive_cmds_need_lc=no
16009	  else
16010	    lt_cv_archive_cmds_need_lc=yes
16011	  fi
16012	  allow_undefined_flag=$lt_save_allow_undefined_flag
16013	else
16014	  cat conftest.err 1>&5
16015	fi
16016	$RM conftest*
16017
16018fi
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16020$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16021      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16022      ;;
16023    esac
16024  fi
16025  ;;
16026esac
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16180$as_echo_n "checking dynamic linker characteristics... " >&6; }
16181
16182if test "$GCC" = yes; then
16183  case $host_os in
16184    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16185    *) lt_awk_arg="/^libraries:/" ;;
16186  esac
16187  case $host_os in
16188    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16189    *) lt_sed_strip_eq="s,=/,/,g" ;;
16190  esac
16191  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16192  case $lt_search_path_spec in
16193  *\;*)
16194    # if the path contains ";" then we assume it to be the separator
16195    # otherwise default to the standard path separator (i.e. ":") - it is
16196    # assumed that no part of a normal pathname contains ";" but that should
16197    # okay in the real world where ";" in dirpaths is itself problematic.
16198    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16199    ;;
16200  *)
16201    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16202    ;;
16203  esac
16204  # Ok, now we have the path, separated by spaces, we can step through it
16205  # and add multilib dir if necessary.
16206  lt_tmp_lt_search_path_spec=
16207  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16208  for lt_sys_path in $lt_search_path_spec; do
16209    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16210      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16211    else
16212      test -d "$lt_sys_path" && \
16213	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16214    fi
16215  done
16216  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16217BEGIN {RS=" "; FS="/|\n";} {
16218  lt_foo="";
16219  lt_count=0;
16220  for (lt_i = NF; lt_i > 0; lt_i--) {
16221    if ($lt_i != "" && $lt_i != ".") {
16222      if ($lt_i == "..") {
16223        lt_count++;
16224      } else {
16225        if (lt_count == 0) {
16226          lt_foo="/" $lt_i lt_foo;
16227        } else {
16228          lt_count--;
16229        }
16230      }
16231    }
16232  }
16233  if (lt_foo != "") { lt_freq[lt_foo]++; }
16234  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16235}'`
16236  # AWK program above erroneously prepends '/' to C:/dos/paths
16237  # for these hosts.
16238  case $host_os in
16239    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16240      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16241  esac
16242  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16243else
16244  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16245fi
16246library_names_spec=
16247libname_spec='lib$name'
16248soname_spec=
16249shrext_cmds=".so"
16250postinstall_cmds=
16251postuninstall_cmds=
16252finish_cmds=
16253finish_eval=
16254shlibpath_var=
16255shlibpath_overrides_runpath=unknown
16256version_type=none
16257dynamic_linker="$host_os ld.so"
16258sys_lib_dlsearch_path_spec="/lib /usr/lib"
16259need_lib_prefix=unknown
16260hardcode_into_libs=no
16261
16262# when you set need_version to no, make sure it does not cause -set_version
16263# flags to be left without arguments
16264need_version=unknown
16265
16266case $host_os in
16267aix3*)
16268  version_type=linux # correct to gnu/linux during the next big refactor
16269  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16270  shlibpath_var=LIBPATH
16271
16272  # AIX 3 has no versioning support, so we append a major version to the name.
16273  soname_spec='${libname}${release}${shared_ext}$major'
16274  ;;
16275
16276aix[4-9]*)
16277  version_type=linux # correct to gnu/linux during the next big refactor
16278  need_lib_prefix=no
16279  need_version=no
16280  hardcode_into_libs=yes
16281  if test "$host_cpu" = ia64; then
16282    # AIX 5 supports IA64
16283    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16284    shlibpath_var=LD_LIBRARY_PATH
16285  else
16286    # With GCC up to 2.95.x, collect2 would create an import file
16287    # for dependence libraries.  The import file would start with
16288    # the line `#! .'.  This would cause the generated library to
16289    # depend on `.', always an invalid library.  This was fixed in
16290    # development snapshots of GCC prior to 3.0.
16291    case $host_os in
16292      aix4 | aix4.[01] | aix4.[01].*)
16293      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16294	   echo ' yes '
16295	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16296	:
16297      else
16298	can_build_shared=no
16299      fi
16300      ;;
16301    esac
16302    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16303    # soname into executable. Probably we can add versioning support to
16304    # collect2, so additional links can be useful in future.
16305    if test "$aix_use_runtimelinking" = yes; then
16306      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16307      # instead of lib<name>.a to let people know that these are not
16308      # typical AIX shared libraries.
16309      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310    else
16311      # We preserve .a as extension for shared libraries through AIX4.2
16312      # and later when we are not doing run time linking.
16313      library_names_spec='${libname}${release}.a $libname.a'
16314      soname_spec='${libname}${release}${shared_ext}$major'
16315    fi
16316    shlibpath_var=LIBPATH
16317  fi
16318  ;;
16319
16320amigaos*)
16321  case $host_cpu in
16322  powerpc)
16323    # Since July 2007 AmigaOS4 officially supports .so libraries.
16324    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326    ;;
16327  m68k)
16328    library_names_spec='$libname.ixlibrary $libname.a'
16329    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16330    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'
16331    ;;
16332  esac
16333  ;;
16334
16335beos*)
16336  library_names_spec='${libname}${shared_ext}'
16337  dynamic_linker="$host_os ld.so"
16338  shlibpath_var=LIBRARY_PATH
16339  ;;
16340
16341bsdi[45]*)
16342  version_type=linux # correct to gnu/linux during the next big refactor
16343  need_version=no
16344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345  soname_spec='${libname}${release}${shared_ext}$major'
16346  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16347  shlibpath_var=LD_LIBRARY_PATH
16348  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16349  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16350  # the default ld.so.conf also contains /usr/contrib/lib and
16351  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16352  # libtool to hard-code these into programs
16353  ;;
16354
16355cygwin* | mingw* | pw32* | cegcc*)
16356  version_type=windows
16357  shrext_cmds=".dll"
16358  need_version=no
16359  need_lib_prefix=no
16360
16361  case $GCC,$cc_basename in
16362  yes,*)
16363    # gcc
16364    library_names_spec='$libname.dll.a'
16365    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16366    postinstall_cmds='base_file=`basename \${file}`~
16367      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16368      dldir=$destdir/`dirname \$dlpath`~
16369      test -d \$dldir || mkdir -p \$dldir~
16370      $install_prog $dir/$dlname \$dldir/$dlname~
16371      chmod a+x \$dldir/$dlname~
16372      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16373        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16374      fi'
16375    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16376      dlpath=$dir/\$dldll~
16377       $RM \$dlpath'
16378    shlibpath_overrides_runpath=yes
16379
16380    case $host_os in
16381    cygwin*)
16382      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16383      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16384
16385      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16386      ;;
16387    mingw* | cegcc*)
16388      # MinGW DLLs use traditional 'lib' prefix
16389      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390      ;;
16391    pw32*)
16392      # pw32 DLLs use 'pw' prefix rather than 'lib'
16393      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16394      ;;
16395    esac
16396    dynamic_linker='Win32 ld.exe'
16397    ;;
16398
16399  *,cl*)
16400    # Native MSVC
16401    libname_spec='$name'
16402    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16403    library_names_spec='${libname}.dll.lib'
16404
16405    case $build_os in
16406    mingw*)
16407      sys_lib_search_path_spec=
16408      lt_save_ifs=$IFS
16409      IFS=';'
16410      for lt_path in $LIB
16411      do
16412        IFS=$lt_save_ifs
16413        # Let DOS variable expansion print the short 8.3 style file name.
16414        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16415        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16416      done
16417      IFS=$lt_save_ifs
16418      # Convert to MSYS style.
16419      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16420      ;;
16421    cygwin*)
16422      # Convert to unix form, then to dos form, then back to unix form
16423      # but this time dos style (no spaces!) so that the unix form looks
16424      # like /cygdrive/c/PROGRA~1:/cygdr...
16425      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16426      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16427      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16428      ;;
16429    *)
16430      sys_lib_search_path_spec="$LIB"
16431      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16432        # It is most probably a Windows format PATH.
16433        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434      else
16435        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16436      fi
16437      # FIXME: find the short name or the path components, as spaces are
16438      # common. (e.g. "Program Files" -> "PROGRA~1")
16439      ;;
16440    esac
16441
16442    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16443    postinstall_cmds='base_file=`basename \${file}`~
16444      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16445      dldir=$destdir/`dirname \$dlpath`~
16446      test -d \$dldir || mkdir -p \$dldir~
16447      $install_prog $dir/$dlname \$dldir/$dlname'
16448    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16449      dlpath=$dir/\$dldll~
16450       $RM \$dlpath'
16451    shlibpath_overrides_runpath=yes
16452    dynamic_linker='Win32 link.exe'
16453    ;;
16454
16455  *)
16456    # Assume MSVC wrapper
16457    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16458    dynamic_linker='Win32 ld.exe'
16459    ;;
16460  esac
16461  # FIXME: first we should search . and the directory the executable is in
16462  shlibpath_var=PATH
16463  ;;
16464
16465darwin* | rhapsody*)
16466  dynamic_linker="$host_os dyld"
16467  version_type=darwin
16468  need_lib_prefix=no
16469  need_version=no
16470  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16471  soname_spec='${libname}${release}${major}$shared_ext'
16472  shlibpath_overrides_runpath=yes
16473  shlibpath_var=DYLD_LIBRARY_PATH
16474  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16475
16476  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16477  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16478  ;;
16479
16480dgux*)
16481  version_type=linux # correct to gnu/linux during the next big refactor
16482  need_lib_prefix=no
16483  need_version=no
16484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16485  soname_spec='${libname}${release}${shared_ext}$major'
16486  shlibpath_var=LD_LIBRARY_PATH
16487  ;;
16488
16489freebsd* | dragonfly*)
16490  # DragonFly does not have aout.  When/if they implement a new
16491  # versioning mechanism, adjust this.
16492  if test -x /usr/bin/objformat; then
16493    objformat=`/usr/bin/objformat`
16494  else
16495    case $host_os in
16496    freebsd[23].*) objformat=aout ;;
16497    *) objformat=elf ;;
16498    esac
16499  fi
16500  version_type=freebsd-$objformat
16501  case $version_type in
16502    freebsd-elf*)
16503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16504      need_version=no
16505      need_lib_prefix=no
16506      ;;
16507    freebsd-*)
16508      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16509      need_version=yes
16510      ;;
16511  esac
16512  shlibpath_var=LD_LIBRARY_PATH
16513  case $host_os in
16514  freebsd2.*)
16515    shlibpath_overrides_runpath=yes
16516    ;;
16517  freebsd3.[01]* | freebsdelf3.[01]*)
16518    shlibpath_overrides_runpath=yes
16519    hardcode_into_libs=yes
16520    ;;
16521  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16522  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16523    shlibpath_overrides_runpath=no
16524    hardcode_into_libs=yes
16525    ;;
16526  *) # from 4.6 on, and DragonFly
16527    shlibpath_overrides_runpath=yes
16528    hardcode_into_libs=yes
16529    ;;
16530  esac
16531  ;;
16532
16533gnu*)
16534  version_type=linux # correct to gnu/linux during the next big refactor
16535  need_lib_prefix=no
16536  need_version=no
16537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16538  soname_spec='${libname}${release}${shared_ext}$major'
16539  shlibpath_var=LD_LIBRARY_PATH
16540  shlibpath_overrides_runpath=no
16541  hardcode_into_libs=yes
16542  ;;
16543
16544haiku*)
16545  version_type=linux # correct to gnu/linux during the next big refactor
16546  need_lib_prefix=no
16547  need_version=no
16548  dynamic_linker="$host_os runtime_loader"
16549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16550  soname_spec='${libname}${release}${shared_ext}$major'
16551  shlibpath_var=LIBRARY_PATH
16552  shlibpath_overrides_runpath=yes
16553  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16554  hardcode_into_libs=yes
16555  ;;
16556
16557hpux9* | hpux10* | hpux11*)
16558  # Give a soname corresponding to the major version so that dld.sl refuses to
16559  # link against other versions.
16560  version_type=sunos
16561  need_lib_prefix=no
16562  need_version=no
16563  case $host_cpu in
16564  ia64*)
16565    shrext_cmds='.so'
16566    hardcode_into_libs=yes
16567    dynamic_linker="$host_os dld.so"
16568    shlibpath_var=LD_LIBRARY_PATH
16569    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571    soname_spec='${libname}${release}${shared_ext}$major'
16572    if test "X$HPUX_IA64_MODE" = X32; then
16573      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16574    else
16575      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16576    fi
16577    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578    ;;
16579  hppa*64*)
16580    shrext_cmds='.sl'
16581    hardcode_into_libs=yes
16582    dynamic_linker="$host_os dld.sl"
16583    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16584    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586    soname_spec='${libname}${release}${shared_ext}$major'
16587    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16588    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16589    ;;
16590  *)
16591    shrext_cmds='.sl'
16592    dynamic_linker="$host_os dld.sl"
16593    shlibpath_var=SHLIB_PATH
16594    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596    soname_spec='${libname}${release}${shared_ext}$major'
16597    ;;
16598  esac
16599  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16600  postinstall_cmds='chmod 555 $lib'
16601  # or fails outright, so override atomically:
16602  install_override_mode=555
16603  ;;
16604
16605interix[3-9]*)
16606  version_type=linux # correct to gnu/linux during the next big refactor
16607  need_lib_prefix=no
16608  need_version=no
16609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16610  soname_spec='${libname}${release}${shared_ext}$major'
16611  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16612  shlibpath_var=LD_LIBRARY_PATH
16613  shlibpath_overrides_runpath=no
16614  hardcode_into_libs=yes
16615  ;;
16616
16617irix5* | irix6* | nonstopux*)
16618  case $host_os in
16619    nonstopux*) version_type=nonstopux ;;
16620    *)
16621	if test "$lt_cv_prog_gnu_ld" = yes; then
16622		version_type=linux # correct to gnu/linux during the next big refactor
16623	else
16624		version_type=irix
16625	fi ;;
16626  esac
16627  need_lib_prefix=no
16628  need_version=no
16629  soname_spec='${libname}${release}${shared_ext}$major'
16630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16631  case $host_os in
16632  irix5* | nonstopux*)
16633    libsuff= shlibsuff=
16634    ;;
16635  *)
16636    case $LD in # libtool.m4 will add one of these switches to LD
16637    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16638      libsuff= shlibsuff= libmagic=32-bit;;
16639    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16640      libsuff=32 shlibsuff=N32 libmagic=N32;;
16641    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16642      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16643    *) libsuff= shlibsuff= libmagic=never-match;;
16644    esac
16645    ;;
16646  esac
16647  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16648  shlibpath_overrides_runpath=no
16649  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16650  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16651  hardcode_into_libs=yes
16652  ;;
16653
16654# No shared lib support for Linux oldld, aout, or coff.
16655linux*oldld* | linux*aout* | linux*coff*)
16656  dynamic_linker=no
16657  ;;
16658
16659# This must be glibc/ELF.
16660linux* | k*bsd*-gnu | kopensolaris*-gnu)
16661  version_type=linux # correct to gnu/linux during the next big refactor
16662  need_lib_prefix=no
16663  need_version=no
16664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665  soname_spec='${libname}${release}${shared_ext}$major'
16666  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16667  shlibpath_var=LD_LIBRARY_PATH
16668  shlibpath_overrides_runpath=no
16669
16670  # Some binutils ld are patched to set DT_RUNPATH
16671  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16672  $as_echo_n "(cached) " >&6
16673else
16674  lt_cv_shlibpath_overrides_runpath=no
16675    save_LDFLAGS=$LDFLAGS
16676    save_libdir=$libdir
16677    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16678	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16679    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h.  */
16681
16682int
16683main ()
16684{
16685
16686  ;
16687  return 0;
16688}
16689_ACEOF
16690if ac_fn_c_try_link "$LINENO"; then :
16691  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16692  lt_cv_shlibpath_overrides_runpath=yes
16693fi
16694fi
16695rm -f core conftest.err conftest.$ac_objext \
16696    conftest$ac_exeext conftest.$ac_ext
16697    LDFLAGS=$save_LDFLAGS
16698    libdir=$save_libdir
16699
16700fi
16701
16702  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16703
16704  # This implies no fast_install, which is unacceptable.
16705  # Some rework will be needed to allow for fast_install
16706  # before this can be enabled.
16707  hardcode_into_libs=yes
16708
16709  # Append ld.so.conf contents to the search path
16710  if test -f /etc/ld.so.conf; then
16711    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' ' '`
16712    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16713  fi
16714
16715  # We used to test for /lib/ld.so.1 and disable shared libraries on
16716  # powerpc, because MkLinux only supported shared libraries with the
16717  # GNU dynamic linker.  Since this was broken with cross compilers,
16718  # most powerpc-linux boxes support dynamic linking these days and
16719  # people can always --disable-shared, the test was removed, and we
16720  # assume the GNU/Linux dynamic linker is in use.
16721  dynamic_linker='GNU/Linux ld.so'
16722  ;;
16723
16724netbsdelf*-gnu)
16725  version_type=linux
16726  need_lib_prefix=no
16727  need_version=no
16728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16729  soname_spec='${libname}${release}${shared_ext}$major'
16730  shlibpath_var=LD_LIBRARY_PATH
16731  shlibpath_overrides_runpath=no
16732  hardcode_into_libs=yes
16733  dynamic_linker='NetBSD ld.elf_so'
16734  ;;
16735
16736netbsd*)
16737  version_type=sunos
16738  need_lib_prefix=no
16739  need_version=no
16740  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16742    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16743    dynamic_linker='NetBSD (a.out) ld.so'
16744  else
16745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16746    soname_spec='${libname}${release}${shared_ext}$major'
16747    dynamic_linker='NetBSD ld.elf_so'
16748  fi
16749  shlibpath_var=LD_LIBRARY_PATH
16750  shlibpath_overrides_runpath=yes
16751  hardcode_into_libs=yes
16752  ;;
16753
16754newsos6)
16755  version_type=linux # correct to gnu/linux during the next big refactor
16756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757  shlibpath_var=LD_LIBRARY_PATH
16758  shlibpath_overrides_runpath=yes
16759  ;;
16760
16761*nto* | *qnx*)
16762  version_type=qnx
16763  need_lib_prefix=no
16764  need_version=no
16765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766  soname_spec='${libname}${release}${shared_ext}$major'
16767  shlibpath_var=LD_LIBRARY_PATH
16768  shlibpath_overrides_runpath=no
16769  hardcode_into_libs=yes
16770  dynamic_linker='ldqnx.so'
16771  ;;
16772
16773openbsd*)
16774  version_type=sunos
16775  sys_lib_dlsearch_path_spec="/usr/lib"
16776  need_lib_prefix=no
16777  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16778  case $host_os in
16779    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16780    *)				need_version=no  ;;
16781  esac
16782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16784  shlibpath_var=LD_LIBRARY_PATH
16785  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16786    case $host_os in
16787      openbsd2.[89] | openbsd2.[89].*)
16788	shlibpath_overrides_runpath=no
16789	;;
16790      *)
16791	shlibpath_overrides_runpath=yes
16792	;;
16793      esac
16794  else
16795    shlibpath_overrides_runpath=yes
16796  fi
16797  ;;
16798
16799os2*)
16800  libname_spec='$name'
16801  shrext_cmds=".dll"
16802  need_lib_prefix=no
16803  library_names_spec='$libname${shared_ext} $libname.a'
16804  dynamic_linker='OS/2 ld.exe'
16805  shlibpath_var=LIBPATH
16806  ;;
16807
16808osf3* | osf4* | osf5*)
16809  version_type=osf
16810  need_lib_prefix=no
16811  need_version=no
16812  soname_spec='${libname}${release}${shared_ext}$major'
16813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16816  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16817  ;;
16818
16819rdos*)
16820  dynamic_linker=no
16821  ;;
16822
16823solaris*)
16824  version_type=linux # correct to gnu/linux during the next big refactor
16825  need_lib_prefix=no
16826  need_version=no
16827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828  soname_spec='${libname}${release}${shared_ext}$major'
16829  shlibpath_var=LD_LIBRARY_PATH
16830  shlibpath_overrides_runpath=yes
16831  hardcode_into_libs=yes
16832  # ldd complains unless libraries are executable
16833  postinstall_cmds='chmod +x $lib'
16834  ;;
16835
16836sunos4*)
16837  version_type=sunos
16838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16839  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16840  shlibpath_var=LD_LIBRARY_PATH
16841  shlibpath_overrides_runpath=yes
16842  if test "$with_gnu_ld" = yes; then
16843    need_lib_prefix=no
16844  fi
16845  need_version=yes
16846  ;;
16847
16848sysv4 | sysv4.3*)
16849  version_type=linux # correct to gnu/linux during the next big refactor
16850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851  soname_spec='${libname}${release}${shared_ext}$major'
16852  shlibpath_var=LD_LIBRARY_PATH
16853  case $host_vendor in
16854    sni)
16855      shlibpath_overrides_runpath=no
16856      need_lib_prefix=no
16857      runpath_var=LD_RUN_PATH
16858      ;;
16859    siemens)
16860      need_lib_prefix=no
16861      ;;
16862    motorola)
16863      need_lib_prefix=no
16864      need_version=no
16865      shlibpath_overrides_runpath=no
16866      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16867      ;;
16868  esac
16869  ;;
16870
16871sysv4*MP*)
16872  if test -d /usr/nec ;then
16873    version_type=linux # correct to gnu/linux during the next big refactor
16874    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16875    soname_spec='$libname${shared_ext}.$major'
16876    shlibpath_var=LD_LIBRARY_PATH
16877  fi
16878  ;;
16879
16880sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16881  version_type=freebsd-elf
16882  need_lib_prefix=no
16883  need_version=no
16884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16885  soname_spec='${libname}${release}${shared_ext}$major'
16886  shlibpath_var=LD_LIBRARY_PATH
16887  shlibpath_overrides_runpath=yes
16888  hardcode_into_libs=yes
16889  if test "$with_gnu_ld" = yes; then
16890    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16891  else
16892    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16893    case $host_os in
16894      sco3.2v5*)
16895        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16896	;;
16897    esac
16898  fi
16899  sys_lib_dlsearch_path_spec='/usr/lib'
16900  ;;
16901
16902tpf*)
16903  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16904  version_type=linux # correct to gnu/linux during the next big refactor
16905  need_lib_prefix=no
16906  need_version=no
16907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908  shlibpath_var=LD_LIBRARY_PATH
16909  shlibpath_overrides_runpath=no
16910  hardcode_into_libs=yes
16911  ;;
16912
16913uts4*)
16914  version_type=linux # correct to gnu/linux during the next big refactor
16915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916  soname_spec='${libname}${release}${shared_ext}$major'
16917  shlibpath_var=LD_LIBRARY_PATH
16918  ;;
16919
16920*)
16921  dynamic_linker=no
16922  ;;
16923esac
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16925$as_echo "$dynamic_linker" >&6; }
16926test "$dynamic_linker" = no && can_build_shared=no
16927
16928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929if test "$GCC" = yes; then
16930  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931fi
16932
16933if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16934  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16935fi
16936if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16937  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16938fi
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17032$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17033hardcode_action=
17034if test -n "$hardcode_libdir_flag_spec" ||
17035   test -n "$runpath_var" ||
17036   test "X$hardcode_automatic" = "Xyes" ; then
17037
17038  # We can hardcode non-existent directories.
17039  if test "$hardcode_direct" != no &&
17040     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17041     # have to relink, otherwise we might link with an installed library
17042     # when we should be linking with a yet-to-be-installed one
17043     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17044     test "$hardcode_minus_L" != no; then
17045    # Linking always hardcodes the temporary library directory.
17046    hardcode_action=relink
17047  else
17048    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17049    hardcode_action=immediate
17050  fi
17051else
17052  # We cannot hardcode anything, or else we can only hardcode existing
17053  # directories.
17054  hardcode_action=unsupported
17055fi
17056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17057$as_echo "$hardcode_action" >&6; }
17058
17059if test "$hardcode_action" = relink ||
17060   test "$inherit_rpath" = yes; then
17061  # Fast installation is not supported
17062  enable_fast_install=no
17063elif test "$shlibpath_overrides_runpath" = yes ||
17064     test "$enable_shared" = no; then
17065  # Fast installation is not necessary
17066  enable_fast_install=needless
17067fi
17068
17069
17070
17071
17072
17073
17074  if test "x$enable_dlopen" != xyes; then
17075  enable_dlopen=unknown
17076  enable_dlopen_self=unknown
17077  enable_dlopen_self_static=unknown
17078else
17079  lt_cv_dlopen=no
17080  lt_cv_dlopen_libs=
17081
17082  case $host_os in
17083  beos*)
17084    lt_cv_dlopen="load_add_on"
17085    lt_cv_dlopen_libs=
17086    lt_cv_dlopen_self=yes
17087    ;;
17088
17089  mingw* | pw32* | cegcc*)
17090    lt_cv_dlopen="LoadLibrary"
17091    lt_cv_dlopen_libs=
17092    ;;
17093
17094  cygwin*)
17095    lt_cv_dlopen="dlopen"
17096    lt_cv_dlopen_libs=
17097    ;;
17098
17099  darwin*)
17100  # if libdl is installed we need to link against it
17101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17102$as_echo_n "checking for dlopen in -ldl... " >&6; }
17103if ${ac_cv_lib_dl_dlopen+:} false; then :
17104  $as_echo_n "(cached) " >&6
17105else
17106  ac_check_lib_save_LIBS=$LIBS
17107LIBS="-ldl  $LIBS"
17108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109/* end confdefs.h.  */
17110
17111/* Override any GCC internal prototype to avoid an error.
17112   Use char because int might match the return type of a GCC
17113   builtin and then its argument prototype would still apply.  */
17114#ifdef __cplusplus
17115extern "C"
17116#endif
17117char dlopen ();
17118int
17119main ()
17120{
17121return dlopen ();
17122  ;
17123  return 0;
17124}
17125_ACEOF
17126if ac_fn_c_try_link "$LINENO"; then :
17127  ac_cv_lib_dl_dlopen=yes
17128else
17129  ac_cv_lib_dl_dlopen=no
17130fi
17131rm -f core conftest.err conftest.$ac_objext \
17132    conftest$ac_exeext conftest.$ac_ext
17133LIBS=$ac_check_lib_save_LIBS
17134fi
17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17136$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17137if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17138  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17139else
17140
17141    lt_cv_dlopen="dyld"
17142    lt_cv_dlopen_libs=
17143    lt_cv_dlopen_self=yes
17144
17145fi
17146
17147    ;;
17148
17149  *)
17150    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17151if test "x$ac_cv_func_shl_load" = xyes; then :
17152  lt_cv_dlopen="shl_load"
17153else
17154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17155$as_echo_n "checking for shl_load in -ldld... " >&6; }
17156if ${ac_cv_lib_dld_shl_load+:} false; then :
17157  $as_echo_n "(cached) " >&6
17158else
17159  ac_check_lib_save_LIBS=$LIBS
17160LIBS="-ldld  $LIBS"
17161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162/* end confdefs.h.  */
17163
17164/* Override any GCC internal prototype to avoid an error.
17165   Use char because int might match the return type of a GCC
17166   builtin and then its argument prototype would still apply.  */
17167#ifdef __cplusplus
17168extern "C"
17169#endif
17170char shl_load ();
17171int
17172main ()
17173{
17174return shl_load ();
17175  ;
17176  return 0;
17177}
17178_ACEOF
17179if ac_fn_c_try_link "$LINENO"; then :
17180  ac_cv_lib_dld_shl_load=yes
17181else
17182  ac_cv_lib_dld_shl_load=no
17183fi
17184rm -f core conftest.err conftest.$ac_objext \
17185    conftest$ac_exeext conftest.$ac_ext
17186LIBS=$ac_check_lib_save_LIBS
17187fi
17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17189$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17190if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17191  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17192else
17193  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17194if test "x$ac_cv_func_dlopen" = xyes; then :
17195  lt_cv_dlopen="dlopen"
17196else
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17198$as_echo_n "checking for dlopen in -ldl... " >&6; }
17199if ${ac_cv_lib_dl_dlopen+:} false; then :
17200  $as_echo_n "(cached) " >&6
17201else
17202  ac_check_lib_save_LIBS=$LIBS
17203LIBS="-ldl  $LIBS"
17204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205/* end confdefs.h.  */
17206
17207/* Override any GCC internal prototype to avoid an error.
17208   Use char because int might match the return type of a GCC
17209   builtin and then its argument prototype would still apply.  */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char dlopen ();
17214int
17215main ()
17216{
17217return dlopen ();
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222if ac_fn_c_try_link "$LINENO"; then :
17223  ac_cv_lib_dl_dlopen=yes
17224else
17225  ac_cv_lib_dl_dlopen=no
17226fi
17227rm -f core conftest.err conftest.$ac_objext \
17228    conftest$ac_exeext conftest.$ac_ext
17229LIBS=$ac_check_lib_save_LIBS
17230fi
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17232$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17233if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17234  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17235else
17236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17237$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17238if ${ac_cv_lib_svld_dlopen+:} false; then :
17239  $as_echo_n "(cached) " >&6
17240else
17241  ac_check_lib_save_LIBS=$LIBS
17242LIBS="-lsvld  $LIBS"
17243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245
17246/* Override any GCC internal prototype to avoid an error.
17247   Use char because int might match the return type of a GCC
17248   builtin and then its argument prototype would still apply.  */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252char dlopen ();
17253int
17254main ()
17255{
17256return dlopen ();
17257  ;
17258  return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262  ac_cv_lib_svld_dlopen=yes
17263else
17264  ac_cv_lib_svld_dlopen=no
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267    conftest$ac_exeext conftest.$ac_ext
17268LIBS=$ac_check_lib_save_LIBS
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17271$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17272if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17273  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17274else
17275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17276$as_echo_n "checking for dld_link in -ldld... " >&6; }
17277if ${ac_cv_lib_dld_dld_link+:} false; then :
17278  $as_echo_n "(cached) " >&6
17279else
17280  ac_check_lib_save_LIBS=$LIBS
17281LIBS="-ldld  $LIBS"
17282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283/* end confdefs.h.  */
17284
17285/* Override any GCC internal prototype to avoid an error.
17286   Use char because int might match the return type of a GCC
17287   builtin and then its argument prototype would still apply.  */
17288#ifdef __cplusplus
17289extern "C"
17290#endif
17291char dld_link ();
17292int
17293main ()
17294{
17295return dld_link ();
17296  ;
17297  return 0;
17298}
17299_ACEOF
17300if ac_fn_c_try_link "$LINENO"; then :
17301  ac_cv_lib_dld_dld_link=yes
17302else
17303  ac_cv_lib_dld_dld_link=no
17304fi
17305rm -f core conftest.err conftest.$ac_objext \
17306    conftest$ac_exeext conftest.$ac_ext
17307LIBS=$ac_check_lib_save_LIBS
17308fi
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17310$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17311if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17312  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17313fi
17314
17315
17316fi
17317
17318
17319fi
17320
17321
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330    ;;
17331  esac
17332
17333  if test "x$lt_cv_dlopen" != xno; then
17334    enable_dlopen=yes
17335  else
17336    enable_dlopen=no
17337  fi
17338
17339  case $lt_cv_dlopen in
17340  dlopen)
17341    save_CPPFLAGS="$CPPFLAGS"
17342    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17343
17344    save_LDFLAGS="$LDFLAGS"
17345    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17346
17347    save_LIBS="$LIBS"
17348    LIBS="$lt_cv_dlopen_libs $LIBS"
17349
17350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17351$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17352if ${lt_cv_dlopen_self+:} false; then :
17353  $as_echo_n "(cached) " >&6
17354else
17355  	  if test "$cross_compiling" = yes; then :
17356  lt_cv_dlopen_self=cross
17357else
17358  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17359  lt_status=$lt_dlunknown
17360  cat > conftest.$ac_ext <<_LT_EOF
17361#line $LINENO "configure"
17362#include "confdefs.h"
17363
17364#if HAVE_DLFCN_H
17365#include <dlfcn.h>
17366#endif
17367
17368#include <stdio.h>
17369
17370#ifdef RTLD_GLOBAL
17371#  define LT_DLGLOBAL		RTLD_GLOBAL
17372#else
17373#  ifdef DL_GLOBAL
17374#    define LT_DLGLOBAL		DL_GLOBAL
17375#  else
17376#    define LT_DLGLOBAL		0
17377#  endif
17378#endif
17379
17380/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17381   find out it does not work in some platform. */
17382#ifndef LT_DLLAZY_OR_NOW
17383#  ifdef RTLD_LAZY
17384#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17385#  else
17386#    ifdef DL_LAZY
17387#      define LT_DLLAZY_OR_NOW		DL_LAZY
17388#    else
17389#      ifdef RTLD_NOW
17390#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17391#      else
17392#        ifdef DL_NOW
17393#          define LT_DLLAZY_OR_NOW	DL_NOW
17394#        else
17395#          define LT_DLLAZY_OR_NOW	0
17396#        endif
17397#      endif
17398#    endif
17399#  endif
17400#endif
17401
17402/* When -fvisbility=hidden is used, assume the code has been annotated
17403   correspondingly for the symbols needed.  */
17404#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17405int fnord () __attribute__((visibility("default")));
17406#endif
17407
17408int fnord () { return 42; }
17409int main ()
17410{
17411  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17412  int status = $lt_dlunknown;
17413
17414  if (self)
17415    {
17416      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17417      else
17418        {
17419	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17420          else puts (dlerror ());
17421	}
17422      /* dlclose (self); */
17423    }
17424  else
17425    puts (dlerror ());
17426
17427  return status;
17428}
17429_LT_EOF
17430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17431  (eval $ac_link) 2>&5
17432  ac_status=$?
17433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17434  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17435    (./conftest; exit; ) >&5 2>/dev/null
17436    lt_status=$?
17437    case x$lt_status in
17438      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17439      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17440      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17441    esac
17442  else :
17443    # compilation failed
17444    lt_cv_dlopen_self=no
17445  fi
17446fi
17447rm -fr conftest*
17448
17449
17450fi
17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17452$as_echo "$lt_cv_dlopen_self" >&6; }
17453
17454    if test "x$lt_cv_dlopen_self" = xyes; then
17455      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17456      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17457$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17458if ${lt_cv_dlopen_self_static+:} false; then :
17459  $as_echo_n "(cached) " >&6
17460else
17461  	  if test "$cross_compiling" = yes; then :
17462  lt_cv_dlopen_self_static=cross
17463else
17464  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17465  lt_status=$lt_dlunknown
17466  cat > conftest.$ac_ext <<_LT_EOF
17467#line $LINENO "configure"
17468#include "confdefs.h"
17469
17470#if HAVE_DLFCN_H
17471#include <dlfcn.h>
17472#endif
17473
17474#include <stdio.h>
17475
17476#ifdef RTLD_GLOBAL
17477#  define LT_DLGLOBAL		RTLD_GLOBAL
17478#else
17479#  ifdef DL_GLOBAL
17480#    define LT_DLGLOBAL		DL_GLOBAL
17481#  else
17482#    define LT_DLGLOBAL		0
17483#  endif
17484#endif
17485
17486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17487   find out it does not work in some platform. */
17488#ifndef LT_DLLAZY_OR_NOW
17489#  ifdef RTLD_LAZY
17490#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17491#  else
17492#    ifdef DL_LAZY
17493#      define LT_DLLAZY_OR_NOW		DL_LAZY
17494#    else
17495#      ifdef RTLD_NOW
17496#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17497#      else
17498#        ifdef DL_NOW
17499#          define LT_DLLAZY_OR_NOW	DL_NOW
17500#        else
17501#          define LT_DLLAZY_OR_NOW	0
17502#        endif
17503#      endif
17504#    endif
17505#  endif
17506#endif
17507
17508/* When -fvisbility=hidden is used, assume the code has been annotated
17509   correspondingly for the symbols needed.  */
17510#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17511int fnord () __attribute__((visibility("default")));
17512#endif
17513
17514int fnord () { return 42; }
17515int main ()
17516{
17517  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17518  int status = $lt_dlunknown;
17519
17520  if (self)
17521    {
17522      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17523      else
17524        {
17525	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17526          else puts (dlerror ());
17527	}
17528      /* dlclose (self); */
17529    }
17530  else
17531    puts (dlerror ());
17532
17533  return status;
17534}
17535_LT_EOF
17536  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17537  (eval $ac_link) 2>&5
17538  ac_status=$?
17539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17540  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17541    (./conftest; exit; ) >&5 2>/dev/null
17542    lt_status=$?
17543    case x$lt_status in
17544      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17545      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17546      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17547    esac
17548  else :
17549    # compilation failed
17550    lt_cv_dlopen_self_static=no
17551  fi
17552fi
17553rm -fr conftest*
17554
17555
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17558$as_echo "$lt_cv_dlopen_self_static" >&6; }
17559    fi
17560
17561    CPPFLAGS="$save_CPPFLAGS"
17562    LDFLAGS="$save_LDFLAGS"
17563    LIBS="$save_LIBS"
17564    ;;
17565  esac
17566
17567  case $lt_cv_dlopen_self in
17568  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17569  *) enable_dlopen_self=unknown ;;
17570  esac
17571
17572  case $lt_cv_dlopen_self_static in
17573  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17574  *) enable_dlopen_self_static=unknown ;;
17575  esac
17576fi
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594striplib=
17595old_striplib=
17596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17597$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17598if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17599  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17600  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17602$as_echo "yes" >&6; }
17603else
17604# FIXME - insert some real tests, host_os isn't really good enough
17605  case $host_os in
17606  darwin*)
17607    if test -n "$STRIP" ; then
17608      striplib="$STRIP -x"
17609      old_striplib="$STRIP -S"
17610      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17611$as_echo "yes" >&6; }
17612    else
17613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17614$as_echo "no" >&6; }
17615    fi
17616    ;;
17617  *)
17618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619$as_echo "no" >&6; }
17620    ;;
17621  esac
17622fi
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635  # Report which library types will actually be built
17636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17637$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17639$as_echo "$can_build_shared" >&6; }
17640
17641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17642$as_echo_n "checking whether to build shared libraries... " >&6; }
17643  test "$can_build_shared" = "no" && enable_shared=no
17644
17645  # On AIX, shared libraries and static libraries use the same namespace, and
17646  # are all built from PIC.
17647  case $host_os in
17648  aix3*)
17649    test "$enable_shared" = yes && enable_static=no
17650    if test -n "$RANLIB"; then
17651      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17652      postinstall_cmds='$RANLIB $lib'
17653    fi
17654    ;;
17655
17656  aix[4-9]*)
17657    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17658      test "$enable_shared" = yes && enable_static=no
17659    fi
17660    ;;
17661  esac
17662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17663$as_echo "$enable_shared" >&6; }
17664
17665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17666$as_echo_n "checking whether to build static libraries... " >&6; }
17667  # Make sure either enable_shared or enable_static is yes.
17668  test "$enable_shared" = yes || enable_static=yes
17669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17670$as_echo "$enable_static" >&6; }
17671
17672
17673
17674
17675fi
17676ac_ext=c
17677ac_cpp='$CPP $CPPFLAGS'
17678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17680ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681
17682CC="$lt_save_CC"
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698        ac_config_commands="$ac_config_commands libtool"
17699
17700
17701
17702
17703# Only expand once:
17704
17705
17706ac_ext=c
17707ac_cpp='$CPP $CPPFLAGS'
17708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711if test -n "$ac_tool_prefix"; then
17712  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17713set dummy ${ac_tool_prefix}gcc; ac_word=$2
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17715$as_echo_n "checking for $ac_word... " >&6; }
17716if ${ac_cv_prog_CC+:} false; then :
17717  $as_echo_n "(cached) " >&6
17718else
17719  if test -n "$CC"; then
17720  ac_cv_prog_CC="$CC" # Let the user override the test.
17721else
17722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723for as_dir in $PATH
17724do
17725  IFS=$as_save_IFS
17726  test -z "$as_dir" && as_dir=.
17727    for ac_exec_ext in '' $ac_executable_extensions; do
17728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17729    ac_cv_prog_CC="${ac_tool_prefix}gcc"
17730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17731    break 2
17732  fi
17733done
17734  done
17735IFS=$as_save_IFS
17736
17737fi
17738fi
17739CC=$ac_cv_prog_CC
17740if test -n "$CC"; then
17741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17742$as_echo "$CC" >&6; }
17743else
17744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745$as_echo "no" >&6; }
17746fi
17747
17748
17749fi
17750if test -z "$ac_cv_prog_CC"; then
17751  ac_ct_CC=$CC
17752  # Extract the first word of "gcc", so it can be a program name with args.
17753set dummy gcc; ac_word=$2
17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17755$as_echo_n "checking for $ac_word... " >&6; }
17756if ${ac_cv_prog_ac_ct_CC+:} false; then :
17757  $as_echo_n "(cached) " >&6
17758else
17759  if test -n "$ac_ct_CC"; then
17760  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17761else
17762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17763for as_dir in $PATH
17764do
17765  IFS=$as_save_IFS
17766  test -z "$as_dir" && as_dir=.
17767    for ac_exec_ext in '' $ac_executable_extensions; do
17768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17769    ac_cv_prog_ac_ct_CC="gcc"
17770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17771    break 2
17772  fi
17773done
17774  done
17775IFS=$as_save_IFS
17776
17777fi
17778fi
17779ac_ct_CC=$ac_cv_prog_ac_ct_CC
17780if test -n "$ac_ct_CC"; then
17781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17782$as_echo "$ac_ct_CC" >&6; }
17783else
17784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785$as_echo "no" >&6; }
17786fi
17787
17788  if test "x$ac_ct_CC" = x; then
17789    CC=""
17790  else
17791    case $cross_compiling:$ac_tool_warned in
17792yes:)
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17795ac_tool_warned=yes ;;
17796esac
17797    CC=$ac_ct_CC
17798  fi
17799else
17800  CC="$ac_cv_prog_CC"
17801fi
17802
17803if test -z "$CC"; then
17804          if test -n "$ac_tool_prefix"; then
17805    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17806set dummy ${ac_tool_prefix}cc; ac_word=$2
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808$as_echo_n "checking for $ac_word... " >&6; }
17809if ${ac_cv_prog_CC+:} false; then :
17810  $as_echo_n "(cached) " >&6
17811else
17812  if test -n "$CC"; then
17813  ac_cv_prog_CC="$CC" # Let the user override the test.
17814else
17815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816for as_dir in $PATH
17817do
17818  IFS=$as_save_IFS
17819  test -z "$as_dir" && as_dir=.
17820    for ac_exec_ext in '' $ac_executable_extensions; do
17821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17822    ac_cv_prog_CC="${ac_tool_prefix}cc"
17823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17824    break 2
17825  fi
17826done
17827  done
17828IFS=$as_save_IFS
17829
17830fi
17831fi
17832CC=$ac_cv_prog_CC
17833if test -n "$CC"; then
17834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17835$as_echo "$CC" >&6; }
17836else
17837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17838$as_echo "no" >&6; }
17839fi
17840
17841
17842  fi
17843fi
17844if test -z "$CC"; then
17845  # Extract the first word of "cc", so it can be a program name with args.
17846set dummy cc; ac_word=$2
17847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17848$as_echo_n "checking for $ac_word... " >&6; }
17849if ${ac_cv_prog_CC+:} false; then :
17850  $as_echo_n "(cached) " >&6
17851else
17852  if test -n "$CC"; then
17853  ac_cv_prog_CC="$CC" # Let the user override the test.
17854else
17855  ac_prog_rejected=no
17856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857for as_dir in $PATH
17858do
17859  IFS=$as_save_IFS
17860  test -z "$as_dir" && as_dir=.
17861    for ac_exec_ext in '' $ac_executable_extensions; do
17862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17863    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17864       ac_prog_rejected=yes
17865       continue
17866     fi
17867    ac_cv_prog_CC="cc"
17868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869    break 2
17870  fi
17871done
17872  done
17873IFS=$as_save_IFS
17874
17875if test $ac_prog_rejected = yes; then
17876  # We found a bogon in the path, so make sure we never use it.
17877  set dummy $ac_cv_prog_CC
17878  shift
17879  if test $# != 0; then
17880    # We chose a different compiler from the bogus one.
17881    # However, it has the same basename, so the bogon will be chosen
17882    # first if we set CC to just the basename; use the full file name.
17883    shift
17884    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
17885  fi
17886fi
17887fi
17888fi
17889CC=$ac_cv_prog_CC
17890if test -n "$CC"; then
17891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17892$as_echo "$CC" >&6; }
17893else
17894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895$as_echo "no" >&6; }
17896fi
17897
17898
17899fi
17900if test -z "$CC"; then
17901  if test -n "$ac_tool_prefix"; then
17902  for ac_prog in cl.exe
17903  do
17904    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17907$as_echo_n "checking for $ac_word... " >&6; }
17908if ${ac_cv_prog_CC+:} false; then :
17909  $as_echo_n "(cached) " >&6
17910else
17911  if test -n "$CC"; then
17912  ac_cv_prog_CC="$CC" # Let the user override the test.
17913else
17914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17915for as_dir in $PATH
17916do
17917  IFS=$as_save_IFS
17918  test -z "$as_dir" && as_dir=.
17919    for ac_exec_ext in '' $ac_executable_extensions; do
17920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17921    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17923    break 2
17924  fi
17925done
17926  done
17927IFS=$as_save_IFS
17928
17929fi
17930fi
17931CC=$ac_cv_prog_CC
17932if test -n "$CC"; then
17933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17934$as_echo "$CC" >&6; }
17935else
17936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17937$as_echo "no" >&6; }
17938fi
17939
17940
17941    test -n "$CC" && break
17942  done
17943fi
17944if test -z "$CC"; then
17945  ac_ct_CC=$CC
17946  for ac_prog in cl.exe
17947do
17948  # Extract the first word of "$ac_prog", so it can be a program name with args.
17949set dummy $ac_prog; ac_word=$2
17950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17951$as_echo_n "checking for $ac_word... " >&6; }
17952if ${ac_cv_prog_ac_ct_CC+:} false; then :
17953  $as_echo_n "(cached) " >&6
17954else
17955  if test -n "$ac_ct_CC"; then
17956  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17957else
17958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959for as_dir in $PATH
17960do
17961  IFS=$as_save_IFS
17962  test -z "$as_dir" && as_dir=.
17963    for ac_exec_ext in '' $ac_executable_extensions; do
17964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965    ac_cv_prog_ac_ct_CC="$ac_prog"
17966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17967    break 2
17968  fi
17969done
17970  done
17971IFS=$as_save_IFS
17972
17973fi
17974fi
17975ac_ct_CC=$ac_cv_prog_ac_ct_CC
17976if test -n "$ac_ct_CC"; then
17977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17978$as_echo "$ac_ct_CC" >&6; }
17979else
17980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981$as_echo "no" >&6; }
17982fi
17983
17984
17985  test -n "$ac_ct_CC" && break
17986done
17987
17988  if test "x$ac_ct_CC" = x; then
17989    CC=""
17990  else
17991    case $cross_compiling:$ac_tool_warned in
17992yes:)
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17995ac_tool_warned=yes ;;
17996esac
17997    CC=$ac_ct_CC
17998  fi
17999fi
18000
18001fi
18002
18003
18004test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18006as_fn_error $? "no acceptable C compiler found in \$PATH
18007See \`config.log' for more details" "$LINENO" 5; }
18008
18009# Provide some information about the compiler.
18010$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18011set X $ac_compile
18012ac_compiler=$2
18013for ac_option in --version -v -V -qversion; do
18014  { { ac_try="$ac_compiler $ac_option >&5"
18015case "(($ac_try" in
18016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017  *) ac_try_echo=$ac_try;;
18018esac
18019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18020$as_echo "$ac_try_echo"; } >&5
18021  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18022  ac_status=$?
18023  if test -s conftest.err; then
18024    sed '10a\
18025... rest of stderr output deleted ...
18026         10q' conftest.err >conftest.er1
18027    cat conftest.er1 >&5
18028  fi
18029  rm -f conftest.er1 conftest.err
18030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18031  test $ac_status = 0; }
18032done
18033
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18035$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18036if ${ac_cv_c_compiler_gnu+:} false; then :
18037  $as_echo_n "(cached) " >&6
18038else
18039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040/* end confdefs.h.  */
18041
18042int
18043main ()
18044{
18045#ifndef __GNUC__
18046       choke me
18047#endif
18048
18049  ;
18050  return 0;
18051}
18052_ACEOF
18053if ac_fn_c_try_compile "$LINENO"; then :
18054  ac_compiler_gnu=yes
18055else
18056  ac_compiler_gnu=no
18057fi
18058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059ac_cv_c_compiler_gnu=$ac_compiler_gnu
18060
18061fi
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18063$as_echo "$ac_cv_c_compiler_gnu" >&6; }
18064if test $ac_compiler_gnu = yes; then
18065  GCC=yes
18066else
18067  GCC=
18068fi
18069ac_test_CFLAGS=${CFLAGS+set}
18070ac_save_CFLAGS=$CFLAGS
18071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18072$as_echo_n "checking whether $CC accepts -g... " >&6; }
18073if ${ac_cv_prog_cc_g+:} false; then :
18074  $as_echo_n "(cached) " >&6
18075else
18076  ac_save_c_werror_flag=$ac_c_werror_flag
18077   ac_c_werror_flag=yes
18078   ac_cv_prog_cc_g=no
18079   CFLAGS="-g"
18080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081/* end confdefs.h.  */
18082
18083int
18084main ()
18085{
18086
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_compile "$LINENO"; then :
18092  ac_cv_prog_cc_g=yes
18093else
18094  CFLAGS=""
18095      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096/* end confdefs.h.  */
18097
18098int
18099main ()
18100{
18101
18102  ;
18103  return 0;
18104}
18105_ACEOF
18106if ac_fn_c_try_compile "$LINENO"; then :
18107
18108else
18109  ac_c_werror_flag=$ac_save_c_werror_flag
18110	 CFLAGS="-g"
18111	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112/* end confdefs.h.  */
18113
18114int
18115main ()
18116{
18117
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122if ac_fn_c_try_compile "$LINENO"; then :
18123  ac_cv_prog_cc_g=yes
18124fi
18125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126fi
18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128fi
18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130   ac_c_werror_flag=$ac_save_c_werror_flag
18131fi
18132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18133$as_echo "$ac_cv_prog_cc_g" >&6; }
18134if test "$ac_test_CFLAGS" = set; then
18135  CFLAGS=$ac_save_CFLAGS
18136elif test $ac_cv_prog_cc_g = yes; then
18137  if test "$GCC" = yes; then
18138    CFLAGS="-g -O2"
18139  else
18140    CFLAGS="-g"
18141  fi
18142else
18143  if test "$GCC" = yes; then
18144    CFLAGS="-O2"
18145  else
18146    CFLAGS=
18147  fi
18148fi
18149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18150$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18151if ${ac_cv_prog_cc_c89+:} false; then :
18152  $as_echo_n "(cached) " >&6
18153else
18154  ac_cv_prog_cc_c89=no
18155ac_save_CC=$CC
18156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157/* end confdefs.h.  */
18158#include <stdarg.h>
18159#include <stdio.h>
18160struct stat;
18161/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18162struct buf { int x; };
18163FILE * (*rcsopen) (struct buf *, struct stat *, int);
18164static char *e (p, i)
18165     char **p;
18166     int i;
18167{
18168  return p[i];
18169}
18170static char *f (char * (*g) (char **, int), char **p, ...)
18171{
18172  char *s;
18173  va_list v;
18174  va_start (v,p);
18175  s = g (p, va_arg (v,int));
18176  va_end (v);
18177  return s;
18178}
18179
18180/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18181   function prototypes and stuff, but not '\xHH' hex character constants.
18182   These don't provoke an error unfortunately, instead are silently treated
18183   as 'x'.  The following induces an error, until -std is added to get
18184   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18185   array size at least.  It's necessary to write '\x00'==0 to get something
18186   that's true only with -std.  */
18187int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18188
18189/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18190   inside strings and character constants.  */
18191#define FOO(x) 'x'
18192int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18193
18194int test (int i, double x);
18195struct s1 {int (*f) (int a);};
18196struct s2 {int (*f) (double a);};
18197int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18198int argc;
18199char **argv;
18200int
18201main ()
18202{
18203return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18204  ;
18205  return 0;
18206}
18207_ACEOF
18208for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18209	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18210do
18211  CC="$ac_save_CC $ac_arg"
18212  if ac_fn_c_try_compile "$LINENO"; then :
18213  ac_cv_prog_cc_c89=$ac_arg
18214fi
18215rm -f core conftest.err conftest.$ac_objext
18216  test "x$ac_cv_prog_cc_c89" != "xno" && break
18217done
18218rm -f conftest.$ac_ext
18219CC=$ac_save_CC
18220
18221fi
18222# AC_CACHE_VAL
18223case "x$ac_cv_prog_cc_c89" in
18224  x)
18225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18226$as_echo "none needed" >&6; } ;;
18227  xno)
18228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18229$as_echo "unsupported" >&6; } ;;
18230  *)
18231    CC="$CC $ac_cv_prog_cc_c89"
18232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18233$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18234esac
18235if test "x$ac_cv_prog_cc_c89" != xno; then :
18236
18237fi
18238
18239ac_ext=c
18240ac_cpp='$CPP $CPPFLAGS'
18241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
18245depcc="$CC"   am_compiler_list=
18246
18247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18248$as_echo_n "checking dependency style of $depcc... " >&6; }
18249if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18250  $as_echo_n "(cached) " >&6
18251else
18252  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18253  # We make a subdir and do the tests there.  Otherwise we can end up
18254  # making bogus files that we don't know about and never remove.  For
18255  # instance it was reported that on HP-UX the gcc test will end up
18256  # making a dummy file named `D' -- because `-MD' means `put the output
18257  # in D'.
18258  rm -rf conftest.dir
18259  mkdir conftest.dir
18260  # Copy depcomp to subdir because otherwise we won't find it if we're
18261  # using a relative directory.
18262  cp "$am_depcomp" conftest.dir
18263  cd conftest.dir
18264  # We will build objects and dependencies in a subdirectory because
18265  # it helps to detect inapplicable dependency modes.  For instance
18266  # both Tru64's cc and ICC support -MD to output dependencies as a
18267  # side effect of compilation, but ICC will put the dependencies in
18268  # the current directory while Tru64 will put them in the object
18269  # directory.
18270  mkdir sub
18271
18272  am_cv_CC_dependencies_compiler_type=none
18273  if test "$am_compiler_list" = ""; then
18274     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18275  fi
18276  am__universal=false
18277  case " $depcc " in #(
18278     *\ -arch\ *\ -arch\ *) am__universal=true ;;
18279     esac
18280
18281  for depmode in $am_compiler_list; do
18282    # Setup a source with many dependencies, because some compilers
18283    # like to wrap large dependency lists on column 80 (with \), and
18284    # we should not choose a depcomp mode which is confused by this.
18285    #
18286    # We need to recreate these files for each test, as the compiler may
18287    # overwrite some of them when testing with obscure command lines.
18288    # This happens at least with the AIX C compiler.
18289    : > sub/conftest.c
18290    for i in 1 2 3 4 5 6; do
18291      echo '#include "conftst'$i'.h"' >> sub/conftest.c
18292      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18293      # Solaris 8's {/usr,}/bin/sh.
18294      touch sub/conftst$i.h
18295    done
18296    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18297
18298    # We check with `-c' and `-o' for the sake of the "dashmstdout"
18299    # mode.  It turns out that the SunPro C++ compiler does not properly
18300    # handle `-M -o', and we need to detect this.  Also, some Intel
18301    # versions had trouble with output in subdirs
18302    am__obj=sub/conftest.${OBJEXT-o}
18303    am__minus_obj="-o $am__obj"
18304    case $depmode in
18305    gcc)
18306      # This depmode causes a compiler race in universal mode.
18307      test "$am__universal" = false || continue
18308      ;;
18309    nosideeffect)
18310      # after this tag, mechanisms are not by side-effect, so they'll
18311      # only be used when explicitly requested
18312      if test "x$enable_dependency_tracking" = xyes; then
18313	continue
18314      else
18315	break
18316      fi
18317      ;;
18318    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18319      # This compiler won't grok `-c -o', but also, the minuso test has
18320      # not run yet.  These depmodes are late enough in the game, and
18321      # so weak that their functioning should not be impacted.
18322      am__obj=conftest.${OBJEXT-o}
18323      am__minus_obj=
18324      ;;
18325    none) break ;;
18326    esac
18327    if depmode=$depmode \
18328       source=sub/conftest.c object=$am__obj \
18329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18330       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18331         >/dev/null 2>conftest.err &&
18332       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18333       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18334       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18335       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18336      # icc doesn't choke on unknown options, it will just issue warnings
18337      # or remarks (even with -Werror).  So we grep stderr for any message
18338      # that says an option was ignored or not supported.
18339      # When given -MP, icc 7.0 and 7.1 complain thusly:
18340      #   icc: Command line warning: ignoring option '-M'; no argument required
18341      # The diagnosis changed in icc 8.0:
18342      #   icc: Command line remark: option '-MP' not supported
18343      if (grep 'ignoring option' conftest.err ||
18344          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18345        am_cv_CC_dependencies_compiler_type=$depmode
18346        break
18347      fi
18348    fi
18349  done
18350
18351  cd ..
18352  rm -rf conftest.dir
18353else
18354  am_cv_CC_dependencies_compiler_type=none
18355fi
18356
18357fi
18358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18359$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18360CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18361
18362 if
18363  test "x$enable_dependency_tracking" != xno \
18364  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18365  am__fastdepCC_TRUE=
18366  am__fastdepCC_FALSE='#'
18367else
18368  am__fastdepCC_TRUE='#'
18369  am__fastdepCC_FALSE=
18370fi
18371
18372
18373
18374
18375
18376
18377# Check whether --with-xorg-module-dir was given.
18378if test "${with_xorg_module_dir+set}" = set; then :
18379  withval=$with_xorg_module_dir; moduledir="$withval"
18380else
18381  moduledir="$libdir/xorg/modules"
18382fi
18383
18384inputdir=${moduledir}/input
18385
18386
18387
18388# Check whether --with-xorg-conf-dir was given.
18389if test "${with_xorg_conf_dir+set}" = set; then :
18390  withval=$with_xorg_conf_dir; XORG_CONF_DIR="$withval"
18391else
18392  XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`"
18393fi
18394
18395
18396 if test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"; then
18397  HAS_XORG_CONF_DIR_TRUE=
18398  HAS_XORG_CONF_DIR_FALSE='#'
18399else
18400  HAS_XORG_CONF_DIR_TRUE='#'
18401  HAS_XORG_CONF_DIR_FALSE=
18402fi
18403
18404
18405
18406# Check whether --with-hal-bin-dir was given.
18407if test "${with_hal_bin_dir+set}" = set; then :
18408  withval=$with_hal_bin_dir; halbindir="$withval"
18409else
18410  halbindir="$bindir"
18411fi
18412
18413HAL_BIN_DIR=${halbindir}
18414
18415
18416
18417# Check whether --with-hal-callouts-dir was given.
18418if test "${with_hal_callouts_dir+set}" = set; then :
18419  withval=$with_hal_callouts_dir; halcalloutsdir="$withval"
18420else
18421  halcalloutsdir="$libdir/hal"
18422fi
18423
18424HAL_CALLOUTS_DIR=${halcalloutsdir}
18425
18426
18427
18428# Check whether --with-hal-fdi-dir was given.
18429if test "${with_hal_fdi_dir+set}" = set; then :
18430  withval=$with_hal_fdi_dir; halfdidir="$withval"
18431else
18432  halfdidir="$datadir/hal/fdi/policy/20thirdparty"
18433fi
18434
18435HAL_FDI_DIR=${halfdidir}
18436
18437
18438
18439
18440pkg_failed=no
18441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18442$as_echo_n "checking for UDEV... " >&6; }
18443
18444if test -n "$UDEV_CFLAGS"; then
18445    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18446 elif test -n "$PKG_CONFIG"; then
18447    if test -n "$PKG_CONFIG" && \
18448    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
18449  ($PKG_CONFIG --exists --print-errors "udev") 2>&5
18450  ac_status=$?
18451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452  test $ac_status = 0; }; then
18453  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
18454		      test "x$?" != "x0" && pkg_failed=yes
18455else
18456  pkg_failed=yes
18457fi
18458 else
18459    pkg_failed=untried
18460fi
18461if test -n "$UDEV_LIBS"; then
18462    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18463 elif test -n "$PKG_CONFIG"; then
18464    if test -n "$PKG_CONFIG" && \
18465    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
18466  ($PKG_CONFIG --exists --print-errors "udev") 2>&5
18467  ac_status=$?
18468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18469  test $ac_status = 0; }; then
18470  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
18471		      test "x$?" != "x0" && pkg_failed=yes
18472else
18473  pkg_failed=yes
18474fi
18475 else
18476    pkg_failed=untried
18477fi
18478
18479
18480
18481if test $pkg_failed = yes; then
18482   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483$as_echo "no" >&6; }
18484
18485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18486        _pkg_short_errors_supported=yes
18487else
18488        _pkg_short_errors_supported=no
18489fi
18490        if test $_pkg_short_errors_supported = yes; then
18491	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
18492        else
18493	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
18494        fi
18495	# Put the nasty error message in config.log where it belongs
18496	echo "$UDEV_PKG_ERRORS" >&5
18497
18498	UDEV_RULES_DIR=no
18499elif test $pkg_failed = untried; then
18500     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501$as_echo "no" >&6; }
18502	UDEV_RULES_DIR=no
18503else
18504	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
18505	UDEV_LIBS=$pkg_cv_UDEV_LIBS
18506        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507$as_echo "yes" >&6; }
18508	UDEV_RULES_DIR="`$PKG_CONFIG --variable=udevdir udev`/rules.d"
18509fi
18510
18511
18512# Check whether --with-udev-rules-dir was given.
18513if test "${with_udev_rules_dir+set}" = set; then :
18514  withval=$with_udev_rules_dir; UDEV_RULES_DIR="$withval"
18515fi
18516
18517
18518 if test "x$UDEV_RULES_DIR" != "xno"; then
18519  HAS_UDEV_RULES_DIR_TRUE=
18520  HAS_UDEV_RULES_DIR_FALSE='#'
18521else
18522  HAS_UDEV_RULES_DIR_TRUE='#'
18523  HAS_UDEV_RULES_DIR_FALSE=
18524fi
18525
18526
18527# Checks for extensions
18528
18529
18530	SAVE_CFLAGS="$CFLAGS"
18531	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18532	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h.  */
18534
18535#include "xorg-server.h"
18536#if !defined RANDR
18537#error RANDR not defined
18538#endif
18539
18540int
18541main ()
18542{
18543
18544  ;
18545  return 0;
18546}
18547_ACEOF
18548if ac_fn_c_try_compile "$LINENO"; then :
18549  _EXT_CHECK=yes
18550else
18551  _EXT_CHECK=no
18552fi
18553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554	CFLAGS="$SAVE_CFLAGS"
18555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18556$as_echo_n "checking if RANDR is defined... " >&6; }
18557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18558$as_echo "$_EXT_CHECK" >&6; }
18559	if test "$_EXT_CHECK" != no; then
18560		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18561	fi
18562
18563
18564
18565	SAVE_CFLAGS="$CFLAGS"
18566	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18567	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568/* end confdefs.h.  */
18569
18570#include "xorg-server.h"
18571#if !defined XINPUT
18572#error XINPUT not defined
18573#endif
18574
18575int
18576main ()
18577{
18578
18579  ;
18580  return 0;
18581}
18582_ACEOF
18583if ac_fn_c_try_compile "$LINENO"; then :
18584  _EXT_CHECK=yes
18585else
18586  _EXT_CHECK=no
18587fi
18588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589	CFLAGS="$SAVE_CFLAGS"
18590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
18591$as_echo_n "checking if XINPUT is defined... " >&6; }
18592	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18593$as_echo "$_EXT_CHECK" >&6; }
18594	if test "$_EXT_CHECK" != no; then
18595		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
18596	fi
18597
18598
18599# Checks for pkg-config packages
18600
18601pkg_failed=no
18602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18603$as_echo_n "checking for XORG... " >&6; }
18604
18605if test -n "$XORG_CFLAGS"; then
18606    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18607 elif test -n "$PKG_CONFIG"; then
18608    if test -n "$PKG_CONFIG" && \
18609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18610  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18611  ac_status=$?
18612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18613  test $ac_status = 0; }; then
18614  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18615		      test "x$?" != "x0" && pkg_failed=yes
18616else
18617  pkg_failed=yes
18618fi
18619 else
18620    pkg_failed=untried
18621fi
18622if test -n "$XORG_LIBS"; then
18623    pkg_cv_XORG_LIBS="$XORG_LIBS"
18624 elif test -n "$PKG_CONFIG"; then
18625    if test -n "$PKG_CONFIG" && \
18626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
18627  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
18628  ac_status=$?
18629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18630  test $ac_status = 0; }; then
18631  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
18632		      test "x$?" != "x0" && pkg_failed=yes
18633else
18634  pkg_failed=yes
18635fi
18636 else
18637    pkg_failed=untried
18638fi
18639
18640
18641
18642if test $pkg_failed = yes; then
18643   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644$as_echo "no" >&6; }
18645
18646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18647        _pkg_short_errors_supported=yes
18648else
18649        _pkg_short_errors_supported=no
18650fi
18651        if test $_pkg_short_errors_supported = yes; then
18652	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18653        else
18654	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
18655        fi
18656	# Put the nasty error message in config.log where it belongs
18657	echo "$XORG_PKG_ERRORS" >&5
18658
18659	as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
18660
18661$XORG_PKG_ERRORS
18662
18663Consider adjusting the PKG_CONFIG_PATH environment variable if you
18664installed software in a non-standard prefix.
18665
18666Alternatively, you may set the environment variables XORG_CFLAGS
18667and XORG_LIBS to avoid the need to call pkg-config.
18668See the pkg-config man page for more details." "$LINENO" 5
18669elif test $pkg_failed = untried; then
18670     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671$as_echo "no" >&6; }
18672	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18674as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18675is in your PATH or set the PKG_CONFIG environment variable to the full
18676path to pkg-config.
18677
18678Alternatively, you may set the environment variables XORG_CFLAGS
18679and XORG_LIBS to avoid the need to call pkg-config.
18680See the pkg-config man page for more details.
18681
18682To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18683See \`config.log' for more details" "$LINENO" 5; }
18684else
18685	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18686	XORG_LIBS=$pkg_cv_XORG_LIBS
18687        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18688$as_echo "yes" >&6; }
18689
18690fi
18691
18692if test -n "$PKG_CONFIG" && \
18693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
18694  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
18695  ac_status=$?
18696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18697  test $ac_status = 0; }; then
18698
18699$as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
18700
18701fi
18702
18703if test -n "$PKG_CONFIG" && \
18704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.99\""; } >&5
18705  ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.99") 2>&5
18706  ac_status=$?
18707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708  test $ac_status = 0; }; then
18709
18710$as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
18711
18712fi
18713
18714if test -n "$PKG_CONFIG" && \
18715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\""; } >&5
18716  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5
18717  ac_status=$?
18718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18719  test $ac_status = 0; }; then
18720
18721$as_echo "#define CALL_CONVERSION_PROC 1" >>confdefs.h
18722
18723fi
18724if test -n "$PKG_CONFIG" && \
18725    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\""; } >&5
18726  ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5
18727  ac_status=$?
18728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18729  test $ac_status = 0; }; then
18730
18731$as_echo "#define ABS_VALUATOR_AXES 1" >>confdefs.h
18732
18733fi
18734if test -n "$PKG_CONFIG" && \
18735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
18736  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
18737  ac_status=$?
18738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739  test $ac_status = 0; }; then
18740
18741$as_echo "#define NO_MOUSE_MODULE 1" >>confdefs.h
18742
18743fi
18744
18745# Checks for libraries.
18746
18747# Checks for header files.
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18749$as_echo_n "checking for ANSI C header files... " >&6; }
18750if ${ac_cv_header_stdc+:} false; then :
18751  $as_echo_n "(cached) " >&6
18752else
18753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754/* end confdefs.h.  */
18755#include <stdlib.h>
18756#include <stdarg.h>
18757#include <string.h>
18758#include <float.h>
18759
18760int
18761main ()
18762{
18763
18764  ;
18765  return 0;
18766}
18767_ACEOF
18768if ac_fn_c_try_compile "$LINENO"; then :
18769  ac_cv_header_stdc=yes
18770else
18771  ac_cv_header_stdc=no
18772fi
18773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774
18775if test $ac_cv_header_stdc = yes; then
18776  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778/* end confdefs.h.  */
18779#include <string.h>
18780
18781_ACEOF
18782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18783  $EGREP "memchr" >/dev/null 2>&1; then :
18784
18785else
18786  ac_cv_header_stdc=no
18787fi
18788rm -f conftest*
18789
18790fi
18791
18792if test $ac_cv_header_stdc = yes; then
18793  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795/* end confdefs.h.  */
18796#include <stdlib.h>
18797
18798_ACEOF
18799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18800  $EGREP "free" >/dev/null 2>&1; then :
18801
18802else
18803  ac_cv_header_stdc=no
18804fi
18805rm -f conftest*
18806
18807fi
18808
18809if test $ac_cv_header_stdc = yes; then
18810  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18811  if test "$cross_compiling" = yes; then :
18812  :
18813else
18814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815/* end confdefs.h.  */
18816#include <ctype.h>
18817#include <stdlib.h>
18818#if ((' ' & 0x0FF) == 0x020)
18819# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18820# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18821#else
18822# define ISLOWER(c) \
18823		   (('a' <= (c) && (c) <= 'i') \
18824		     || ('j' <= (c) && (c) <= 'r') \
18825		     || ('s' <= (c) && (c) <= 'z'))
18826# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18827#endif
18828
18829#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18830int
18831main ()
18832{
18833  int i;
18834  for (i = 0; i < 256; i++)
18835    if (XOR (islower (i), ISLOWER (i))
18836	|| toupper (i) != TOUPPER (i))
18837      return 2;
18838  return 0;
18839}
18840_ACEOF
18841if ac_fn_c_try_run "$LINENO"; then :
18842
18843else
18844  ac_cv_header_stdc=no
18845fi
18846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18847  conftest.$ac_objext conftest.beam conftest.$ac_ext
18848fi
18849
18850fi
18851fi
18852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18853$as_echo "$ac_cv_header_stdc" >&6; }
18854if test $ac_cv_header_stdc = yes; then
18855
18856$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18857
18858fi
18859
18860
18861ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile"
18862
18863cat >confcache <<\_ACEOF
18864# This file is a shell script that caches the results of configure
18865# tests run on this system so they can be shared between configure
18866# scripts and configure runs, see configure's option --config-cache.
18867# It is not useful on other systems.  If it contains results you don't
18868# want to keep, you may remove or edit it.
18869#
18870# config.status only pays attention to the cache file if you give it
18871# the --recheck option to rerun configure.
18872#
18873# `ac_cv_env_foo' variables (set or unset) will be overridden when
18874# loading this file, other *unset* `ac_cv_foo' will be assigned the
18875# following values.
18876
18877_ACEOF
18878
18879# The following way of writing the cache mishandles newlines in values,
18880# but we know of no workaround that is simple, portable, and efficient.
18881# So, we kill variables containing newlines.
18882# Ultrix sh set writes to stderr and can't be redirected directly,
18883# and sets the high bit in the cache file unless we assign to the vars.
18884(
18885  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18886    eval ac_val=\$$ac_var
18887    case $ac_val in #(
18888    *${as_nl}*)
18889      case $ac_var in #(
18890      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18891$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18892      esac
18893      case $ac_var in #(
18894      _ | IFS | as_nl) ;; #(
18895      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18896      *) { eval $ac_var=; unset $ac_var;} ;;
18897      esac ;;
18898    esac
18899  done
18900
18901  (set) 2>&1 |
18902    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18903    *${as_nl}ac_space=\ *)
18904      # `set' does not quote correctly, so add quotes: double-quote
18905      # substitution turns \\\\ into \\, and sed turns \\ into \.
18906      sed -n \
18907	"s/'/'\\\\''/g;
18908	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18909      ;; #(
18910    *)
18911      # `set' quotes correctly as required by POSIX, so do not add quotes.
18912      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18913      ;;
18914    esac |
18915    sort
18916) |
18917  sed '
18918     /^ac_cv_env_/b end
18919     t clear
18920     :clear
18921     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18922     t end
18923     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18924     :end' >>confcache
18925if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18926  if test -w "$cache_file"; then
18927    if test "x$cache_file" != "x/dev/null"; then
18928      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18929$as_echo "$as_me: updating cache $cache_file" >&6;}
18930      if test ! -f "$cache_file" || test -h "$cache_file"; then
18931	cat confcache >"$cache_file"
18932      else
18933        case $cache_file in #(
18934        */* | ?:*)
18935	  mv -f confcache "$cache_file"$$ &&
18936	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18937        *)
18938	  mv -f confcache "$cache_file" ;;
18939	esac
18940      fi
18941    fi
18942  else
18943    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18944$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18945  fi
18946fi
18947rm -f confcache
18948
18949test "x$prefix" = xNONE && prefix=$ac_default_prefix
18950# Let make expand exec_prefix.
18951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18952
18953DEFS=-DHAVE_CONFIG_H
18954
18955ac_libobjs=
18956ac_ltlibobjs=
18957U=
18958for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18959  # 1. Remove the extension, and $U if already installed.
18960  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18961  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18962  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18963  #    will be set to the directory where LIBOBJS objects are built.
18964  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18965  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18966done
18967LIBOBJS=$ac_libobjs
18968
18969LTLIBOBJS=$ac_ltlibobjs
18970
18971
18972 if test -n "$EXEEXT"; then
18973  am__EXEEXT_TRUE=
18974  am__EXEEXT_FALSE='#'
18975else
18976  am__EXEEXT_TRUE='#'
18977  am__EXEEXT_FALSE=
18978fi
18979
18980if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18981  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18982Usually this means the macro was only invoked conditionally." "$LINENO" 5
18983fi
18984if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18985  as_fn_error $? "conditional \"AMDEP\" was never defined.
18986Usually this means the macro was only invoked conditionally." "$LINENO" 5
18987fi
18988if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18989  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18990Usually this means the macro was only invoked conditionally." "$LINENO" 5
18991fi
18992if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18993  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18994Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995fi
18996if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
18997  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
18998Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999fi
19000if test -z "${HAS_UDEV_RULES_DIR_TRUE}" && test -z "${HAS_UDEV_RULES_DIR_FALSE}"; then
19001  as_fn_error $? "conditional \"HAS_UDEV_RULES_DIR\" was never defined.
19002Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003fi
19004
19005: "${CONFIG_STATUS=./config.status}"
19006ac_write_fail=0
19007ac_clean_files_save=$ac_clean_files
19008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19009{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19010$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19011as_write_fail=0
19012cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19013#! $SHELL
19014# Generated by $as_me.
19015# Run this file to recreate the current configuration.
19016# Compiler output produced by configure, useful for debugging
19017# configure, is in config.log if it exists.
19018
19019debug=false
19020ac_cs_recheck=false
19021ac_cs_silent=false
19022
19023SHELL=\${CONFIG_SHELL-$SHELL}
19024export SHELL
19025_ASEOF
19026cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19027## -------------------- ##
19028## M4sh Initialization. ##
19029## -------------------- ##
19030
19031# Be more Bourne compatible
19032DUALCASE=1; export DUALCASE # for MKS sh
19033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19034  emulate sh
19035  NULLCMD=:
19036  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19037  # is contrary to our usage.  Disable this feature.
19038  alias -g '${1+"$@"}'='"$@"'
19039  setopt NO_GLOB_SUBST
19040else
19041  case `(set -o) 2>/dev/null` in #(
19042  *posix*) :
19043    set -o posix ;; #(
19044  *) :
19045     ;;
19046esac
19047fi
19048
19049
19050as_nl='
19051'
19052export as_nl
19053# Printing a long string crashes Solaris 7 /usr/bin/printf.
19054as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19057# Prefer a ksh shell builtin over an external printf program on Solaris,
19058# but without wasting forks for bash or zsh.
19059if test -z "$BASH_VERSION$ZSH_VERSION" \
19060    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19061  as_echo='print -r --'
19062  as_echo_n='print -rn --'
19063elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19064  as_echo='printf %s\n'
19065  as_echo_n='printf %s'
19066else
19067  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19068    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19069    as_echo_n='/usr/ucb/echo -n'
19070  else
19071    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19072    as_echo_n_body='eval
19073      arg=$1;
19074      case $arg in #(
19075      *"$as_nl"*)
19076	expr "X$arg" : "X\\(.*\\)$as_nl";
19077	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19078      esac;
19079      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19080    '
19081    export as_echo_n_body
19082    as_echo_n='sh -c $as_echo_n_body as_echo'
19083  fi
19084  export as_echo_body
19085  as_echo='sh -c $as_echo_body as_echo'
19086fi
19087
19088# The user is always right.
19089if test "${PATH_SEPARATOR+set}" != set; then
19090  PATH_SEPARATOR=:
19091  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19092    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19093      PATH_SEPARATOR=';'
19094  }
19095fi
19096
19097
19098# IFS
19099# We need space, tab and new line, in precisely that order.  Quoting is
19100# there to prevent editors from complaining about space-tab.
19101# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19102# splitting by setting IFS to empty value.)
19103IFS=" ""	$as_nl"
19104
19105# Find who we are.  Look in the path if we contain no directory separator.
19106as_myself=
19107case $0 in #((
19108  *[\\/]* ) as_myself=$0 ;;
19109  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110for as_dir in $PATH
19111do
19112  IFS=$as_save_IFS
19113  test -z "$as_dir" && as_dir=.
19114    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19115  done
19116IFS=$as_save_IFS
19117
19118     ;;
19119esac
19120# We did not find ourselves, most probably we were run as `sh COMMAND'
19121# in which case we are not to be found in the path.
19122if test "x$as_myself" = x; then
19123  as_myself=$0
19124fi
19125if test ! -f "$as_myself"; then
19126  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19127  exit 1
19128fi
19129
19130# Unset variables that we do not need and which cause bugs (e.g. in
19131# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19132# suppresses any "Segmentation fault" message there.  '((' could
19133# trigger a bug in pdksh 5.2.14.
19134for as_var in BASH_ENV ENV MAIL MAILPATH
19135do eval test x\${$as_var+set} = xset \
19136  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19137done
19138PS1='$ '
19139PS2='> '
19140PS4='+ '
19141
19142# NLS nuisances.
19143LC_ALL=C
19144export LC_ALL
19145LANGUAGE=C
19146export LANGUAGE
19147
19148# CDPATH.
19149(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19150
19151
19152# as_fn_error STATUS ERROR [LINENO LOG_FD]
19153# ----------------------------------------
19154# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19155# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19156# script with STATUS, using 1 if that was 0.
19157as_fn_error ()
19158{
19159  as_status=$1; test $as_status -eq 0 && as_status=1
19160  if test "$4"; then
19161    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19162    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19163  fi
19164  $as_echo "$as_me: error: $2" >&2
19165  as_fn_exit $as_status
19166} # as_fn_error
19167
19168
19169# as_fn_set_status STATUS
19170# -----------------------
19171# Set $? to STATUS, without forking.
19172as_fn_set_status ()
19173{
19174  return $1
19175} # as_fn_set_status
19176
19177# as_fn_exit STATUS
19178# -----------------
19179# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19180as_fn_exit ()
19181{
19182  set +e
19183  as_fn_set_status $1
19184  exit $1
19185} # as_fn_exit
19186
19187# as_fn_unset VAR
19188# ---------------
19189# Portably unset VAR.
19190as_fn_unset ()
19191{
19192  { eval $1=; unset $1;}
19193}
19194as_unset=as_fn_unset
19195# as_fn_append VAR VALUE
19196# ----------------------
19197# Append the text in VALUE to the end of the definition contained in VAR. Take
19198# advantage of any shell optimizations that allow amortized linear growth over
19199# repeated appends, instead of the typical quadratic growth present in naive
19200# implementations.
19201if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19202  eval 'as_fn_append ()
19203  {
19204    eval $1+=\$2
19205  }'
19206else
19207  as_fn_append ()
19208  {
19209    eval $1=\$$1\$2
19210  }
19211fi # as_fn_append
19212
19213# as_fn_arith ARG...
19214# ------------------
19215# Perform arithmetic evaluation on the ARGs, and store the result in the
19216# global $as_val. Take advantage of shells that can avoid forks. The arguments
19217# must be portable across $(()) and expr.
19218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19219  eval 'as_fn_arith ()
19220  {
19221    as_val=$(( $* ))
19222  }'
19223else
19224  as_fn_arith ()
19225  {
19226    as_val=`expr "$@" || test $? -eq 1`
19227  }
19228fi # as_fn_arith
19229
19230
19231if expr a : '\(a\)' >/dev/null 2>&1 &&
19232   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19233  as_expr=expr
19234else
19235  as_expr=false
19236fi
19237
19238if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19239  as_basename=basename
19240else
19241  as_basename=false
19242fi
19243
19244if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19245  as_dirname=dirname
19246else
19247  as_dirname=false
19248fi
19249
19250as_me=`$as_basename -- "$0" ||
19251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19252	 X"$0" : 'X\(//\)$' \| \
19253	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19254$as_echo X/"$0" |
19255    sed '/^.*\/\([^/][^/]*\)\/*$/{
19256	    s//\1/
19257	    q
19258	  }
19259	  /^X\/\(\/\/\)$/{
19260	    s//\1/
19261	    q
19262	  }
19263	  /^X\/\(\/\).*/{
19264	    s//\1/
19265	    q
19266	  }
19267	  s/.*/./; q'`
19268
19269# Avoid depending upon Character Ranges.
19270as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19272as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19273as_cr_digits='0123456789'
19274as_cr_alnum=$as_cr_Letters$as_cr_digits
19275
19276ECHO_C= ECHO_N= ECHO_T=
19277case `echo -n x` in #(((((
19278-n*)
19279  case `echo 'xy\c'` in
19280  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19281  xy)  ECHO_C='\c';;
19282  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19283       ECHO_T='	';;
19284  esac;;
19285*)
19286  ECHO_N='-n';;
19287esac
19288
19289rm -f conf$$ conf$$.exe conf$$.file
19290if test -d conf$$.dir; then
19291  rm -f conf$$.dir/conf$$.file
19292else
19293  rm -f conf$$.dir
19294  mkdir conf$$.dir 2>/dev/null
19295fi
19296if (echo >conf$$.file) 2>/dev/null; then
19297  if ln -s conf$$.file conf$$ 2>/dev/null; then
19298    as_ln_s='ln -s'
19299    # ... but there are two gotchas:
19300    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19301    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19302    # In both cases, we have to default to `cp -pR'.
19303    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19304      as_ln_s='cp -pR'
19305  elif ln conf$$.file conf$$ 2>/dev/null; then
19306    as_ln_s=ln
19307  else
19308    as_ln_s='cp -pR'
19309  fi
19310else
19311  as_ln_s='cp -pR'
19312fi
19313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19314rmdir conf$$.dir 2>/dev/null
19315
19316
19317# as_fn_mkdir_p
19318# -------------
19319# Create "$as_dir" as a directory, including parents if necessary.
19320as_fn_mkdir_p ()
19321{
19322
19323  case $as_dir in #(
19324  -*) as_dir=./$as_dir;;
19325  esac
19326  test -d "$as_dir" || eval $as_mkdir_p || {
19327    as_dirs=
19328    while :; do
19329      case $as_dir in #(
19330      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19331      *) as_qdir=$as_dir;;
19332      esac
19333      as_dirs="'$as_qdir' $as_dirs"
19334      as_dir=`$as_dirname -- "$as_dir" ||
19335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336	 X"$as_dir" : 'X\(//\)[^/]' \| \
19337	 X"$as_dir" : 'X\(//\)$' \| \
19338	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19339$as_echo X"$as_dir" |
19340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19341	    s//\1/
19342	    q
19343	  }
19344	  /^X\(\/\/\)[^/].*/{
19345	    s//\1/
19346	    q
19347	  }
19348	  /^X\(\/\/\)$/{
19349	    s//\1/
19350	    q
19351	  }
19352	  /^X\(\/\).*/{
19353	    s//\1/
19354	    q
19355	  }
19356	  s/.*/./; q'`
19357      test -d "$as_dir" && break
19358    done
19359    test -z "$as_dirs" || eval "mkdir $as_dirs"
19360  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19361
19362
19363} # as_fn_mkdir_p
19364if mkdir -p . 2>/dev/null; then
19365  as_mkdir_p='mkdir -p "$as_dir"'
19366else
19367  test -d ./-p && rmdir ./-p
19368  as_mkdir_p=false
19369fi
19370
19371
19372# as_fn_executable_p FILE
19373# -----------------------
19374# Test if FILE is an executable regular file.
19375as_fn_executable_p ()
19376{
19377  test -f "$1" && test -x "$1"
19378} # as_fn_executable_p
19379as_test_x='test -x'
19380as_executable_p=as_fn_executable_p
19381
19382# Sed expression to map a string onto a valid CPP name.
19383as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19384
19385# Sed expression to map a string onto a valid variable name.
19386as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19387
19388
19389exec 6>&1
19390## ----------------------------------- ##
19391## Main body of $CONFIG_STATUS script. ##
19392## ----------------------------------- ##
19393_ASEOF
19394test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19395
19396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19397# Save the log message, to keep $0 and so on meaningful, and to
19398# report actual input values of CONFIG_FILES etc. instead of their
19399# values after options handling.
19400ac_log="
19401This file was extended by xf86-input-vmmouse $as_me 13.0.0, which was
19402generated by GNU Autoconf 2.69.  Invocation command line was
19403
19404  CONFIG_FILES    = $CONFIG_FILES
19405  CONFIG_HEADERS  = $CONFIG_HEADERS
19406  CONFIG_LINKS    = $CONFIG_LINKS
19407  CONFIG_COMMANDS = $CONFIG_COMMANDS
19408  $ $0 $@
19409
19410on `(hostname || uname -n) 2>/dev/null | sed 1q`
19411"
19412
19413_ACEOF
19414
19415case $ac_config_files in *"
19416"*) set x $ac_config_files; shift; ac_config_files=$*;;
19417esac
19418
19419case $ac_config_headers in *"
19420"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19421esac
19422
19423
19424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19425# Files that config.status was made for.
19426config_files="$ac_config_files"
19427config_headers="$ac_config_headers"
19428config_commands="$ac_config_commands"
19429
19430_ACEOF
19431
19432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433ac_cs_usage="\
19434\`$as_me' instantiates files and other configuration actions
19435from templates according to the current configuration.  Unless the files
19436and actions are specified as TAGs, all are instantiated by default.
19437
19438Usage: $0 [OPTION]... [TAG]...
19439
19440  -h, --help       print this help, then exit
19441  -V, --version    print version number and configuration settings, then exit
19442      --config     print configuration, then exit
19443  -q, --quiet, --silent
19444                   do not print progress messages
19445  -d, --debug      don't remove temporary files
19446      --recheck    update $as_me by reconfiguring in the same conditions
19447      --file=FILE[:TEMPLATE]
19448                   instantiate the configuration file FILE
19449      --header=FILE[:TEMPLATE]
19450                   instantiate the configuration header FILE
19451
19452Configuration files:
19453$config_files
19454
19455Configuration headers:
19456$config_headers
19457
19458Configuration commands:
19459$config_commands
19460
19461Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19462
19463_ACEOF
19464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19465ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19466ac_cs_version="\\
19467xf86-input-vmmouse config.status 13.0.0
19468configured by $0, generated by GNU Autoconf 2.69,
19469  with options \\"\$ac_cs_config\\"
19470
19471Copyright (C) 2012 Free Software Foundation, Inc.
19472This config.status script is free software; the Free Software Foundation
19473gives unlimited permission to copy, distribute and modify it."
19474
19475ac_pwd='$ac_pwd'
19476srcdir='$srcdir'
19477INSTALL='$INSTALL'
19478MKDIR_P='$MKDIR_P'
19479AWK='$AWK'
19480test -n "\$AWK" || AWK=awk
19481_ACEOF
19482
19483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19484# The default lists apply if the user does not specify any file.
19485ac_need_defaults=:
19486while test $# != 0
19487do
19488  case $1 in
19489  --*=?*)
19490    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19491    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19492    ac_shift=:
19493    ;;
19494  --*=)
19495    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19496    ac_optarg=
19497    ac_shift=:
19498    ;;
19499  *)
19500    ac_option=$1
19501    ac_optarg=$2
19502    ac_shift=shift
19503    ;;
19504  esac
19505
19506  case $ac_option in
19507  # Handling of the options.
19508  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19509    ac_cs_recheck=: ;;
19510  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19511    $as_echo "$ac_cs_version"; exit ;;
19512  --config | --confi | --conf | --con | --co | --c )
19513    $as_echo "$ac_cs_config"; exit ;;
19514  --debug | --debu | --deb | --de | --d | -d )
19515    debug=: ;;
19516  --file | --fil | --fi | --f )
19517    $ac_shift
19518    case $ac_optarg in
19519    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19520    '') as_fn_error $? "missing file argument" ;;
19521    esac
19522    as_fn_append CONFIG_FILES " '$ac_optarg'"
19523    ac_need_defaults=false;;
19524  --header | --heade | --head | --hea )
19525    $ac_shift
19526    case $ac_optarg in
19527    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19528    esac
19529    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19530    ac_need_defaults=false;;
19531  --he | --h)
19532    # Conflict between --help and --header
19533    as_fn_error $? "ambiguous option: \`$1'
19534Try \`$0 --help' for more information.";;
19535  --help | --hel | -h )
19536    $as_echo "$ac_cs_usage"; exit ;;
19537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19538  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19539    ac_cs_silent=: ;;
19540
19541  # This is an error.
19542  -*) as_fn_error $? "unrecognized option: \`$1'
19543Try \`$0 --help' for more information." ;;
19544
19545  *) as_fn_append ac_config_targets " $1"
19546     ac_need_defaults=false ;;
19547
19548  esac
19549  shift
19550done
19551
19552ac_configure_extra_args=
19553
19554if $ac_cs_silent; then
19555  exec 6>/dev/null
19556  ac_configure_extra_args="$ac_configure_extra_args --silent"
19557fi
19558
19559_ACEOF
19560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561if \$ac_cs_recheck; then
19562  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19563  shift
19564  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19565  CONFIG_SHELL='$SHELL'
19566  export CONFIG_SHELL
19567  exec "\$@"
19568fi
19569
19570_ACEOF
19571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19572exec 5>>config.log
19573{
19574  echo
19575  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19576## Running $as_me. ##
19577_ASBOX
19578  $as_echo "$ac_log"
19579} >&5
19580
19581_ACEOF
19582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583#
19584# INIT-COMMANDS
19585#
19586AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19587
19588
19589# The HP-UX ksh and POSIX shell print the target directory to stdout
19590# if CDPATH is set.
19591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19592
19593sed_quote_subst='$sed_quote_subst'
19594double_quote_subst='$double_quote_subst'
19595delay_variable_subst='$delay_variable_subst'
19596enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19597macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19598macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19599enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19600pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19601enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19602SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19603ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19604PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19605host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19606host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19607host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19608build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19609build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19610build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19611SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19612Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19613GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19614EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19615FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19616LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19617NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19618LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19619max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19620ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19621exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19622lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19623lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19624lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19625lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19626lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19627reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19628reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19629OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19630deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19631file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19632file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19633want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19634DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19635sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19636AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19637AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19638archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19639STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19640RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19641old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19642old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19643old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19644lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19645CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19646CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19647compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19648GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19649lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19650lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19651lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19652lt_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"`'
19653nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19654lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19655objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19656MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19657lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19658lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19659lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19660lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19661lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19662need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19663MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19664DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19665NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19666LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19667OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19668OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19669libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19670shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19671extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19672archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19673enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19674export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19675whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19676compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19677old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19678old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19679archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19680archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19681module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19682module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19683with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19684allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19685no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19686hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19687hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19688hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19689hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19690hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19691hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19692hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19693inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19694link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19695always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19696export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19697exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19698include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19699prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19700postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19701file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19702variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19703need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19704need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19705version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19706runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19707shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19708shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19709libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19710library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19711soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19712install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19713postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19714postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19715finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19716finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19717hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19718sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19719sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19720hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19721enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19722enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19723enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19724old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19725striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19726
19727LTCC='$LTCC'
19728LTCFLAGS='$LTCFLAGS'
19729compiler='$compiler_DEFAULT'
19730
19731# A function that is used when there is no print builtin or printf.
19732func_fallback_echo ()
19733{
19734  eval 'cat <<_LTECHO_EOF
19735\$1
19736_LTECHO_EOF'
19737}
19738
19739# Quote evaled strings.
19740for var in SHELL \
19741ECHO \
19742PATH_SEPARATOR \
19743SED \
19744GREP \
19745EGREP \
19746FGREP \
19747LD \
19748NM \
19749LN_S \
19750lt_SP2NL \
19751lt_NL2SP \
19752reload_flag \
19753OBJDUMP \
19754deplibs_check_method \
19755file_magic_cmd \
19756file_magic_glob \
19757want_nocaseglob \
19758DLLTOOL \
19759sharedlib_from_linklib_cmd \
19760AR \
19761AR_FLAGS \
19762archiver_list_spec \
19763STRIP \
19764RANLIB \
19765CC \
19766CFLAGS \
19767compiler \
19768lt_cv_sys_global_symbol_pipe \
19769lt_cv_sys_global_symbol_to_cdecl \
19770lt_cv_sys_global_symbol_to_c_name_address \
19771lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19772nm_file_list_spec \
19773lt_prog_compiler_no_builtin_flag \
19774lt_prog_compiler_pic \
19775lt_prog_compiler_wl \
19776lt_prog_compiler_static \
19777lt_cv_prog_compiler_c_o \
19778need_locks \
19779MANIFEST_TOOL \
19780DSYMUTIL \
19781NMEDIT \
19782LIPO \
19783OTOOL \
19784OTOOL64 \
19785shrext_cmds \
19786export_dynamic_flag_spec \
19787whole_archive_flag_spec \
19788compiler_needs_object \
19789with_gnu_ld \
19790allow_undefined_flag \
19791no_undefined_flag \
19792hardcode_libdir_flag_spec \
19793hardcode_libdir_separator \
19794exclude_expsyms \
19795include_expsyms \
19796file_list_spec \
19797variables_saved_for_relink \
19798libname_spec \
19799library_names_spec \
19800soname_spec \
19801install_override_mode \
19802finish_eval \
19803old_striplib \
19804striplib; do
19805    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19806    *[\\\\\\\`\\"\\\$]*)
19807      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19808      ;;
19809    *)
19810      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19811      ;;
19812    esac
19813done
19814
19815# Double-quote double-evaled strings.
19816for var in reload_cmds \
19817old_postinstall_cmds \
19818old_postuninstall_cmds \
19819old_archive_cmds \
19820extract_expsyms_cmds \
19821old_archive_from_new_cmds \
19822old_archive_from_expsyms_cmds \
19823archive_cmds \
19824archive_expsym_cmds \
19825module_cmds \
19826module_expsym_cmds \
19827export_symbols_cmds \
19828prelink_cmds \
19829postlink_cmds \
19830postinstall_cmds \
19831postuninstall_cmds \
19832finish_cmds \
19833sys_lib_search_path_spec \
19834sys_lib_dlsearch_path_spec; do
19835    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19836    *[\\\\\\\`\\"\\\$]*)
19837      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19838      ;;
19839    *)
19840      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19841      ;;
19842    esac
19843done
19844
19845ac_aux_dir='$ac_aux_dir'
19846xsi_shell='$xsi_shell'
19847lt_shell_append='$lt_shell_append'
19848
19849# See if we are running on zsh, and set the options which allow our
19850# commands through without removal of \ escapes INIT.
19851if test -n "\${ZSH_VERSION+set}" ; then
19852   setopt NO_GLOB_SUBST
19853fi
19854
19855
19856    PACKAGE='$PACKAGE'
19857    VERSION='$VERSION'
19858    TIMESTAMP='$TIMESTAMP'
19859    RM='$RM'
19860    ofile='$ofile'
19861
19862
19863
19864
19865_ACEOF
19866
19867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868
19869# Handling of arguments.
19870for ac_config_target in $ac_config_targets
19871do
19872  case $ac_config_target in
19873    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19874    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19875    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19876    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19877    "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
19878    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19879    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19880    "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
19881    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19882
19883  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19884  esac
19885done
19886
19887
19888# If the user did not use the arguments to specify the items to instantiate,
19889# then the envvar interface is used.  Set only those that are not.
19890# We use the long form for the default assignment because of an extremely
19891# bizarre bug on SunOS 4.1.3.
19892if $ac_need_defaults; then
19893  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19894  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19895  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19896fi
19897
19898# Have a temporary directory for convenience.  Make it in the build tree
19899# simply because there is no reason against having it here, and in addition,
19900# creating and moving files from /tmp can sometimes cause problems.
19901# Hook for its removal unless debugging.
19902# Note that there is a small window in which the directory will not be cleaned:
19903# after its creation but before its name has been assigned to `$tmp'.
19904$debug ||
19905{
19906  tmp= ac_tmp=
19907  trap 'exit_status=$?
19908  : "${ac_tmp:=$tmp}"
19909  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19910' 0
19911  trap 'as_fn_exit 1' 1 2 13 15
19912}
19913# Create a (secure) tmp directory for tmp files.
19914
19915{
19916  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19917  test -d "$tmp"
19918}  ||
19919{
19920  tmp=./conf$$-$RANDOM
19921  (umask 077 && mkdir "$tmp")
19922} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19923ac_tmp=$tmp
19924
19925# Set up the scripts for CONFIG_FILES section.
19926# No need to generate them if there are no CONFIG_FILES.
19927# This happens for instance with `./config.status config.h'.
19928if test -n "$CONFIG_FILES"; then
19929
19930
19931ac_cr=`echo X | tr X '\015'`
19932# On cygwin, bash can eat \r inside `` if the user requested igncr.
19933# But we know of no other shell where ac_cr would be empty at this
19934# point, so we can use a bashism as a fallback.
19935if test "x$ac_cr" = x; then
19936  eval ac_cr=\$\'\\r\'
19937fi
19938ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19939if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19940  ac_cs_awk_cr='\\r'
19941else
19942  ac_cs_awk_cr=$ac_cr
19943fi
19944
19945echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19946_ACEOF
19947
19948
19949{
19950  echo "cat >conf$$subs.awk <<_ACEOF" &&
19951  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19952  echo "_ACEOF"
19953} >conf$$subs.sh ||
19954  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19955ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19956ac_delim='%!_!# '
19957for ac_last_try in false false false false false :; do
19958  . ./conf$$subs.sh ||
19959    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19960
19961  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19962  if test $ac_delim_n = $ac_delim_num; then
19963    break
19964  elif $ac_last_try; then
19965    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19966  else
19967    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19968  fi
19969done
19970rm -f conf$$subs.sh
19971
19972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19974_ACEOF
19975sed -n '
19976h
19977s/^/S["/; s/!.*/"]=/
19978p
19979g
19980s/^[^!]*!//
19981:repl
19982t repl
19983s/'"$ac_delim"'$//
19984t delim
19985:nl
19986h
19987s/\(.\{148\}\)..*/\1/
19988t more1
19989s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19990p
19991n
19992b repl
19993:more1
19994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19995p
19996g
19997s/.\{148\}//
19998t nl
19999:delim
20000h
20001s/\(.\{148\}\)..*/\1/
20002t more2
20003s/["\\]/\\&/g; s/^/"/; s/$/"/
20004p
20005b
20006:more2
20007s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20008p
20009g
20010s/.\{148\}//
20011t delim
20012' <conf$$subs.awk | sed '
20013/^[^""]/{
20014  N
20015  s/\n//
20016}
20017' >>$CONFIG_STATUS || ac_write_fail=1
20018rm -f conf$$subs.awk
20019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020_ACAWK
20021cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20022  for (key in S) S_is_set[key] = 1
20023  FS = ""
20024
20025}
20026{
20027  line = $ 0
20028  nfields = split(line, field, "@")
20029  substed = 0
20030  len = length(field[1])
20031  for (i = 2; i < nfields; i++) {
20032    key = field[i]
20033    keylen = length(key)
20034    if (S_is_set[key]) {
20035      value = S[key]
20036      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20037      len += length(value) + length(field[++i])
20038      substed = 1
20039    } else
20040      len += 1 + keylen
20041  }
20042
20043  print line
20044}
20045
20046_ACAWK
20047_ACEOF
20048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20049if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20050  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20051else
20052  cat
20053fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20054  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20055_ACEOF
20056
20057# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20058# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20059# trailing colons and then remove the whole line if VPATH becomes empty
20060# (actually we leave an empty line to preserve line numbers).
20061if test "x$srcdir" = x.; then
20062  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20063h
20064s///
20065s/^/:/
20066s/[	 ]*$/:/
20067s/:\$(srcdir):/:/g
20068s/:\${srcdir}:/:/g
20069s/:@srcdir@:/:/g
20070s/^:*//
20071s/:*$//
20072x
20073s/\(=[	 ]*\).*/\1/
20074G
20075s/\n//
20076s/^[^=]*=[	 ]*$//
20077}'
20078fi
20079
20080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20081fi # test -n "$CONFIG_FILES"
20082
20083# Set up the scripts for CONFIG_HEADERS section.
20084# No need to generate them if there are no CONFIG_HEADERS.
20085# This happens for instance with `./config.status Makefile'.
20086if test -n "$CONFIG_HEADERS"; then
20087cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20088BEGIN {
20089_ACEOF
20090
20091# Transform confdefs.h into an awk script `defines.awk', embedded as
20092# here-document in config.status, that substitutes the proper values into
20093# config.h.in to produce config.h.
20094
20095# Create a delimiter string that does not exist in confdefs.h, to ease
20096# handling of long lines.
20097ac_delim='%!_!# '
20098for ac_last_try in false false :; do
20099  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20100  if test -z "$ac_tt"; then
20101    break
20102  elif $ac_last_try; then
20103    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20104  else
20105    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20106  fi
20107done
20108
20109# For the awk script, D is an array of macro values keyed by name,
20110# likewise P contains macro parameters if any.  Preserve backslash
20111# newline sequences.
20112
20113ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20114sed -n '
20115s/.\{148\}/&'"$ac_delim"'/g
20116t rset
20117:rset
20118s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20119t def
20120d
20121:def
20122s/\\$//
20123t bsnl
20124s/["\\]/\\&/g
20125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20126D["\1"]=" \3"/p
20127s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20128d
20129:bsnl
20130s/["\\]/\\&/g
20131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20132D["\1"]=" \3\\\\\\n"\\/p
20133t cont
20134s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20135t cont
20136d
20137:cont
20138n
20139s/.\{148\}/&'"$ac_delim"'/g
20140t clear
20141:clear
20142s/\\$//
20143t bsnlc
20144s/["\\]/\\&/g; s/^/"/; s/$/"/p
20145d
20146:bsnlc
20147s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20148b cont
20149' <confdefs.h | sed '
20150s/'"$ac_delim"'/"\\\
20151"/g' >>$CONFIG_STATUS || ac_write_fail=1
20152
20153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20154  for (key in D) D_is_set[key] = 1
20155  FS = ""
20156}
20157/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20158  line = \$ 0
20159  split(line, arg, " ")
20160  if (arg[1] == "#") {
20161    defundef = arg[2]
20162    mac1 = arg[3]
20163  } else {
20164    defundef = substr(arg[1], 2)
20165    mac1 = arg[2]
20166  }
20167  split(mac1, mac2, "(") #)
20168  macro = mac2[1]
20169  prefix = substr(line, 1, index(line, defundef) - 1)
20170  if (D_is_set[macro]) {
20171    # Preserve the white space surrounding the "#".
20172    print prefix "define", macro P[macro] D[macro]
20173    next
20174  } else {
20175    # Replace #undef with comments.  This is necessary, for example,
20176    # in the case of _POSIX_SOURCE, which is predefined and required
20177    # on some systems where configure will not decide to define it.
20178    if (defundef == "undef") {
20179      print "/*", prefix defundef, macro, "*/"
20180      next
20181    }
20182  }
20183}
20184{ print }
20185_ACAWK
20186_ACEOF
20187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20188  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20189fi # test -n "$CONFIG_HEADERS"
20190
20191
20192eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20193shift
20194for ac_tag
20195do
20196  case $ac_tag in
20197  :[FHLC]) ac_mode=$ac_tag; continue;;
20198  esac
20199  case $ac_mode$ac_tag in
20200  :[FHL]*:*);;
20201  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20202  :[FH]-) ac_tag=-:-;;
20203  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20204  esac
20205  ac_save_IFS=$IFS
20206  IFS=:
20207  set x $ac_tag
20208  IFS=$ac_save_IFS
20209  shift
20210  ac_file=$1
20211  shift
20212
20213  case $ac_mode in
20214  :L) ac_source=$1;;
20215  :[FH])
20216    ac_file_inputs=
20217    for ac_f
20218    do
20219      case $ac_f in
20220      -) ac_f="$ac_tmp/stdin";;
20221      *) # Look for the file first in the build tree, then in the source tree
20222	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20223	 # because $ac_f cannot contain `:'.
20224	 test -f "$ac_f" ||
20225	   case $ac_f in
20226	   [\\/$]*) false;;
20227	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20228	   esac ||
20229	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20230      esac
20231      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20232      as_fn_append ac_file_inputs " '$ac_f'"
20233    done
20234
20235    # Let's still pretend it is `configure' which instantiates (i.e., don't
20236    # use $as_me), people would be surprised to read:
20237    #    /* config.h.  Generated by config.status.  */
20238    configure_input='Generated from '`
20239	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20240	`' by configure.'
20241    if test x"$ac_file" != x-; then
20242      configure_input="$ac_file.  $configure_input"
20243      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20244$as_echo "$as_me: creating $ac_file" >&6;}
20245    fi
20246    # Neutralize special characters interpreted by sed in replacement strings.
20247    case $configure_input in #(
20248    *\&* | *\|* | *\\* )
20249       ac_sed_conf_input=`$as_echo "$configure_input" |
20250       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20251    *) ac_sed_conf_input=$configure_input;;
20252    esac
20253
20254    case $ac_tag in
20255    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20256      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20257    esac
20258    ;;
20259  esac
20260
20261  ac_dir=`$as_dirname -- "$ac_file" ||
20262$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263	 X"$ac_file" : 'X\(//\)[^/]' \| \
20264	 X"$ac_file" : 'X\(//\)$' \| \
20265	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20266$as_echo X"$ac_file" |
20267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20268	    s//\1/
20269	    q
20270	  }
20271	  /^X\(\/\/\)[^/].*/{
20272	    s//\1/
20273	    q
20274	  }
20275	  /^X\(\/\/\)$/{
20276	    s//\1/
20277	    q
20278	  }
20279	  /^X\(\/\).*/{
20280	    s//\1/
20281	    q
20282	  }
20283	  s/.*/./; q'`
20284  as_dir="$ac_dir"; as_fn_mkdir_p
20285  ac_builddir=.
20286
20287case "$ac_dir" in
20288.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20289*)
20290  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20291  # A ".." for each directory in $ac_dir_suffix.
20292  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20293  case $ac_top_builddir_sub in
20294  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20296  esac ;;
20297esac
20298ac_abs_top_builddir=$ac_pwd
20299ac_abs_builddir=$ac_pwd$ac_dir_suffix
20300# for backward compatibility:
20301ac_top_builddir=$ac_top_build_prefix
20302
20303case $srcdir in
20304  .)  # We are building in place.
20305    ac_srcdir=.
20306    ac_top_srcdir=$ac_top_builddir_sub
20307    ac_abs_top_srcdir=$ac_pwd ;;
20308  [\\/]* | ?:[\\/]* )  # Absolute name.
20309    ac_srcdir=$srcdir$ac_dir_suffix;
20310    ac_top_srcdir=$srcdir
20311    ac_abs_top_srcdir=$srcdir ;;
20312  *) # Relative name.
20313    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20314    ac_top_srcdir=$ac_top_build_prefix$srcdir
20315    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20316esac
20317ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20318
20319
20320  case $ac_mode in
20321  :F)
20322  #
20323  # CONFIG_FILE
20324  #
20325
20326  case $INSTALL in
20327  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20328  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20329  esac
20330  ac_MKDIR_P=$MKDIR_P
20331  case $MKDIR_P in
20332  [\\/$]* | ?:[\\/]* ) ;;
20333  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20334  esac
20335_ACEOF
20336
20337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338# If the template does not know about datarootdir, expand it.
20339# FIXME: This hack should be removed a few years after 2.60.
20340ac_datarootdir_hack=; ac_datarootdir_seen=
20341ac_sed_dataroot='
20342/datarootdir/ {
20343  p
20344  q
20345}
20346/@datadir@/p
20347/@docdir@/p
20348/@infodir@/p
20349/@localedir@/p
20350/@mandir@/p'
20351case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20352*datarootdir*) ac_datarootdir_seen=yes;;
20353*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20354  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20355$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20356_ACEOF
20357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358  ac_datarootdir_hack='
20359  s&@datadir@&$datadir&g
20360  s&@docdir@&$docdir&g
20361  s&@infodir@&$infodir&g
20362  s&@localedir@&$localedir&g
20363  s&@mandir@&$mandir&g
20364  s&\\\${datarootdir}&$datarootdir&g' ;;
20365esac
20366_ACEOF
20367
20368# Neutralize VPATH when `$srcdir' = `.'.
20369# Shell code in configure.ac might set extrasub.
20370# FIXME: do we really want to maintain this feature?
20371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20372ac_sed_extra="$ac_vpsub
20373$extrasub
20374_ACEOF
20375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376:t
20377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20378s|@configure_input@|$ac_sed_conf_input|;t t
20379s&@top_builddir@&$ac_top_builddir_sub&;t t
20380s&@top_build_prefix@&$ac_top_build_prefix&;t t
20381s&@srcdir@&$ac_srcdir&;t t
20382s&@abs_srcdir@&$ac_abs_srcdir&;t t
20383s&@top_srcdir@&$ac_top_srcdir&;t t
20384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20385s&@builddir@&$ac_builddir&;t t
20386s&@abs_builddir@&$ac_abs_builddir&;t t
20387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20388s&@INSTALL@&$ac_INSTALL&;t t
20389s&@MKDIR_P@&$ac_MKDIR_P&;t t
20390$ac_datarootdir_hack
20391"
20392eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20393  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20394
20395test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20396  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20397  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20398      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20399  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20400which seems to be undefined.  Please make sure it is defined" >&5
20401$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20402which seems to be undefined.  Please make sure it is defined" >&2;}
20403
20404  rm -f "$ac_tmp/stdin"
20405  case $ac_file in
20406  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20407  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20408  esac \
20409  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20410 ;;
20411  :H)
20412  #
20413  # CONFIG_HEADER
20414  #
20415  if test x"$ac_file" != x-; then
20416    {
20417      $as_echo "/* $configure_input  */" \
20418      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20419    } >"$ac_tmp/config.h" \
20420      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20421    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20422      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20423$as_echo "$as_me: $ac_file is unchanged" >&6;}
20424    else
20425      rm -f "$ac_file"
20426      mv "$ac_tmp/config.h" "$ac_file" \
20427	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20428    fi
20429  else
20430    $as_echo "/* $configure_input  */" \
20431      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20432      || as_fn_error $? "could not create -" "$LINENO" 5
20433  fi
20434# Compute "$ac_file"'s index in $config_headers.
20435_am_arg="$ac_file"
20436_am_stamp_count=1
20437for _am_header in $config_headers :; do
20438  case $_am_header in
20439    $_am_arg | $_am_arg:* )
20440      break ;;
20441    * )
20442      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20443  esac
20444done
20445echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20446$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20447	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20448	 X"$_am_arg" : 'X\(//\)$' \| \
20449	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20450$as_echo X"$_am_arg" |
20451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20452	    s//\1/
20453	    q
20454	  }
20455	  /^X\(\/\/\)[^/].*/{
20456	    s//\1/
20457	    q
20458	  }
20459	  /^X\(\/\/\)$/{
20460	    s//\1/
20461	    q
20462	  }
20463	  /^X\(\/\).*/{
20464	    s//\1/
20465	    q
20466	  }
20467	  s/.*/./; q'`/stamp-h$_am_stamp_count
20468 ;;
20469
20470  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20471$as_echo "$as_me: executing $ac_file commands" >&6;}
20472 ;;
20473  esac
20474
20475
20476  case $ac_file$ac_mode in
20477    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20478  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20479  # are listed without --file.  Let's play safe and only enable the eval
20480  # if we detect the quoting.
20481  case $CONFIG_FILES in
20482  *\'*) eval set x "$CONFIG_FILES" ;;
20483  *)   set x $CONFIG_FILES ;;
20484  esac
20485  shift
20486  for mf
20487  do
20488    # Strip MF so we end up with the name of the file.
20489    mf=`echo "$mf" | sed -e 's/:.*$//'`
20490    # Check whether this is an Automake generated Makefile or not.
20491    # We used to match only the files named `Makefile.in', but
20492    # some people rename them; so instead we look at the file content.
20493    # Grep'ing the first line is not enough: some people post-process
20494    # each Makefile.in and add a new line on top of each file to say so.
20495    # Grep'ing the whole file is not good either: AIX grep has a line
20496    # limit of 2048, but all sed's we know have understand at least 4000.
20497    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20498      dirpart=`$as_dirname -- "$mf" ||
20499$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20500	 X"$mf" : 'X\(//\)[^/]' \| \
20501	 X"$mf" : 'X\(//\)$' \| \
20502	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20503$as_echo X"$mf" |
20504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505	    s//\1/
20506	    q
20507	  }
20508	  /^X\(\/\/\)[^/].*/{
20509	    s//\1/
20510	    q
20511	  }
20512	  /^X\(\/\/\)$/{
20513	    s//\1/
20514	    q
20515	  }
20516	  /^X\(\/\).*/{
20517	    s//\1/
20518	    q
20519	  }
20520	  s/.*/./; q'`
20521    else
20522      continue
20523    fi
20524    # Extract the definition of DEPDIR, am__include, and am__quote
20525    # from the Makefile without running `make'.
20526    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527    test -z "$DEPDIR" && continue
20528    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20529    test -z "am__include" && continue
20530    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20531    # When using ansi2knr, U may be empty or an underscore; expand it
20532    U=`sed -n 's/^U = //p' < "$mf"`
20533    # Find all dependency output files, they are included files with
20534    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20535    # simplest approach to changing $(DEPDIR) to its actual value in the
20536    # expansion.
20537    for file in `sed -n "
20538      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20539	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20540      # Make sure the directory exists.
20541      test -f "$dirpart/$file" && continue
20542      fdir=`$as_dirname -- "$file" ||
20543$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544	 X"$file" : 'X\(//\)[^/]' \| \
20545	 X"$file" : 'X\(//\)$' \| \
20546	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20547$as_echo X"$file" |
20548    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549	    s//\1/
20550	    q
20551	  }
20552	  /^X\(\/\/\)[^/].*/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\(\/\/\)$/{
20557	    s//\1/
20558	    q
20559	  }
20560	  /^X\(\/\).*/{
20561	    s//\1/
20562	    q
20563	  }
20564	  s/.*/./; q'`
20565      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20566      # echo "creating $dirpart/$file"
20567      echo '# dummy' > "$dirpart/$file"
20568    done
20569  done
20570}
20571 ;;
20572    "libtool":C)
20573
20574    # See if we are running on zsh, and set the options which allow our
20575    # commands through without removal of \ escapes.
20576    if test -n "${ZSH_VERSION+set}" ; then
20577      setopt NO_GLOB_SUBST
20578    fi
20579
20580    cfgfile="${ofile}T"
20581    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20582    $RM "$cfgfile"
20583
20584    cat <<_LT_EOF >> "$cfgfile"
20585#! $SHELL
20586
20587# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20588# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20590# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20591#
20592#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20593#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20594#                 Foundation, Inc.
20595#   Written by Gordon Matzigkeit, 1996
20596#
20597#   This file is part of GNU Libtool.
20598#
20599# GNU Libtool is free software; you can redistribute it and/or
20600# modify it under the terms of the GNU General Public License as
20601# published by the Free Software Foundation; either version 2 of
20602# the License, or (at your option) any later version.
20603#
20604# As a special exception to the GNU General Public License,
20605# if you distribute this file as part of a program or library that
20606# is built using GNU Libtool, you may include this file under the
20607# same distribution terms that you use for the rest of that program.
20608#
20609# GNU Libtool is distributed in the hope that it will be useful,
20610# but WITHOUT ANY WARRANTY; without even the implied warranty of
20611# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20612# GNU General Public License for more details.
20613#
20614# You should have received a copy of the GNU General Public License
20615# along with GNU Libtool; see the file COPYING.  If not, a copy
20616# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20617# obtained by writing to the Free Software Foundation, Inc.,
20618# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20619
20620
20621# The names of the tagged configurations supported by this script.
20622available_tags=""
20623
20624# ### BEGIN LIBTOOL CONFIG
20625
20626# Whether or not to build static libraries.
20627build_old_libs=$enable_static
20628
20629# Which release of libtool.m4 was used?
20630macro_version=$macro_version
20631macro_revision=$macro_revision
20632
20633# Whether or not to build shared libraries.
20634build_libtool_libs=$enable_shared
20635
20636# What type of objects to build.
20637pic_mode=$pic_mode
20638
20639# Whether or not to optimize for fast installation.
20640fast_install=$enable_fast_install
20641
20642# Shell to use when invoking shell scripts.
20643SHELL=$lt_SHELL
20644
20645# An echo program that protects backslashes.
20646ECHO=$lt_ECHO
20647
20648# The PATH separator for the build system.
20649PATH_SEPARATOR=$lt_PATH_SEPARATOR
20650
20651# The host system.
20652host_alias=$host_alias
20653host=$host
20654host_os=$host_os
20655
20656# The build system.
20657build_alias=$build_alias
20658build=$build
20659build_os=$build_os
20660
20661# A sed program that does not truncate output.
20662SED=$lt_SED
20663
20664# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20665Xsed="\$SED -e 1s/^X//"
20666
20667# A grep program that handles long lines.
20668GREP=$lt_GREP
20669
20670# An ERE matcher.
20671EGREP=$lt_EGREP
20672
20673# A literal string matcher.
20674FGREP=$lt_FGREP
20675
20676# A BSD- or MS-compatible name lister.
20677NM=$lt_NM
20678
20679# Whether we need soft or hard links.
20680LN_S=$lt_LN_S
20681
20682# What is the maximum length of a command?
20683max_cmd_len=$max_cmd_len
20684
20685# Object file suffix (normally "o").
20686objext=$ac_objext
20687
20688# Executable file suffix (normally "").
20689exeext=$exeext
20690
20691# whether the shell understands "unset".
20692lt_unset=$lt_unset
20693
20694# turn spaces into newlines.
20695SP2NL=$lt_lt_SP2NL
20696
20697# turn newlines into spaces.
20698NL2SP=$lt_lt_NL2SP
20699
20700# convert \$build file names to \$host format.
20701to_host_file_cmd=$lt_cv_to_host_file_cmd
20702
20703# convert \$build files to toolchain format.
20704to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20705
20706# An object symbol dumper.
20707OBJDUMP=$lt_OBJDUMP
20708
20709# Method to check whether dependent libraries are shared objects.
20710deplibs_check_method=$lt_deplibs_check_method
20711
20712# Command to use when deplibs_check_method = "file_magic".
20713file_magic_cmd=$lt_file_magic_cmd
20714
20715# How to find potential files when deplibs_check_method = "file_magic".
20716file_magic_glob=$lt_file_magic_glob
20717
20718# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20719want_nocaseglob=$lt_want_nocaseglob
20720
20721# DLL creation program.
20722DLLTOOL=$lt_DLLTOOL
20723
20724# Command to associate shared and link libraries.
20725sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20726
20727# The archiver.
20728AR=$lt_AR
20729
20730# Flags to create an archive.
20731AR_FLAGS=$lt_AR_FLAGS
20732
20733# How to feed a file listing to the archiver.
20734archiver_list_spec=$lt_archiver_list_spec
20735
20736# A symbol stripping program.
20737STRIP=$lt_STRIP
20738
20739# Commands used to install an old-style archive.
20740RANLIB=$lt_RANLIB
20741old_postinstall_cmds=$lt_old_postinstall_cmds
20742old_postuninstall_cmds=$lt_old_postuninstall_cmds
20743
20744# Whether to use a lock for old archive extraction.
20745lock_old_archive_extraction=$lock_old_archive_extraction
20746
20747# A C compiler.
20748LTCC=$lt_CC
20749
20750# LTCC compiler flags.
20751LTCFLAGS=$lt_CFLAGS
20752
20753# Take the output of nm and produce a listing of raw symbols and C names.
20754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20755
20756# Transform the output of nm in a proper C declaration.
20757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20758
20759# Transform the output of nm in a C name address pair.
20760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20761
20762# Transform the output of nm in a C name address pair when lib prefix is needed.
20763global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20764
20765# Specify filename containing input files for \$NM.
20766nm_file_list_spec=$lt_nm_file_list_spec
20767
20768# The root where to search for dependent libraries,and in which our libraries should be installed.
20769lt_sysroot=$lt_sysroot
20770
20771# The name of the directory that contains temporary libtool files.
20772objdir=$objdir
20773
20774# Used to examine libraries when file_magic_cmd begins with "file".
20775MAGIC_CMD=$MAGIC_CMD
20776
20777# Must we lock files when doing compilation?
20778need_locks=$lt_need_locks
20779
20780# Manifest tool.
20781MANIFEST_TOOL=$lt_MANIFEST_TOOL
20782
20783# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20784DSYMUTIL=$lt_DSYMUTIL
20785
20786# Tool to change global to local symbols on Mac OS X.
20787NMEDIT=$lt_NMEDIT
20788
20789# Tool to manipulate fat objects and archives on Mac OS X.
20790LIPO=$lt_LIPO
20791
20792# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20793OTOOL=$lt_OTOOL
20794
20795# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20796OTOOL64=$lt_OTOOL64
20797
20798# Old archive suffix (normally "a").
20799libext=$libext
20800
20801# Shared library suffix (normally ".so").
20802shrext_cmds=$lt_shrext_cmds
20803
20804# The commands to extract the exported symbol list from a shared archive.
20805extract_expsyms_cmds=$lt_extract_expsyms_cmds
20806
20807# Variables whose values should be saved in libtool wrapper scripts and
20808# restored at link time.
20809variables_saved_for_relink=$lt_variables_saved_for_relink
20810
20811# Do we need the "lib" prefix for modules?
20812need_lib_prefix=$need_lib_prefix
20813
20814# Do we need a version for libraries?
20815need_version=$need_version
20816
20817# Library versioning type.
20818version_type=$version_type
20819
20820# Shared library runtime path variable.
20821runpath_var=$runpath_var
20822
20823# Shared library path variable.
20824shlibpath_var=$shlibpath_var
20825
20826# Is shlibpath searched before the hard-coded library search path?
20827shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20828
20829# Format of library name prefix.
20830libname_spec=$lt_libname_spec
20831
20832# List of archive names.  First name is the real one, the rest are links.
20833# The last name is the one that the linker finds with -lNAME
20834library_names_spec=$lt_library_names_spec
20835
20836# The coded name of the library, if different from the real name.
20837soname_spec=$lt_soname_spec
20838
20839# Permission mode override for installation of shared libraries.
20840install_override_mode=$lt_install_override_mode
20841
20842# Command to use after installation of a shared archive.
20843postinstall_cmds=$lt_postinstall_cmds
20844
20845# Command to use after uninstallation of a shared archive.
20846postuninstall_cmds=$lt_postuninstall_cmds
20847
20848# Commands used to finish a libtool library installation in a directory.
20849finish_cmds=$lt_finish_cmds
20850
20851# As "finish_cmds", except a single script fragment to be evaled but
20852# not shown.
20853finish_eval=$lt_finish_eval
20854
20855# Whether we should hardcode library paths into libraries.
20856hardcode_into_libs=$hardcode_into_libs
20857
20858# Compile-time system search path for libraries.
20859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20860
20861# Run-time system search path for libraries.
20862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20863
20864# Whether dlopen is supported.
20865dlopen_support=$enable_dlopen
20866
20867# Whether dlopen of programs is supported.
20868dlopen_self=$enable_dlopen_self
20869
20870# Whether dlopen of statically linked programs is supported.
20871dlopen_self_static=$enable_dlopen_self_static
20872
20873# Commands to strip libraries.
20874old_striplib=$lt_old_striplib
20875striplib=$lt_striplib
20876
20877
20878# The linker used to build libraries.
20879LD=$lt_LD
20880
20881# How to create reloadable object files.
20882reload_flag=$lt_reload_flag
20883reload_cmds=$lt_reload_cmds
20884
20885# Commands used to build an old-style archive.
20886old_archive_cmds=$lt_old_archive_cmds
20887
20888# A language specific compiler.
20889CC=$lt_compiler
20890
20891# Is the compiler the GNU compiler?
20892with_gcc=$GCC
20893
20894# Compiler flag to turn off builtin functions.
20895no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20896
20897# Additional compiler flags for building library objects.
20898pic_flag=$lt_lt_prog_compiler_pic
20899
20900# How to pass a linker flag through the compiler.
20901wl=$lt_lt_prog_compiler_wl
20902
20903# Compiler flag to prevent dynamic linking.
20904link_static_flag=$lt_lt_prog_compiler_static
20905
20906# Does compiler simultaneously support -c and -o options?
20907compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20908
20909# Whether or not to add -lc for building shared libraries.
20910build_libtool_need_lc=$archive_cmds_need_lc
20911
20912# Whether or not to disallow shared libs when runtime libs are static.
20913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20914
20915# Compiler flag to allow reflexive dlopens.
20916export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20917
20918# Compiler flag to generate shared objects directly from archives.
20919whole_archive_flag_spec=$lt_whole_archive_flag_spec
20920
20921# Whether the compiler copes with passing no objects directly.
20922compiler_needs_object=$lt_compiler_needs_object
20923
20924# Create an old-style archive from a shared archive.
20925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20926
20927# Create a temporary old-style archive to link instead of a shared archive.
20928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20929
20930# Commands used to build a shared archive.
20931archive_cmds=$lt_archive_cmds
20932archive_expsym_cmds=$lt_archive_expsym_cmds
20933
20934# Commands used to build a loadable module if different from building
20935# a shared archive.
20936module_cmds=$lt_module_cmds
20937module_expsym_cmds=$lt_module_expsym_cmds
20938
20939# Whether we are building with GNU ld or not.
20940with_gnu_ld=$lt_with_gnu_ld
20941
20942# Flag that allows shared libraries with undefined symbols to be built.
20943allow_undefined_flag=$lt_allow_undefined_flag
20944
20945# Flag that enforces no undefined symbols.
20946no_undefined_flag=$lt_no_undefined_flag
20947
20948# Flag to hardcode \$libdir into a binary during linking.
20949# This must work even if \$libdir does not exist
20950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20951
20952# Whether we need a single "-rpath" flag with a separated argument.
20953hardcode_libdir_separator=$lt_hardcode_libdir_separator
20954
20955# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20956# DIR into the resulting binary.
20957hardcode_direct=$hardcode_direct
20958
20959# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20960# DIR into the resulting binary and the resulting library dependency is
20961# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20962# library is relocated.
20963hardcode_direct_absolute=$hardcode_direct_absolute
20964
20965# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20966# into the resulting binary.
20967hardcode_minus_L=$hardcode_minus_L
20968
20969# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20970# into the resulting binary.
20971hardcode_shlibpath_var=$hardcode_shlibpath_var
20972
20973# Set to "yes" if building a shared library automatically hardcodes DIR
20974# into the library and all subsequent libraries and executables linked
20975# against it.
20976hardcode_automatic=$hardcode_automatic
20977
20978# Set to yes if linker adds runtime paths of dependent libraries
20979# to runtime path list.
20980inherit_rpath=$inherit_rpath
20981
20982# Whether libtool must link a program against all its dependency libraries.
20983link_all_deplibs=$link_all_deplibs
20984
20985# Set to "yes" if exported symbols are required.
20986always_export_symbols=$always_export_symbols
20987
20988# The commands to list exported symbols.
20989export_symbols_cmds=$lt_export_symbols_cmds
20990
20991# Symbols that should not be listed in the preloaded symbols.
20992exclude_expsyms=$lt_exclude_expsyms
20993
20994# Symbols that must always be exported.
20995include_expsyms=$lt_include_expsyms
20996
20997# Commands necessary for linking programs (against libraries) with templates.
20998prelink_cmds=$lt_prelink_cmds
20999
21000# Commands necessary for finishing linking programs.
21001postlink_cmds=$lt_postlink_cmds
21002
21003# Specify filename containing input files.
21004file_list_spec=$lt_file_list_spec
21005
21006# How to hardcode a shared library path into an executable.
21007hardcode_action=$hardcode_action
21008
21009# ### END LIBTOOL CONFIG
21010
21011_LT_EOF
21012
21013  case $host_os in
21014  aix3*)
21015    cat <<\_LT_EOF >> "$cfgfile"
21016# AIX sometimes has problems with the GCC collect2 program.  For some
21017# reason, if we set the COLLECT_NAMES environment variable, the problems
21018# vanish in a puff of smoke.
21019if test "X${COLLECT_NAMES+set}" != Xset; then
21020  COLLECT_NAMES=
21021  export COLLECT_NAMES
21022fi
21023_LT_EOF
21024    ;;
21025  esac
21026
21027
21028ltmain="$ac_aux_dir/ltmain.sh"
21029
21030
21031  # We use sed instead of cat because bash on DJGPP gets confused if
21032  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21033  # text mode, it properly converts lines to CR/LF.  This bash problem
21034  # is reportedly fixed, but why not run on old versions too?
21035  sed '$q' "$ltmain" >> "$cfgfile" \
21036     || (rm -f "$cfgfile"; exit 1)
21037
21038  if test x"$xsi_shell" = xyes; then
21039  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21040func_dirname ()\
21041{\
21042\    case ${1} in\
21043\      */*) func_dirname_result="${1%/*}${2}" ;;\
21044\      *  ) func_dirname_result="${3}" ;;\
21045\    esac\
21046} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21047  && mv -f "$cfgfile.tmp" "$cfgfile" \
21048    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21049test 0 -eq $? || _lt_function_replace_fail=:
21050
21051
21052  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21053func_basename ()\
21054{\
21055\    func_basename_result="${1##*/}"\
21056} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21057  && mv -f "$cfgfile.tmp" "$cfgfile" \
21058    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21059test 0 -eq $? || _lt_function_replace_fail=:
21060
21061
21062  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21063func_dirname_and_basename ()\
21064{\
21065\    case ${1} in\
21066\      */*) func_dirname_result="${1%/*}${2}" ;;\
21067\      *  ) func_dirname_result="${3}" ;;\
21068\    esac\
21069\    func_basename_result="${1##*/}"\
21070} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21071  && mv -f "$cfgfile.tmp" "$cfgfile" \
21072    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21073test 0 -eq $? || _lt_function_replace_fail=:
21074
21075
21076  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21077func_stripname ()\
21078{\
21079\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21080\    # positional parameters, so assign one to ordinary parameter first.\
21081\    func_stripname_result=${3}\
21082\    func_stripname_result=${func_stripname_result#"${1}"}\
21083\    func_stripname_result=${func_stripname_result%"${2}"}\
21084} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21085  && mv -f "$cfgfile.tmp" "$cfgfile" \
21086    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21087test 0 -eq $? || _lt_function_replace_fail=:
21088
21089
21090  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21091func_split_long_opt ()\
21092{\
21093\    func_split_long_opt_name=${1%%=*}\
21094\    func_split_long_opt_arg=${1#*=}\
21095} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21096  && mv -f "$cfgfile.tmp" "$cfgfile" \
21097    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21098test 0 -eq $? || _lt_function_replace_fail=:
21099
21100
21101  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21102func_split_short_opt ()\
21103{\
21104\    func_split_short_opt_arg=${1#??}\
21105\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21106} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21107  && mv -f "$cfgfile.tmp" "$cfgfile" \
21108    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21109test 0 -eq $? || _lt_function_replace_fail=:
21110
21111
21112  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21113func_lo2o ()\
21114{\
21115\    case ${1} in\
21116\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21117\      *)    func_lo2o_result=${1} ;;\
21118\    esac\
21119} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21120  && mv -f "$cfgfile.tmp" "$cfgfile" \
21121    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21122test 0 -eq $? || _lt_function_replace_fail=:
21123
21124
21125  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21126func_xform ()\
21127{\
21128    func_xform_result=${1%.*}.lo\
21129} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21130  && mv -f "$cfgfile.tmp" "$cfgfile" \
21131    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21132test 0 -eq $? || _lt_function_replace_fail=:
21133
21134
21135  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21136func_arith ()\
21137{\
21138    func_arith_result=$(( $* ))\
21139} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21140  && mv -f "$cfgfile.tmp" "$cfgfile" \
21141    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142test 0 -eq $? || _lt_function_replace_fail=:
21143
21144
21145  sed -e '/^func_len ()$/,/^} # func_len /c\
21146func_len ()\
21147{\
21148    func_len_result=${#1}\
21149} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21150  && mv -f "$cfgfile.tmp" "$cfgfile" \
21151    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21152test 0 -eq $? || _lt_function_replace_fail=:
21153
21154fi
21155
21156if test x"$lt_shell_append" = xyes; then
21157  sed -e '/^func_append ()$/,/^} # func_append /c\
21158func_append ()\
21159{\
21160    eval "${1}+=\\${2}"\
21161} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21162  && mv -f "$cfgfile.tmp" "$cfgfile" \
21163    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21164test 0 -eq $? || _lt_function_replace_fail=:
21165
21166
21167  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21168func_append_quoted ()\
21169{\
21170\    func_quote_for_eval "${2}"\
21171\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21172} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21173  && mv -f "$cfgfile.tmp" "$cfgfile" \
21174    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21175test 0 -eq $? || _lt_function_replace_fail=:
21176
21177
21178  # Save a `func_append' function call where possible by direct use of '+='
21179  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21180    && mv -f "$cfgfile.tmp" "$cfgfile" \
21181      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21182  test 0 -eq $? || _lt_function_replace_fail=:
21183else
21184  # Save a `func_append' function call even when '+=' is not available
21185  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21186    && mv -f "$cfgfile.tmp" "$cfgfile" \
21187      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21188  test 0 -eq $? || _lt_function_replace_fail=:
21189fi
21190
21191if test x"$_lt_function_replace_fail" = x":"; then
21192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21193$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21194fi
21195
21196
21197   mv -f "$cfgfile" "$ofile" ||
21198    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21199  chmod +x "$ofile"
21200
21201 ;;
21202
21203  esac
21204done # for ac_tag
21205
21206
21207as_fn_exit 0
21208_ACEOF
21209ac_clean_files=$ac_clean_files_save
21210
21211test $ac_write_fail = 0 ||
21212  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21213
21214
21215# configure is writing to config.log, and then calls config.status.
21216# config.status does its own redirection, appending to config.log.
21217# Unfortunately, on DOS this fails, as config.log is still kept open
21218# by configure, so config.status won't be able to write to it; its
21219# output is simply discarded.  So we exec the FD to /dev/null,
21220# effectively closing config.log, so it can be properly (re)opened and
21221# appended to by config.status.  When coming back to configure, we
21222# need to make the FD available again.
21223if test "$no_create" != yes; then
21224  ac_cs_success=:
21225  ac_config_status_args=
21226  test "$silent" = yes &&
21227    ac_config_status_args="$ac_config_status_args --quiet"
21228  exec 5>/dev/null
21229  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21230  exec 5>>config.log
21231  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21232  # would make configure fail if this is the last instruction.
21233  $ac_cs_success || as_fn_exit 1
21234fi
21235if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21236  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21237$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21238fi
21239
21240