configure revision 26b1ff4e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-keyboard 1.8.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-input-keyboard'
593PACKAGE_TARNAME='xf86-input-keyboard'
594PACKAGE_VERSION='1.8.0'
595PACKAGE_STRING='xf86-input-keyboard 1.8.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641HURD_FALSE
642HURD_TRUE
643SOLARIS_FALSE
644SOLARIS_TRUE
645BSD_FALSE
646BSD_TRUE
647LINUX_FALSE
648LINUX_TRUE
649OS_FLAGS
650inputdir
651XORG_LIBS
652XORG_CFLAGS
653MAN_SUBSTS
654XORG_MAN_PAGE
655ADMIN_MAN_DIR
656DRIVER_MAN_DIR
657MISC_MAN_DIR
658FILE_MAN_DIR
659LIB_MAN_DIR
660APP_MAN_DIR
661ADMIN_MAN_SUFFIX
662DRIVER_MAN_SUFFIX
663MISC_MAN_SUFFIX
664FILE_MAN_SUFFIX
665LIB_MAN_SUFFIX
666APP_MAN_SUFFIX
667INSTALL_CMD
668PKG_CONFIG_LIBDIR
669PKG_CONFIG_PATH
670PKG_CONFIG
671CHANGELOG_CMD
672STRICT_CFLAGS
673CWARNFLAGS
674BASE_CFLAGS
675CPP
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685DLLTOOL
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693EGREP
694GREP
695SED
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699am__nodep
700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721LIBTOOL
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_silent_rules
791enable_static
792enable_shared
793with_pic
794enable_fast_install
795enable_dependency_tracking
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_selective_werror
800enable_strict_compilation
801with_xorg_module_dir
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812PKG_CONFIG
813PKG_CONFIG_PATH
814PKG_CONFIG_LIBDIR
815XORG_CFLAGS
816XORG_LIBS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures xf86-input-keyboard 1.8.0 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root
1406                          [DATAROOTDIR/doc/xf86-input-keyboard]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of xf86-input-keyboard 1.8.0:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-static[=PKGS]  build static libraries [default=no]
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-fast-install[=PKGS]
1441                          optimize for fast installation [default=yes]
1442  --enable-dependency-tracking
1443                          do not reject slow dependency extractors
1444  --disable-dependency-tracking
1445                          speeds up one-time build
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --disable-selective-werror
1448                          Turn off selective compiler errors. (default:
1449                          enabled)
1450  --enable-strict-compilation
1451                          Enable all warnings from compiler and make them
1452                          errors (default: disabled)
1453
1454Optional Packages:
1455  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1458                          both]
1459  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460  --with-sysroot=DIR Search for dependent libraries within DIR
1461                        (or the compiler's sysroot if not specified).
1462  --with-xorg-module-dir=DIR
1463                          Default xorg module directory
1464                          [[default=$libdir/xorg/modules]]
1465
1466Some influential environment variables:
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CPP         C preprocessor
1475  PKG_CONFIG  path to pkg-config utility
1476  PKG_CONFIG_PATH
1477              directories to add to pkg-config's search path
1478  PKG_CONFIG_LIBDIR
1479              path overriding pkg-config's built-in search path
1480  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1481  XORG_LIBS   linker flags for XORG, overriding pkg-config
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for guested configure.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549xf86-input-keyboard configure 1.8.0
1550generated by GNU Autoconf 2.69
1551
1552Copyright (C) 2012 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556  exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext
1570  if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_compile") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest.$ac_objext; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_link LINENO
1602# -----------------------
1603# Try to link conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_link ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  rm -f conftest.$ac_objext conftest$ac_exeext
1608  if { { ac_try="$ac_link"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615  (eval "$ac_link") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && {
1624	 test -z "$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       } && test -s conftest$ac_exeext && {
1627	 test "$cross_compiling" = yes ||
1628	 test -x conftest$ac_exeext
1629       }; then :
1630  ac_retval=0
1631else
1632  $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639  # interfere with the next link command; also delete a directory that is
1640  # left behind by Apple's compiler.  We do this before executing the actions.
1641  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_link
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665  eval "$3=yes"
1666else
1667  eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_cpp LINENO
1679# ----------------------
1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_cpp ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_cpp conftest.$ac_ext"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } > conftest.i && {
1700	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708    ac_retval=1
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_cpp
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_link") 2>&5
1730  ac_status=$?
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733  { { case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_try") 2>&5
1740  ac_status=$?
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; }; }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: program exited with status $ac_status" >&5
1746       $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749       ac_retval=$ac_status
1750fi
1751  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_func LINENO FUNC VAR
1758# ----------------------------------
1759# Tests whether FUNC exists, setting the cache variable VAR accordingly
1760ac_fn_c_check_func ()
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/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772#define $2 innocuous_$2
1773
1774/* System header to define __stub macros and hopefully few prototypes,
1775    which can conflict with char $2 (); below.
1776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777    <limits.h> exists even on freestanding compilers.  */
1778
1779#ifdef __STDC__
1780# include <limits.h>
1781#else
1782# include <assert.h>
1783#endif
1784
1785#undef $2
1786
1787/* Override any GCC internal prototype to avoid an error.
1788   Use char because int might match the return type of a GCC
1789   builtin and then its argument prototype would still apply.  */
1790#ifdef __cplusplus
1791extern "C"
1792#endif
1793char $2 ();
1794/* The GNU C library defines this for functions which it implements
1795    to always fail with ENOSYS.  Some functions are actually named
1796    something starting with __ and the normal name is an alias.  */
1797#if defined __stub_$2 || defined __stub___$2
1798choke me
1799#endif
1800
1801int
1802main ()
1803{
1804return $2 ();
1805  ;
1806  return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_link "$LINENO"; then :
1810  eval "$3=yes"
1811else
1812  eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext \
1815    conftest$ac_exeext conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822} # ac_fn_c_check_func
1823
1824# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1825# ---------------------------------------------
1826# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1827# accordingly.
1828ac_fn_c_check_decl ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  as_decl_name=`echo $2|sed 's/ *(.*//'`
1832  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1834$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841int
1842main ()
1843{
1844#ifndef $as_decl_name
1845#ifdef __cplusplus
1846  (void) $as_decl_use;
1847#else
1848  (void) $as_decl_name;
1849#endif
1850#endif
1851
1852  ;
1853  return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857  eval "$3=yes"
1858else
1859  eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_decl
1869cat >config.log <<_ACEOF
1870This file contains any messages produced by compilers while
1871running configure, to aid debugging if configure makes a mistake.
1872
1873It was created by xf86-input-keyboard $as_me 1.8.0, which was
1874generated by GNU Autoconf 2.69.  Invocation command line was
1875
1876  $ $0 $@
1877
1878_ACEOF
1879exec 5>>config.log
1880{
1881cat <<_ASUNAME
1882## --------- ##
1883## Platform. ##
1884## --------- ##
1885
1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1894
1895/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1896/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1899/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1900/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1901/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1902
1903_ASUNAME
1904
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910    $as_echo "PATH: $as_dir"
1911  done
1912IFS=$as_save_IFS
1913
1914} >&5
1915
1916cat >&5 <<_ACEOF
1917
1918
1919## ----------- ##
1920## Core tests. ##
1921## ----------- ##
1922
1923_ACEOF
1924
1925
1926# Keep a trace of the command line.
1927# Strip out --no-create and --no-recursion so they do not pile up.
1928# Strip out --silent because we don't want to record it for future runs.
1929# Also quote any args containing shell meta-characters.
1930# Make two passes to allow for proper duplicate-argument suppression.
1931ac_configure_args=
1932ac_configure_args0=
1933ac_configure_args1=
1934ac_must_keep_next=false
1935for ac_pass in 1 2
1936do
1937  for ac_arg
1938  do
1939    case $ac_arg in
1940    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942    | -silent | --silent | --silen | --sile | --sil)
1943      continue ;;
1944    *\'*)
1945      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946    esac
1947    case $ac_pass in
1948    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949    2)
1950      as_fn_append ac_configure_args1 " '$ac_arg'"
1951      if test $ac_must_keep_next = true; then
1952	ac_must_keep_next=false # Got value, back to normal.
1953      else
1954	case $ac_arg in
1955	  *=* | --config-cache | -C | -disable-* | --disable-* \
1956	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958	  | -with-* | --with-* | -without-* | --without-* | --x)
1959	    case "$ac_configure_args0 " in
1960	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961	    esac
1962	    ;;
1963	  -* ) ac_must_keep_next=true ;;
1964	esac
1965      fi
1966      as_fn_append ac_configure_args " '$ac_arg'"
1967      ;;
1968    esac
1969  done
1970done
1971{ ac_configure_args0=; unset ac_configure_args0;}
1972{ ac_configure_args1=; unset ac_configure_args1;}
1973
1974# When interrupted or exit'd, cleanup temporary files, and complete
1975# config.log.  We remove comments because anyway the quotes in there
1976# would cause problems or look ugly.
1977# WARNING: Use '\'' to represent an apostrophe within the trap.
1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979trap 'exit_status=$?
1980  # Save into config.log some information that might help in debugging.
1981  {
1982    echo
1983
1984    $as_echo "## ---------------- ##
1985## Cache variables. ##
1986## ---------------- ##"
1987    echo
1988    # The following way of writing the cache mishandles newlines in values,
1989(
1990  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991    eval ac_val=\$$ac_var
1992    case $ac_val in #(
1993    *${as_nl}*)
1994      case $ac_var in #(
1995      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997      esac
1998      case $ac_var in #(
1999      _ | IFS | as_nl) ;; #(
2000      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001      *) { eval $ac_var=; unset $ac_var;} ;;
2002      esac ;;
2003    esac
2004  done
2005  (set) 2>&1 |
2006    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007    *${as_nl}ac_space=\ *)
2008      sed -n \
2009	"s/'\''/'\''\\\\'\'''\''/g;
2010	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011      ;; #(
2012    *)
2013      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014      ;;
2015    esac |
2016    sort
2017)
2018    echo
2019
2020    $as_echo "## ----------------- ##
2021## Output variables. ##
2022## ----------------- ##"
2023    echo
2024    for ac_var in $ac_subst_vars
2025    do
2026      eval ac_val=\$$ac_var
2027      case $ac_val in
2028      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029      esac
2030      $as_echo "$ac_var='\''$ac_val'\''"
2031    done | sort
2032    echo
2033
2034    if test -n "$ac_subst_files"; then
2035      $as_echo "## ------------------- ##
2036## File substitutions. ##
2037## ------------------- ##"
2038      echo
2039      for ac_var in $ac_subst_files
2040      do
2041	eval ac_val=\$$ac_var
2042	case $ac_val in
2043	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044	esac
2045	$as_echo "$ac_var='\''$ac_val'\''"
2046      done | sort
2047      echo
2048    fi
2049
2050    if test -s confdefs.h; then
2051      $as_echo "## ----------- ##
2052## confdefs.h. ##
2053## ----------- ##"
2054      echo
2055      cat confdefs.h
2056      echo
2057    fi
2058    test "$ac_signal" != 0 &&
2059      $as_echo "$as_me: caught signal $ac_signal"
2060    $as_echo "$as_me: exit $exit_status"
2061  } >&5
2062  rm -f core *.core core.conftest.* &&
2063    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064    exit $exit_status
2065' 0
2066for ac_signal in 1 2 13 15; do
2067  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068done
2069ac_signal=0
2070
2071# confdefs.h avoids OS command line length limits that DEFS can exceed.
2072rm -f -r conftest* confdefs.h
2073
2074$as_echo "/* confdefs.h */" > confdefs.h
2075
2076# Predefined preprocessor variables.
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_NAME "$PACKAGE_NAME"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_VERSION "$PACKAGE_VERSION"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_STRING "$PACKAGE_STRING"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_URL "$PACKAGE_URL"
2100_ACEOF
2101
2102
2103# Let the site file select an alternate cache file if it wants to.
2104# Prefer an explicitly selected file to automatically selected ones.
2105ac_site_file1=NONE
2106ac_site_file2=NONE
2107if test -n "$CONFIG_SITE"; then
2108  # We do not want a PATH search for config.site.
2109  case $CONFIG_SITE in #((
2110    -*)  ac_site_file1=./$CONFIG_SITE;;
2111    */*) ac_site_file1=$CONFIG_SITE;;
2112    *)   ac_site_file1=./$CONFIG_SITE;;
2113  esac
2114elif test "x$prefix" != xNONE; then
2115  ac_site_file1=$prefix/share/config.site
2116  ac_site_file2=$prefix/etc/config.site
2117else
2118  ac_site_file1=$ac_default_prefix/share/config.site
2119  ac_site_file2=$ac_default_prefix/etc/config.site
2120fi
2121for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122do
2123  test "x$ac_site_file" = xNONE && continue
2124  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2127    sed 's/^/| /' "$ac_site_file" >&5
2128    . "$ac_site_file" \
2129      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131as_fn_error $? "failed to load site script $ac_site_file
2132See \`config.log' for more details" "$LINENO" 5; }
2133  fi
2134done
2135
2136if test -r "$cache_file"; then
2137  # Some versions of bash will fail to source /dev/null (special files
2138  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2139  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2140    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141$as_echo "$as_me: loading cache $cache_file" >&6;}
2142    case $cache_file in
2143      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144      *)                      . "./$cache_file";;
2145    esac
2146  fi
2147else
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149$as_echo "$as_me: creating cache $cache_file" >&6;}
2150  >$cache_file
2151fi
2152
2153# Check that the precious variables saved in the cache have kept the same
2154# value.
2155ac_cache_corrupted=false
2156for ac_var in $ac_precious_vars; do
2157  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158  eval ac_new_set=\$ac_env_${ac_var}_set
2159  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160  eval ac_new_val=\$ac_env_${ac_var}_value
2161  case $ac_old_set,$ac_new_set in
2162    set,)
2163      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165      ac_cache_corrupted=: ;;
2166    ,set)
2167      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169      ac_cache_corrupted=: ;;
2170    ,);;
2171    *)
2172      if test "x$ac_old_val" != "x$ac_new_val"; then
2173	# differences in whitespace do not lead to failure.
2174	ac_old_val_w=`echo x $ac_old_val`
2175	ac_new_val_w=`echo x $ac_new_val`
2176	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179	  ac_cache_corrupted=:
2180	else
2181	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183	  eval $ac_var=\$ac_old_val
2184	fi
2185	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2186$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2188$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2189      fi;;
2190  esac
2191  # Pass precious variables to config.status.
2192  if test "$ac_new_set" = set; then
2193    case $ac_new_val in
2194    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195    *) ac_arg=$ac_var=$ac_new_val ;;
2196    esac
2197    case " $ac_configure_args " in
2198      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2199      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200    esac
2201  fi
2202done
2203if $ac_cache_corrupted; then
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209fi
2210## -------------------- ##
2211## Main body of script. ##
2212## -------------------- ##
2213
2214ac_ext=c
2215ac_cpp='$CPP $CPPFLAGS'
2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219
2220
2221
2222ac_config_headers="$ac_config_headers config.h"
2223
2224ac_aux_dir=
2225for ac_dir in . "$srcdir"/.; do
2226  if test -f "$ac_dir/install-sh"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/install-sh -c"
2229    break
2230  elif test -f "$ac_dir/install.sh"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/install.sh -c"
2233    break
2234  elif test -f "$ac_dir/shtool"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/shtool install -c"
2237    break
2238  fi
2239done
2240if test -z "$ac_aux_dir"; then
2241  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2242fi
2243
2244# These three variables are undocumented and unsupported,
2245# and are intended to be withdrawn in a future Autoconf release.
2246# They can cause serious problems if a builder's source tree is in a directory
2247# whose full name contains unusual characters.
2248ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2249ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2250ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2251
2252
2253
2254# Initialize Automake
2255am__api_version='1.13'
2256
2257# Find a good install program.  We prefer a C program (faster),
2258# so one script is as good as another.  But avoid the broken or
2259# incompatible versions:
2260# SysV /etc/install, /usr/sbin/install
2261# SunOS /usr/etc/install
2262# IRIX /sbin/install
2263# AIX /bin/install
2264# AmigaOS /C/install, which installs bootblocks on floppy discs
2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268# OS/2's system install, which has a completely different semantic
2269# ./install, which can be erroneously created by make from ./install.sh.
2270# Reject install programs that cannot install multiple files.
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272$as_echo_n "checking for a BSD-compatible install... " >&6; }
2273if test -z "$INSTALL"; then
2274if ${ac_cv_path_install+:} false; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282    # Account for people who put trailing slashes in PATH elements.
2283case $as_dir/ in #((
2284  ./ | .// | /[cC]/* | \
2285  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287  /usr/ucb/* ) ;;
2288  *)
2289    # OSF1 and SCO ODT 3.0 have their own names for install.
2290    # Don't use installbsd from OSF since it installs stuff as root
2291    # by default.
2292    for ac_prog in ginstall scoinst install; do
2293      for ac_exec_ext in '' $ac_executable_extensions; do
2294	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295	  if test $ac_prog = install &&
2296	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297	    # AIX install.  It has an incompatible calling convention.
2298	    :
2299	  elif test $ac_prog = install &&
2300	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301	    # program-specific install script used by HP pwplus--don't use.
2302	    :
2303	  else
2304	    rm -rf conftest.one conftest.two conftest.dir
2305	    echo one > conftest.one
2306	    echo two > conftest.two
2307	    mkdir conftest.dir
2308	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309	      test -s conftest.one && test -s conftest.two &&
2310	      test -s conftest.dir/conftest.one &&
2311	      test -s conftest.dir/conftest.two
2312	    then
2313	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314	      break 3
2315	    fi
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322
2323  done
2324IFS=$as_save_IFS
2325
2326rm -rf conftest.one conftest.two conftest.dir
2327
2328fi
2329  if test "${ac_cv_path_install+set}" = set; then
2330    INSTALL=$ac_cv_path_install
2331  else
2332    # As a last resort, use the slow shell script.  Don't cache a
2333    # value for INSTALL within a source directory, because that will
2334    # break other packages using the cache if that directory is
2335    # removed, or if the value is a relative name.
2336    INSTALL=$ac_install_sh
2337  fi
2338fi
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340$as_echo "$INSTALL" >&6; }
2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351$as_echo_n "checking whether build environment is sane... " >&6; }
2352# Reject unsafe characters in $srcdir or the absolute working directory
2353# name.  Accept space and tab only in the latter.
2354am_lf='
2355'
2356case `pwd` in
2357  *[\\\"\#\$\&\'\`$am_lf]*)
2358    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359esac
2360case $srcdir in
2361  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2362    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363esac
2364
2365# Do 'set' in a subshell so we don't clobber the current shell's
2366# arguments.  Must try -L first in case configure is actually a
2367# symlink; some systems play weird games with the mod time of symlinks
2368# (eg FreeBSD returns the mod time of the symlink's containing
2369# directory).
2370if (
2371   am_has_slept=no
2372   for am_try in 1 2; do
2373     echo "timestamp, slept: $am_has_slept" > conftest.file
2374     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375     if test "$*" = "X"; then
2376	# -L didn't work.
2377	set X `ls -t "$srcdir/configure" conftest.file`
2378     fi
2379     if test "$*" != "X $srcdir/configure conftest.file" \
2380	&& test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382	# If neither matched, then we have a broken ls.  This can happen
2383	# if, for instance, CONFIG_SHELL is bash and it inherits a
2384	# broken ls alias from the environment.  This has actually
2385	# happened.  Such a system could not be considered "sane".
2386	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2387  alias in your environment" "$LINENO" 5
2388     fi
2389     if test "$2" = conftest.file || test $am_try -eq 2; then
2390       break
2391     fi
2392     # Just in case.
2393     sleep 1
2394     am_has_slept=yes
2395   done
2396   test "$2" = conftest.file
2397   )
2398then
2399   # Ok.
2400   :
2401else
2402   as_fn_error $? "newly created file is older than distributed files!
2403Check your system clock" "$LINENO" 5
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406$as_echo "yes" >&6; }
2407# If we didn't sleep, we still need to ensure time stamps of config.status and
2408# generated files are strictly newer.
2409am_sleep_pid=
2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411  ( sleep 1 ) &
2412  am_sleep_pid=$!
2413fi
2414
2415rm -f conftest.file
2416
2417test "$program_prefix" != NONE &&
2418  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419# Use a double $ so make ignores it.
2420test "$program_suffix" != NONE &&
2421  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422# Double any \ or $.
2423# By default was `s,x,x', remove it if useless.
2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427# expand $ac_aux_dir to an absolute path
2428am_aux_dir=`cd $ac_aux_dir && pwd`
2429
2430if test x"${MISSING+set}" != xset; then
2431  case $am_aux_dir in
2432  *\ * | *\	*)
2433    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434  *)
2435    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436  esac
2437fi
2438# Use eval to expand $SHELL
2439if eval "$MISSING --is-lightweight"; then
2440  am_missing_run="$MISSING "
2441else
2442  am_missing_run=
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445fi
2446
2447if test x"${install_sh}" != xset; then
2448  case $am_aux_dir in
2449  *\ * | *\	*)
2450    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451  *)
2452    install_sh="\${SHELL} $am_aux_dir/install-sh"
2453  esac
2454fi
2455
2456# Installed binaries are usually stripped using 'strip' when the user
2457# run "make install-strip".  However 'strip' might not be the right
2458# tool to use in cross-compilation environments, therefore Automake
2459# will honor the 'STRIP' environment variable to overrule this program.
2460if test "$cross_compiling" != no; then
2461  if test -n "$ac_tool_prefix"; then
2462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}strip; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if ${ac_cv_prog_STRIP+:} false; then :
2467  $as_echo_n "(cached) " >&6
2468else
2469  if test -n "$STRIP"; then
2470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    for ac_exec_ext in '' $ac_executable_extensions; do
2478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489STRIP=$ac_cv_prog_STRIP
2490if test -n "$STRIP"; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492$as_echo "$STRIP" >&6; }
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498
2499fi
2500if test -z "$ac_cv_prog_STRIP"; then
2501  ac_ct_STRIP=$STRIP
2502  # Extract the first word of "strip", so it can be a program name with args.
2503set dummy strip; ac_word=$2
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  if test -n "$ac_ct_STRIP"; then
2510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_exec_ext in '' $ac_executable_extensions; do
2518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519    ac_cv_prog_ac_ct_STRIP="strip"
2520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524  done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530if test -n "$ac_ct_STRIP"; then
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532$as_echo "$ac_ct_STRIP" >&6; }
2533else
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
2536fi
2537
2538  if test "x$ac_ct_STRIP" = x; then
2539    STRIP=":"
2540  else
2541    case $cross_compiling:$ac_tool_warned in
2542yes:)
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547    STRIP=$ac_ct_STRIP
2548  fi
2549else
2550  STRIP="$ac_cv_prog_STRIP"
2551fi
2552
2553fi
2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558if test -z "$MKDIR_P"; then
2559  if ${ac_cv_path_mkdir+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_prog in mkdir gmkdir; do
2568	 for ac_exec_ext in '' $ac_executable_extensions; do
2569	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571	     'mkdir (GNU coreutils) '* | \
2572	     'mkdir (coreutils) '* | \
2573	     'mkdir (fileutils) '4.1*)
2574	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575	       break 3;;
2576	   esac
2577	 done
2578       done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583
2584  test -d ./--version && rmdir ./--version
2585  if test "${ac_cv_path_mkdir+set}" = set; then
2586    MKDIR_P="$ac_cv_path_mkdir -p"
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for MKDIR_P within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    MKDIR_P="$ac_install_sh -d"
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596$as_echo "$MKDIR_P" >&6; }
2597
2598for ac_prog in gawk mawk nawk awk
2599do
2600  # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_AWK+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$AWK"; then
2608  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_AWK="$ac_prog"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627AWK=$ac_cv_prog_AWK
2628if test -n "$AWK"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630$as_echo "$AWK" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637  test -n "$AWK" && break
2638done
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642set x ${MAKE-make}
2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  cat >conftest.make <<\_ACEOF
2648SHELL = /bin/sh
2649all:
2650	@echo '@@@%%%=$(MAKE)=@@@%%%'
2651_ACEOF
2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654  *@@@%%%=?*=@@@%%%*)
2655    eval ac_cv_prog_make_${ac_make}_set=yes;;
2656  *)
2657    eval ac_cv_prog_make_${ac_make}_set=no;;
2658esac
2659rm -f conftest.make
2660fi
2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
2664  SET_MAKE=
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668  SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
2671rm -rf .tst 2>/dev/null
2672mkdir .tst 2>/dev/null
2673if test -d .tst; then
2674  am__leading_dot=.
2675else
2676  am__leading_dot=_
2677fi
2678rmdir .tst 2>/dev/null
2679
2680# Check whether --enable-silent-rules was given.
2681if test "${enable_silent_rules+set}" = set; then :
2682  enableval=$enable_silent_rules;
2683fi
2684
2685case $enable_silent_rules in # (((
2686  yes) AM_DEFAULT_VERBOSITY=0;;
2687   no) AM_DEFAULT_VERBOSITY=1;;
2688    *) AM_DEFAULT_VERBOSITY=1;;
2689esac
2690am_make=${MAKE-make}
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693if ${am_cv_make_support_nested_variables+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if $as_echo 'TRUE=$(BAR$(V))
2697BAR0=false
2698BAR1=true
2699V=1
2700am__doit:
2701	@$(TRUE)
2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703  am_cv_make_support_nested_variables=yes
2704else
2705  am_cv_make_support_nested_variables=no
2706fi
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709$as_echo "$am_cv_make_support_nested_variables" >&6; }
2710if test $am_cv_make_support_nested_variables = yes; then
2711    AM_V='$(V)'
2712  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713else
2714  AM_V=$AM_DEFAULT_VERBOSITY
2715  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716fi
2717AM_BACKSLASH='\'
2718
2719if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721  # is not polluted with repeated "-I."
2722  am__isrc=' -I$(srcdir)'
2723  # test to see if srcdir already configured
2724  if test -f $srcdir/config.status; then
2725    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726  fi
2727fi
2728
2729# test whether we have cygpath
2730if test -z "$CYGPATH_W"; then
2731  if (cygpath --version) >/dev/null 2>/dev/null; then
2732    CYGPATH_W='cygpath -w'
2733  else
2734    CYGPATH_W=echo
2735  fi
2736fi
2737
2738
2739# Define the identity of the package.
2740 PACKAGE='xf86-input-keyboard'
2741 VERSION='1.8.0'
2742
2743
2744cat >>confdefs.h <<_ACEOF
2745#define PACKAGE "$PACKAGE"
2746_ACEOF
2747
2748
2749cat >>confdefs.h <<_ACEOF
2750#define VERSION "$VERSION"
2751_ACEOF
2752
2753# Some tools Automake needs.
2754
2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769# For better backward compatibility.  To be removed once Automake 1.9.x
2770# dies out for good.  For more background, see:
2771# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773mkdir_p='$(MKDIR_P)'
2774
2775# We need awk for the "check" target.  The system "awk" is bad on
2776# some platforms.
2777# Always define AMTAR for backward compatibility.  Yes, it's still used
2778# in the wild :-(  We should find a proper way to deprecate it ...
2779AMTAR='$${TAR-tar}'
2780
2781
2782# We'll loop over all known methods to create a tar archive until one works.
2783_am_tools='gnutar  pax cpio none'
2784
2785am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792
2793# Initialize libtool
2794# Check whether --enable-static was given.
2795if test "${enable_static+set}" = set; then :
2796  enableval=$enable_static; p=${PACKAGE-default}
2797    case $enableval in
2798    yes) enable_static=yes ;;
2799    no) enable_static=no ;;
2800    *)
2801     enable_static=no
2802      # Look at the argument we got.  We use all the common list separators.
2803      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2804      for pkg in $enableval; do
2805	IFS="$lt_save_ifs"
2806	if test "X$pkg" = "X$p"; then
2807	  enable_static=yes
2808	fi
2809      done
2810      IFS="$lt_save_ifs"
2811      ;;
2812    esac
2813else
2814  enable_static=no
2815fi
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825case `pwd` in
2826  *\ * | *\	*)
2827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2828$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2829esac
2830
2831
2832
2833macro_version='2.4.2'
2834macro_revision='1.3337'
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848ltmain="$ac_aux_dir/ltmain.sh"
2849
2850# Make sure we can run config.sub.
2851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2852  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2855$as_echo_n "checking build system type... " >&6; }
2856if ${ac_cv_build+:} false; then :
2857  $as_echo_n "(cached) " >&6
2858else
2859  ac_build_alias=$build_alias
2860test "x$ac_build_alias" = x &&
2861  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2862test "x$ac_build_alias" = x &&
2863  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2864ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2865  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2866
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2869$as_echo "$ac_cv_build" >&6; }
2870case $ac_cv_build in
2871*-*-*) ;;
2872*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2873esac
2874build=$ac_cv_build
2875ac_save_IFS=$IFS; IFS='-'
2876set x $ac_cv_build
2877shift
2878build_cpu=$1
2879build_vendor=$2
2880shift; shift
2881# Remember, the first character of IFS is used to create $*,
2882# except with old shells:
2883build_os=$*
2884IFS=$ac_save_IFS
2885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2886
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2889$as_echo_n "checking host system type... " >&6; }
2890if ${ac_cv_host+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  if test "x$host_alias" = x; then
2894  ac_cv_host=$ac_cv_build
2895else
2896  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2897    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2898fi
2899
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2902$as_echo "$ac_cv_host" >&6; }
2903case $ac_cv_host in
2904*-*-*) ;;
2905*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2906esac
2907host=$ac_cv_host
2908ac_save_IFS=$IFS; IFS='-'
2909set x $ac_cv_host
2910shift
2911host_cpu=$1
2912host_vendor=$2
2913shift; shift
2914# Remember, the first character of IFS is used to create $*,
2915# except with old shells:
2916host_os=$*
2917IFS=$ac_save_IFS
2918case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2919
2920
2921# Backslashify metacharacters that are still active within
2922# double-quoted strings.
2923sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2924
2925# Same as above, but do not quote variable references.
2926double_quote_subst='s/\(["`\\]\)/\\\1/g'
2927
2928# Sed substitution to delay expansion of an escaped shell variable in a
2929# double_quote_subst'ed string.
2930delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2931
2932# Sed substitution to delay expansion of an escaped single quote.
2933delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2934
2935# Sed substitution to avoid accidental globbing in evaled expressions
2936no_glob_subst='s/\*/\\\*/g'
2937
2938ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2939ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2940ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2943$as_echo_n "checking how to print strings... " >&6; }
2944# Test print first, because it will be a builtin if present.
2945if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2946   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2947  ECHO='print -r --'
2948elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2949  ECHO='printf %s\n'
2950else
2951  # Use this function as a fallback that always works.
2952  func_fallback_echo ()
2953  {
2954    eval 'cat <<_LTECHO_EOF
2955$1
2956_LTECHO_EOF'
2957  }
2958  ECHO='func_fallback_echo'
2959fi
2960
2961# func_echo_all arg...
2962# Invoke $ECHO with all args, space-separated.
2963func_echo_all ()
2964{
2965    $ECHO ""
2966}
2967
2968case "$ECHO" in
2969  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2970$as_echo "printf" >&6; } ;;
2971  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2972$as_echo "print -r" >&6; } ;;
2973  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2974$as_echo "cat" >&6; } ;;
2975esac
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990DEPDIR="${am__leading_dot}deps"
2991
2992ac_config_commands="$ac_config_commands depfiles"
2993
2994
2995am_make=${MAKE-make}
2996cat > confinc << 'END'
2997am__doit:
2998	@echo this is the am__doit target
2999.PHONY: am__doit
3000END
3001# If we don't find an include directive, just comment out the code.
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3003$as_echo_n "checking for style of include used by $am_make... " >&6; }
3004am__include="#"
3005am__quote=
3006_am_result=none
3007# First try GNU make style include.
3008echo "include confinc" > confmf
3009# Ignore all kinds of additional output from 'make'.
3010case `$am_make -s -f confmf 2> /dev/null` in #(
3011*the\ am__doit\ target*)
3012  am__include=include
3013  am__quote=
3014  _am_result=GNU
3015  ;;
3016esac
3017# Now try BSD make style include.
3018if test "$am__include" = "#"; then
3019   echo '.include "confinc"' > confmf
3020   case `$am_make -s -f confmf 2> /dev/null` in #(
3021   *the\ am__doit\ target*)
3022     am__include=.include
3023     am__quote="\""
3024     _am_result=BSD
3025     ;;
3026   esac
3027fi
3028
3029
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3031$as_echo "$_am_result" >&6; }
3032rm -f confinc confmf
3033
3034# Check whether --enable-dependency-tracking was given.
3035if test "${enable_dependency_tracking+set}" = set; then :
3036  enableval=$enable_dependency_tracking;
3037fi
3038
3039if test "x$enable_dependency_tracking" != xno; then
3040  am_depcomp="$ac_aux_dir/depcomp"
3041  AMDEPBACKSLASH='\'
3042  am__nodep='_no'
3043fi
3044 if test "x$enable_dependency_tracking" != xno; then
3045  AMDEP_TRUE=
3046  AMDEP_FALSE='#'
3047else
3048  AMDEP_TRUE='#'
3049  AMDEP_FALSE=
3050fi
3051
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058if test -n "$ac_tool_prefix"; then
3059  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}gcc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_CC+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$CC"; then
3067  ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086CC=$ac_cv_prog_CC
3087if test -n "$CC"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089$as_echo "$CC" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096fi
3097if test -z "$ac_cv_prog_CC"; then
3098  ac_ct_CC=$CC
3099  # Extract the first word of "gcc", so it can be a program name with args.
3100set dummy gcc; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$ac_ct_CC"; then
3107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_ac_ct_CC="gcc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127if test -n "$ac_ct_CC"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129$as_echo "$ac_ct_CC" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135  if test "x$ac_ct_CC" = x; then
3136    CC=""
3137  else
3138    case $cross_compiling:$ac_tool_warned in
3139yes:)
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142ac_tool_warned=yes ;;
3143esac
3144    CC=$ac_ct_CC
3145  fi
3146else
3147  CC="$ac_cv_prog_CC"
3148fi
3149
3150if test -z "$CC"; then
3151          if test -n "$ac_tool_prefix"; then
3152    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3153set dummy ${ac_tool_prefix}cc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$CC"; then
3160  ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_CC="${ac_tool_prefix}cc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  fi
3190fi
3191if test -z "$CC"; then
3192  # Extract the first word of "cc", so it can be a program name with args.
3193set dummy cc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202  ac_prog_rejected=no
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208    for ac_exec_ext in '' $ac_executable_extensions; do
3209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3211       ac_prog_rejected=yes
3212       continue
3213     fi
3214    ac_cv_prog_CC="cc"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222if test $ac_prog_rejected = yes; then
3223  # We found a bogon in the path, so make sure we never use it.
3224  set dummy $ac_cv_prog_CC
3225  shift
3226  if test $# != 0; then
3227    # We chose a different compiler from the bogus one.
3228    # However, it has the same basename, so the bogon will be chosen
3229    # first if we set CC to just the basename; use the full file name.
3230    shift
3231    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3232  fi
3233fi
3234fi
3235fi
3236CC=$ac_cv_prog_CC
3237if test -n "$CC"; then
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239$as_echo "$CC" >&6; }
3240else
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
3245
3246fi
3247if test -z "$CC"; then
3248  if test -n "$ac_tool_prefix"; then
3249  for ac_prog in cl.exe
3250  do
3251    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_prog_CC+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  if test -n "$CC"; then
3259  ac_cv_prog_CC="$CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264  IFS=$as_save_IFS
3265  test -z "$as_dir" && as_dir=.
3266    for ac_exec_ext in '' $ac_executable_extensions; do
3267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270    break 2
3271  fi
3272done
3273  done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278CC=$ac_cv_prog_CC
3279if test -n "$CC"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281$as_echo "$CC" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
3288    test -n "$CC" && break
3289  done
3290fi
3291if test -z "$CC"; then
3292  ac_ct_CC=$CC
3293  for ac_prog in cl.exe
3294do
3295  # Extract the first word of "$ac_prog", so it can be a program name with args.
3296set dummy $ac_prog; ac_word=$2
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if ${ac_cv_prog_ac_ct_CC+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  if test -n "$ac_ct_CC"; then
3303  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_ac_ct_CC="$ac_prog"
3313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323if test -n "$ac_ct_CC"; then
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325$as_echo "$ac_ct_CC" >&6; }
3326else
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332  test -n "$ac_ct_CC" && break
3333done
3334
3335  if test "x$ac_ct_CC" = x; then
3336    CC=""
3337  else
3338    case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344    CC=$ac_ct_CC
3345  fi
3346fi
3347
3348fi
3349
3350
3351test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353as_fn_error $? "no acceptable C compiler found in \$PATH
3354See \`config.log' for more details" "$LINENO" 5; }
3355
3356# Provide some information about the compiler.
3357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3358set X $ac_compile
3359ac_compiler=$2
3360for ac_option in --version -v -V -qversion; do
3361  { { ac_try="$ac_compiler $ac_option >&5"
3362case "(($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_compiler $ac_option >&5") 2>conftest.err
3369  ac_status=$?
3370  if test -s conftest.err; then
3371    sed '10a\
3372... rest of stderr output deleted ...
3373         10q' conftest.err >conftest.er1
3374    cat conftest.er1 >&5
3375  fi
3376  rm -f conftest.er1 conftest.err
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }
3379done
3380
3381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392ac_clean_files_save=$ac_clean_files
3393ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3394# Try to create an executable without -o first, disregard a.out.
3395# It will help us diagnose broken compilers, and finding out an intuition
3396# of exeext.
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3398$as_echo_n "checking whether the C compiler works... " >&6; }
3399ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3400
3401# The possible output files:
3402ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3403
3404ac_rmfiles=
3405for ac_file in $ac_files
3406do
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410  esac
3411done
3412rm -f $ac_rmfiles
3413
3414if { { ac_try="$ac_link_default"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_link_default") 2>&5
3422  ac_status=$?
3423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424  test $ac_status = 0; }; then :
3425  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3428# so that the user can short-circuit this test for compilers unknown to
3429# Autoconf.
3430for ac_file in $ac_files ''
3431do
3432  test -f "$ac_file" || continue
3433  case $ac_file in
3434    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3435	;;
3436    [ab].out )
3437	# We found the default executable, but exeext='' is most
3438	# certainly right.
3439	break;;
3440    *.* )
3441	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442	then :; else
3443	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444	fi
3445	# We set ac_cv_exeext here because the later test for it is not
3446	# safe: cross compilers may not add the suffix if given an `-o'
3447	# argument, so we may need to know it at that point already.
3448	# Even if this section looks crufty: it has the advantage of
3449	# actually working.
3450	break;;
3451    * )
3452	break;;
3453  esac
3454done
3455test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
3457else
3458  ac_file=''
3459fi
3460if test -z "$ac_file"; then :
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463$as_echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468as_fn_error 77 "C compiler cannot create executables
3469See \`config.log' for more details" "$LINENO" 5; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472$as_echo "yes" >&6; }
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3475$as_echo_n "checking for C compiler default output file name... " >&6; }
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3477$as_echo "$ac_file" >&6; }
3478ac_exeext=$ac_cv_exeext
3479
3480rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481ac_clean_files=$ac_clean_files_save
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3483$as_echo_n "checking for suffix of executables... " >&6; }
3484if { { ac_try="$ac_link"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491  (eval "$ac_link") 2>&5
3492  ac_status=$?
3493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494  test $ac_status = 0; }; then :
3495  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3496# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3497# work properly (i.e., refer to `conftest.exe'), while it won't with
3498# `rm'.
3499for ac_file in conftest.exe conftest conftest.*; do
3500  test -f "$ac_file" || continue
3501  case $ac_file in
3502    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504	  break;;
3505    * ) break;;
3506  esac
3507done
3508else
3509  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3512See \`config.log' for more details" "$LINENO" 5; }
3513fi
3514rm -f conftest conftest$ac_cv_exeext
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3516$as_echo "$ac_cv_exeext" >&6; }
3517
3518rm -f conftest.$ac_ext
3519EXEEXT=$ac_cv_exeext
3520ac_exeext=$EXEEXT
3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#include <stdio.h>
3524int
3525main ()
3526{
3527FILE *f = fopen ("conftest.out", "w");
3528 return ferror (f) || fclose (f) != 0;
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534ac_clean_files="$ac_clean_files conftest.out"
3535# Check that the compiler produces executables we can run.  If not, either
3536# the compiler is broken, or we cross compile.
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3538$as_echo_n "checking whether we are cross compiling... " >&6; }
3539if test "$cross_compiling" != yes; then
3540  { { ac_try="$ac_link"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_link") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }
3551  if { ac_try='./conftest$ac_cv_exeext'
3552  { { case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_try") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; }; then
3562    cross_compiling=no
3563  else
3564    if test "$cross_compiling" = maybe; then
3565	cross_compiling=yes
3566    else
3567	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error $? "cannot run C compiled programs.
3570If you meant to cross compile, use \`--host'.
3571See \`config.log' for more details" "$LINENO" 5; }
3572    fi
3573  fi
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3576$as_echo "$cross_compiling" >&6; }
3577
3578rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3579ac_clean_files=$ac_clean_files_save
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3581$as_echo_n "checking for suffix of object files... " >&6; }
3582if ${ac_cv_objext+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596rm -f conftest.o conftest.obj
3597if { { ac_try="$ac_compile"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_compile") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }; then :
3608  for ac_file in conftest.o conftest.obj conftest.*; do
3609  test -f "$ac_file" || continue;
3610  case $ac_file in
3611    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3612    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613       break;;
3614  esac
3615done
3616else
3617  $as_echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622as_fn_error $? "cannot compute suffix of object files: cannot compile
3623See \`config.log' for more details" "$LINENO" 5; }
3624fi
3625rm -f conftest.$ac_cv_objext conftest.$ac_ext
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3628$as_echo "$ac_cv_objext" >&6; }
3629OBJEXT=$ac_cv_objext
3630ac_objext=$OBJEXT
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3632$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3633if ${ac_cv_c_compiler_gnu+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639int
3640main ()
3641{
3642#ifndef __GNUC__
3643       choke me
3644#endif
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_compiler_gnu=yes
3652else
3653  ac_compiler_gnu=no
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3660$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3661if test $ac_compiler_gnu = yes; then
3662  GCC=yes
3663else
3664  GCC=
3665fi
3666ac_test_CFLAGS=${CFLAGS+set}
3667ac_save_CFLAGS=$CFLAGS
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3669$as_echo_n "checking whether $CC accepts -g... " >&6; }
3670if ${ac_cv_prog_cc_g+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  ac_save_c_werror_flag=$ac_c_werror_flag
3674   ac_c_werror_flag=yes
3675   ac_cv_prog_cc_g=no
3676   CFLAGS="-g"
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_cv_prog_cc_g=yes
3690else
3691  CFLAGS=""
3692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704
3705else
3706  ac_c_werror_flag=$ac_save_c_werror_flag
3707	 CFLAGS="-g"
3708	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710
3711int
3712main ()
3713{
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_compile "$LINENO"; then :
3720  ac_cv_prog_cc_g=yes
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727   ac_c_werror_flag=$ac_save_c_werror_flag
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3730$as_echo "$ac_cv_prog_cc_g" >&6; }
3731if test "$ac_test_CFLAGS" = set; then
3732  CFLAGS=$ac_save_CFLAGS
3733elif test $ac_cv_prog_cc_g = yes; then
3734  if test "$GCC" = yes; then
3735    CFLAGS="-g -O2"
3736  else
3737    CFLAGS="-g"
3738  fi
3739else
3740  if test "$GCC" = yes; then
3741    CFLAGS="-O2"
3742  else
3743    CFLAGS=
3744  fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748if ${ac_cv_prog_cc_c89+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  ac_cv_prog_cc_c89=no
3752ac_save_CC=$CC
3753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755#include <stdarg.h>
3756#include <stdio.h>
3757struct stat;
3758/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759struct buf { int x; };
3760FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761static char *e (p, i)
3762     char **p;
3763     int i;
3764{
3765  return p[i];
3766}
3767static char *f (char * (*g) (char **, int), char **p, ...)
3768{
3769  char *s;
3770  va_list v;
3771  va_start (v,p);
3772  s = g (p, va_arg (v,int));
3773  va_end (v);
3774  return s;
3775}
3776
3777/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778   function prototypes and stuff, but not '\xHH' hex character constants.
3779   These don't provoke an error unfortunately, instead are silently treated
3780   as 'x'.  The following induces an error, until -std is added to get
3781   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782   array size at least.  It's necessary to write '\x00'==0 to get something
3783   that's true only with -std.  */
3784int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787   inside strings and character constants.  */
3788#define FOO(x) 'x'
3789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791int test (int i, double x);
3792struct s1 {int (*f) (int a);};
3793struct s2 {int (*f) (double a);};
3794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795int argc;
3796char **argv;
3797int
3798main ()
3799{
3800return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807do
3808  CC="$ac_save_CC $ac_arg"
3809  if ac_fn_c_try_compile "$LINENO"; then :
3810  ac_cv_prog_cc_c89=$ac_arg
3811fi
3812rm -f core conftest.err conftest.$ac_objext
3813  test "x$ac_cv_prog_cc_c89" != "xno" && break
3814done
3815rm -f conftest.$ac_ext
3816CC=$ac_save_CC
3817
3818fi
3819# AC_CACHE_VAL
3820case "x$ac_cv_prog_cc_c89" in
3821  x)
3822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3823$as_echo "none needed" >&6; } ;;
3824  xno)
3825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826$as_echo "unsupported" >&6; } ;;
3827  *)
3828    CC="$CC $ac_cv_prog_cc_c89"
3829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3831esac
3832if test "x$ac_cv_prog_cc_c89" != xno; then :
3833
3834fi
3835
3836ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842depcc="$CC"   am_compiler_list=
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3845$as_echo_n "checking dependency style of $depcc... " >&6; }
3846if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850  # We make a subdir and do the tests there.  Otherwise we can end up
3851  # making bogus files that we don't know about and never remove.  For
3852  # instance it was reported that on HP-UX the gcc test will end up
3853  # making a dummy file named 'D' -- because '-MD' means "put the output
3854  # in D".
3855  rm -rf conftest.dir
3856  mkdir conftest.dir
3857  # Copy depcomp to subdir because otherwise we won't find it if we're
3858  # using a relative directory.
3859  cp "$am_depcomp" conftest.dir
3860  cd conftest.dir
3861  # We will build objects and dependencies in a subdirectory because
3862  # it helps to detect inapplicable dependency modes.  For instance
3863  # both Tru64's cc and ICC support -MD to output dependencies as a
3864  # side effect of compilation, but ICC will put the dependencies in
3865  # the current directory while Tru64 will put them in the object
3866  # directory.
3867  mkdir sub
3868
3869  am_cv_CC_dependencies_compiler_type=none
3870  if test "$am_compiler_list" = ""; then
3871     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3872  fi
3873  am__universal=false
3874  case " $depcc " in #(
3875     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876     esac
3877
3878  for depmode in $am_compiler_list; do
3879    # Setup a source with many dependencies, because some compilers
3880    # like to wrap large dependency lists on column 80 (with \), and
3881    # we should not choose a depcomp mode which is confused by this.
3882    #
3883    # We need to recreate these files for each test, as the compiler may
3884    # overwrite some of them when testing with obscure command lines.
3885    # This happens at least with the AIX C compiler.
3886    : > sub/conftest.c
3887    for i in 1 2 3 4 5 6; do
3888      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3889      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3890      # Solaris 10 /bin/sh.
3891      echo '/* dummy */' > sub/conftst$i.h
3892    done
3893    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3894
3895    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3896    # mode.  It turns out that the SunPro C++ compiler does not properly
3897    # handle '-M -o', and we need to detect this.  Also, some Intel
3898    # versions had trouble with output in subdirs.
3899    am__obj=sub/conftest.${OBJEXT-o}
3900    am__minus_obj="-o $am__obj"
3901    case $depmode in
3902    gcc)
3903      # This depmode causes a compiler race in universal mode.
3904      test "$am__universal" = false || continue
3905      ;;
3906    nosideeffect)
3907      # After this tag, mechanisms are not by side-effect, so they'll
3908      # only be used when explicitly requested.
3909      if test "x$enable_dependency_tracking" = xyes; then
3910	continue
3911      else
3912	break
3913      fi
3914      ;;
3915    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3916      # This compiler won't grok '-c -o', but also, the minuso test has
3917      # not run yet.  These depmodes are late enough in the game, and
3918      # so weak that their functioning should not be impacted.
3919      am__obj=conftest.${OBJEXT-o}
3920      am__minus_obj=
3921      ;;
3922    none) break ;;
3923    esac
3924    if depmode=$depmode \
3925       source=sub/conftest.c object=$am__obj \
3926       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3927       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3928         >/dev/null 2>conftest.err &&
3929       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3930       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3932       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933      # icc doesn't choke on unknown options, it will just issue warnings
3934      # or remarks (even with -Werror).  So we grep stderr for any message
3935      # that says an option was ignored or not supported.
3936      # When given -MP, icc 7.0 and 7.1 complain thusly:
3937      #   icc: Command line warning: ignoring option '-M'; no argument required
3938      # The diagnosis changed in icc 8.0:
3939      #   icc: Command line remark: option '-MP' not supported
3940      if (grep 'ignoring option' conftest.err ||
3941          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942        am_cv_CC_dependencies_compiler_type=$depmode
3943        break
3944      fi
3945    fi
3946  done
3947
3948  cd ..
3949  rm -rf conftest.dir
3950else
3951  am_cv_CC_dependencies_compiler_type=none
3952fi
3953
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3956$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3957CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958
3959 if
3960  test "x$enable_dependency_tracking" != xno \
3961  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3962  am__fastdepCC_TRUE=
3963  am__fastdepCC_FALSE='#'
3964else
3965  am__fastdepCC_TRUE='#'
3966  am__fastdepCC_FALSE=
3967fi
3968
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3971$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3972if ${ac_cv_path_SED+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3976     for ac_i in 1 2 3 4 5 6 7; do
3977       ac_script="$ac_script$as_nl$ac_script"
3978     done
3979     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3980     { ac_script=; unset ac_script;}
3981     if test -z "$SED"; then
3982  ac_path_SED_found=false
3983  # Loop through the user's path and test for each of PROGNAME-LIST
3984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  test -z "$as_dir" && as_dir=.
3989    for ac_prog in sed gsed; do
3990    for ac_exec_ext in '' $ac_executable_extensions; do
3991      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3992      as_fn_executable_p "$ac_path_SED" || continue
3993# Check for GNU ac_path_SED and select it if it is found.
3994  # Check for GNU $ac_path_SED
3995case `"$ac_path_SED" --version 2>&1` in
3996*GNU*)
3997  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3998*)
3999  ac_count=0
4000  $as_echo_n 0123456789 >"conftest.in"
4001  while :
4002  do
4003    cat "conftest.in" "conftest.in" >"conftest.tmp"
4004    mv "conftest.tmp" "conftest.in"
4005    cp "conftest.in" "conftest.nl"
4006    $as_echo '' >> "conftest.nl"
4007    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009    as_fn_arith $ac_count + 1 && ac_count=$as_val
4010    if test $ac_count -gt ${ac_path_SED_max-0}; then
4011      # Best one so far, save it but keep looking for a better one
4012      ac_cv_path_SED="$ac_path_SED"
4013      ac_path_SED_max=$ac_count
4014    fi
4015    # 10*(2^10) chars as input seems more than enough
4016    test $ac_count -gt 10 && break
4017  done
4018  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019esac
4020
4021      $ac_path_SED_found && break 3
4022    done
4023  done
4024  done
4025IFS=$as_save_IFS
4026  if test -z "$ac_cv_path_SED"; then
4027    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4028  fi
4029else
4030  ac_cv_path_SED=$SED
4031fi
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4035$as_echo "$ac_cv_path_SED" >&6; }
4036 SED="$ac_cv_path_SED"
4037  rm -f conftest.sed
4038
4039test -z "$SED" && SED=sed
4040Xsed="$SED -e 1s/^X//"
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4053$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4054if ${ac_cv_path_GREP+:} false; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057  if test -z "$GREP"; then
4058  ac_path_GREP_found=false
4059  # Loop through the user's path and test for each of PROGNAME-LIST
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065    for ac_prog in grep ggrep; do
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4068      as_fn_executable_p "$ac_path_GREP" || continue
4069# Check for GNU ac_path_GREP and select it if it is found.
4070  # Check for GNU $ac_path_GREP
4071case `"$ac_path_GREP" --version 2>&1` in
4072*GNU*)
4073  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4074*)
4075  ac_count=0
4076  $as_echo_n 0123456789 >"conftest.in"
4077  while :
4078  do
4079    cat "conftest.in" "conftest.in" >"conftest.tmp"
4080    mv "conftest.tmp" "conftest.in"
4081    cp "conftest.in" "conftest.nl"
4082    $as_echo 'GREP' >> "conftest.nl"
4083    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085    as_fn_arith $ac_count + 1 && ac_count=$as_val
4086    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4087      # Best one so far, save it but keep looking for a better one
4088      ac_cv_path_GREP="$ac_path_GREP"
4089      ac_path_GREP_max=$ac_count
4090    fi
4091    # 10*(2^10) chars as input seems more than enough
4092    test $ac_count -gt 10 && break
4093  done
4094  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097      $ac_path_GREP_found && break 3
4098    done
4099  done
4100  done
4101IFS=$as_save_IFS
4102  if test -z "$ac_cv_path_GREP"; then
4103    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104  fi
4105else
4106  ac_cv_path_GREP=$GREP
4107fi
4108
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4111$as_echo "$ac_cv_path_GREP" >&6; }
4112 GREP="$ac_cv_path_GREP"
4113
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4116$as_echo_n "checking for egrep... " >&6; }
4117if ${ac_cv_path_EGREP+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4121   then ac_cv_path_EGREP="$GREP -E"
4122   else
4123     if test -z "$EGREP"; then
4124  ac_path_EGREP_found=false
4125  # Loop through the user's path and test for each of PROGNAME-LIST
4126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131    for ac_prog in egrep; do
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4134      as_fn_executable_p "$ac_path_EGREP" || continue
4135# Check for GNU ac_path_EGREP and select it if it is found.
4136  # Check for GNU $ac_path_EGREP
4137case `"$ac_path_EGREP" --version 2>&1` in
4138*GNU*)
4139  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4140*)
4141  ac_count=0
4142  $as_echo_n 0123456789 >"conftest.in"
4143  while :
4144  do
4145    cat "conftest.in" "conftest.in" >"conftest.tmp"
4146    mv "conftest.tmp" "conftest.in"
4147    cp "conftest.in" "conftest.nl"
4148    $as_echo 'EGREP' >> "conftest.nl"
4149    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151    as_fn_arith $ac_count + 1 && ac_count=$as_val
4152    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4153      # Best one so far, save it but keep looking for a better one
4154      ac_cv_path_EGREP="$ac_path_EGREP"
4155      ac_path_EGREP_max=$ac_count
4156    fi
4157    # 10*(2^10) chars as input seems more than enough
4158    test $ac_count -gt 10 && break
4159  done
4160  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161esac
4162
4163      $ac_path_EGREP_found && break 3
4164    done
4165  done
4166  done
4167IFS=$as_save_IFS
4168  if test -z "$ac_cv_path_EGREP"; then
4169    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170  fi
4171else
4172  ac_cv_path_EGREP=$EGREP
4173fi
4174
4175   fi
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4178$as_echo "$ac_cv_path_EGREP" >&6; }
4179 EGREP="$ac_cv_path_EGREP"
4180
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4183$as_echo_n "checking for fgrep... " >&6; }
4184if ${ac_cv_path_FGREP+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4188   then ac_cv_path_FGREP="$GREP -F"
4189   else
4190     if test -z "$FGREP"; then
4191  ac_path_FGREP_found=false
4192  # Loop through the user's path and test for each of PROGNAME-LIST
4193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198    for ac_prog in fgrep; do
4199    for ac_exec_ext in '' $ac_executable_extensions; do
4200      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4201      as_fn_executable_p "$ac_path_FGREP" || continue
4202# Check for GNU ac_path_FGREP and select it if it is found.
4203  # Check for GNU $ac_path_FGREP
4204case `"$ac_path_FGREP" --version 2>&1` in
4205*GNU*)
4206  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4207*)
4208  ac_count=0
4209  $as_echo_n 0123456789 >"conftest.in"
4210  while :
4211  do
4212    cat "conftest.in" "conftest.in" >"conftest.tmp"
4213    mv "conftest.tmp" "conftest.in"
4214    cp "conftest.in" "conftest.nl"
4215    $as_echo 'FGREP' >> "conftest.nl"
4216    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218    as_fn_arith $ac_count + 1 && ac_count=$as_val
4219    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4220      # Best one so far, save it but keep looking for a better one
4221      ac_cv_path_FGREP="$ac_path_FGREP"
4222      ac_path_FGREP_max=$ac_count
4223    fi
4224    # 10*(2^10) chars as input seems more than enough
4225    test $ac_count -gt 10 && break
4226  done
4227  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228esac
4229
4230      $ac_path_FGREP_found && break 3
4231    done
4232  done
4233  done
4234IFS=$as_save_IFS
4235  if test -z "$ac_cv_path_FGREP"; then
4236    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237  fi
4238else
4239  ac_cv_path_FGREP=$FGREP
4240fi
4241
4242   fi
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4245$as_echo "$ac_cv_path_FGREP" >&6; }
4246 FGREP="$ac_cv_path_FGREP"
4247
4248
4249test -z "$GREP" && GREP=grep
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269# Check whether --with-gnu-ld was given.
4270if test "${with_gnu_ld+set}" = set; then :
4271  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4272else
4273  with_gnu_ld=no
4274fi
4275
4276ac_prog=ld
4277if test "$GCC" = yes; then
4278  # Check if gcc -print-prog-name=ld gives a path.
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4280$as_echo_n "checking for ld used by $CC... " >&6; }
4281  case $host in
4282  *-*-mingw*)
4283    # gcc leaves a trailing carriage return which upsets mingw
4284    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4285  *)
4286    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4287  esac
4288  case $ac_prog in
4289    # Accept absolute paths.
4290    [\\/]* | ?:[\\/]*)
4291      re_direlt='/[^/][^/]*/\.\./'
4292      # Canonicalize the pathname of ld
4293      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4294      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4295	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4296      done
4297      test -z "$LD" && LD="$ac_prog"
4298      ;;
4299  "")
4300    # If it fails, then pretend we aren't using GCC.
4301    ac_prog=ld
4302    ;;
4303  *)
4304    # If it is relative, then search for the first ld in PATH.
4305    with_gnu_ld=unknown
4306    ;;
4307  esac
4308elif test "$with_gnu_ld" = yes; then
4309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4310$as_echo_n "checking for GNU ld... " >&6; }
4311else
4312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4313$as_echo_n "checking for non-GNU ld... " >&6; }
4314fi
4315if ${lt_cv_path_LD+:} false; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -z "$LD"; then
4319  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4320  for ac_dir in $PATH; do
4321    IFS="$lt_save_ifs"
4322    test -z "$ac_dir" && ac_dir=.
4323    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4324      lt_cv_path_LD="$ac_dir/$ac_prog"
4325      # Check to see if the program is GNU ld.  I'd rather use --version,
4326      # but apparently some variants of GNU ld only accept -v.
4327      # Break only if it was the GNU/non-GNU ld that we prefer.
4328      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4329      *GNU* | *'with BFD'*)
4330	test "$with_gnu_ld" != no && break
4331	;;
4332      *)
4333	test "$with_gnu_ld" != yes && break
4334	;;
4335      esac
4336    fi
4337  done
4338  IFS="$lt_save_ifs"
4339else
4340  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4341fi
4342fi
4343
4344LD="$lt_cv_path_LD"
4345if test -n "$LD"; then
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4347$as_echo "$LD" >&6; }
4348else
4349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
4351fi
4352test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4354$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4355if ${lt_cv_prog_gnu_ld+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4359case `$LD -v 2>&1 </dev/null` in
4360*GNU* | *'with BFD'*)
4361  lt_cv_prog_gnu_ld=yes
4362  ;;
4363*)
4364  lt_cv_prog_gnu_ld=no
4365  ;;
4366esac
4367fi
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4369$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4370with_gnu_ld=$lt_cv_prog_gnu_ld
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4381$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4382if ${lt_cv_path_NM+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  if test -n "$NM"; then
4386  # Let the user override the test.
4387  lt_cv_path_NM="$NM"
4388else
4389  lt_nm_to_check="${ac_tool_prefix}nm"
4390  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4391    lt_nm_to_check="$lt_nm_to_check nm"
4392  fi
4393  for lt_tmp_nm in $lt_nm_to_check; do
4394    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4396      IFS="$lt_save_ifs"
4397      test -z "$ac_dir" && ac_dir=.
4398      tmp_nm="$ac_dir/$lt_tmp_nm"
4399      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4400	# Check to see if the nm accepts a BSD-compat flag.
4401	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4402	#   nm: unknown option "B" ignored
4403	# Tru64's nm complains that /dev/null is an invalid object file
4404	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4405	*/dev/null* | *'Invalid file or object type'*)
4406	  lt_cv_path_NM="$tmp_nm -B"
4407	  break
4408	  ;;
4409	*)
4410	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4411	  */dev/null*)
4412	    lt_cv_path_NM="$tmp_nm -p"
4413	    break
4414	    ;;
4415	  *)
4416	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4417	    continue # so that we can try to find one that supports BSD flags
4418	    ;;
4419	  esac
4420	  ;;
4421	esac
4422      fi
4423    done
4424    IFS="$lt_save_ifs"
4425  done
4426  : ${lt_cv_path_NM=no}
4427fi
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4430$as_echo "$lt_cv_path_NM" >&6; }
4431if test "$lt_cv_path_NM" != "no"; then
4432  NM="$lt_cv_path_NM"
4433else
4434  # Didn't find any BSD compatible name lister, look for dumpbin.
4435  if test -n "$DUMPBIN"; then :
4436    # Let the user override the test.
4437  else
4438    if test -n "$ac_tool_prefix"; then
4439  for ac_prog in dumpbin "link -dump"
4440  do
4441    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if ${ac_cv_prog_DUMPBIN+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test -n "$DUMPBIN"; then
4449  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460    break 2
4461  fi
4462done
4463  done
4464IFS=$as_save_IFS
4465
4466fi
4467fi
4468DUMPBIN=$ac_cv_prog_DUMPBIN
4469if test -n "$DUMPBIN"; then
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4471$as_echo "$DUMPBIN" >&6; }
4472else
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475fi
4476
4477
4478    test -n "$DUMPBIN" && break
4479  done
4480fi
4481if test -z "$DUMPBIN"; then
4482  ac_ct_DUMPBIN=$DUMPBIN
4483  for ac_prog in dumpbin "link -dump"
4484do
4485  # Extract the first word of "$ac_prog", so it can be a program name with args.
4486set dummy $ac_prog; ac_word=$2
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488$as_echo_n "checking for $ac_word... " >&6; }
4489if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  if test -n "$ac_ct_DUMPBIN"; then
4493  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4494else
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507  done
4508IFS=$as_save_IFS
4509
4510fi
4511fi
4512ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4513if test -n "$ac_ct_DUMPBIN"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4515$as_echo "$ac_ct_DUMPBIN" >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518$as_echo "no" >&6; }
4519fi
4520
4521
4522  test -n "$ac_ct_DUMPBIN" && break
4523done
4524
4525  if test "x$ac_ct_DUMPBIN" = x; then
4526    DUMPBIN=":"
4527  else
4528    case $cross_compiling:$ac_tool_warned in
4529yes:)
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532ac_tool_warned=yes ;;
4533esac
4534    DUMPBIN=$ac_ct_DUMPBIN
4535  fi
4536fi
4537
4538    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4539    *COFF*)
4540      DUMPBIN="$DUMPBIN -symbols"
4541      ;;
4542    *)
4543      DUMPBIN=:
4544      ;;
4545    esac
4546  fi
4547
4548  if test "$DUMPBIN" != ":"; then
4549    NM="$DUMPBIN"
4550  fi
4551fi
4552test -z "$NM" && NM=nm
4553
4554
4555
4556
4557
4558
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4560$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4561if ${lt_cv_nm_interface+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  lt_cv_nm_interface="BSD nm"
4565  echo "int some_variable = 0;" > conftest.$ac_ext
4566  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4567  (eval "$ac_compile" 2>conftest.err)
4568  cat conftest.err >&5
4569  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4570  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4571  cat conftest.err >&5
4572  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4573  cat conftest.out >&5
4574  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4575    lt_cv_nm_interface="MS dumpbin"
4576  fi
4577  rm -f conftest*
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4580$as_echo "$lt_cv_nm_interface" >&6; }
4581
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4583$as_echo_n "checking whether ln -s works... " >&6; }
4584LN_S=$as_ln_s
4585if test "$LN_S" = "ln -s"; then
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587$as_echo "yes" >&6; }
4588else
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4590$as_echo "no, using $LN_S" >&6; }
4591fi
4592
4593# find the maximum length of command line arguments
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4595$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4596if ${lt_cv_sys_max_cmd_len+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599    i=0
4600  teststring="ABCD"
4601
4602  case $build_os in
4603  msdosdjgpp*)
4604    # On DJGPP, this test can blow up pretty badly due to problems in libc
4605    # (any single argument exceeding 2000 bytes causes a buffer overrun
4606    # during glob expansion).  Even if it were fixed, the result of this
4607    # check would be larger than it should be.
4608    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4609    ;;
4610
4611  gnu*)
4612    # Under GNU Hurd, this test is not required because there is
4613    # no limit to the length of command line arguments.
4614    # Libtool will interpret -1 as no limit whatsoever
4615    lt_cv_sys_max_cmd_len=-1;
4616    ;;
4617
4618  cygwin* | mingw* | cegcc*)
4619    # On Win9x/ME, this test blows up -- it succeeds, but takes
4620    # about 5 minutes as the teststring grows exponentially.
4621    # Worse, since 9x/ME are not pre-emptively multitasking,
4622    # you end up with a "frozen" computer, even though with patience
4623    # the test eventually succeeds (with a max line length of 256k).
4624    # Instead, let's just punt: use the minimum linelength reported by
4625    # all of the supported platforms: 8192 (on NT/2K/XP).
4626    lt_cv_sys_max_cmd_len=8192;
4627    ;;
4628
4629  mint*)
4630    # On MiNT this can take a long time and run out of memory.
4631    lt_cv_sys_max_cmd_len=8192;
4632    ;;
4633
4634  amigaos*)
4635    # On AmigaOS with pdksh, this test takes hours, literally.
4636    # So we just punt and use a minimum line length of 8192.
4637    lt_cv_sys_max_cmd_len=8192;
4638    ;;
4639
4640  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4641    # This has been around since 386BSD, at least.  Likely further.
4642    if test -x /sbin/sysctl; then
4643      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4644    elif test -x /usr/sbin/sysctl; then
4645      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4646    else
4647      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4648    fi
4649    # And add a safety zone
4650    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4651    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4652    ;;
4653
4654  interix*)
4655    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4656    lt_cv_sys_max_cmd_len=196608
4657    ;;
4658
4659  os2*)
4660    # The test takes a long time on OS/2.
4661    lt_cv_sys_max_cmd_len=8192
4662    ;;
4663
4664  osf*)
4665    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4666    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4667    # nice to cause kernel panics so lets avoid the loop below.
4668    # First set a reasonable default.
4669    lt_cv_sys_max_cmd_len=16384
4670    #
4671    if test -x /sbin/sysconfig; then
4672      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4673        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4674      esac
4675    fi
4676    ;;
4677  sco3.2v5*)
4678    lt_cv_sys_max_cmd_len=102400
4679    ;;
4680  sysv5* | sco5v6* | sysv4.2uw2*)
4681    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4682    if test -n "$kargmax"; then
4683      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4684    else
4685      lt_cv_sys_max_cmd_len=32768
4686    fi
4687    ;;
4688  *)
4689    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4690    if test -n "$lt_cv_sys_max_cmd_len"; then
4691      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4693    else
4694      # Make teststring a little bigger before we do anything with it.
4695      # a 1K string should be a reasonable start.
4696      for i in 1 2 3 4 5 6 7 8 ; do
4697        teststring=$teststring$teststring
4698      done
4699      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4700      # If test is not a shell built-in, we'll probably end up computing a
4701      # maximum length that is only half of the actual maximum length, but
4702      # we can't tell.
4703      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4704	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4705	      test $i != 17 # 1/2 MB should be enough
4706      do
4707        i=`expr $i + 1`
4708        teststring=$teststring$teststring
4709      done
4710      # Only check the string length outside the loop.
4711      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4712      teststring=
4713      # Add a significant safety factor because C++ compilers can tack on
4714      # massive amounts of additional arguments before passing them to the
4715      # linker.  It appears as though 1/2 is a usable value.
4716      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4717    fi
4718    ;;
4719  esac
4720
4721fi
4722
4723if test -n $lt_cv_sys_max_cmd_len ; then
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4725$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4726else
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4728$as_echo "none" >&6; }
4729fi
4730max_cmd_len=$lt_cv_sys_max_cmd_len
4731
4732
4733
4734
4735
4736
4737: ${CP="cp -f"}
4738: ${MV="mv -f"}
4739: ${RM="rm -f"}
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4742$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4743# Try some XSI features
4744xsi_shell=no
4745( _lt_dummy="a/b/c"
4746  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4747      = c,a/b,b/c, \
4748    && eval 'test $(( 1 + 1 )) -eq 2 \
4749    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4750  && xsi_shell=yes
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4752$as_echo "$xsi_shell" >&6; }
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4756$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4757lt_shell_append=no
4758( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4759    >/dev/null 2>&1 \
4760  && lt_shell_append=yes
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4762$as_echo "$lt_shell_append" >&6; }
4763
4764
4765if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4766  lt_unset=unset
4767else
4768  lt_unset=false
4769fi
4770
4771
4772
4773
4774
4775# test EBCDIC or ASCII
4776case `echo X|tr X '\101'` in
4777 A) # ASCII based system
4778    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4779  lt_SP2NL='tr \040 \012'
4780  lt_NL2SP='tr \015\012 \040\040'
4781  ;;
4782 *) # EBCDIC based system
4783  lt_SP2NL='tr \100 \n'
4784  lt_NL2SP='tr \r\n \100\100'
4785  ;;
4786esac
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4797$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4798if ${lt_cv_to_host_file_cmd+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  case $host in
4802  *-*-mingw* )
4803    case $build in
4804      *-*-mingw* ) # actually msys
4805        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4806        ;;
4807      *-*-cygwin* )
4808        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4809        ;;
4810      * ) # otherwise, assume *nix
4811        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4812        ;;
4813    esac
4814    ;;
4815  *-*-cygwin* )
4816    case $build in
4817      *-*-mingw* ) # actually msys
4818        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4819        ;;
4820      *-*-cygwin* )
4821        lt_cv_to_host_file_cmd=func_convert_file_noop
4822        ;;
4823      * ) # otherwise, assume *nix
4824        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4825        ;;
4826    esac
4827    ;;
4828  * ) # unhandled hosts (and "normal" native builds)
4829    lt_cv_to_host_file_cmd=func_convert_file_noop
4830    ;;
4831esac
4832
4833fi
4834
4835to_host_file_cmd=$lt_cv_to_host_file_cmd
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4837$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4838
4839
4840
4841
4842
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4844$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4845if ${lt_cv_to_tool_file_cmd+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  #assume ordinary cross tools, or native build.
4849lt_cv_to_tool_file_cmd=func_convert_file_noop
4850case $host in
4851  *-*-mingw* )
4852    case $build in
4853      *-*-mingw* ) # actually msys
4854        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4855        ;;
4856    esac
4857    ;;
4858esac
4859
4860fi
4861
4862to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4864$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4865
4866
4867
4868
4869
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4871$as_echo_n "checking for $LD option to reload object files... " >&6; }
4872if ${lt_cv_ld_reload_flag+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  lt_cv_ld_reload_flag='-r'
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4878$as_echo "$lt_cv_ld_reload_flag" >&6; }
4879reload_flag=$lt_cv_ld_reload_flag
4880case $reload_flag in
4881"" | " "*) ;;
4882*) reload_flag=" $reload_flag" ;;
4883esac
4884reload_cmds='$LD$reload_flag -o $output$reload_objs'
4885case $host_os in
4886  cygwin* | mingw* | pw32* | cegcc*)
4887    if test "$GCC" != yes; then
4888      reload_cmds=false
4889    fi
4890    ;;
4891  darwin*)
4892    if test "$GCC" = yes; then
4893      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4894    else
4895      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4896    fi
4897    ;;
4898esac
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908if test -n "$ac_tool_prefix"; then
4909  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4910set dummy ${ac_tool_prefix}objdump; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if ${ac_cv_prog_OBJDUMP+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  if test -n "$OBJDUMP"; then
4917  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  test -z "$as_dir" && as_dir=.
4924    for ac_exec_ext in '' $ac_executable_extensions; do
4925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931  done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936OBJDUMP=$ac_cv_prog_OBJDUMP
4937if test -n "$OBJDUMP"; then
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4939$as_echo "$OBJDUMP" >&6; }
4940else
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946fi
4947if test -z "$ac_cv_prog_OBJDUMP"; then
4948  ac_ct_OBJDUMP=$OBJDUMP
4949  # Extract the first word of "objdump", so it can be a program name with args.
4950set dummy objdump; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -n "$ac_ct_OBJDUMP"; then
4957  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4977if test -n "$ac_ct_OBJDUMP"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4979$as_echo "$ac_ct_OBJDUMP" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985  if test "x$ac_ct_OBJDUMP" = x; then
4986    OBJDUMP="false"
4987  else
4988    case $cross_compiling:$ac_tool_warned in
4989yes:)
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992ac_tool_warned=yes ;;
4993esac
4994    OBJDUMP=$ac_ct_OBJDUMP
4995  fi
4996else
4997  OBJDUMP="$ac_cv_prog_OBJDUMP"
4998fi
4999
5000test -z "$OBJDUMP" && OBJDUMP=objdump
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5011$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5012if ${lt_cv_deplibs_check_method+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  lt_cv_file_magic_cmd='$MAGIC_CMD'
5016lt_cv_file_magic_test_file=
5017lt_cv_deplibs_check_method='unknown'
5018# Need to set the preceding variable on all platforms that support
5019# interlibrary dependencies.
5020# 'none' -- dependencies not supported.
5021# `unknown' -- same as none, but documents that we really don't know.
5022# 'pass_all' -- all dependencies passed with no checks.
5023# 'test_compile' -- check by making test program.
5024# 'file_magic [[regex]]' -- check by looking for files in library path
5025# which responds to the $file_magic_cmd with a given extended regex.
5026# If you have `file' or equivalent on your system and you're not sure
5027# whether `pass_all' will *always* work, you probably want this one.
5028
5029case $host_os in
5030aix[4-9]*)
5031  lt_cv_deplibs_check_method=pass_all
5032  ;;
5033
5034beos*)
5035  lt_cv_deplibs_check_method=pass_all
5036  ;;
5037
5038bsdi[45]*)
5039  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5040  lt_cv_file_magic_cmd='/usr/bin/file -L'
5041  lt_cv_file_magic_test_file=/shlib/libc.so
5042  ;;
5043
5044cygwin*)
5045  # func_win32_libid is a shell function defined in ltmain.sh
5046  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5047  lt_cv_file_magic_cmd='func_win32_libid'
5048  ;;
5049
5050mingw* | pw32*)
5051  # Base MSYS/MinGW do not provide the 'file' command needed by
5052  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5053  # unless we find 'file', for example because we are cross-compiling.
5054  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5055  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5056    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057    lt_cv_file_magic_cmd='func_win32_libid'
5058  else
5059    # Keep this pattern in sync with the one in func_win32_libid.
5060    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5061    lt_cv_file_magic_cmd='$OBJDUMP -f'
5062  fi
5063  ;;
5064
5065cegcc*)
5066  # use the weaker test based on 'objdump'. See mingw*.
5067  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5068  lt_cv_file_magic_cmd='$OBJDUMP -f'
5069  ;;
5070
5071darwin* | rhapsody*)
5072  lt_cv_deplibs_check_method=pass_all
5073  ;;
5074
5075freebsd* | dragonfly*)
5076  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5077    case $host_cpu in
5078    i*86 )
5079      # Not sure whether the presence of OpenBSD here was a mistake.
5080      # Let's accept both of them until this is cleared up.
5081      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5082      lt_cv_file_magic_cmd=/usr/bin/file
5083      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5084      ;;
5085    esac
5086  else
5087    lt_cv_deplibs_check_method=pass_all
5088  fi
5089  ;;
5090
5091gnu*)
5092  lt_cv_deplibs_check_method=pass_all
5093  ;;
5094
5095haiku*)
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099hpux10.20* | hpux11*)
5100  lt_cv_file_magic_cmd=/usr/bin/file
5101  case $host_cpu in
5102  ia64*)
5103    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5104    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5105    ;;
5106  hppa*64*)
5107    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]'
5108    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5109    ;;
5110  *)
5111    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5112    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5113    ;;
5114  esac
5115  ;;
5116
5117interix[3-9]*)
5118  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5119  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5120  ;;
5121
5122irix5* | irix6* | nonstopux*)
5123  case $LD in
5124  *-32|*"-32 ") libmagic=32-bit;;
5125  *-n32|*"-n32 ") libmagic=N32;;
5126  *-64|*"-64 ") libmagic=64-bit;;
5127  *) libmagic=never-match;;
5128  esac
5129  lt_cv_deplibs_check_method=pass_all
5130  ;;
5131
5132# This must be glibc/ELF.
5133linux* | k*bsd*-gnu | kopensolaris*-gnu)
5134  lt_cv_deplibs_check_method=pass_all
5135  ;;
5136
5137netbsd*)
5138  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5140  else
5141    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5142  fi
5143  ;;
5144
5145newos6*)
5146  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5147  lt_cv_file_magic_cmd=/usr/bin/file
5148  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5149  ;;
5150
5151*nto* | *qnx*)
5152  lt_cv_deplibs_check_method=pass_all
5153  ;;
5154
5155openbsd*)
5156  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5158  else
5159    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5160  fi
5161  ;;
5162
5163osf3* | osf4* | osf5*)
5164  lt_cv_deplibs_check_method=pass_all
5165  ;;
5166
5167rdos*)
5168  lt_cv_deplibs_check_method=pass_all
5169  ;;
5170
5171solaris*)
5172  lt_cv_deplibs_check_method=pass_all
5173  ;;
5174
5175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179sysv4 | sysv4.3*)
5180  case $host_vendor in
5181  motorola)
5182    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]'
5183    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5184    ;;
5185  ncr)
5186    lt_cv_deplibs_check_method=pass_all
5187    ;;
5188  sequent)
5189    lt_cv_file_magic_cmd='/bin/file'
5190    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5191    ;;
5192  sni)
5193    lt_cv_file_magic_cmd='/bin/file'
5194    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5195    lt_cv_file_magic_test_file=/lib/libc.so
5196    ;;
5197  siemens)
5198    lt_cv_deplibs_check_method=pass_all
5199    ;;
5200  pc)
5201    lt_cv_deplibs_check_method=pass_all
5202    ;;
5203  esac
5204  ;;
5205
5206tpf*)
5207  lt_cv_deplibs_check_method=pass_all
5208  ;;
5209esac
5210
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5213$as_echo "$lt_cv_deplibs_check_method" >&6; }
5214
5215file_magic_glob=
5216want_nocaseglob=no
5217if test "$build" = "$host"; then
5218  case $host_os in
5219  mingw* | pw32*)
5220    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5221      want_nocaseglob=yes
5222    else
5223      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5224    fi
5225    ;;
5226  esac
5227fi
5228
5229file_magic_cmd=$lt_cv_file_magic_cmd
5230deplibs_check_method=$lt_cv_deplibs_check_method
5231test -z "$deplibs_check_method" && deplibs_check_method=unknown
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254if test -n "$ac_tool_prefix"; then
5255  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5256set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; }
5259if ${ac_cv_prog_DLLTOOL+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  if test -n "$DLLTOOL"; then
5263  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277  done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282DLLTOOL=$ac_cv_prog_DLLTOOL
5283if test -n "$DLLTOOL"; then
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5285$as_echo "$DLLTOOL" >&6; }
5286else
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290
5291
5292fi
5293if test -z "$ac_cv_prog_DLLTOOL"; then
5294  ac_ct_DLLTOOL=$DLLTOOL
5295  # Extract the first word of "dlltool", so it can be a program name with args.
5296set dummy dlltool; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  if test -n "$ac_ct_DLLTOOL"; then
5303  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308  IFS=$as_save_IFS
5309  test -z "$as_dir" && as_dir=.
5310    for ac_exec_ext in '' $ac_executable_extensions; do
5311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314    break 2
5315  fi
5316done
5317  done
5318IFS=$as_save_IFS
5319
5320fi
5321fi
5322ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5323if test -n "$ac_ct_DLLTOOL"; then
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5325$as_echo "$ac_ct_DLLTOOL" >&6; }
5326else
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331  if test "x$ac_ct_DLLTOOL" = x; then
5332    DLLTOOL="false"
5333  else
5334    case $cross_compiling:$ac_tool_warned in
5335yes:)
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338ac_tool_warned=yes ;;
5339esac
5340    DLLTOOL=$ac_ct_DLLTOOL
5341  fi
5342else
5343  DLLTOOL="$ac_cv_prog_DLLTOOL"
5344fi
5345
5346test -z "$DLLTOOL" && DLLTOOL=dlltool
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5358$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5359if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  lt_cv_sharedlib_from_linklib_cmd='unknown'
5363
5364case $host_os in
5365cygwin* | mingw* | pw32* | cegcc*)
5366  # two different shell functions defined in ltmain.sh
5367  # decide which to use based on capabilities of $DLLTOOL
5368  case `$DLLTOOL --help 2>&1` in
5369  *--identify-strict*)
5370    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5371    ;;
5372  *)
5373    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5374    ;;
5375  esac
5376  ;;
5377*)
5378  # fallback: assume linklib IS sharedlib
5379  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5380  ;;
5381esac
5382
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5385$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5386sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5387test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5388
5389
5390
5391
5392
5393
5394
5395
5396if test -n "$ac_tool_prefix"; then
5397  for ac_prog in ar
5398  do
5399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if ${ac_cv_prog_AR+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$AR"; then
5407  ac_cv_prog_AR="$AR" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426AR=$ac_cv_prog_AR
5427if test -n "$AR"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5429$as_echo "$AR" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436    test -n "$AR" && break
5437  done
5438fi
5439if test -z "$AR"; then
5440  ac_ct_AR=$AR
5441  for ac_prog in ar
5442do
5443  # Extract the first word of "$ac_prog", so it can be a program name with args.
5444set dummy $ac_prog; ac_word=$2
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
5447if ${ac_cv_prog_ac_ct_AR+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  if test -n "$ac_ct_AR"; then
5451  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458    for ac_exec_ext in '' $ac_executable_extensions; do
5459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460    ac_cv_prog_ac_ct_AR="$ac_prog"
5461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465  done
5466IFS=$as_save_IFS
5467
5468fi
5469fi
5470ac_ct_AR=$ac_cv_prog_ac_ct_AR
5471if test -n "$ac_ct_AR"; then
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5473$as_echo "$ac_ct_AR" >&6; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480  test -n "$ac_ct_AR" && break
5481done
5482
5483  if test "x$ac_ct_AR" = x; then
5484    AR="false"
5485  else
5486    case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492    AR=$ac_ct_AR
5493  fi
5494fi
5495
5496: ${AR=ar}
5497: ${AR_FLAGS=cru}
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5510$as_echo_n "checking for archiver @FILE support... " >&6; }
5511if ${lt_cv_ar_at_file+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  lt_cv_ar_at_file=no
5515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517
5518int
5519main ()
5520{
5521
5522  ;
5523  return 0;
5524}
5525_ACEOF
5526if ac_fn_c_try_compile "$LINENO"; then :
5527  echo conftest.$ac_objext > conftest.lst
5528      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5529      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5530  (eval $lt_ar_try) 2>&5
5531  ac_status=$?
5532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5533  test $ac_status = 0; }
5534      if test "$ac_status" -eq 0; then
5535	# Ensure the archiver fails upon bogus file names.
5536	rm -f conftest.$ac_objext libconftest.a
5537	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5538  (eval $lt_ar_try) 2>&5
5539  ac_status=$?
5540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541  test $ac_status = 0; }
5542	if test "$ac_status" -ne 0; then
5543          lt_cv_ar_at_file=@
5544        fi
5545      fi
5546      rm -f conftest.* libconftest.a
5547
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5553$as_echo "$lt_cv_ar_at_file" >&6; }
5554
5555if test "x$lt_cv_ar_at_file" = xno; then
5556  archiver_list_spec=
5557else
5558  archiver_list_spec=$lt_cv_ar_at_file
5559fi
5560
5561
5562
5563
5564
5565
5566
5567if test -n "$ac_tool_prefix"; then
5568  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}strip; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_prog_STRIP+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$STRIP"; then
5576  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595STRIP=$ac_cv_prog_STRIP
5596if test -n "$STRIP"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5598$as_echo "$STRIP" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_prog_STRIP"; then
5607  ac_ct_STRIP=$STRIP
5608  # Extract the first word of "strip", so it can be a program name with args.
5609set dummy strip; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -n "$ac_ct_STRIP"; then
5616  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_prog_ac_ct_STRIP="strip"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5636if test -n "$ac_ct_STRIP"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5638$as_echo "$ac_ct_STRIP" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644  if test "x$ac_ct_STRIP" = x; then
5645    STRIP=":"
5646  else
5647    case $cross_compiling:$ac_tool_warned in
5648yes:)
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651ac_tool_warned=yes ;;
5652esac
5653    STRIP=$ac_ct_STRIP
5654  fi
5655else
5656  STRIP="$ac_cv_prog_STRIP"
5657fi
5658
5659test -z "$STRIP" && STRIP=:
5660
5661
5662
5663
5664
5665
5666if test -n "$ac_tool_prefix"; then
5667  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if ${ac_cv_prog_RANLIB+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  if test -n "$RANLIB"; then
5675  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680  IFS=$as_save_IFS
5681  test -z "$as_dir" && as_dir=.
5682    for ac_exec_ext in '' $ac_executable_extensions; do
5683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686    break 2
5687  fi
5688done
5689  done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694RANLIB=$ac_cv_prog_RANLIB
5695if test -n "$RANLIB"; then
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5697$as_echo "$RANLIB" >&6; }
5698else
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704fi
5705if test -z "$ac_cv_prog_RANLIB"; then
5706  ac_ct_RANLIB=$RANLIB
5707  # Extract the first word of "ranlib", so it can be a program name with args.
5708set dummy ranlib; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5712  $as_echo_n "(cached) " >&6
5713else
5714  if test -n "$ac_ct_RANLIB"; then
5715  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720  IFS=$as_save_IFS
5721  test -z "$as_dir" && as_dir=.
5722    for ac_exec_ext in '' $ac_executable_extensions; do
5723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724    ac_cv_prog_ac_ct_RANLIB="ranlib"
5725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726    break 2
5727  fi
5728done
5729  done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5735if test -n "$ac_ct_RANLIB"; then
5736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5737$as_echo "$ac_ct_RANLIB" >&6; }
5738else
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743  if test "x$ac_ct_RANLIB" = x; then
5744    RANLIB=":"
5745  else
5746    case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752    RANLIB=$ac_ct_RANLIB
5753  fi
5754else
5755  RANLIB="$ac_cv_prog_RANLIB"
5756fi
5757
5758test -z "$RANLIB" && RANLIB=:
5759
5760
5761
5762
5763
5764
5765# Determine commands to create old-style static archives.
5766old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5767old_postinstall_cmds='chmod 644 $oldlib'
5768old_postuninstall_cmds=
5769
5770if test -n "$RANLIB"; then
5771  case $host_os in
5772  openbsd*)
5773    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5774    ;;
5775  *)
5776    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5777    ;;
5778  esac
5779  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5780fi
5781
5782case $host_os in
5783  darwin*)
5784    lock_old_archive_extraction=yes ;;
5785  *)
5786    lock_old_archive_extraction=no ;;
5787esac
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827# If no C compiler was specified, use CC.
5828LTCC=${LTCC-"$CC"}
5829
5830# If no C compiler flags were specified, use CFLAGS.
5831LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5832
5833# Allow CC to be a program name with arguments.
5834compiler=$CC
5835
5836
5837# Check for command to grab the raw symbol name followed by C symbol from nm.
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5839$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5840if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5841  $as_echo_n "(cached) " >&6
5842else
5843
5844# These are sane defaults that work on at least a few old systems.
5845# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5846
5847# Character class describing NM global symbol codes.
5848symcode='[BCDEGRST]'
5849
5850# Regexp to match symbols that can be accessed directly from C.
5851sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5852
5853# Define system-specific variables.
5854case $host_os in
5855aix*)
5856  symcode='[BCDT]'
5857  ;;
5858cygwin* | mingw* | pw32* | cegcc*)
5859  symcode='[ABCDGISTW]'
5860  ;;
5861hpux*)
5862  if test "$host_cpu" = ia64; then
5863    symcode='[ABCDEGRST]'
5864  fi
5865  ;;
5866irix* | nonstopux*)
5867  symcode='[BCDEGRST]'
5868  ;;
5869osf*)
5870  symcode='[BCDEGQRST]'
5871  ;;
5872solaris*)
5873  symcode='[BDRT]'
5874  ;;
5875sco3.2v5*)
5876  symcode='[DT]'
5877  ;;
5878sysv4.2uw2*)
5879  symcode='[DT]'
5880  ;;
5881sysv5* | sco5v6* | unixware* | OpenUNIX*)
5882  symcode='[ABDT]'
5883  ;;
5884sysv4)
5885  symcode='[DFNSTU]'
5886  ;;
5887esac
5888
5889# If we're using GNU nm, then use its standard symbol codes.
5890case `$NM -V 2>&1` in
5891*GNU* | *'with BFD'*)
5892  symcode='[ABCDGIRSTW]' ;;
5893esac
5894
5895# Transform an extracted symbol line into a proper C declaration.
5896# Some systems (esp. on ia64) link data and code symbols differently,
5897# so use this general approach.
5898lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5899
5900# Transform an extracted symbol line into symbol name and symbol address
5901lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5902lt_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'"
5903
5904# Handle CRLF in mingw tool chain
5905opt_cr=
5906case $build_os in
5907mingw*)
5908  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5909  ;;
5910esac
5911
5912# Try without a prefix underscore, then with it.
5913for ac_symprfx in "" "_"; do
5914
5915  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5916  symxfrm="\\1 $ac_symprfx\\2 \\2"
5917
5918  # Write the raw and C identifiers.
5919  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5920    # Fake it for dumpbin and say T for any non-static function
5921    # and D for any global variable.
5922    # Also find C++ and __fastcall symbols from MSVC++,
5923    # which start with @ or ?.
5924    lt_cv_sys_global_symbol_pipe="$AWK '"\
5925"     {last_section=section; section=\$ 3};"\
5926"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5927"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5928"     \$ 0!~/External *\|/{next};"\
5929"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5930"     {if(hide[section]) next};"\
5931"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5932"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5933"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5934"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5935"     ' prfx=^$ac_symprfx"
5936  else
5937    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5938  fi
5939  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5940
5941  # Check to see that the pipe works correctly.
5942  pipe_works=no
5943
5944  rm -f conftest*
5945  cat > conftest.$ac_ext <<_LT_EOF
5946#ifdef __cplusplus
5947extern "C" {
5948#endif
5949char nm_test_var;
5950void nm_test_func(void);
5951void nm_test_func(void){}
5952#ifdef __cplusplus
5953}
5954#endif
5955int main(){nm_test_var='a';nm_test_func();return(0);}
5956_LT_EOF
5957
5958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5959  (eval $ac_compile) 2>&5
5960  ac_status=$?
5961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5962  test $ac_status = 0; }; then
5963    # Now try to grab the symbols.
5964    nlist=conftest.nm
5965    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5966  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5967  ac_status=$?
5968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5969  test $ac_status = 0; } && test -s "$nlist"; then
5970      # Try sorting and uniquifying the output.
5971      if sort "$nlist" | uniq > "$nlist"T; then
5972	mv -f "$nlist"T "$nlist"
5973      else
5974	rm -f "$nlist"T
5975      fi
5976
5977      # Make sure that we snagged all the symbols we need.
5978      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5979	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5980	  cat <<_LT_EOF > conftest.$ac_ext
5981/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5982#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5983/* DATA imports from DLLs on WIN32 con't be const, because runtime
5984   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5985# define LT_DLSYM_CONST
5986#elif defined(__osf__)
5987/* This system does not cope well with relocations in const data.  */
5988# define LT_DLSYM_CONST
5989#else
5990# define LT_DLSYM_CONST const
5991#endif
5992
5993#ifdef __cplusplus
5994extern "C" {
5995#endif
5996
5997_LT_EOF
5998	  # Now generate the symbol file.
5999	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6000
6001	  cat <<_LT_EOF >> conftest.$ac_ext
6002
6003/* The mapping between symbol names and symbols.  */
6004LT_DLSYM_CONST struct {
6005  const char *name;
6006  void       *address;
6007}
6008lt__PROGRAM__LTX_preloaded_symbols[] =
6009{
6010  { "@PROGRAM@", (void *) 0 },
6011_LT_EOF
6012	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6013	  cat <<\_LT_EOF >> conftest.$ac_ext
6014  {0, (void *) 0}
6015};
6016
6017/* This works around a problem in FreeBSD linker */
6018#ifdef FREEBSD_WORKAROUND
6019static const void *lt_preloaded_setup() {
6020  return lt__PROGRAM__LTX_preloaded_symbols;
6021}
6022#endif
6023
6024#ifdef __cplusplus
6025}
6026#endif
6027_LT_EOF
6028	  # Now try linking the two files.
6029	  mv conftest.$ac_objext conftstm.$ac_objext
6030	  lt_globsym_save_LIBS=$LIBS
6031	  lt_globsym_save_CFLAGS=$CFLAGS
6032	  LIBS="conftstm.$ac_objext"
6033	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6034	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6035  (eval $ac_link) 2>&5
6036  ac_status=$?
6037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6039	    pipe_works=yes
6040	  fi
6041	  LIBS=$lt_globsym_save_LIBS
6042	  CFLAGS=$lt_globsym_save_CFLAGS
6043	else
6044	  echo "cannot find nm_test_func in $nlist" >&5
6045	fi
6046      else
6047	echo "cannot find nm_test_var in $nlist" >&5
6048      fi
6049    else
6050      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6051    fi
6052  else
6053    echo "$progname: failed program was:" >&5
6054    cat conftest.$ac_ext >&5
6055  fi
6056  rm -rf conftest* conftst*
6057
6058  # Do not use the global_symbol_pipe unless it works.
6059  if test "$pipe_works" = yes; then
6060    break
6061  else
6062    lt_cv_sys_global_symbol_pipe=
6063  fi
6064done
6065
6066fi
6067
6068if test -z "$lt_cv_sys_global_symbol_pipe"; then
6069  lt_cv_sys_global_symbol_to_cdecl=
6070fi
6071if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6073$as_echo "failed" >&6; }
6074else
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6076$as_echo "ok" >&6; }
6077fi
6078
6079# Response file support.
6080if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6081  nm_file_list_spec='@'
6082elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6083  nm_file_list_spec='@'
6084fi
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6113$as_echo_n "checking for sysroot... " >&6; }
6114
6115# Check whether --with-sysroot was given.
6116if test "${with_sysroot+set}" = set; then :
6117  withval=$with_sysroot;
6118else
6119  with_sysroot=no
6120fi
6121
6122
6123lt_sysroot=
6124case ${with_sysroot} in #(
6125 yes)
6126   if test "$GCC" = yes; then
6127     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6128   fi
6129   ;; #(
6130 /*)
6131   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6132   ;; #(
6133 no|'')
6134   ;; #(
6135 *)
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6137$as_echo "${with_sysroot}" >&6; }
6138   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6139   ;;
6140esac
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6143$as_echo "${lt_sysroot:-no}" >&6; }
6144
6145
6146
6147
6148
6149# Check whether --enable-libtool-lock was given.
6150if test "${enable_libtool_lock+set}" = set; then :
6151  enableval=$enable_libtool_lock;
6152fi
6153
6154test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6155
6156# Some flags need to be propagated to the compiler or linker for good
6157# libtool support.
6158case $host in
6159ia64-*-hpux*)
6160  # Find out which ABI we are using.
6161  echo 'int i;' > conftest.$ac_ext
6162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163  (eval $ac_compile) 2>&5
6164  ac_status=$?
6165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166  test $ac_status = 0; }; then
6167    case `/usr/bin/file conftest.$ac_objext` in
6168      *ELF-32*)
6169	HPUX_IA64_MODE="32"
6170	;;
6171      *ELF-64*)
6172	HPUX_IA64_MODE="64"
6173	;;
6174    esac
6175  fi
6176  rm -rf conftest*
6177  ;;
6178*-*-irix6*)
6179  # Find out which ABI we are using.
6180  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6181  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6182  (eval $ac_compile) 2>&5
6183  ac_status=$?
6184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185  test $ac_status = 0; }; then
6186    if test "$lt_cv_prog_gnu_ld" = yes; then
6187      case `/usr/bin/file conftest.$ac_objext` in
6188	*32-bit*)
6189	  LD="${LD-ld} -melf32bsmip"
6190	  ;;
6191	*N32*)
6192	  LD="${LD-ld} -melf32bmipn32"
6193	  ;;
6194	*64-bit*)
6195	  LD="${LD-ld} -melf64bmip"
6196	;;
6197      esac
6198    else
6199      case `/usr/bin/file conftest.$ac_objext` in
6200	*32-bit*)
6201	  LD="${LD-ld} -32"
6202	  ;;
6203	*N32*)
6204	  LD="${LD-ld} -n32"
6205	  ;;
6206	*64-bit*)
6207	  LD="${LD-ld} -64"
6208	  ;;
6209      esac
6210    fi
6211  fi
6212  rm -rf conftest*
6213  ;;
6214
6215x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6216s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6217  # Find out which ABI we are using.
6218  echo 'int i;' > conftest.$ac_ext
6219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220  (eval $ac_compile) 2>&5
6221  ac_status=$?
6222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223  test $ac_status = 0; }; then
6224    case `/usr/bin/file conftest.o` in
6225      *32-bit*)
6226	case $host in
6227	  x86_64-*kfreebsd*-gnu)
6228	    LD="${LD-ld} -m elf_i386_fbsd"
6229	    ;;
6230	  x86_64-*linux*)
6231	    LD="${LD-ld} -m elf_i386"
6232	    ;;
6233	  ppc64-*linux*|powerpc64-*linux*)
6234	    LD="${LD-ld} -m elf32ppclinux"
6235	    ;;
6236	  s390x-*linux*)
6237	    LD="${LD-ld} -m elf_s390"
6238	    ;;
6239	  sparc64-*linux*)
6240	    LD="${LD-ld} -m elf32_sparc"
6241	    ;;
6242	esac
6243	;;
6244      *64-bit*)
6245	case $host in
6246	  x86_64-*kfreebsd*-gnu)
6247	    LD="${LD-ld} -m elf_x86_64_fbsd"
6248	    ;;
6249	  x86_64-*linux*)
6250	    LD="${LD-ld} -m elf_x86_64"
6251	    ;;
6252	  ppc*-*linux*|powerpc*-*linux*)
6253	    LD="${LD-ld} -m elf64ppc"
6254	    ;;
6255	  s390*-*linux*|s390*-*tpf*)
6256	    LD="${LD-ld} -m elf64_s390"
6257	    ;;
6258	  sparc*-*linux*)
6259	    LD="${LD-ld} -m elf64_sparc"
6260	    ;;
6261	esac
6262	;;
6263    esac
6264  fi
6265  rm -rf conftest*
6266  ;;
6267
6268*-*-sco3.2v5*)
6269  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6270  SAVE_CFLAGS="$CFLAGS"
6271  CFLAGS="$CFLAGS -belf"
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6273$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6274if ${lt_cv_cc_needs_belf+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  ac_ext=c
6278ac_cpp='$CPP $CPPFLAGS'
6279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285
6286int
6287main ()
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  lt_cv_cc_needs_belf=yes
6296else
6297  lt_cv_cc_needs_belf=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301     ac_ext=c
6302ac_cpp='$CPP $CPPFLAGS'
6303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305ac_compiler_gnu=$ac_cv_c_compiler_gnu
6306
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6309$as_echo "$lt_cv_cc_needs_belf" >&6; }
6310  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6311    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6312    CFLAGS="$SAVE_CFLAGS"
6313  fi
6314  ;;
6315*-*solaris*)
6316  # Find out which ABI we are using.
6317  echo 'int i;' > conftest.$ac_ext
6318  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319  (eval $ac_compile) 2>&5
6320  ac_status=$?
6321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322  test $ac_status = 0; }; then
6323    case `/usr/bin/file conftest.o` in
6324    *64-bit*)
6325      case $lt_cv_prog_gnu_ld in
6326      yes*)
6327        case $host in
6328        i?86-*-solaris*)
6329          LD="${LD-ld} -m elf_x86_64"
6330          ;;
6331        sparc*-*-solaris*)
6332          LD="${LD-ld} -m elf64_sparc"
6333          ;;
6334        esac
6335        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6336        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6337          LD="${LD-ld}_sol2"
6338        fi
6339        ;;
6340      *)
6341	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6342	  LD="${LD-ld} -64"
6343	fi
6344	;;
6345      esac
6346      ;;
6347    esac
6348  fi
6349  rm -rf conftest*
6350  ;;
6351esac
6352
6353need_locks="$enable_libtool_lock"
6354
6355if test -n "$ac_tool_prefix"; then
6356  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6357set dummy ${ac_tool_prefix}mt; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
6360if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -n "$MANIFEST_TOOL"; then
6364  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369  IFS=$as_save_IFS
6370  test -z "$as_dir" && as_dir=.
6371    for ac_exec_ext in '' $ac_executable_extensions; do
6372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375    break 2
6376  fi
6377done
6378  done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6384if test -n "$MANIFEST_TOOL"; then
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6386$as_echo "$MANIFEST_TOOL" >&6; }
6387else
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393fi
6394if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6395  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6396  # Extract the first word of "mt", so it can be a program name with args.
6397set dummy mt; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
6400if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  if test -n "$ac_ct_MANIFEST_TOOL"; then
6404  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411    for ac_exec_ext in '' $ac_executable_extensions; do
6412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415    break 2
6416  fi
6417done
6418  done
6419IFS=$as_save_IFS
6420
6421fi
6422fi
6423ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6424if test -n "$ac_ct_MANIFEST_TOOL"; then
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6426$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6427else
6428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6433    MANIFEST_TOOL=":"
6434  else
6435    case $cross_compiling:$ac_tool_warned in
6436yes:)
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439ac_tool_warned=yes ;;
6440esac
6441    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6442  fi
6443else
6444  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6445fi
6446
6447test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6449$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6450if ${lt_cv_path_mainfest_tool+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  lt_cv_path_mainfest_tool=no
6454  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6455  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6456  cat conftest.err >&5
6457  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6458    lt_cv_path_mainfest_tool=yes
6459  fi
6460  rm -f conftest*
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6463$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6464if test "x$lt_cv_path_mainfest_tool" != xyes; then
6465  MANIFEST_TOOL=:
6466fi
6467
6468
6469
6470
6471
6472
6473  case $host_os in
6474    rhapsody* | darwin*)
6475    if test -n "$ac_tool_prefix"; then
6476  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6477set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479$as_echo_n "checking for $ac_word... " >&6; }
6480if ${ac_cv_prog_DSYMUTIL+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  if test -n "$DSYMUTIL"; then
6484  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  test -z "$as_dir" && as_dir=.
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495    break 2
6496  fi
6497done
6498  done
6499IFS=$as_save_IFS
6500
6501fi
6502fi
6503DSYMUTIL=$ac_cv_prog_DSYMUTIL
6504if test -n "$DSYMUTIL"; then
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6506$as_echo "$DSYMUTIL" >&6; }
6507else
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509$as_echo "no" >&6; }
6510fi
6511
6512
6513fi
6514if test -z "$ac_cv_prog_DSYMUTIL"; then
6515  ac_ct_DSYMUTIL=$DSYMUTIL
6516  # Extract the first word of "dsymutil", so it can be a program name with args.
6517set dummy dsymutil; ac_word=$2
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519$as_echo_n "checking for $ac_word... " >&6; }
6520if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6521  $as_echo_n "(cached) " >&6
6522else
6523  if test -n "$ac_ct_DSYMUTIL"; then
6524  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529  IFS=$as_save_IFS
6530  test -z "$as_dir" && as_dir=.
6531    for ac_exec_ext in '' $ac_executable_extensions; do
6532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535    break 2
6536  fi
6537done
6538  done
6539IFS=$as_save_IFS
6540
6541fi
6542fi
6543ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6544if test -n "$ac_ct_DSYMUTIL"; then
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6546$as_echo "$ac_ct_DSYMUTIL" >&6; }
6547else
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549$as_echo "no" >&6; }
6550fi
6551
6552  if test "x$ac_ct_DSYMUTIL" = x; then
6553    DSYMUTIL=":"
6554  else
6555    case $cross_compiling:$ac_tool_warned in
6556yes:)
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6559ac_tool_warned=yes ;;
6560esac
6561    DSYMUTIL=$ac_ct_DSYMUTIL
6562  fi
6563else
6564  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6565fi
6566
6567    if test -n "$ac_tool_prefix"; then
6568  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6569set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if ${ac_cv_prog_NMEDIT+:} false; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  if test -n "$NMEDIT"; then
6576  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583    for ac_exec_ext in '' $ac_executable_extensions; do
6584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590  done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595NMEDIT=$ac_cv_prog_NMEDIT
6596if test -n "$NMEDIT"; then
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6598$as_echo "$NMEDIT" >&6; }
6599else
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604
6605fi
6606if test -z "$ac_cv_prog_NMEDIT"; then
6607  ac_ct_NMEDIT=$NMEDIT
6608  # Extract the first word of "nmedit", so it can be a program name with args.
6609set dummy nmedit; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  if test -n "$ac_ct_NMEDIT"; then
6616  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621  IFS=$as_save_IFS
6622  test -z "$as_dir" && as_dir=.
6623    for ac_exec_ext in '' $ac_executable_extensions; do
6624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627    break 2
6628  fi
6629done
6630  done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6636if test -n "$ac_ct_NMEDIT"; then
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6638$as_echo "$ac_ct_NMEDIT" >&6; }
6639else
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644  if test "x$ac_ct_NMEDIT" = x; then
6645    NMEDIT=":"
6646  else
6647    case $cross_compiling:$ac_tool_warned in
6648yes:)
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651ac_tool_warned=yes ;;
6652esac
6653    NMEDIT=$ac_ct_NMEDIT
6654  fi
6655else
6656  NMEDIT="$ac_cv_prog_NMEDIT"
6657fi
6658
6659    if test -n "$ac_tool_prefix"; then
6660  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6661set dummy ${ac_tool_prefix}lipo; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if ${ac_cv_prog_LIPO+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  if test -n "$LIPO"; then
6668  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673  IFS=$as_save_IFS
6674  test -z "$as_dir" && as_dir=.
6675    for ac_exec_ext in '' $ac_executable_extensions; do
6676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679    break 2
6680  fi
6681done
6682  done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687LIPO=$ac_cv_prog_LIPO
6688if test -n "$LIPO"; then
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6690$as_echo "$LIPO" >&6; }
6691else
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696
6697fi
6698if test -z "$ac_cv_prog_LIPO"; then
6699  ac_ct_LIPO=$LIPO
6700  # Extract the first word of "lipo", so it can be a program name with args.
6701set dummy lipo; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  if test -n "$ac_ct_LIPO"; then
6708  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713  IFS=$as_save_IFS
6714  test -z "$as_dir" && as_dir=.
6715    for ac_exec_ext in '' $ac_executable_extensions; do
6716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717    ac_cv_prog_ac_ct_LIPO="lipo"
6718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719    break 2
6720  fi
6721done
6722  done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6728if test -n "$ac_ct_LIPO"; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6730$as_echo "$ac_ct_LIPO" >&6; }
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736  if test "x$ac_ct_LIPO" = x; then
6737    LIPO=":"
6738  else
6739    case $cross_compiling:$ac_tool_warned in
6740yes:)
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745    LIPO=$ac_ct_LIPO
6746  fi
6747else
6748  LIPO="$ac_cv_prog_LIPO"
6749fi
6750
6751    if test -n "$ac_tool_prefix"; then
6752  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}otool; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if ${ac_cv_prog_OTOOL+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  if test -n "$OTOOL"; then
6760  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765  IFS=$as_save_IFS
6766  test -z "$as_dir" && as_dir=.
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774  done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779OTOOL=$ac_cv_prog_OTOOL
6780if test -n "$OTOOL"; then
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6782$as_echo "$OTOOL" >&6; }
6783else
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_OTOOL"; then
6791  ac_ct_OTOOL=$OTOOL
6792  # Extract the first word of "otool", so it can be a program name with args.
6793set dummy otool; ac_word=$2
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795$as_echo_n "checking for $ac_word... " >&6; }
6796if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  if test -n "$ac_ct_OTOOL"; then
6800  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805  IFS=$as_save_IFS
6806  test -z "$as_dir" && as_dir=.
6807    for ac_exec_ext in '' $ac_executable_extensions; do
6808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809    ac_cv_prog_ac_ct_OTOOL="otool"
6810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811    break 2
6812  fi
6813done
6814  done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6820if test -n "$ac_ct_OTOOL"; then
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6822$as_echo "$ac_ct_OTOOL" >&6; }
6823else
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825$as_echo "no" >&6; }
6826fi
6827
6828  if test "x$ac_ct_OTOOL" = x; then
6829    OTOOL=":"
6830  else
6831    case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835ac_tool_warned=yes ;;
6836esac
6837    OTOOL=$ac_ct_OTOOL
6838  fi
6839else
6840  OTOOL="$ac_cv_prog_OTOOL"
6841fi
6842
6843    if test -n "$ac_tool_prefix"; then
6844  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6845set dummy ${ac_tool_prefix}otool64; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if ${ac_cv_prog_OTOOL64+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -n "$OTOOL64"; then
6852  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859    for ac_exec_ext in '' $ac_executable_extensions; do
6860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866  done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871OTOOL64=$ac_cv_prog_OTOOL64
6872if test -n "$OTOOL64"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6874$as_echo "$OTOOL64" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880
6881fi
6882if test -z "$ac_cv_prog_OTOOL64"; then
6883  ac_ct_OTOOL64=$OTOOL64
6884  # Extract the first word of "otool64", so it can be a program name with args.
6885set dummy otool64; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  if test -n "$ac_ct_OTOOL64"; then
6892  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897  IFS=$as_save_IFS
6898  test -z "$as_dir" && as_dir=.
6899    for ac_exec_ext in '' $ac_executable_extensions; do
6900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901    ac_cv_prog_ac_ct_OTOOL64="otool64"
6902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903    break 2
6904  fi
6905done
6906  done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6912if test -n "$ac_ct_OTOOL64"; then
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6914$as_echo "$ac_ct_OTOOL64" >&6; }
6915else
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920  if test "x$ac_ct_OTOOL64" = x; then
6921    OTOOL64=":"
6922  else
6923    case $cross_compiling:$ac_tool_warned in
6924yes:)
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927ac_tool_warned=yes ;;
6928esac
6929    OTOOL64=$ac_ct_OTOOL64
6930  fi
6931else
6932  OTOOL64="$ac_cv_prog_OTOOL64"
6933fi
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6962$as_echo_n "checking for -single_module linker flag... " >&6; }
6963if ${lt_cv_apple_cc_single_mod+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  lt_cv_apple_cc_single_mod=no
6967      if test -z "${LT_MULTI_MODULE}"; then
6968	# By default we will add the -single_module flag. You can override
6969	# by either setting the environment variable LT_MULTI_MODULE
6970	# non-empty at configure time, or by adding -multi_module to the
6971	# link flags.
6972	rm -rf libconftest.dylib*
6973	echo "int foo(void){return 1;}" > conftest.c
6974	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6975-dynamiclib -Wl,-single_module conftest.c" >&5
6976	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6977	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6978        _lt_result=$?
6979	# If there is a non-empty error log, and "single_module"
6980	# appears in it, assume the flag caused a linker warning
6981        if test -s conftest.err && $GREP single_module conftest.err; then
6982	  cat conftest.err >&5
6983	# Otherwise, if the output was created with a 0 exit code from
6984	# the compiler, it worked.
6985	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6986	  lt_cv_apple_cc_single_mod=yes
6987	else
6988	  cat conftest.err >&5
6989	fi
6990	rm -rf libconftest.dylib*
6991	rm -f conftest.*
6992      fi
6993fi
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6995$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6996
6997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6998$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6999if ${lt_cv_ld_exported_symbols_list+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002  lt_cv_ld_exported_symbols_list=no
7003      save_LDFLAGS=$LDFLAGS
7004      echo "_main" > conftest.sym
7005      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009int
7010main ()
7011{
7012
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017if ac_fn_c_try_link "$LINENO"; then :
7018  lt_cv_ld_exported_symbols_list=yes
7019else
7020  lt_cv_ld_exported_symbols_list=no
7021fi
7022rm -f core conftest.err conftest.$ac_objext \
7023    conftest$ac_exeext conftest.$ac_ext
7024	LDFLAGS="$save_LDFLAGS"
7025
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7028$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7029
7030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7031$as_echo_n "checking for -force_load linker flag... " >&6; }
7032if ${lt_cv_ld_force_load+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  lt_cv_ld_force_load=no
7036      cat > conftest.c << _LT_EOF
7037int forced_loaded() { return 2;}
7038_LT_EOF
7039      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7040      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7041      echo "$AR cru libconftest.a conftest.o" >&5
7042      $AR cru libconftest.a conftest.o 2>&5
7043      echo "$RANLIB libconftest.a" >&5
7044      $RANLIB libconftest.a 2>&5
7045      cat > conftest.c << _LT_EOF
7046int main() { return 0;}
7047_LT_EOF
7048      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7049      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7050      _lt_result=$?
7051      if test -s conftest.err && $GREP force_load conftest.err; then
7052	cat conftest.err >&5
7053      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7054	lt_cv_ld_force_load=yes
7055      else
7056	cat conftest.err >&5
7057      fi
7058        rm -f conftest.err libconftest.a conftest conftest.c
7059        rm -rf conftest.dSYM
7060
7061fi
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7063$as_echo "$lt_cv_ld_force_load" >&6; }
7064    case $host_os in
7065    rhapsody* | darwin1.[012])
7066      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7067    darwin1.*)
7068      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7069    darwin*) # darwin 5.x on
7070      # if running on 10.5 or later, the deployment target defaults
7071      # to the OS version, if on x86, and 10.4, the deployment
7072      # target defaults to 10.4. Don't you love it?
7073      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7074	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7075	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7076	10.[012]*)
7077	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7078	10.*)
7079	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7080      esac
7081    ;;
7082  esac
7083    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7084      _lt_dar_single_mod='$single_module'
7085    fi
7086    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7087      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7088    else
7089      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7090    fi
7091    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7092      _lt_dsymutil='~$DSYMUTIL $lib || :'
7093    else
7094      _lt_dsymutil=
7095    fi
7096    ;;
7097  esac
7098
7099ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7105$as_echo_n "checking how to run the C preprocessor... " >&6; }
7106# On Suns, sometimes $CPP names a directory.
7107if test -n "$CPP" && test -d "$CPP"; then
7108  CPP=
7109fi
7110if test -z "$CPP"; then
7111  if ${ac_cv_prog_CPP+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114      # Double quotes because CPP needs to be expanded
7115    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7116    do
7117      ac_preproc_ok=false
7118for ac_c_preproc_warn_flag in '' yes
7119do
7120  # Use a header file that comes with gcc, so configuring glibc
7121  # with a fresh cross-compiler works.
7122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7123  # <limits.h> exists even on freestanding compilers.
7124  # On the NeXT, cc -E runs the code through the compiler's parser,
7125  # not just through cpp. "Syntax error" is here to catch this case.
7126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h.  */
7128#ifdef __STDC__
7129# include <limits.h>
7130#else
7131# include <assert.h>
7132#endif
7133		     Syntax error
7134_ACEOF
7135if ac_fn_c_try_cpp "$LINENO"; then :
7136
7137else
7138  # Broken: fails on valid input.
7139continue
7140fi
7141rm -f conftest.err conftest.i conftest.$ac_ext
7142
7143  # OK, works on sane cases.  Now check whether nonexistent headers
7144  # can be detected and how.
7145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147#include <ac_nonexistent.h>
7148_ACEOF
7149if ac_fn_c_try_cpp "$LINENO"; then :
7150  # Broken: success on invalid input.
7151continue
7152else
7153  # Passes both tests.
7154ac_preproc_ok=:
7155break
7156fi
7157rm -f conftest.err conftest.i conftest.$ac_ext
7158
7159done
7160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161rm -f conftest.i conftest.err conftest.$ac_ext
7162if $ac_preproc_ok; then :
7163  break
7164fi
7165
7166    done
7167    ac_cv_prog_CPP=$CPP
7168
7169fi
7170  CPP=$ac_cv_prog_CPP
7171else
7172  ac_cv_prog_CPP=$CPP
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7175$as_echo "$CPP" >&6; }
7176ac_preproc_ok=false
7177for ac_c_preproc_warn_flag in '' yes
7178do
7179  # Use a header file that comes with gcc, so configuring glibc
7180  # with a fresh cross-compiler works.
7181  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182  # <limits.h> exists even on freestanding compilers.
7183  # On the NeXT, cc -E runs the code through the compiler's parser,
7184  # not just through cpp. "Syntax error" is here to catch this case.
7185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186/* end confdefs.h.  */
7187#ifdef __STDC__
7188# include <limits.h>
7189#else
7190# include <assert.h>
7191#endif
7192		     Syntax error
7193_ACEOF
7194if ac_fn_c_try_cpp "$LINENO"; then :
7195
7196else
7197  # Broken: fails on valid input.
7198continue
7199fi
7200rm -f conftest.err conftest.i conftest.$ac_ext
7201
7202  # OK, works on sane cases.  Now check whether nonexistent headers
7203  # can be detected and how.
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#include <ac_nonexistent.h>
7207_ACEOF
7208if ac_fn_c_try_cpp "$LINENO"; then :
7209  # Broken: success on invalid input.
7210continue
7211else
7212  # Passes both tests.
7213ac_preproc_ok=:
7214break
7215fi
7216rm -f conftest.err conftest.i conftest.$ac_ext
7217
7218done
7219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7220rm -f conftest.i conftest.err conftest.$ac_ext
7221if $ac_preproc_ok; then :
7222
7223else
7224  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7226as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7227See \`config.log' for more details" "$LINENO" 5; }
7228fi
7229
7230ac_ext=c
7231ac_cpp='$CPP $CPPFLAGS'
7232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234ac_compiler_gnu=$ac_cv_c_compiler_gnu
7235
7236
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7238$as_echo_n "checking for ANSI C header files... " >&6; }
7239if ${ac_cv_header_stdc+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244#include <stdlib.h>
7245#include <stdarg.h>
7246#include <string.h>
7247#include <float.h>
7248
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"; then :
7258  ac_cv_header_stdc=yes
7259else
7260  ac_cv_header_stdc=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263
7264if test $ac_cv_header_stdc = yes; then
7265  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268#include <string.h>
7269
7270_ACEOF
7271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7272  $EGREP "memchr" >/dev/null 2>&1; then :
7273
7274else
7275  ac_cv_header_stdc=no
7276fi
7277rm -f conftest*
7278
7279fi
7280
7281if test $ac_cv_header_stdc = yes; then
7282  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285#include <stdlib.h>
7286
7287_ACEOF
7288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289  $EGREP "free" >/dev/null 2>&1; then :
7290
7291else
7292  ac_cv_header_stdc=no
7293fi
7294rm -f conftest*
7295
7296fi
7297
7298if test $ac_cv_header_stdc = yes; then
7299  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7300  if test "$cross_compiling" = yes; then :
7301  :
7302else
7303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h.  */
7305#include <ctype.h>
7306#include <stdlib.h>
7307#if ((' ' & 0x0FF) == 0x020)
7308# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7309# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7310#else
7311# define ISLOWER(c) \
7312		   (('a' <= (c) && (c) <= 'i') \
7313		     || ('j' <= (c) && (c) <= 'r') \
7314		     || ('s' <= (c) && (c) <= 'z'))
7315# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7316#endif
7317
7318#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7319int
7320main ()
7321{
7322  int i;
7323  for (i = 0; i < 256; i++)
7324    if (XOR (islower (i), ISLOWER (i))
7325	|| toupper (i) != TOUPPER (i))
7326      return 2;
7327  return 0;
7328}
7329_ACEOF
7330if ac_fn_c_try_run "$LINENO"; then :
7331
7332else
7333  ac_cv_header_stdc=no
7334fi
7335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336  conftest.$ac_objext conftest.beam conftest.$ac_ext
7337fi
7338
7339fi
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7342$as_echo "$ac_cv_header_stdc" >&6; }
7343if test $ac_cv_header_stdc = yes; then
7344
7345$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7346
7347fi
7348
7349# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7350for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7351		  inttypes.h stdint.h unistd.h
7352do :
7353  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7355"
7356if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7357  cat >>confdefs.h <<_ACEOF
7358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7359_ACEOF
7360
7361fi
7362
7363done
7364
7365
7366for ac_header in dlfcn.h
7367do :
7368  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7369"
7370if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7371  cat >>confdefs.h <<_ACEOF
7372#define HAVE_DLFCN_H 1
7373_ACEOF
7374
7375fi
7376
7377done
7378
7379
7380
7381
7382
7383# Set options
7384
7385
7386
7387        enable_dlopen=no
7388
7389
7390  enable_win32_dll=no
7391
7392
7393            # Check whether --enable-shared was given.
7394if test "${enable_shared+set}" = set; then :
7395  enableval=$enable_shared; p=${PACKAGE-default}
7396    case $enableval in
7397    yes) enable_shared=yes ;;
7398    no) enable_shared=no ;;
7399    *)
7400      enable_shared=no
7401      # Look at the argument we got.  We use all the common list separators.
7402      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7403      for pkg in $enableval; do
7404	IFS="$lt_save_ifs"
7405	if test "X$pkg" = "X$p"; then
7406	  enable_shared=yes
7407	fi
7408      done
7409      IFS="$lt_save_ifs"
7410      ;;
7411    esac
7412else
7413  enable_shared=yes
7414fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426# Check whether --with-pic was given.
7427if test "${with_pic+set}" = set; then :
7428  withval=$with_pic; lt_p=${PACKAGE-default}
7429    case $withval in
7430    yes|no) pic_mode=$withval ;;
7431    *)
7432      pic_mode=default
7433      # Look at the argument we got.  We use all the common list separators.
7434      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7435      for lt_pkg in $withval; do
7436	IFS="$lt_save_ifs"
7437	if test "X$lt_pkg" = "X$lt_p"; then
7438	  pic_mode=yes
7439	fi
7440      done
7441      IFS="$lt_save_ifs"
7442      ;;
7443    esac
7444else
7445  pic_mode=default
7446fi
7447
7448
7449test -z "$pic_mode" && pic_mode=default
7450
7451
7452
7453
7454
7455
7456
7457  # Check whether --enable-fast-install was given.
7458if test "${enable_fast_install+set}" = set; then :
7459  enableval=$enable_fast_install; p=${PACKAGE-default}
7460    case $enableval in
7461    yes) enable_fast_install=yes ;;
7462    no) enable_fast_install=no ;;
7463    *)
7464      enable_fast_install=no
7465      # Look at the argument we got.  We use all the common list separators.
7466      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467      for pkg in $enableval; do
7468	IFS="$lt_save_ifs"
7469	if test "X$pkg" = "X$p"; then
7470	  enable_fast_install=yes
7471	fi
7472      done
7473      IFS="$lt_save_ifs"
7474      ;;
7475    esac
7476else
7477  enable_fast_install=yes
7478fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490# This can be used to rebuild libtool when needed
7491LIBTOOL_DEPS="$ltmain"
7492
7493# Always use our own libtool.
7494LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525test -z "$LN_S" && LN_S="ln -s"
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540if test -n "${ZSH_VERSION+set}" ; then
7541   setopt NO_GLOB_SUBST
7542fi
7543
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7545$as_echo_n "checking for objdir... " >&6; }
7546if ${lt_cv_objdir+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  rm -f .libs 2>/dev/null
7550mkdir .libs 2>/dev/null
7551if test -d .libs; then
7552  lt_cv_objdir=.libs
7553else
7554  # MS-DOS does not allow filenames that begin with a dot.
7555  lt_cv_objdir=_libs
7556fi
7557rmdir .libs 2>/dev/null
7558fi
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7560$as_echo "$lt_cv_objdir" >&6; }
7561objdir=$lt_cv_objdir
7562
7563
7564
7565
7566
7567cat >>confdefs.h <<_ACEOF
7568#define LT_OBJDIR "$lt_cv_objdir/"
7569_ACEOF
7570
7571
7572
7573
7574case $host_os in
7575aix3*)
7576  # AIX sometimes has problems with the GCC collect2 program.  For some
7577  # reason, if we set the COLLECT_NAMES environment variable, the problems
7578  # vanish in a puff of smoke.
7579  if test "X${COLLECT_NAMES+set}" != Xset; then
7580    COLLECT_NAMES=
7581    export COLLECT_NAMES
7582  fi
7583  ;;
7584esac
7585
7586# Global variables:
7587ofile=libtool
7588can_build_shared=yes
7589
7590# All known linkers require a `.a' archive for static linking (except MSVC,
7591# which needs '.lib').
7592libext=a
7593
7594with_gnu_ld="$lt_cv_prog_gnu_ld"
7595
7596old_CC="$CC"
7597old_CFLAGS="$CFLAGS"
7598
7599# Set sane defaults for various variables
7600test -z "$CC" && CC=cc
7601test -z "$LTCC" && LTCC=$CC
7602test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7603test -z "$LD" && LD=ld
7604test -z "$ac_objext" && ac_objext=o
7605
7606for cc_temp in $compiler""; do
7607  case $cc_temp in
7608    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7609    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7610    \-*) ;;
7611    *) break;;
7612  esac
7613done
7614cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7615
7616
7617# Only perform the check for file, if the check method requires it
7618test -z "$MAGIC_CMD" && MAGIC_CMD=file
7619case $deplibs_check_method in
7620file_magic*)
7621  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7623$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7624if ${lt_cv_path_MAGIC_CMD+:} false; then :
7625  $as_echo_n "(cached) " >&6
7626else
7627  case $MAGIC_CMD in
7628[\\/*] |  ?:[\\/]*)
7629  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7630  ;;
7631*)
7632  lt_save_MAGIC_CMD="$MAGIC_CMD"
7633  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7634  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7635  for ac_dir in $ac_dummy; do
7636    IFS="$lt_save_ifs"
7637    test -z "$ac_dir" && ac_dir=.
7638    if test -f $ac_dir/${ac_tool_prefix}file; then
7639      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7640      if test -n "$file_magic_test_file"; then
7641	case $deplibs_check_method in
7642	"file_magic "*)
7643	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7644	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7646	    $EGREP "$file_magic_regex" > /dev/null; then
7647	    :
7648	  else
7649	    cat <<_LT_EOF 1>&2
7650
7651*** Warning: the command libtool uses to detect shared libraries,
7652*** $file_magic_cmd, produces output that libtool cannot recognize.
7653*** The result is that libtool may fail to recognize shared libraries
7654*** as such.  This will affect the creation of libtool libraries that
7655*** depend on shared libraries, but programs linked with such libtool
7656*** libraries will work regardless of this problem.  Nevertheless, you
7657*** may want to report the problem to your system manager and/or to
7658*** bug-libtool@gnu.org
7659
7660_LT_EOF
7661	  fi ;;
7662	esac
7663      fi
7664      break
7665    fi
7666  done
7667  IFS="$lt_save_ifs"
7668  MAGIC_CMD="$lt_save_MAGIC_CMD"
7669  ;;
7670esac
7671fi
7672
7673MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674if test -n "$MAGIC_CMD"; then
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7676$as_echo "$MAGIC_CMD" >&6; }
7677else
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680fi
7681
7682
7683
7684
7685
7686if test -z "$lt_cv_path_MAGIC_CMD"; then
7687  if test -n "$ac_tool_prefix"; then
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7689$as_echo_n "checking for file... " >&6; }
7690if ${lt_cv_path_MAGIC_CMD+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  case $MAGIC_CMD in
7694[\\/*] |  ?:[\\/]*)
7695  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7696  ;;
7697*)
7698  lt_save_MAGIC_CMD="$MAGIC_CMD"
7699  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7700  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7701  for ac_dir in $ac_dummy; do
7702    IFS="$lt_save_ifs"
7703    test -z "$ac_dir" && ac_dir=.
7704    if test -f $ac_dir/file; then
7705      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7706      if test -n "$file_magic_test_file"; then
7707	case $deplibs_check_method in
7708	"file_magic "*)
7709	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7710	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7711	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7712	    $EGREP "$file_magic_regex" > /dev/null; then
7713	    :
7714	  else
7715	    cat <<_LT_EOF 1>&2
7716
7717*** Warning: the command libtool uses to detect shared libraries,
7718*** $file_magic_cmd, produces output that libtool cannot recognize.
7719*** The result is that libtool may fail to recognize shared libraries
7720*** as such.  This will affect the creation of libtool libraries that
7721*** depend on shared libraries, but programs linked with such libtool
7722*** libraries will work regardless of this problem.  Nevertheless, you
7723*** may want to report the problem to your system manager and/or to
7724*** bug-libtool@gnu.org
7725
7726_LT_EOF
7727	  fi ;;
7728	esac
7729      fi
7730      break
7731    fi
7732  done
7733  IFS="$lt_save_ifs"
7734  MAGIC_CMD="$lt_save_MAGIC_CMD"
7735  ;;
7736esac
7737fi
7738
7739MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7740if test -n "$MAGIC_CMD"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7742$as_echo "$MAGIC_CMD" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749  else
7750    MAGIC_CMD=:
7751  fi
7752fi
7753
7754  fi
7755  ;;
7756esac
7757
7758# Use C for the default configuration in the libtool script
7759
7760lt_save_CC="$CC"
7761ac_ext=c
7762ac_cpp='$CPP $CPPFLAGS'
7763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766
7767
7768# Source file extension for C test sources.
7769ac_ext=c
7770
7771# Object file extension for compiled C test sources.
7772objext=o
7773objext=$objext
7774
7775# Code to be used in simple compile tests
7776lt_simple_compile_test_code="int some_variable = 0;"
7777
7778# Code to be used in simple link tests
7779lt_simple_link_test_code='int main(){return(0);}'
7780
7781
7782
7783
7784
7785
7786
7787# If no C compiler was specified, use CC.
7788LTCC=${LTCC-"$CC"}
7789
7790# If no C compiler flags were specified, use CFLAGS.
7791LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7792
7793# Allow CC to be a program name with arguments.
7794compiler=$CC
7795
7796# Save the default compiler, since it gets overwritten when the other
7797# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7798compiler_DEFAULT=$CC
7799
7800# save warnings/boilerplate of simple test code
7801ac_outfile=conftest.$ac_objext
7802echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7803eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7804_lt_compiler_boilerplate=`cat conftest.err`
7805$RM conftest*
7806
7807ac_outfile=conftest.$ac_objext
7808echo "$lt_simple_link_test_code" >conftest.$ac_ext
7809eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7810_lt_linker_boilerplate=`cat conftest.err`
7811$RM -r conftest*
7812
7813
7814if test -n "$compiler"; then
7815
7816lt_prog_compiler_no_builtin_flag=
7817
7818if test "$GCC" = yes; then
7819  case $cc_basename in
7820  nvcc*)
7821    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7822  *)
7823    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7824  esac
7825
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7827$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7828if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  lt_cv_prog_compiler_rtti_exceptions=no
7832   ac_outfile=conftest.$ac_objext
7833   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834   lt_compiler_flag="-fno-rtti -fno-exceptions"
7835   # Insert the option either (1) after the last *FLAGS variable, or
7836   # (2) before a word containing "conftest.", or (3) at the end.
7837   # Note that $ac_compile itself does not contain backslashes and begins
7838   # with a dollar sign (not a hyphen), so the echo should work correctly.
7839   # The option is referenced via a variable to avoid confusing sed.
7840   lt_compile=`echo "$ac_compile" | $SED \
7841   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843   -e 's:$: $lt_compiler_flag:'`
7844   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7845   (eval "$lt_compile" 2>conftest.err)
7846   ac_status=$?
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   if (exit $ac_status) && test -s "$ac_outfile"; then
7850     # The compiler can only warn and ignore the option if not recognized
7851     # So say no if there are warnings other than the usual output.
7852     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7853     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855       lt_cv_prog_compiler_rtti_exceptions=yes
7856     fi
7857   fi
7858   $RM conftest*
7859
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7862$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7863
7864if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7865    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7866else
7867    :
7868fi
7869
7870fi
7871
7872
7873
7874
7875
7876
7877  lt_prog_compiler_wl=
7878lt_prog_compiler_pic=
7879lt_prog_compiler_static=
7880
7881
7882  if test "$GCC" = yes; then
7883    lt_prog_compiler_wl='-Wl,'
7884    lt_prog_compiler_static='-static'
7885
7886    case $host_os in
7887      aix*)
7888      # All AIX code is PIC.
7889      if test "$host_cpu" = ia64; then
7890	# AIX 5 now supports IA64 processor
7891	lt_prog_compiler_static='-Bstatic'
7892      fi
7893      ;;
7894
7895    amigaos*)
7896      case $host_cpu in
7897      powerpc)
7898            # see comment about AmigaOS4 .so support
7899            lt_prog_compiler_pic='-fPIC'
7900        ;;
7901      m68k)
7902            # FIXME: we need at least 68020 code to build shared libraries, but
7903            # adding the `-m68020' flag to GCC prevents building anything better,
7904            # like `-m68040'.
7905            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7906        ;;
7907      esac
7908      ;;
7909
7910    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7911      # PIC is the default for these OSes.
7912      ;;
7913
7914    mingw* | cygwin* | pw32* | os2* | cegcc*)
7915      # This hack is so that the source file can tell whether it is being
7916      # built for inclusion in a dll (and should export symbols for example).
7917      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7918      # (--disable-auto-import) libraries
7919      lt_prog_compiler_pic='-DDLL_EXPORT'
7920      ;;
7921
7922    darwin* | rhapsody*)
7923      # PIC is the default on this platform
7924      # Common symbols not allowed in MH_DYLIB files
7925      lt_prog_compiler_pic='-fno-common'
7926      ;;
7927
7928    haiku*)
7929      # PIC is the default for Haiku.
7930      # The "-static" flag exists, but is broken.
7931      lt_prog_compiler_static=
7932      ;;
7933
7934    hpux*)
7935      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7936      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7937      # sets the default TLS model and affects inlining.
7938      case $host_cpu in
7939      hppa*64*)
7940	# +Z the default
7941	;;
7942      *)
7943	lt_prog_compiler_pic='-fPIC'
7944	;;
7945      esac
7946      ;;
7947
7948    interix[3-9]*)
7949      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7950      # Instead, we relocate shared libraries at runtime.
7951      ;;
7952
7953    msdosdjgpp*)
7954      # Just because we use GCC doesn't mean we suddenly get shared libraries
7955      # on systems that don't support them.
7956      lt_prog_compiler_can_build_shared=no
7957      enable_shared=no
7958      ;;
7959
7960    *nto* | *qnx*)
7961      # QNX uses GNU C++, but need to define -shared option too, otherwise
7962      # it will coredump.
7963      lt_prog_compiler_pic='-fPIC -shared'
7964      ;;
7965
7966    sysv4*MP*)
7967      if test -d /usr/nec; then
7968	lt_prog_compiler_pic=-Kconform_pic
7969      fi
7970      ;;
7971
7972    *)
7973      lt_prog_compiler_pic='-fPIC'
7974      ;;
7975    esac
7976
7977    case $cc_basename in
7978    nvcc*) # Cuda Compiler Driver 2.2
7979      lt_prog_compiler_wl='-Xlinker '
7980      if test -n "$lt_prog_compiler_pic"; then
7981        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7982      fi
7983      ;;
7984    esac
7985  else
7986    # PORTME Check for flag to pass linker flags through the system compiler.
7987    case $host_os in
7988    aix*)
7989      lt_prog_compiler_wl='-Wl,'
7990      if test "$host_cpu" = ia64; then
7991	# AIX 5 now supports IA64 processor
7992	lt_prog_compiler_static='-Bstatic'
7993      else
7994	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7995      fi
7996      ;;
7997
7998    mingw* | cygwin* | pw32* | os2* | cegcc*)
7999      # This hack is so that the source file can tell whether it is being
8000      # built for inclusion in a dll (and should export symbols for example).
8001      lt_prog_compiler_pic='-DDLL_EXPORT'
8002      ;;
8003
8004    hpux9* | hpux10* | hpux11*)
8005      lt_prog_compiler_wl='-Wl,'
8006      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8007      # not for PA HP-UX.
8008      case $host_cpu in
8009      hppa*64*|ia64*)
8010	# +Z the default
8011	;;
8012      *)
8013	lt_prog_compiler_pic='+Z'
8014	;;
8015      esac
8016      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8017      lt_prog_compiler_static='${wl}-a ${wl}archive'
8018      ;;
8019
8020    irix5* | irix6* | nonstopux*)
8021      lt_prog_compiler_wl='-Wl,'
8022      # PIC (with -KPIC) is the default.
8023      lt_prog_compiler_static='-non_shared'
8024      ;;
8025
8026    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8027      case $cc_basename in
8028      # old Intel for x86_64 which still supported -KPIC.
8029      ecc*)
8030	lt_prog_compiler_wl='-Wl,'
8031	lt_prog_compiler_pic='-KPIC'
8032	lt_prog_compiler_static='-static'
8033        ;;
8034      # icc used to be incompatible with GCC.
8035      # ICC 10 doesn't accept -KPIC any more.
8036      icc* | ifort*)
8037	lt_prog_compiler_wl='-Wl,'
8038	lt_prog_compiler_pic='-fPIC'
8039	lt_prog_compiler_static='-static'
8040        ;;
8041      # Lahey Fortran 8.1.
8042      lf95*)
8043	lt_prog_compiler_wl='-Wl,'
8044	lt_prog_compiler_pic='--shared'
8045	lt_prog_compiler_static='--static'
8046	;;
8047      nagfor*)
8048	# NAG Fortran compiler
8049	lt_prog_compiler_wl='-Wl,-Wl,,'
8050	lt_prog_compiler_pic='-PIC'
8051	lt_prog_compiler_static='-Bstatic'
8052	;;
8053      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8054        # Portland Group compilers (*not* the Pentium gcc compiler,
8055	# which looks to be a dead project)
8056	lt_prog_compiler_wl='-Wl,'
8057	lt_prog_compiler_pic='-fpic'
8058	lt_prog_compiler_static='-Bstatic'
8059        ;;
8060      ccc*)
8061        lt_prog_compiler_wl='-Wl,'
8062        # All Alpha code is PIC.
8063        lt_prog_compiler_static='-non_shared'
8064        ;;
8065      xl* | bgxl* | bgf* | mpixl*)
8066	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8067	lt_prog_compiler_wl='-Wl,'
8068	lt_prog_compiler_pic='-qpic'
8069	lt_prog_compiler_static='-qstaticlink'
8070	;;
8071      *)
8072	case `$CC -V 2>&1 | sed 5q` in
8073	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8074	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8075	  lt_prog_compiler_pic='-KPIC'
8076	  lt_prog_compiler_static='-Bstatic'
8077	  lt_prog_compiler_wl=''
8078	  ;;
8079	*Sun\ F* | *Sun*Fortran*)
8080	  lt_prog_compiler_pic='-KPIC'
8081	  lt_prog_compiler_static='-Bstatic'
8082	  lt_prog_compiler_wl='-Qoption ld '
8083	  ;;
8084	*Sun\ C*)
8085	  # Sun C 5.9
8086	  lt_prog_compiler_pic='-KPIC'
8087	  lt_prog_compiler_static='-Bstatic'
8088	  lt_prog_compiler_wl='-Wl,'
8089	  ;;
8090        *Intel*\ [CF]*Compiler*)
8091	  lt_prog_compiler_wl='-Wl,'
8092	  lt_prog_compiler_pic='-fPIC'
8093	  lt_prog_compiler_static='-static'
8094	  ;;
8095	*Portland\ Group*)
8096	  lt_prog_compiler_wl='-Wl,'
8097	  lt_prog_compiler_pic='-fpic'
8098	  lt_prog_compiler_static='-Bstatic'
8099	  ;;
8100	esac
8101	;;
8102      esac
8103      ;;
8104
8105    newsos6)
8106      lt_prog_compiler_pic='-KPIC'
8107      lt_prog_compiler_static='-Bstatic'
8108      ;;
8109
8110    *nto* | *qnx*)
8111      # QNX uses GNU C++, but need to define -shared option too, otherwise
8112      # it will coredump.
8113      lt_prog_compiler_pic='-fPIC -shared'
8114      ;;
8115
8116    osf3* | osf4* | osf5*)
8117      lt_prog_compiler_wl='-Wl,'
8118      # All OSF/1 code is PIC.
8119      lt_prog_compiler_static='-non_shared'
8120      ;;
8121
8122    rdos*)
8123      lt_prog_compiler_static='-non_shared'
8124      ;;
8125
8126    solaris*)
8127      lt_prog_compiler_pic='-KPIC'
8128      lt_prog_compiler_static='-Bstatic'
8129      case $cc_basename in
8130      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8131	lt_prog_compiler_wl='-Qoption ld ';;
8132      *)
8133	lt_prog_compiler_wl='-Wl,';;
8134      esac
8135      ;;
8136
8137    sunos4*)
8138      lt_prog_compiler_wl='-Qoption ld '
8139      lt_prog_compiler_pic='-PIC'
8140      lt_prog_compiler_static='-Bstatic'
8141      ;;
8142
8143    sysv4 | sysv4.2uw2* | sysv4.3*)
8144      lt_prog_compiler_wl='-Wl,'
8145      lt_prog_compiler_pic='-KPIC'
8146      lt_prog_compiler_static='-Bstatic'
8147      ;;
8148
8149    sysv4*MP*)
8150      if test -d /usr/nec ;then
8151	lt_prog_compiler_pic='-Kconform_pic'
8152	lt_prog_compiler_static='-Bstatic'
8153      fi
8154      ;;
8155
8156    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8157      lt_prog_compiler_wl='-Wl,'
8158      lt_prog_compiler_pic='-KPIC'
8159      lt_prog_compiler_static='-Bstatic'
8160      ;;
8161
8162    unicos*)
8163      lt_prog_compiler_wl='-Wl,'
8164      lt_prog_compiler_can_build_shared=no
8165      ;;
8166
8167    uts4*)
8168      lt_prog_compiler_pic='-pic'
8169      lt_prog_compiler_static='-Bstatic'
8170      ;;
8171
8172    *)
8173      lt_prog_compiler_can_build_shared=no
8174      ;;
8175    esac
8176  fi
8177
8178case $host_os in
8179  # For platforms which do not support PIC, -DPIC is meaningless:
8180  *djgpp*)
8181    lt_prog_compiler_pic=
8182    ;;
8183  *)
8184    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8185    ;;
8186esac
8187
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8189$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8190if ${lt_cv_prog_compiler_pic+:} false; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8194fi
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8196$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8197lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8198
8199#
8200# Check to make sure the PIC flag actually works.
8201#
8202if test -n "$lt_prog_compiler_pic"; then
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8204$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8205if ${lt_cv_prog_compiler_pic_works+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  lt_cv_prog_compiler_pic_works=no
8209   ac_outfile=conftest.$ac_objext
8210   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8211   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8212   # Insert the option either (1) after the last *FLAGS variable, or
8213   # (2) before a word containing "conftest.", or (3) at the end.
8214   # Note that $ac_compile itself does not contain backslashes and begins
8215   # with a dollar sign (not a hyphen), so the echo should work correctly.
8216   # The option is referenced via a variable to avoid confusing sed.
8217   lt_compile=`echo "$ac_compile" | $SED \
8218   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220   -e 's:$: $lt_compiler_flag:'`
8221   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8222   (eval "$lt_compile" 2>conftest.err)
8223   ac_status=$?
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   if (exit $ac_status) && test -s "$ac_outfile"; then
8227     # The compiler can only warn and ignore the option if not recognized
8228     # So say no if there are warnings other than the usual output.
8229     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8230     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8232       lt_cv_prog_compiler_pic_works=yes
8233     fi
8234   fi
8235   $RM conftest*
8236
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8239$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8240
8241if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8242    case $lt_prog_compiler_pic in
8243     "" | " "*) ;;
8244     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8245     esac
8246else
8247    lt_prog_compiler_pic=
8248     lt_prog_compiler_can_build_shared=no
8249fi
8250
8251fi
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263#
8264# Check to make sure the static flag actually works.
8265#
8266wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8268$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8269if ${lt_cv_prog_compiler_static_works+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  lt_cv_prog_compiler_static_works=no
8273   save_LDFLAGS="$LDFLAGS"
8274   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8275   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8276   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8277     # The linker can only warn and ignore the option if not recognized
8278     # So say no if there are warnings
8279     if test -s conftest.err; then
8280       # Append any errors to the config.log.
8281       cat conftest.err 1>&5
8282       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8283       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8284       if diff conftest.exp conftest.er2 >/dev/null; then
8285         lt_cv_prog_compiler_static_works=yes
8286       fi
8287     else
8288       lt_cv_prog_compiler_static_works=yes
8289     fi
8290   fi
8291   $RM -r conftest*
8292   LDFLAGS="$save_LDFLAGS"
8293
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8296$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8297
8298if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8299    :
8300else
8301    lt_prog_compiler_static=
8302fi
8303
8304
8305
8306
8307
8308
8309
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8311$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8312if ${lt_cv_prog_compiler_c_o+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  lt_cv_prog_compiler_c_o=no
8316   $RM -r conftest 2>/dev/null
8317   mkdir conftest
8318   cd conftest
8319   mkdir out
8320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8321
8322   lt_compiler_flag="-o out/conftest2.$ac_objext"
8323   # Insert the option either (1) after the last *FLAGS variable, or
8324   # (2) before a word containing "conftest.", or (3) at the end.
8325   # Note that $ac_compile itself does not contain backslashes and begins
8326   # with a dollar sign (not a hyphen), so the echo should work correctly.
8327   lt_compile=`echo "$ac_compile" | $SED \
8328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8330   -e 's:$: $lt_compiler_flag:'`
8331   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8332   (eval "$lt_compile" 2>out/conftest.err)
8333   ac_status=$?
8334   cat out/conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8337   then
8338     # The compiler can only warn and ignore the option if not recognized
8339     # So say no if there are warnings
8340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8341     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8342     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8343       lt_cv_prog_compiler_c_o=yes
8344     fi
8345   fi
8346   chmod u+w . 2>&5
8347   $RM conftest*
8348   # SGI C++ compiler will create directory out/ii_files/ for
8349   # template instantiation
8350   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8351   $RM out/* && rmdir out
8352   cd ..
8353   $RM -r conftest
8354   $RM conftest*
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8358$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8359
8360
8361
8362
8363
8364
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8366$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8367if ${lt_cv_prog_compiler_c_o+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  lt_cv_prog_compiler_c_o=no
8371   $RM -r conftest 2>/dev/null
8372   mkdir conftest
8373   cd conftest
8374   mkdir out
8375   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376
8377   lt_compiler_flag="-o out/conftest2.$ac_objext"
8378   # Insert the option either (1) after the last *FLAGS variable, or
8379   # (2) before a word containing "conftest.", or (3) at the end.
8380   # Note that $ac_compile itself does not contain backslashes and begins
8381   # with a dollar sign (not a hyphen), so the echo should work correctly.
8382   lt_compile=`echo "$ac_compile" | $SED \
8383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385   -e 's:$: $lt_compiler_flag:'`
8386   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387   (eval "$lt_compile" 2>out/conftest.err)
8388   ac_status=$?
8389   cat out/conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8392   then
8393     # The compiler can only warn and ignore the option if not recognized
8394     # So say no if there are warnings
8395     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8396     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8397     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8398       lt_cv_prog_compiler_c_o=yes
8399     fi
8400   fi
8401   chmod u+w . 2>&5
8402   $RM conftest*
8403   # SGI C++ compiler will create directory out/ii_files/ for
8404   # template instantiation
8405   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8406   $RM out/* && rmdir out
8407   cd ..
8408   $RM -r conftest
8409   $RM conftest*
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8413$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8414
8415
8416
8417
8418hard_links="nottested"
8419if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8420  # do not overwrite the value of need_locks provided by the user
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8422$as_echo_n "checking if we can lock with hard links... " >&6; }
8423  hard_links=yes
8424  $RM conftest*
8425  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8426  touch conftest.a
8427  ln conftest.a conftest.b 2>&5 || hard_links=no
8428  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8430$as_echo "$hard_links" >&6; }
8431  if test "$hard_links" = no; then
8432    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8433$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8434    need_locks=warn
8435  fi
8436else
8437  need_locks=no
8438fi
8439
8440
8441
8442
8443
8444
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8446$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8447
8448  runpath_var=
8449  allow_undefined_flag=
8450  always_export_symbols=no
8451  archive_cmds=
8452  archive_expsym_cmds=
8453  compiler_needs_object=no
8454  enable_shared_with_static_runtimes=no
8455  export_dynamic_flag_spec=
8456  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8457  hardcode_automatic=no
8458  hardcode_direct=no
8459  hardcode_direct_absolute=no
8460  hardcode_libdir_flag_spec=
8461  hardcode_libdir_separator=
8462  hardcode_minus_L=no
8463  hardcode_shlibpath_var=unsupported
8464  inherit_rpath=no
8465  link_all_deplibs=unknown
8466  module_cmds=
8467  module_expsym_cmds=
8468  old_archive_from_new_cmds=
8469  old_archive_from_expsyms_cmds=
8470  thread_safe_flag_spec=
8471  whole_archive_flag_spec=
8472  # include_expsyms should be a list of space-separated symbols to be *always*
8473  # included in the symbol list
8474  include_expsyms=
8475  # exclude_expsyms can be an extended regexp of symbols to exclude
8476  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8477  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8478  # as well as any symbol that contains `d'.
8479  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8480  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8481  # platforms (ab)use it in PIC code, but their linkers get confused if
8482  # the symbol is explicitly referenced.  Since portable code cannot
8483  # rely on this symbol name, it's probably fine to never include it in
8484  # preloaded symbol tables.
8485  # Exclude shared library initialization/finalization symbols.
8486  extract_expsyms_cmds=
8487
8488  case $host_os in
8489  cygwin* | mingw* | pw32* | cegcc*)
8490    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8491    # When not using gcc, we currently assume that we are using
8492    # Microsoft Visual C++.
8493    if test "$GCC" != yes; then
8494      with_gnu_ld=no
8495    fi
8496    ;;
8497  interix*)
8498    # we just hope/assume this is gcc and not c89 (= MSVC++)
8499    with_gnu_ld=yes
8500    ;;
8501  openbsd*)
8502    with_gnu_ld=no
8503    ;;
8504  esac
8505
8506  ld_shlibs=yes
8507
8508  # On some targets, GNU ld is compatible enough with the native linker
8509  # that we're better off using the native interface for both.
8510  lt_use_gnu_ld_interface=no
8511  if test "$with_gnu_ld" = yes; then
8512    case $host_os in
8513      aix*)
8514	# The AIX port of GNU ld has always aspired to compatibility
8515	# with the native linker.  However, as the warning in the GNU ld
8516	# block says, versions before 2.19.5* couldn't really create working
8517	# shared libraries, regardless of the interface used.
8518	case `$LD -v 2>&1` in
8519	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8520	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8521	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8522	  *)
8523	    lt_use_gnu_ld_interface=yes
8524	    ;;
8525	esac
8526	;;
8527      *)
8528	lt_use_gnu_ld_interface=yes
8529	;;
8530    esac
8531  fi
8532
8533  if test "$lt_use_gnu_ld_interface" = yes; then
8534    # If archive_cmds runs LD, not CC, wlarc should be empty
8535    wlarc='${wl}'
8536
8537    # Set some defaults for GNU ld with shared library support. These
8538    # are reset later if shared libraries are not supported. Putting them
8539    # here allows them to be overridden if necessary.
8540    runpath_var=LD_RUN_PATH
8541    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8542    export_dynamic_flag_spec='${wl}--export-dynamic'
8543    # ancient GNU ld didn't support --whole-archive et. al.
8544    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8545      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8546    else
8547      whole_archive_flag_spec=
8548    fi
8549    supports_anon_versioning=no
8550    case `$LD -v 2>&1` in
8551      *GNU\ gold*) supports_anon_versioning=yes ;;
8552      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8553      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8554      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8555      *\ 2.11.*) ;; # other 2.11 versions
8556      *) supports_anon_versioning=yes ;;
8557    esac
8558
8559    # See if GNU ld supports shared libraries.
8560    case $host_os in
8561    aix[3-9]*)
8562      # On AIX/PPC, the GNU linker is very broken
8563      if test "$host_cpu" != ia64; then
8564	ld_shlibs=no
8565	cat <<_LT_EOF 1>&2
8566
8567*** Warning: the GNU linker, at least up to release 2.19, is reported
8568*** to be unable to reliably create shared libraries on AIX.
8569*** Therefore, libtool is disabling shared libraries support.  If you
8570*** really care for shared libraries, you may want to install binutils
8571*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8572*** You will then need to restart the configuration process.
8573
8574_LT_EOF
8575      fi
8576      ;;
8577
8578    amigaos*)
8579      case $host_cpu in
8580      powerpc)
8581            # see comment about AmigaOS4 .so support
8582            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583            archive_expsym_cmds=''
8584        ;;
8585      m68k)
8586            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)'
8587            hardcode_libdir_flag_spec='-L$libdir'
8588            hardcode_minus_L=yes
8589        ;;
8590      esac
8591      ;;
8592
8593    beos*)
8594      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595	allow_undefined_flag=unsupported
8596	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597	# support --undefined.  This deserves some investigation.  FIXME
8598	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      else
8600	ld_shlibs=no
8601      fi
8602      ;;
8603
8604    cygwin* | mingw* | pw32* | cegcc*)
8605      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606      # as there is no search path for DLLs.
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      export_dynamic_flag_spec='${wl}--export-all-symbols'
8609      allow_undefined_flag=unsupported
8610      always_export_symbols=no
8611      enable_shared_with_static_runtimes=yes
8612      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'
8613      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8614
8615      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8616        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8617	# If the export-symbols file already is a .def file (1st line
8618	# is EXPORTS), use it as is; otherwise, prepend...
8619	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8620	  cp $export_symbols $output_objdir/$soname.def;
8621	else
8622	  echo EXPORTS > $output_objdir/$soname.def;
8623	  cat $export_symbols >> $output_objdir/$soname.def;
8624	fi~
8625	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626      else
8627	ld_shlibs=no
8628      fi
8629      ;;
8630
8631    haiku*)
8632      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633      link_all_deplibs=yes
8634      ;;
8635
8636    interix[3-9]*)
8637      hardcode_direct=no
8638      hardcode_shlibpath_var=no
8639      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640      export_dynamic_flag_spec='${wl}-E'
8641      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8642      # Instead, shared libraries are loaded at an image base (0x10000000 by
8643      # default) and relocated if they conflict, which is a slow very memory
8644      # consuming and fragmenting process.  To avoid this, we pick a random,
8645      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8646      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8647      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8648      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'
8649      ;;
8650
8651    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8652      tmp_diet=no
8653      if test "$host_os" = linux-dietlibc; then
8654	case $cc_basename in
8655	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8656	esac
8657      fi
8658      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8659	 && test "$tmp_diet" = no
8660      then
8661	tmp_addflag=' $pic_flag'
8662	tmp_sharedflag='-shared'
8663	case $cc_basename,$host_cpu in
8664        pgcc*)				# Portland Group C compiler
8665	  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'
8666	  tmp_addflag=' $pic_flag'
8667	  ;;
8668	pgf77* | pgf90* | pgf95* | pgfortran*)
8669					# Portland Group f77 and f90 compilers
8670	  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'
8671	  tmp_addflag=' $pic_flag -Mnomain' ;;
8672	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8673	  tmp_addflag=' -i_dynamic' ;;
8674	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8675	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8676	ifc* | ifort*)			# Intel Fortran compiler
8677	  tmp_addflag=' -nofor_main' ;;
8678	lf95*)				# Lahey Fortran 8.1
8679	  whole_archive_flag_spec=
8680	  tmp_sharedflag='--shared' ;;
8681	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8682	  tmp_sharedflag='-qmkshrobj'
8683	  tmp_addflag= ;;
8684	nvcc*)	# Cuda Compiler Driver 2.2
8685	  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'
8686	  compiler_needs_object=yes
8687	  ;;
8688	esac
8689	case `$CC -V 2>&1 | sed 5q` in
8690	*Sun\ C*)			# Sun C 5.9
8691	  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'
8692	  compiler_needs_object=yes
8693	  tmp_sharedflag='-G' ;;
8694	*Sun\ F*)			# Sun Fortran 8.3
8695	  tmp_sharedflag='-G' ;;
8696	esac
8697	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698
8699        if test "x$supports_anon_versioning" = xyes; then
8700          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8701	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8702	    echo "local: *; };" >> $output_objdir/$libname.ver~
8703	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8704        fi
8705
8706	case $cc_basename in
8707	xlf* | bgf* | bgxlf* | mpixlf*)
8708	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8709	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8710	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8712	  if test "x$supports_anon_versioning" = xyes; then
8713	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715	      echo "local: *; };" >> $output_objdir/$libname.ver~
8716	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8717	  fi
8718	  ;;
8719	esac
8720      else
8721        ld_shlibs=no
8722      fi
8723      ;;
8724
8725    netbsd*)
8726      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8727	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8728	wlarc=
8729      else
8730	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732      fi
8733      ;;
8734
8735    solaris*)
8736      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8737	ld_shlibs=no
8738	cat <<_LT_EOF 1>&2
8739
8740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8741*** create shared libraries on Solaris systems.  Therefore, libtool
8742*** is disabling shared libraries support.  We urge you to upgrade GNU
8743*** binutils to release 2.9.1 or newer.  Another option is to modify
8744*** your PATH or compiler configuration so that the native linker is
8745*** used, and then restart.
8746
8747_LT_EOF
8748      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8751      else
8752	ld_shlibs=no
8753      fi
8754      ;;
8755
8756    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8757      case `$LD -v 2>&1` in
8758        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8759	ld_shlibs=no
8760	cat <<_LT_EOF 1>&2
8761
8762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8763*** reliably create shared libraries on SCO systems.  Therefore, libtool
8764*** is disabling shared libraries support.  We urge you to upgrade GNU
8765*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8766*** your PATH or compiler configuration so that the native linker is
8767*** used, and then restart.
8768
8769_LT_EOF
8770	;;
8771	*)
8772	  # For security reasons, it is highly recommended that you always
8773	  # use absolute paths for naming shared libraries, and exclude the
8774	  # DT_RUNPATH tag from executables and libraries.  But doing so
8775	  # requires that you compile everything twice, which is a pain.
8776	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8777	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780	  else
8781	    ld_shlibs=no
8782	  fi
8783	;;
8784      esac
8785      ;;
8786
8787    sunos4*)
8788      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8789      wlarc=
8790      hardcode_direct=yes
8791      hardcode_shlibpath_var=no
8792      ;;
8793
8794    *)
8795      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798      else
8799	ld_shlibs=no
8800      fi
8801      ;;
8802    esac
8803
8804    if test "$ld_shlibs" = no; then
8805      runpath_var=
8806      hardcode_libdir_flag_spec=
8807      export_dynamic_flag_spec=
8808      whole_archive_flag_spec=
8809    fi
8810  else
8811    # PORTME fill in a description of your system's linker (not GNU ld)
8812    case $host_os in
8813    aix3*)
8814      allow_undefined_flag=unsupported
8815      always_export_symbols=yes
8816      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'
8817      # Note: this linker hardcodes the directories in LIBPATH if there
8818      # are no directories specified by -L.
8819      hardcode_minus_L=yes
8820      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8821	# Neither direct hardcoding nor static linking is supported with a
8822	# broken collect2.
8823	hardcode_direct=unsupported
8824      fi
8825      ;;
8826
8827    aix[4-9]*)
8828      if test "$host_cpu" = ia64; then
8829	# On IA64, the linker does run time linking by default, so we don't
8830	# have to do anything special.
8831	aix_use_runtimelinking=no
8832	exp_sym_flag='-Bexport'
8833	no_entry_flag=""
8834      else
8835	# If we're using GNU nm, then we don't want the "-C" option.
8836	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8837	# Also, AIX nm treats weak defined symbols like other global
8838	# defined symbols, whereas GNU nm marks them as "W".
8839	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8840	  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'
8841	else
8842	  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'
8843	fi
8844	aix_use_runtimelinking=no
8845
8846	# Test if we are trying to use run time linking or normal
8847	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8848	# need to do runtime linking.
8849	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8850	  for ld_flag in $LDFLAGS; do
8851	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8852	    aix_use_runtimelinking=yes
8853	    break
8854	  fi
8855	  done
8856	  ;;
8857	esac
8858
8859	exp_sym_flag='-bexport'
8860	no_entry_flag='-bnoentry'
8861      fi
8862
8863      # When large executables or shared objects are built, AIX ld can
8864      # have problems creating the table of contents.  If linking a library
8865      # or program results in "error TOC overflow" add -mminimal-toc to
8866      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8867      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8868
8869      archive_cmds=''
8870      hardcode_direct=yes
8871      hardcode_direct_absolute=yes
8872      hardcode_libdir_separator=':'
8873      link_all_deplibs=yes
8874      file_list_spec='${wl}-f,'
8875
8876      if test "$GCC" = yes; then
8877	case $host_os in aix4.[012]|aix4.[012].*)
8878	# We only want to do this on AIX 4.2 and lower, the check
8879	# below for broken collect2 doesn't work under 4.3+
8880	  collect2name=`${CC} -print-prog-name=collect2`
8881	  if test -f "$collect2name" &&
8882	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8883	  then
8884	  # We have reworked collect2
8885	  :
8886	  else
8887	  # We have old collect2
8888	  hardcode_direct=unsupported
8889	  # It fails to find uninstalled libraries when the uninstalled
8890	  # path is not listed in the libpath.  Setting hardcode_minus_L
8891	  # to unsupported forces relinking
8892	  hardcode_minus_L=yes
8893	  hardcode_libdir_flag_spec='-L$libdir'
8894	  hardcode_libdir_separator=
8895	  fi
8896	  ;;
8897	esac
8898	shared_flag='-shared'
8899	if test "$aix_use_runtimelinking" = yes; then
8900	  shared_flag="$shared_flag "'${wl}-G'
8901	fi
8902      else
8903	# not using gcc
8904	if test "$host_cpu" = ia64; then
8905	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8906	# chokes on -Wl,-G. The following line is correct:
8907	  shared_flag='-G'
8908	else
8909	  if test "$aix_use_runtimelinking" = yes; then
8910	    shared_flag='${wl}-G'
8911	  else
8912	    shared_flag='${wl}-bM:SRE'
8913	  fi
8914	fi
8915      fi
8916
8917      export_dynamic_flag_spec='${wl}-bexpall'
8918      # It seems that -bexpall does not export symbols beginning with
8919      # underscore (_), so it is better to generate a list of symbols to export.
8920      always_export_symbols=yes
8921      if test "$aix_use_runtimelinking" = yes; then
8922	# Warning - without using the other runtime loading flags (-brtl),
8923	# -berok will link without error, but may produce a broken library.
8924	allow_undefined_flag='-berok'
8925        # Determine the default libpath from the value encoded in an
8926        # empty executable.
8927        if test "${lt_cv_aix_libpath+set}" = set; then
8928  aix_libpath=$lt_cv_aix_libpath
8929else
8930  if ${lt_cv_aix_libpath_+:} false; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934/* end confdefs.h.  */
8935
8936int
8937main ()
8938{
8939
8940  ;
8941  return 0;
8942}
8943_ACEOF
8944if ac_fn_c_try_link "$LINENO"; then :
8945
8946  lt_aix_libpath_sed='
8947      /Import File Strings/,/^$/ {
8948	  /^0/ {
8949	      s/^0  *\([^ ]*\) *$/\1/
8950	      p
8951	  }
8952      }'
8953  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954  # Check for a 64-bit object if we didn't find anything.
8955  if test -z "$lt_cv_aix_libpath_"; then
8956    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8957  fi
8958fi
8959rm -f core conftest.err conftest.$ac_objext \
8960    conftest$ac_exeext conftest.$ac_ext
8961  if test -z "$lt_cv_aix_libpath_"; then
8962    lt_cv_aix_libpath_="/usr/lib:/lib"
8963  fi
8964
8965fi
8966
8967  aix_libpath=$lt_cv_aix_libpath_
8968fi
8969
8970        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971        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"
8972      else
8973	if test "$host_cpu" = ia64; then
8974	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8975	  allow_undefined_flag="-z nodefs"
8976	  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"
8977	else
8978	 # Determine the default libpath from the value encoded in an
8979	 # empty executable.
8980	 if test "${lt_cv_aix_libpath+set}" = set; then
8981  aix_libpath=$lt_cv_aix_libpath
8982else
8983  if ${lt_cv_aix_libpath_+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988
8989int
8990main ()
8991{
8992
8993  ;
8994  return 0;
8995}
8996_ACEOF
8997if ac_fn_c_try_link "$LINENO"; then :
8998
8999  lt_aix_libpath_sed='
9000      /Import File Strings/,/^$/ {
9001	  /^0/ {
9002	      s/^0  *\([^ ]*\) *$/\1/
9003	      p
9004	  }
9005      }'
9006  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007  # Check for a 64-bit object if we didn't find anything.
9008  if test -z "$lt_cv_aix_libpath_"; then
9009    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9010  fi
9011fi
9012rm -f core conftest.err conftest.$ac_objext \
9013    conftest$ac_exeext conftest.$ac_ext
9014  if test -z "$lt_cv_aix_libpath_"; then
9015    lt_cv_aix_libpath_="/usr/lib:/lib"
9016  fi
9017
9018fi
9019
9020  aix_libpath=$lt_cv_aix_libpath_
9021fi
9022
9023	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9024	  # Warning - without using the other run time loading flags,
9025	  # -berok will link without error, but may produce a broken library.
9026	  no_undefined_flag=' ${wl}-bernotok'
9027	  allow_undefined_flag=' ${wl}-berok'
9028	  if test "$with_gnu_ld" = yes; then
9029	    # We only use this code for GNU lds that support --whole-archive.
9030	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9031	  else
9032	    # Exported symbols can be pulled into shared objects from archives
9033	    whole_archive_flag_spec='$convenience'
9034	  fi
9035	  archive_cmds_need_lc=yes
9036	  # This is similar to how AIX traditionally builds its shared libraries.
9037	  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'
9038	fi
9039      fi
9040      ;;
9041
9042    amigaos*)
9043      case $host_cpu in
9044      powerpc)
9045            # see comment about AmigaOS4 .so support
9046            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047            archive_expsym_cmds=''
9048        ;;
9049      m68k)
9050            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)'
9051            hardcode_libdir_flag_spec='-L$libdir'
9052            hardcode_minus_L=yes
9053        ;;
9054      esac
9055      ;;
9056
9057    bsdi[45]*)
9058      export_dynamic_flag_spec=-rdynamic
9059      ;;
9060
9061    cygwin* | mingw* | pw32* | cegcc*)
9062      # When not using gcc, we currently assume that we are using
9063      # Microsoft Visual C++.
9064      # hardcode_libdir_flag_spec is actually meaningless, as there is
9065      # no search path for DLLs.
9066      case $cc_basename in
9067      cl*)
9068	# Native MSVC
9069	hardcode_libdir_flag_spec=' '
9070	allow_undefined_flag=unsupported
9071	always_export_symbols=yes
9072	file_list_spec='@'
9073	# Tell ltmain to make .lib files, not .a files.
9074	libext=lib
9075	# Tell ltmain to make .dll files, not .so files.
9076	shrext_cmds=".dll"
9077	# FIXME: Setting linknames here is a bad hack.
9078	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9079	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9080	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9081	  else
9082	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9083	  fi~
9084	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9085	  linknames='
9086	# The linker will not automatically build a static lib if we build a DLL.
9087	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9088	enable_shared_with_static_runtimes=yes
9089	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9090	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9091	# Don't use ranlib
9092	old_postinstall_cmds='chmod 644 $oldlib'
9093	postlink_cmds='lt_outputfile="@OUTPUT@"~
9094	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9095	  case $lt_outputfile in
9096	    *.exe|*.EXE) ;;
9097	    *)
9098	      lt_outputfile="$lt_outputfile.exe"
9099	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9100	      ;;
9101	  esac~
9102	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9103	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9104	    $RM "$lt_outputfile.manifest";
9105	  fi'
9106	;;
9107      *)
9108	# Assume MSVC wrapper
9109	hardcode_libdir_flag_spec=' '
9110	allow_undefined_flag=unsupported
9111	# Tell ltmain to make .lib files, not .a files.
9112	libext=lib
9113	# Tell ltmain to make .dll files, not .so files.
9114	shrext_cmds=".dll"
9115	# FIXME: Setting linknames here is a bad hack.
9116	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9117	# The linker will automatically build a .lib file if we build a DLL.
9118	old_archive_from_new_cmds='true'
9119	# FIXME: Should let the user specify the lib program.
9120	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9121	enable_shared_with_static_runtimes=yes
9122	;;
9123      esac
9124      ;;
9125
9126    darwin* | rhapsody*)
9127
9128
9129  archive_cmds_need_lc=no
9130  hardcode_direct=no
9131  hardcode_automatic=yes
9132  hardcode_shlibpath_var=unsupported
9133  if test "$lt_cv_ld_force_load" = "yes"; then
9134    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\"`'
9135
9136  else
9137    whole_archive_flag_spec=''
9138  fi
9139  link_all_deplibs=yes
9140  allow_undefined_flag="$_lt_dar_allow_undefined"
9141  case $cc_basename in
9142     ifort*) _lt_dar_can_shared=yes ;;
9143     *) _lt_dar_can_shared=$GCC ;;
9144  esac
9145  if test "$_lt_dar_can_shared" = "yes"; then
9146    output_verbose_link_cmd=func_echo_all
9147    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9148    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9149    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}"
9150    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}"
9151
9152  else
9153  ld_shlibs=no
9154  fi
9155
9156      ;;
9157
9158    dgux*)
9159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160      hardcode_libdir_flag_spec='-L$libdir'
9161      hardcode_shlibpath_var=no
9162      ;;
9163
9164    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9165    # support.  Future versions do this automatically, but an explicit c++rt0.o
9166    # does not break anything, and helps significantly (at the cost of a little
9167    # extra space).
9168    freebsd2.2*)
9169      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9170      hardcode_libdir_flag_spec='-R$libdir'
9171      hardcode_direct=yes
9172      hardcode_shlibpath_var=no
9173      ;;
9174
9175    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9176    freebsd2.*)
9177      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9178      hardcode_direct=yes
9179      hardcode_minus_L=yes
9180      hardcode_shlibpath_var=no
9181      ;;
9182
9183    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9184    freebsd* | dragonfly*)
9185      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9186      hardcode_libdir_flag_spec='-R$libdir'
9187      hardcode_direct=yes
9188      hardcode_shlibpath_var=no
9189      ;;
9190
9191    hpux9*)
9192      if test "$GCC" = yes; then
9193	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'
9194      else
9195	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'
9196      fi
9197      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198      hardcode_libdir_separator=:
9199      hardcode_direct=yes
9200
9201      # hardcode_minus_L: Not really in the search PATH,
9202      # but as the default location of the library.
9203      hardcode_minus_L=yes
9204      export_dynamic_flag_spec='${wl}-E'
9205      ;;
9206
9207    hpux10*)
9208      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9209	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210      else
9211	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212      fi
9213      if test "$with_gnu_ld" = no; then
9214	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9215	hardcode_libdir_separator=:
9216	hardcode_direct=yes
9217	hardcode_direct_absolute=yes
9218	export_dynamic_flag_spec='${wl}-E'
9219	# hardcode_minus_L: Not really in the search PATH,
9220	# but as the default location of the library.
9221	hardcode_minus_L=yes
9222      fi
9223      ;;
9224
9225    hpux11*)
9226      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9227	case $host_cpu in
9228	hppa*64*)
9229	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230	  ;;
9231	ia64*)
9232	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9233	  ;;
9234	*)
9235	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9236	  ;;
9237	esac
9238      else
9239	case $host_cpu in
9240	hppa*64*)
9241	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9242	  ;;
9243	ia64*)
9244	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9245	  ;;
9246	*)
9247
9248	  # Older versions of the 11.00 compiler do not understand -b yet
9249	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9250	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9251$as_echo_n "checking if $CC understands -b... " >&6; }
9252if ${lt_cv_prog_compiler__b+:} false; then :
9253  $as_echo_n "(cached) " >&6
9254else
9255  lt_cv_prog_compiler__b=no
9256   save_LDFLAGS="$LDFLAGS"
9257   LDFLAGS="$LDFLAGS -b"
9258   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9259   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9260     # The linker can only warn and ignore the option if not recognized
9261     # So say no if there are warnings
9262     if test -s conftest.err; then
9263       # Append any errors to the config.log.
9264       cat conftest.err 1>&5
9265       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9266       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9267       if diff conftest.exp conftest.er2 >/dev/null; then
9268         lt_cv_prog_compiler__b=yes
9269       fi
9270     else
9271       lt_cv_prog_compiler__b=yes
9272     fi
9273   fi
9274   $RM -r conftest*
9275   LDFLAGS="$save_LDFLAGS"
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9279$as_echo "$lt_cv_prog_compiler__b" >&6; }
9280
9281if test x"$lt_cv_prog_compiler__b" = xyes; then
9282    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283else
9284    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9285fi
9286
9287	  ;;
9288	esac
9289      fi
9290      if test "$with_gnu_ld" = no; then
9291	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9292	hardcode_libdir_separator=:
9293
9294	case $host_cpu in
9295	hppa*64*|ia64*)
9296	  hardcode_direct=no
9297	  hardcode_shlibpath_var=no
9298	  ;;
9299	*)
9300	  hardcode_direct=yes
9301	  hardcode_direct_absolute=yes
9302	  export_dynamic_flag_spec='${wl}-E'
9303
9304	  # hardcode_minus_L: Not really in the search PATH,
9305	  # but as the default location of the library.
9306	  hardcode_minus_L=yes
9307	  ;;
9308	esac
9309      fi
9310      ;;
9311
9312    irix5* | irix6* | nonstopux*)
9313      if test "$GCC" = yes; then
9314	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'
9315	# Try to use the -exported_symbol ld option, if it does not
9316	# work, assume that -exports_file does not work either and
9317	# implicitly export all symbols.
9318	# This should be the same for all languages, so no per-tag cache variable.
9319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9320$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9321if ${lt_cv_irix_exported_symbol+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  save_LDFLAGS="$LDFLAGS"
9325	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9326	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328int foo (void) { return 0; }
9329_ACEOF
9330if ac_fn_c_try_link "$LINENO"; then :
9331  lt_cv_irix_exported_symbol=yes
9332else
9333  lt_cv_irix_exported_symbol=no
9334fi
9335rm -f core conftest.err conftest.$ac_objext \
9336    conftest$ac_exeext conftest.$ac_ext
9337           LDFLAGS="$save_LDFLAGS"
9338fi
9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9340$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9341	if test "$lt_cv_irix_exported_symbol" = yes; then
9342          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'
9343	fi
9344      else
9345	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'
9346	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'
9347      fi
9348      archive_cmds_need_lc='no'
9349      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350      hardcode_libdir_separator=:
9351      inherit_rpath=yes
9352      link_all_deplibs=yes
9353      ;;
9354
9355    netbsd*)
9356      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9357	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9358      else
9359	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9360      fi
9361      hardcode_libdir_flag_spec='-R$libdir'
9362      hardcode_direct=yes
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    newsos6)
9367      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368      hardcode_direct=yes
9369      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370      hardcode_libdir_separator=:
9371      hardcode_shlibpath_var=no
9372      ;;
9373
9374    *nto* | *qnx*)
9375      ;;
9376
9377    openbsd*)
9378      if test -f /usr/libexec/ld.so; then
9379	hardcode_direct=yes
9380	hardcode_shlibpath_var=no
9381	hardcode_direct_absolute=yes
9382	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9383	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9384	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9385	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9386	  export_dynamic_flag_spec='${wl}-E'
9387	else
9388	  case $host_os in
9389	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9390	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391	     hardcode_libdir_flag_spec='-R$libdir'
9392	     ;;
9393	   *)
9394	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9395	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9396	     ;;
9397	  esac
9398	fi
9399      else
9400	ld_shlibs=no
9401      fi
9402      ;;
9403
9404    os2*)
9405      hardcode_libdir_flag_spec='-L$libdir'
9406      hardcode_minus_L=yes
9407      allow_undefined_flag=unsupported
9408      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'
9409      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9410      ;;
9411
9412    osf3*)
9413      if test "$GCC" = yes; then
9414	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9415	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'
9416      else
9417	allow_undefined_flag=' -expect_unresolved \*'
9418	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'
9419      fi
9420      archive_cmds_need_lc='no'
9421      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422      hardcode_libdir_separator=:
9423      ;;
9424
9425    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9426      if test "$GCC" = yes; then
9427	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9428	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'
9429	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430      else
9431	allow_undefined_flag=' -expect_unresolved \*'
9432	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'
9433	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~
9434	$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'
9435
9436	# Both c and cxx compiler support -rpath directly
9437	hardcode_libdir_flag_spec='-rpath $libdir'
9438      fi
9439      archive_cmds_need_lc='no'
9440      hardcode_libdir_separator=:
9441      ;;
9442
9443    solaris*)
9444      no_undefined_flag=' -z defs'
9445      if test "$GCC" = yes; then
9446	wlarc='${wl}'
9447	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9449	  $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'
9450      else
9451	case `$CC -V 2>&1` in
9452	*"Compilers 5.0"*)
9453	  wlarc=''
9454	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9456	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9457	  ;;
9458	*)
9459	  wlarc='${wl}'
9460	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9461	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9462	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9463	  ;;
9464	esac
9465      fi
9466      hardcode_libdir_flag_spec='-R$libdir'
9467      hardcode_shlibpath_var=no
9468      case $host_os in
9469      solaris2.[0-5] | solaris2.[0-5].*) ;;
9470      *)
9471	# The compiler driver will combine and reorder linker options,
9472	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9473	# but is careful enough not to reorder.
9474	# Supported since Solaris 2.6 (maybe 2.5.1?)
9475	if test "$GCC" = yes; then
9476	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9477	else
9478	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9479	fi
9480	;;
9481      esac
9482      link_all_deplibs=yes
9483      ;;
9484
9485    sunos4*)
9486      if test "x$host_vendor" = xsequent; then
9487	# Use $CC to link under sequent, because it throws in some extra .o
9488	# files that make .init and .fini sections work.
9489	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9490      else
9491	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9492      fi
9493      hardcode_libdir_flag_spec='-L$libdir'
9494      hardcode_direct=yes
9495      hardcode_minus_L=yes
9496      hardcode_shlibpath_var=no
9497      ;;
9498
9499    sysv4)
9500      case $host_vendor in
9501	sni)
9502	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503	  hardcode_direct=yes # is this really true???
9504	;;
9505	siemens)
9506	  ## LD is ld it makes a PLAMLIB
9507	  ## CC just makes a GrossModule.
9508	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9509	  reload_cmds='$CC -r -o $output$reload_objs'
9510	  hardcode_direct=no
9511        ;;
9512	motorola)
9513	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9515	;;
9516      esac
9517      runpath_var='LD_RUN_PATH'
9518      hardcode_shlibpath_var=no
9519      ;;
9520
9521    sysv4.3*)
9522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523      hardcode_shlibpath_var=no
9524      export_dynamic_flag_spec='-Bexport'
9525      ;;
9526
9527    sysv4*MP*)
9528      if test -d /usr/nec; then
9529	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530	hardcode_shlibpath_var=no
9531	runpath_var=LD_RUN_PATH
9532	hardcode_runpath_var=yes
9533	ld_shlibs=yes
9534      fi
9535      ;;
9536
9537    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9538      no_undefined_flag='${wl}-z,text'
9539      archive_cmds_need_lc=no
9540      hardcode_shlibpath_var=no
9541      runpath_var='LD_RUN_PATH'
9542
9543      if test "$GCC" = yes; then
9544	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546      else
9547	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9549      fi
9550      ;;
9551
9552    sysv5* | sco3.2v5* | sco5v6*)
9553      # Note: We can NOT use -z defs as we might desire, because we do not
9554      # link with -lc, and that would cause any symbols used from libc to
9555      # always be unresolved, which means just about no library would
9556      # ever link correctly.  If we're not using GNU ld we use -z text
9557      # though, which does catch some bad symbols but isn't as heavy-handed
9558      # as -z defs.
9559      no_undefined_flag='${wl}-z,text'
9560      allow_undefined_flag='${wl}-z,nodefs'
9561      archive_cmds_need_lc=no
9562      hardcode_shlibpath_var=no
9563      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9564      hardcode_libdir_separator=':'
9565      link_all_deplibs=yes
9566      export_dynamic_flag_spec='${wl}-Bexport'
9567      runpath_var='LD_RUN_PATH'
9568
9569      if test "$GCC" = yes; then
9570	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9571	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572      else
9573	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575      fi
9576      ;;
9577
9578    uts4*)
9579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_shlibpath_var=no
9582      ;;
9583
9584    *)
9585      ld_shlibs=no
9586      ;;
9587    esac
9588
9589    if test x$host_vendor = xsni; then
9590      case $host in
9591      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9592	export_dynamic_flag_spec='${wl}-Blargedynsym'
9593	;;
9594      esac
9595    fi
9596  fi
9597
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9599$as_echo "$ld_shlibs" >&6; }
9600test "$ld_shlibs" = no && can_build_shared=no
9601
9602with_gnu_ld=$with_gnu_ld
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618#
9619# Do we need to explicitly link libc?
9620#
9621case "x$archive_cmds_need_lc" in
9622x|xyes)
9623  # Assume -lc should be added
9624  archive_cmds_need_lc=yes
9625
9626  if test "$enable_shared" = yes && test "$GCC" = yes; then
9627    case $archive_cmds in
9628    *'~'*)
9629      # FIXME: we may have to deal with multi-command sequences.
9630      ;;
9631    '$CC '*)
9632      # Test whether the compiler implicitly links with -lc since on some
9633      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9634      # to ld, don't add -lc before -lgcc.
9635      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9636$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9637if ${lt_cv_archive_cmds_need_lc+:} false; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  $RM conftest*
9641	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642
9643	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9644  (eval $ac_compile) 2>&5
9645  ac_status=$?
9646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9647  test $ac_status = 0; } 2>conftest.err; then
9648	  soname=conftest
9649	  lib=conftest
9650	  libobjs=conftest.$ac_objext
9651	  deplibs=
9652	  wl=$lt_prog_compiler_wl
9653	  pic_flag=$lt_prog_compiler_pic
9654	  compiler_flags=-v
9655	  linker_flags=-v
9656	  verstring=
9657	  output_objdir=.
9658	  libname=conftest
9659	  lt_save_allow_undefined_flag=$allow_undefined_flag
9660	  allow_undefined_flag=
9661	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9662  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9663  ac_status=$?
9664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9665  test $ac_status = 0; }
9666	  then
9667	    lt_cv_archive_cmds_need_lc=no
9668	  else
9669	    lt_cv_archive_cmds_need_lc=yes
9670	  fi
9671	  allow_undefined_flag=$lt_save_allow_undefined_flag
9672	else
9673	  cat conftest.err 1>&5
9674	fi
9675	$RM conftest*
9676
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9679$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9680      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9681      ;;
9682    esac
9683  fi
9684  ;;
9685esac
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9839$as_echo_n "checking dynamic linker characteristics... " >&6; }
9840
9841if test "$GCC" = yes; then
9842  case $host_os in
9843    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9844    *) lt_awk_arg="/^libraries:/" ;;
9845  esac
9846  case $host_os in
9847    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9848    *) lt_sed_strip_eq="s,=/,/,g" ;;
9849  esac
9850  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9851  case $lt_search_path_spec in
9852  *\;*)
9853    # if the path contains ";" then we assume it to be the separator
9854    # otherwise default to the standard path separator (i.e. ":") - it is
9855    # assumed that no part of a normal pathname contains ";" but that should
9856    # okay in the real world where ";" in dirpaths is itself problematic.
9857    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9858    ;;
9859  *)
9860    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9861    ;;
9862  esac
9863  # Ok, now we have the path, separated by spaces, we can step through it
9864  # and add multilib dir if necessary.
9865  lt_tmp_lt_search_path_spec=
9866  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9867  for lt_sys_path in $lt_search_path_spec; do
9868    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9869      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9870    else
9871      test -d "$lt_sys_path" && \
9872	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9873    fi
9874  done
9875  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9876BEGIN {RS=" "; FS="/|\n";} {
9877  lt_foo="";
9878  lt_count=0;
9879  for (lt_i = NF; lt_i > 0; lt_i--) {
9880    if ($lt_i != "" && $lt_i != ".") {
9881      if ($lt_i == "..") {
9882        lt_count++;
9883      } else {
9884        if (lt_count == 0) {
9885          lt_foo="/" $lt_i lt_foo;
9886        } else {
9887          lt_count--;
9888        }
9889      }
9890    }
9891  }
9892  if (lt_foo != "") { lt_freq[lt_foo]++; }
9893  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9894}'`
9895  # AWK program above erroneously prepends '/' to C:/dos/paths
9896  # for these hosts.
9897  case $host_os in
9898    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9899      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9900  esac
9901  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9902else
9903  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9904fi
9905library_names_spec=
9906libname_spec='lib$name'
9907soname_spec=
9908shrext_cmds=".so"
9909postinstall_cmds=
9910postuninstall_cmds=
9911finish_cmds=
9912finish_eval=
9913shlibpath_var=
9914shlibpath_overrides_runpath=unknown
9915version_type=none
9916dynamic_linker="$host_os ld.so"
9917sys_lib_dlsearch_path_spec="/lib /usr/lib"
9918need_lib_prefix=unknown
9919hardcode_into_libs=no
9920
9921# when you set need_version to no, make sure it does not cause -set_version
9922# flags to be left without arguments
9923need_version=unknown
9924
9925case $host_os in
9926aix3*)
9927  version_type=linux # correct to gnu/linux during the next big refactor
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9929  shlibpath_var=LIBPATH
9930
9931  # AIX 3 has no versioning support, so we append a major version to the name.
9932  soname_spec='${libname}${release}${shared_ext}$major'
9933  ;;
9934
9935aix[4-9]*)
9936  version_type=linux # correct to gnu/linux during the next big refactor
9937  need_lib_prefix=no
9938  need_version=no
9939  hardcode_into_libs=yes
9940  if test "$host_cpu" = ia64; then
9941    # AIX 5 supports IA64
9942    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9943    shlibpath_var=LD_LIBRARY_PATH
9944  else
9945    # With GCC up to 2.95.x, collect2 would create an import file
9946    # for dependence libraries.  The import file would start with
9947    # the line `#! .'.  This would cause the generated library to
9948    # depend on `.', always an invalid library.  This was fixed in
9949    # development snapshots of GCC prior to 3.0.
9950    case $host_os in
9951      aix4 | aix4.[01] | aix4.[01].*)
9952      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9953	   echo ' yes '
9954	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9955	:
9956      else
9957	can_build_shared=no
9958      fi
9959      ;;
9960    esac
9961    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9962    # soname into executable. Probably we can add versioning support to
9963    # collect2, so additional links can be useful in future.
9964    if test "$aix_use_runtimelinking" = yes; then
9965      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9966      # instead of lib<name>.a to let people know that these are not
9967      # typical AIX shared libraries.
9968      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969    else
9970      # We preserve .a as extension for shared libraries through AIX4.2
9971      # and later when we are not doing run time linking.
9972      library_names_spec='${libname}${release}.a $libname.a'
9973      soname_spec='${libname}${release}${shared_ext}$major'
9974    fi
9975    shlibpath_var=LIBPATH
9976  fi
9977  ;;
9978
9979amigaos*)
9980  case $host_cpu in
9981  powerpc)
9982    # Since July 2007 AmigaOS4 officially supports .so libraries.
9983    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985    ;;
9986  m68k)
9987    library_names_spec='$libname.ixlibrary $libname.a'
9988    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9989    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'
9990    ;;
9991  esac
9992  ;;
9993
9994beos*)
9995  library_names_spec='${libname}${shared_ext}'
9996  dynamic_linker="$host_os ld.so"
9997  shlibpath_var=LIBRARY_PATH
9998  ;;
9999
10000bsdi[45]*)
10001  version_type=linux # correct to gnu/linux during the next big refactor
10002  need_version=no
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004  soname_spec='${libname}${release}${shared_ext}$major'
10005  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10006  shlibpath_var=LD_LIBRARY_PATH
10007  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10008  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10009  # the default ld.so.conf also contains /usr/contrib/lib and
10010  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10011  # libtool to hard-code these into programs
10012  ;;
10013
10014cygwin* | mingw* | pw32* | cegcc*)
10015  version_type=windows
10016  shrext_cmds=".dll"
10017  need_version=no
10018  need_lib_prefix=no
10019
10020  case $GCC,$cc_basename in
10021  yes,*)
10022    # gcc
10023    library_names_spec='$libname.dll.a'
10024    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10025    postinstall_cmds='base_file=`basename \${file}`~
10026      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10027      dldir=$destdir/`dirname \$dlpath`~
10028      test -d \$dldir || mkdir -p \$dldir~
10029      $install_prog $dir/$dlname \$dldir/$dlname~
10030      chmod a+x \$dldir/$dlname~
10031      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10032        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10033      fi'
10034    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035      dlpath=$dir/\$dldll~
10036       $RM \$dlpath'
10037    shlibpath_overrides_runpath=yes
10038
10039    case $host_os in
10040    cygwin*)
10041      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10042      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043
10044      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10045      ;;
10046    mingw* | cegcc*)
10047      # MinGW DLLs use traditional 'lib' prefix
10048      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10049      ;;
10050    pw32*)
10051      # pw32 DLLs use 'pw' prefix rather than 'lib'
10052      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10053      ;;
10054    esac
10055    dynamic_linker='Win32 ld.exe'
10056    ;;
10057
10058  *,cl*)
10059    # Native MSVC
10060    libname_spec='$name'
10061    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10062    library_names_spec='${libname}.dll.lib'
10063
10064    case $build_os in
10065    mingw*)
10066      sys_lib_search_path_spec=
10067      lt_save_ifs=$IFS
10068      IFS=';'
10069      for lt_path in $LIB
10070      do
10071        IFS=$lt_save_ifs
10072        # Let DOS variable expansion print the short 8.3 style file name.
10073        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10074        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10075      done
10076      IFS=$lt_save_ifs
10077      # Convert to MSYS style.
10078      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10079      ;;
10080    cygwin*)
10081      # Convert to unix form, then to dos form, then back to unix form
10082      # but this time dos style (no spaces!) so that the unix form looks
10083      # like /cygdrive/c/PROGRA~1:/cygdr...
10084      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10085      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10086      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10087      ;;
10088    *)
10089      sys_lib_search_path_spec="$LIB"
10090      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10091        # It is most probably a Windows format PATH.
10092        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10093      else
10094        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10095      fi
10096      # FIXME: find the short name or the path components, as spaces are
10097      # common. (e.g. "Program Files" -> "PROGRA~1")
10098      ;;
10099    esac
10100
10101    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102    postinstall_cmds='base_file=`basename \${file}`~
10103      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10104      dldir=$destdir/`dirname \$dlpath`~
10105      test -d \$dldir || mkdir -p \$dldir~
10106      $install_prog $dir/$dlname \$dldir/$dlname'
10107    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10108      dlpath=$dir/\$dldll~
10109       $RM \$dlpath'
10110    shlibpath_overrides_runpath=yes
10111    dynamic_linker='Win32 link.exe'
10112    ;;
10113
10114  *)
10115    # Assume MSVC wrapper
10116    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10117    dynamic_linker='Win32 ld.exe'
10118    ;;
10119  esac
10120  # FIXME: first we should search . and the directory the executable is in
10121  shlibpath_var=PATH
10122  ;;
10123
10124darwin* | rhapsody*)
10125  dynamic_linker="$host_os dyld"
10126  version_type=darwin
10127  need_lib_prefix=no
10128  need_version=no
10129  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10130  soname_spec='${libname}${release}${major}$shared_ext'
10131  shlibpath_overrides_runpath=yes
10132  shlibpath_var=DYLD_LIBRARY_PATH
10133  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10134
10135  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10136  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10137  ;;
10138
10139dgux*)
10140  version_type=linux # correct to gnu/linux during the next big refactor
10141  need_lib_prefix=no
10142  need_version=no
10143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10144  soname_spec='${libname}${release}${shared_ext}$major'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  ;;
10147
10148freebsd* | dragonfly*)
10149  # DragonFly does not have aout.  When/if they implement a new
10150  # versioning mechanism, adjust this.
10151  if test -x /usr/bin/objformat; then
10152    objformat=`/usr/bin/objformat`
10153  else
10154    case $host_os in
10155    freebsd[23].*) objformat=aout ;;
10156    *) objformat=elf ;;
10157    esac
10158  fi
10159  version_type=freebsd-$objformat
10160  case $version_type in
10161    freebsd-elf*)
10162      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10163      need_version=no
10164      need_lib_prefix=no
10165      ;;
10166    freebsd-*)
10167      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10168      need_version=yes
10169      ;;
10170  esac
10171  shlibpath_var=LD_LIBRARY_PATH
10172  case $host_os in
10173  freebsd2.*)
10174    shlibpath_overrides_runpath=yes
10175    ;;
10176  freebsd3.[01]* | freebsdelf3.[01]*)
10177    shlibpath_overrides_runpath=yes
10178    hardcode_into_libs=yes
10179    ;;
10180  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10181  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10182    shlibpath_overrides_runpath=no
10183    hardcode_into_libs=yes
10184    ;;
10185  *) # from 4.6 on, and DragonFly
10186    shlibpath_overrides_runpath=yes
10187    hardcode_into_libs=yes
10188    ;;
10189  esac
10190  ;;
10191
10192gnu*)
10193  version_type=linux # correct to gnu/linux during the next big refactor
10194  need_lib_prefix=no
10195  need_version=no
10196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10197  soname_spec='${libname}${release}${shared_ext}$major'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=no
10200  hardcode_into_libs=yes
10201  ;;
10202
10203haiku*)
10204  version_type=linux # correct to gnu/linux during the next big refactor
10205  need_lib_prefix=no
10206  need_version=no
10207  dynamic_linker="$host_os runtime_loader"
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10209  soname_spec='${libname}${release}${shared_ext}$major'
10210  shlibpath_var=LIBRARY_PATH
10211  shlibpath_overrides_runpath=yes
10212  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10213  hardcode_into_libs=yes
10214  ;;
10215
10216hpux9* | hpux10* | hpux11*)
10217  # Give a soname corresponding to the major version so that dld.sl refuses to
10218  # link against other versions.
10219  version_type=sunos
10220  need_lib_prefix=no
10221  need_version=no
10222  case $host_cpu in
10223  ia64*)
10224    shrext_cmds='.so'
10225    hardcode_into_libs=yes
10226    dynamic_linker="$host_os dld.so"
10227    shlibpath_var=LD_LIBRARY_PATH
10228    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230    soname_spec='${libname}${release}${shared_ext}$major'
10231    if test "X$HPUX_IA64_MODE" = X32; then
10232      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10233    else
10234      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10235    fi
10236    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237    ;;
10238  hppa*64*)
10239    shrext_cmds='.sl'
10240    hardcode_into_libs=yes
10241    dynamic_linker="$host_os dld.sl"
10242    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10243    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245    soname_spec='${libname}${release}${shared_ext}$major'
10246    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10247    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10248    ;;
10249  *)
10250    shrext_cmds='.sl'
10251    dynamic_linker="$host_os dld.sl"
10252    shlibpath_var=SHLIB_PATH
10253    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10254    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255    soname_spec='${libname}${release}${shared_ext}$major'
10256    ;;
10257  esac
10258  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10259  postinstall_cmds='chmod 555 $lib'
10260  # or fails outright, so override atomically:
10261  install_override_mode=555
10262  ;;
10263
10264interix[3-9]*)
10265  version_type=linux # correct to gnu/linux during the next big refactor
10266  need_lib_prefix=no
10267  need_version=no
10268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269  soname_spec='${libname}${release}${shared_ext}$major'
10270  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10271  shlibpath_var=LD_LIBRARY_PATH
10272  shlibpath_overrides_runpath=no
10273  hardcode_into_libs=yes
10274  ;;
10275
10276irix5* | irix6* | nonstopux*)
10277  case $host_os in
10278    nonstopux*) version_type=nonstopux ;;
10279    *)
10280	if test "$lt_cv_prog_gnu_ld" = yes; then
10281		version_type=linux # correct to gnu/linux during the next big refactor
10282	else
10283		version_type=irix
10284	fi ;;
10285  esac
10286  need_lib_prefix=no
10287  need_version=no
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10290  case $host_os in
10291  irix5* | nonstopux*)
10292    libsuff= shlibsuff=
10293    ;;
10294  *)
10295    case $LD in # libtool.m4 will add one of these switches to LD
10296    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10297      libsuff= shlibsuff= libmagic=32-bit;;
10298    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10299      libsuff=32 shlibsuff=N32 libmagic=N32;;
10300    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10301      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10302    *) libsuff= shlibsuff= libmagic=never-match;;
10303    esac
10304    ;;
10305  esac
10306  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10307  shlibpath_overrides_runpath=no
10308  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10309  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10310  hardcode_into_libs=yes
10311  ;;
10312
10313# No shared lib support for Linux oldld, aout, or coff.
10314linux*oldld* | linux*aout* | linux*coff*)
10315  dynamic_linker=no
10316  ;;
10317
10318# This must be glibc/ELF.
10319linux* | k*bsd*-gnu | kopensolaris*-gnu)
10320  version_type=linux # correct to gnu/linux during the next big refactor
10321  need_lib_prefix=no
10322  need_version=no
10323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324  soname_spec='${libname}${release}${shared_ext}$major'
10325  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  shlibpath_overrides_runpath=no
10328
10329  # Some binutils ld are patched to set DT_RUNPATH
10330  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  lt_cv_shlibpath_overrides_runpath=no
10334    save_LDFLAGS=$LDFLAGS
10335    save_libdir=$libdir
10336    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10337	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h.  */
10340
10341int
10342main ()
10343{
10344
10345  ;
10346  return 0;
10347}
10348_ACEOF
10349if ac_fn_c_try_link "$LINENO"; then :
10350  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10351  lt_cv_shlibpath_overrides_runpath=yes
10352fi
10353fi
10354rm -f core conftest.err conftest.$ac_objext \
10355    conftest$ac_exeext conftest.$ac_ext
10356    LDFLAGS=$save_LDFLAGS
10357    libdir=$save_libdir
10358
10359fi
10360
10361  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10362
10363  # This implies no fast_install, which is unacceptable.
10364  # Some rework will be needed to allow for fast_install
10365  # before this can be enabled.
10366  hardcode_into_libs=yes
10367
10368  # Add ABI-specific directories to the system library path.
10369  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10370
10371  # Append ld.so.conf contents to the search path
10372  if test -f /etc/ld.so.conf; then
10373    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' ' '`
10374    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10375
10376  fi
10377
10378  # We used to test for /lib/ld.so.1 and disable shared libraries on
10379  # powerpc, because MkLinux only supported shared libraries with the
10380  # GNU dynamic linker.  Since this was broken with cross compilers,
10381  # most powerpc-linux boxes support dynamic linking these days and
10382  # people can always --disable-shared, the test was removed, and we
10383  # assume the GNU/Linux dynamic linker is in use.
10384  dynamic_linker='GNU/Linux ld.so'
10385  ;;
10386
10387netbsd*)
10388  version_type=sunos
10389  need_lib_prefix=no
10390  need_version=no
10391  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10393    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394    dynamic_linker='NetBSD (a.out) ld.so'
10395  else
10396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10397    soname_spec='${libname}${release}${shared_ext}$major'
10398    dynamic_linker='NetBSD ld.elf_so'
10399  fi
10400  shlibpath_var=LD_LIBRARY_PATH
10401  shlibpath_overrides_runpath=yes
10402  hardcode_into_libs=yes
10403  ;;
10404
10405newsos6)
10406  version_type=linux # correct to gnu/linux during the next big refactor
10407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408  shlibpath_var=LD_LIBRARY_PATH
10409  shlibpath_overrides_runpath=yes
10410  ;;
10411
10412*nto* | *qnx*)
10413  version_type=qnx
10414  need_lib_prefix=no
10415  need_version=no
10416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417  soname_spec='${libname}${release}${shared_ext}$major'
10418  shlibpath_var=LD_LIBRARY_PATH
10419  shlibpath_overrides_runpath=no
10420  hardcode_into_libs=yes
10421  dynamic_linker='ldqnx.so'
10422  ;;
10423
10424openbsd*)
10425  version_type=sunos
10426  sys_lib_dlsearch_path_spec="/usr/lib"
10427  need_lib_prefix=no
10428  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10429  case $host_os in
10430    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10431    *)				need_version=no  ;;
10432  esac
10433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10434  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10435  shlibpath_var=LD_LIBRARY_PATH
10436  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10437    case $host_os in
10438      openbsd2.[89] | openbsd2.[89].*)
10439	shlibpath_overrides_runpath=no
10440	;;
10441      *)
10442	shlibpath_overrides_runpath=yes
10443	;;
10444      esac
10445  else
10446    shlibpath_overrides_runpath=yes
10447  fi
10448  ;;
10449
10450os2*)
10451  libname_spec='$name'
10452  shrext_cmds=".dll"
10453  need_lib_prefix=no
10454  library_names_spec='$libname${shared_ext} $libname.a'
10455  dynamic_linker='OS/2 ld.exe'
10456  shlibpath_var=LIBPATH
10457  ;;
10458
10459osf3* | osf4* | osf5*)
10460  version_type=osf
10461  need_lib_prefix=no
10462  need_version=no
10463  soname_spec='${libname}${release}${shared_ext}$major'
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465  shlibpath_var=LD_LIBRARY_PATH
10466  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10467  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10468  ;;
10469
10470rdos*)
10471  dynamic_linker=no
10472  ;;
10473
10474solaris*)
10475  version_type=linux # correct to gnu/linux during the next big refactor
10476  need_lib_prefix=no
10477  need_version=no
10478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479  soname_spec='${libname}${release}${shared_ext}$major'
10480  shlibpath_var=LD_LIBRARY_PATH
10481  shlibpath_overrides_runpath=yes
10482  hardcode_into_libs=yes
10483  # ldd complains unless libraries are executable
10484  postinstall_cmds='chmod +x $lib'
10485  ;;
10486
10487sunos4*)
10488  version_type=sunos
10489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10490  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10491  shlibpath_var=LD_LIBRARY_PATH
10492  shlibpath_overrides_runpath=yes
10493  if test "$with_gnu_ld" = yes; then
10494    need_lib_prefix=no
10495  fi
10496  need_version=yes
10497  ;;
10498
10499sysv4 | sysv4.3*)
10500  version_type=linux # correct to gnu/linux during the next big refactor
10501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502  soname_spec='${libname}${release}${shared_ext}$major'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  case $host_vendor in
10505    sni)
10506      shlibpath_overrides_runpath=no
10507      need_lib_prefix=no
10508      runpath_var=LD_RUN_PATH
10509      ;;
10510    siemens)
10511      need_lib_prefix=no
10512      ;;
10513    motorola)
10514      need_lib_prefix=no
10515      need_version=no
10516      shlibpath_overrides_runpath=no
10517      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10518      ;;
10519  esac
10520  ;;
10521
10522sysv4*MP*)
10523  if test -d /usr/nec ;then
10524    version_type=linux # correct to gnu/linux during the next big refactor
10525    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10526    soname_spec='$libname${shared_ext}.$major'
10527    shlibpath_var=LD_LIBRARY_PATH
10528  fi
10529  ;;
10530
10531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10532  version_type=freebsd-elf
10533  need_lib_prefix=no
10534  need_version=no
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  shlibpath_var=LD_LIBRARY_PATH
10538  shlibpath_overrides_runpath=yes
10539  hardcode_into_libs=yes
10540  if test "$with_gnu_ld" = yes; then
10541    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10542  else
10543    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10544    case $host_os in
10545      sco3.2v5*)
10546        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10547	;;
10548    esac
10549  fi
10550  sys_lib_dlsearch_path_spec='/usr/lib'
10551  ;;
10552
10553tpf*)
10554  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10555  version_type=linux # correct to gnu/linux during the next big refactor
10556  need_lib_prefix=no
10557  need_version=no
10558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559  shlibpath_var=LD_LIBRARY_PATH
10560  shlibpath_overrides_runpath=no
10561  hardcode_into_libs=yes
10562  ;;
10563
10564uts4*)
10565  version_type=linux # correct to gnu/linux during the next big refactor
10566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567  soname_spec='${libname}${release}${shared_ext}$major'
10568  shlibpath_var=LD_LIBRARY_PATH
10569  ;;
10570
10571*)
10572  dynamic_linker=no
10573  ;;
10574esac
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10576$as_echo "$dynamic_linker" >&6; }
10577test "$dynamic_linker" = no && can_build_shared=no
10578
10579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10580if test "$GCC" = yes; then
10581  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10582fi
10583
10584if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10585  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10586fi
10587if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10588  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10589fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10683$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10684hardcode_action=
10685if test -n "$hardcode_libdir_flag_spec" ||
10686   test -n "$runpath_var" ||
10687   test "X$hardcode_automatic" = "Xyes" ; then
10688
10689  # We can hardcode non-existent directories.
10690  if test "$hardcode_direct" != no &&
10691     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10692     # have to relink, otherwise we might link with an installed library
10693     # when we should be linking with a yet-to-be-installed one
10694     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10695     test "$hardcode_minus_L" != no; then
10696    # Linking always hardcodes the temporary library directory.
10697    hardcode_action=relink
10698  else
10699    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10700    hardcode_action=immediate
10701  fi
10702else
10703  # We cannot hardcode anything, or else we can only hardcode existing
10704  # directories.
10705  hardcode_action=unsupported
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10708$as_echo "$hardcode_action" >&6; }
10709
10710if test "$hardcode_action" = relink ||
10711   test "$inherit_rpath" = yes; then
10712  # Fast installation is not supported
10713  enable_fast_install=no
10714elif test "$shlibpath_overrides_runpath" = yes ||
10715     test "$enable_shared" = no; then
10716  # Fast installation is not necessary
10717  enable_fast_install=needless
10718fi
10719
10720
10721
10722
10723
10724
10725  if test "x$enable_dlopen" != xyes; then
10726  enable_dlopen=unknown
10727  enable_dlopen_self=unknown
10728  enable_dlopen_self_static=unknown
10729else
10730  lt_cv_dlopen=no
10731  lt_cv_dlopen_libs=
10732
10733  case $host_os in
10734  beos*)
10735    lt_cv_dlopen="load_add_on"
10736    lt_cv_dlopen_libs=
10737    lt_cv_dlopen_self=yes
10738    ;;
10739
10740  mingw* | pw32* | cegcc*)
10741    lt_cv_dlopen="LoadLibrary"
10742    lt_cv_dlopen_libs=
10743    ;;
10744
10745  cygwin*)
10746    lt_cv_dlopen="dlopen"
10747    lt_cv_dlopen_libs=
10748    ;;
10749
10750  darwin*)
10751  # if libdl is installed we need to link against it
10752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10753$as_echo_n "checking for dlopen in -ldl... " >&6; }
10754if ${ac_cv_lib_dl_dlopen+:} false; then :
10755  $as_echo_n "(cached) " >&6
10756else
10757  ac_check_lib_save_LIBS=$LIBS
10758LIBS="-ldl  $LIBS"
10759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760/* end confdefs.h.  */
10761
10762/* Override any GCC internal prototype to avoid an error.
10763   Use char because int might match the return type of a GCC
10764   builtin and then its argument prototype would still apply.  */
10765#ifdef __cplusplus
10766extern "C"
10767#endif
10768char dlopen ();
10769int
10770main ()
10771{
10772return dlopen ();
10773  ;
10774  return 0;
10775}
10776_ACEOF
10777if ac_fn_c_try_link "$LINENO"; then :
10778  ac_cv_lib_dl_dlopen=yes
10779else
10780  ac_cv_lib_dl_dlopen=no
10781fi
10782rm -f core conftest.err conftest.$ac_objext \
10783    conftest$ac_exeext conftest.$ac_ext
10784LIBS=$ac_check_lib_save_LIBS
10785fi
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10787$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10788if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10789  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10790else
10791
10792    lt_cv_dlopen="dyld"
10793    lt_cv_dlopen_libs=
10794    lt_cv_dlopen_self=yes
10795
10796fi
10797
10798    ;;
10799
10800  *)
10801    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10802if test "x$ac_cv_func_shl_load" = xyes; then :
10803  lt_cv_dlopen="shl_load"
10804else
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10806$as_echo_n "checking for shl_load in -ldld... " >&6; }
10807if ${ac_cv_lib_dld_shl_load+:} false; then :
10808  $as_echo_n "(cached) " >&6
10809else
10810  ac_check_lib_save_LIBS=$LIBS
10811LIBS="-ldld  $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h.  */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816   Use char because int might match the return type of a GCC
10817   builtin and then its argument prototype would still apply.  */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char shl_load ();
10822int
10823main ()
10824{
10825return shl_load ();
10826  ;
10827  return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831  ac_cv_lib_dld_shl_load=yes
10832else
10833  ac_cv_lib_dld_shl_load=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836    conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10840$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10841if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10842  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10843else
10844  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10845if test "x$ac_cv_func_dlopen" = xyes; then :
10846  lt_cv_dlopen="dlopen"
10847else
10848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849$as_echo_n "checking for dlopen in -ldl... " >&6; }
10850if ${ac_cv_lib_dl_dlopen+:} false; then :
10851  $as_echo_n "(cached) " >&6
10852else
10853  ac_check_lib_save_LIBS=$LIBS
10854LIBS="-ldl  $LIBS"
10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856/* end confdefs.h.  */
10857
10858/* Override any GCC internal prototype to avoid an error.
10859   Use char because int might match the return type of a GCC
10860   builtin and then its argument prototype would still apply.  */
10861#ifdef __cplusplus
10862extern "C"
10863#endif
10864char dlopen ();
10865int
10866main ()
10867{
10868return dlopen ();
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873if ac_fn_c_try_link "$LINENO"; then :
10874  ac_cv_lib_dl_dlopen=yes
10875else
10876  ac_cv_lib_dl_dlopen=no
10877fi
10878rm -f core conftest.err conftest.$ac_objext \
10879    conftest$ac_exeext conftest.$ac_ext
10880LIBS=$ac_check_lib_save_LIBS
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10885  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886else
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10888$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10889if ${ac_cv_lib_svld_dlopen+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  ac_check_lib_save_LIBS=$LIBS
10893LIBS="-lsvld  $LIBS"
10894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896
10897/* Override any GCC internal prototype to avoid an error.
10898   Use char because int might match the return type of a GCC
10899   builtin and then its argument prototype would still apply.  */
10900#ifdef __cplusplus
10901extern "C"
10902#endif
10903char dlopen ();
10904int
10905main ()
10906{
10907return dlopen ();
10908  ;
10909  return 0;
10910}
10911_ACEOF
10912if ac_fn_c_try_link "$LINENO"; then :
10913  ac_cv_lib_svld_dlopen=yes
10914else
10915  ac_cv_lib_svld_dlopen=no
10916fi
10917rm -f core conftest.err conftest.$ac_objext \
10918    conftest$ac_exeext conftest.$ac_ext
10919LIBS=$ac_check_lib_save_LIBS
10920fi
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10922$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10923if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10924  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10925else
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10927$as_echo_n "checking for dld_link in -ldld... " >&6; }
10928if ${ac_cv_lib_dld_dld_link+:} false; then :
10929  $as_echo_n "(cached) " >&6
10930else
10931  ac_check_lib_save_LIBS=$LIBS
10932LIBS="-ldld  $LIBS"
10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935
10936/* Override any GCC internal prototype to avoid an error.
10937   Use char because int might match the return type of a GCC
10938   builtin and then its argument prototype would still apply.  */
10939#ifdef __cplusplus
10940extern "C"
10941#endif
10942char dld_link ();
10943int
10944main ()
10945{
10946return dld_link ();
10947  ;
10948  return 0;
10949}
10950_ACEOF
10951if ac_fn_c_try_link "$LINENO"; then :
10952  ac_cv_lib_dld_dld_link=yes
10953else
10954  ac_cv_lib_dld_dld_link=no
10955fi
10956rm -f core conftest.err conftest.$ac_objext \
10957    conftest$ac_exeext conftest.$ac_ext
10958LIBS=$ac_check_lib_save_LIBS
10959fi
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10961$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10962if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10963  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10964fi
10965
10966
10967fi
10968
10969
10970fi
10971
10972
10973fi
10974
10975
10976fi
10977
10978
10979fi
10980
10981    ;;
10982  esac
10983
10984  if test "x$lt_cv_dlopen" != xno; then
10985    enable_dlopen=yes
10986  else
10987    enable_dlopen=no
10988  fi
10989
10990  case $lt_cv_dlopen in
10991  dlopen)
10992    save_CPPFLAGS="$CPPFLAGS"
10993    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10994
10995    save_LDFLAGS="$LDFLAGS"
10996    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10997
10998    save_LIBS="$LIBS"
10999    LIBS="$lt_cv_dlopen_libs $LIBS"
11000
11001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11002$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11003if ${lt_cv_dlopen_self+:} false; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  	  if test "$cross_compiling" = yes; then :
11007  lt_cv_dlopen_self=cross
11008else
11009  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11010  lt_status=$lt_dlunknown
11011  cat > conftest.$ac_ext <<_LT_EOF
11012#line $LINENO "configure"
11013#include "confdefs.h"
11014
11015#if HAVE_DLFCN_H
11016#include <dlfcn.h>
11017#endif
11018
11019#include <stdio.h>
11020
11021#ifdef RTLD_GLOBAL
11022#  define LT_DLGLOBAL		RTLD_GLOBAL
11023#else
11024#  ifdef DL_GLOBAL
11025#    define LT_DLGLOBAL		DL_GLOBAL
11026#  else
11027#    define LT_DLGLOBAL		0
11028#  endif
11029#endif
11030
11031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11032   find out it does not work in some platform. */
11033#ifndef LT_DLLAZY_OR_NOW
11034#  ifdef RTLD_LAZY
11035#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11036#  else
11037#    ifdef DL_LAZY
11038#      define LT_DLLAZY_OR_NOW		DL_LAZY
11039#    else
11040#      ifdef RTLD_NOW
11041#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11042#      else
11043#        ifdef DL_NOW
11044#          define LT_DLLAZY_OR_NOW	DL_NOW
11045#        else
11046#          define LT_DLLAZY_OR_NOW	0
11047#        endif
11048#      endif
11049#    endif
11050#  endif
11051#endif
11052
11053/* When -fvisbility=hidden is used, assume the code has been annotated
11054   correspondingly for the symbols needed.  */
11055#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11056int fnord () __attribute__((visibility("default")));
11057#endif
11058
11059int fnord () { return 42; }
11060int main ()
11061{
11062  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11063  int status = $lt_dlunknown;
11064
11065  if (self)
11066    {
11067      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11068      else
11069        {
11070	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11071          else puts (dlerror ());
11072	}
11073      /* dlclose (self); */
11074    }
11075  else
11076    puts (dlerror ());
11077
11078  return status;
11079}
11080_LT_EOF
11081  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11082  (eval $ac_link) 2>&5
11083  ac_status=$?
11084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11085  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11086    (./conftest; exit; ) >&5 2>/dev/null
11087    lt_status=$?
11088    case x$lt_status in
11089      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11090      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11091      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11092    esac
11093  else :
11094    # compilation failed
11095    lt_cv_dlopen_self=no
11096  fi
11097fi
11098rm -fr conftest*
11099
11100
11101fi
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11103$as_echo "$lt_cv_dlopen_self" >&6; }
11104
11105    if test "x$lt_cv_dlopen_self" = xyes; then
11106      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11107      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11108$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11109if ${lt_cv_dlopen_self_static+:} false; then :
11110  $as_echo_n "(cached) " >&6
11111else
11112  	  if test "$cross_compiling" = yes; then :
11113  lt_cv_dlopen_self_static=cross
11114else
11115  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116  lt_status=$lt_dlunknown
11117  cat > conftest.$ac_ext <<_LT_EOF
11118#line $LINENO "configure"
11119#include "confdefs.h"
11120
11121#if HAVE_DLFCN_H
11122#include <dlfcn.h>
11123#endif
11124
11125#include <stdio.h>
11126
11127#ifdef RTLD_GLOBAL
11128#  define LT_DLGLOBAL		RTLD_GLOBAL
11129#else
11130#  ifdef DL_GLOBAL
11131#    define LT_DLGLOBAL		DL_GLOBAL
11132#  else
11133#    define LT_DLGLOBAL		0
11134#  endif
11135#endif
11136
11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138   find out it does not work in some platform. */
11139#ifndef LT_DLLAZY_OR_NOW
11140#  ifdef RTLD_LAZY
11141#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11142#  else
11143#    ifdef DL_LAZY
11144#      define LT_DLLAZY_OR_NOW		DL_LAZY
11145#    else
11146#      ifdef RTLD_NOW
11147#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11148#      else
11149#        ifdef DL_NOW
11150#          define LT_DLLAZY_OR_NOW	DL_NOW
11151#        else
11152#          define LT_DLLAZY_OR_NOW	0
11153#        endif
11154#      endif
11155#    endif
11156#  endif
11157#endif
11158
11159/* When -fvisbility=hidden is used, assume the code has been annotated
11160   correspondingly for the symbols needed.  */
11161#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11162int fnord () __attribute__((visibility("default")));
11163#endif
11164
11165int fnord () { return 42; }
11166int main ()
11167{
11168  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11169  int status = $lt_dlunknown;
11170
11171  if (self)
11172    {
11173      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11174      else
11175        {
11176	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11177          else puts (dlerror ());
11178	}
11179      /* dlclose (self); */
11180    }
11181  else
11182    puts (dlerror ());
11183
11184  return status;
11185}
11186_LT_EOF
11187  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11188  (eval $ac_link) 2>&5
11189  ac_status=$?
11190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11192    (./conftest; exit; ) >&5 2>/dev/null
11193    lt_status=$?
11194    case x$lt_status in
11195      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11196      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11197      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11198    esac
11199  else :
11200    # compilation failed
11201    lt_cv_dlopen_self_static=no
11202  fi
11203fi
11204rm -fr conftest*
11205
11206
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11209$as_echo "$lt_cv_dlopen_self_static" >&6; }
11210    fi
11211
11212    CPPFLAGS="$save_CPPFLAGS"
11213    LDFLAGS="$save_LDFLAGS"
11214    LIBS="$save_LIBS"
11215    ;;
11216  esac
11217
11218  case $lt_cv_dlopen_self in
11219  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11220  *) enable_dlopen_self=unknown ;;
11221  esac
11222
11223  case $lt_cv_dlopen_self_static in
11224  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11225  *) enable_dlopen_self_static=unknown ;;
11226  esac
11227fi
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245striplib=
11246old_striplib=
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11248$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11249if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11250  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11251  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253$as_echo "yes" >&6; }
11254else
11255# FIXME - insert some real tests, host_os isn't really good enough
11256  case $host_os in
11257  darwin*)
11258    if test -n "$STRIP" ; then
11259      striplib="$STRIP -x"
11260      old_striplib="$STRIP -S"
11261      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262$as_echo "yes" >&6; }
11263    else
11264      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266    fi
11267    ;;
11268  *)
11269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270$as_echo "no" >&6; }
11271    ;;
11272  esac
11273fi
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286  # Report which library types will actually be built
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11288$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11290$as_echo "$can_build_shared" >&6; }
11291
11292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11293$as_echo_n "checking whether to build shared libraries... " >&6; }
11294  test "$can_build_shared" = "no" && enable_shared=no
11295
11296  # On AIX, shared libraries and static libraries use the same namespace, and
11297  # are all built from PIC.
11298  case $host_os in
11299  aix3*)
11300    test "$enable_shared" = yes && enable_static=no
11301    if test -n "$RANLIB"; then
11302      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11303      postinstall_cmds='$RANLIB $lib'
11304    fi
11305    ;;
11306
11307  aix[4-9]*)
11308    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11309      test "$enable_shared" = yes && enable_static=no
11310    fi
11311    ;;
11312  esac
11313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11314$as_echo "$enable_shared" >&6; }
11315
11316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11317$as_echo_n "checking whether to build static libraries... " >&6; }
11318  # Make sure either enable_shared or enable_static is yes.
11319  test "$enable_shared" = yes || enable_static=yes
11320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11321$as_echo "$enable_static" >&6; }
11322
11323
11324
11325
11326fi
11327ac_ext=c
11328ac_cpp='$CPP $CPPFLAGS'
11329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11331ac_compiler_gnu=$ac_cv_c_compiler_gnu
11332
11333CC="$lt_save_CC"
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349        ac_config_commands="$ac_config_commands libtool"
11350
11351
11352
11353
11354# Only expand once:
11355
11356
11357
11358# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11371$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11372if ${ac_cv_prog_cc_c99+:} false; then :
11373  $as_echo_n "(cached) " >&6
11374else
11375  ac_cv_prog_cc_c99=no
11376ac_save_CC=$CC
11377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378/* end confdefs.h.  */
11379#include <stdarg.h>
11380#include <stdbool.h>
11381#include <stdlib.h>
11382#include <wchar.h>
11383#include <stdio.h>
11384
11385// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11386#define debug(...) fprintf (stderr, __VA_ARGS__)
11387#define showlist(...) puts (#__VA_ARGS__)
11388#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11389static void
11390test_varargs_macros (void)
11391{
11392  int x = 1234;
11393  int y = 5678;
11394  debug ("Flag");
11395  debug ("X = %d\n", x);
11396  showlist (The first, second, and third items.);
11397  report (x>y, "x is %d but y is %d", x, y);
11398}
11399
11400// Check long long types.
11401#define BIG64 18446744073709551615ull
11402#define BIG32 4294967295ul
11403#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11404#if !BIG_OK
11405  your preprocessor is broken;
11406#endif
11407#if BIG_OK
11408#else
11409  your preprocessor is broken;
11410#endif
11411static long long int bignum = -9223372036854775807LL;
11412static unsigned long long int ubignum = BIG64;
11413
11414struct incomplete_array
11415{
11416  int datasize;
11417  double data[];
11418};
11419
11420struct named_init {
11421  int number;
11422  const wchar_t *name;
11423  double average;
11424};
11425
11426typedef const char *ccp;
11427
11428static inline int
11429test_restrict (ccp restrict text)
11430{
11431  // See if C++-style comments work.
11432  // Iterate through items via the restricted pointer.
11433  // Also check for declarations in for loops.
11434  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11435    continue;
11436  return 0;
11437}
11438
11439// Check varargs and va_copy.
11440static void
11441test_varargs (const char *format, ...)
11442{
11443  va_list args;
11444  va_start (args, format);
11445  va_list args_copy;
11446  va_copy (args_copy, args);
11447
11448  const char *str;
11449  int number;
11450  float fnumber;
11451
11452  while (*format)
11453    {
11454      switch (*format++)
11455	{
11456	case 's': // string
11457	  str = va_arg (args_copy, const char *);
11458	  break;
11459	case 'd': // int
11460	  number = va_arg (args_copy, int);
11461	  break;
11462	case 'f': // float
11463	  fnumber = va_arg (args_copy, double);
11464	  break;
11465	default:
11466	  break;
11467	}
11468    }
11469  va_end (args_copy);
11470  va_end (args);
11471}
11472
11473int
11474main ()
11475{
11476
11477  // Check bool.
11478  _Bool success = false;
11479
11480  // Check restrict.
11481  if (test_restrict ("String literal") == 0)
11482    success = true;
11483  char *restrict newvar = "Another string";
11484
11485  // Check varargs.
11486  test_varargs ("s, d' f .", "string", 65, 34.234);
11487  test_varargs_macros ();
11488
11489  // Check flexible array members.
11490  struct incomplete_array *ia =
11491    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11492  ia->datasize = 10;
11493  for (int i = 0; i < ia->datasize; ++i)
11494    ia->data[i] = i * 1.234;
11495
11496  // Check named initializers.
11497  struct named_init ni = {
11498    .number = 34,
11499    .name = L"Test wide string",
11500    .average = 543.34343,
11501  };
11502
11503  ni.number = 58;
11504
11505  int dynamic_array[ni.number];
11506  dynamic_array[ni.number - 1] = 543;
11507
11508  // work around unused variable warnings
11509  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11510	  || dynamic_array[ni.number - 1] != 543);
11511
11512  ;
11513  return 0;
11514}
11515_ACEOF
11516for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11517do
11518  CC="$ac_save_CC $ac_arg"
11519  if ac_fn_c_try_compile "$LINENO"; then :
11520  ac_cv_prog_cc_c99=$ac_arg
11521fi
11522rm -f core conftest.err conftest.$ac_objext
11523  test "x$ac_cv_prog_cc_c99" != "xno" && break
11524done
11525rm -f conftest.$ac_ext
11526CC=$ac_save_CC
11527
11528fi
11529# AC_CACHE_VAL
11530case "x$ac_cv_prog_cc_c99" in
11531  x)
11532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11533$as_echo "none needed" >&6; } ;;
11534  xno)
11535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11536$as_echo "unsupported" >&6; } ;;
11537  *)
11538    CC="$CC $ac_cv_prog_cc_c99"
11539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11540$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11541esac
11542if test "x$ac_cv_prog_cc_c99" != xno; then :
11543
11544fi
11545
11546
11547
11548
11549
11550
11551ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11552if test "x$ac_cv_have_decl___clang__" = xyes; then :
11553  CLANGCC="yes"
11554else
11555  CLANGCC="no"
11556fi
11557
11558ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11559if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11560  INTELCC="yes"
11561else
11562  INTELCC="no"
11563fi
11564
11565ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11566if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11567  SUNCC="yes"
11568else
11569  SUNCC="no"
11570fi
11571
11572
11573
11574
11575
11576
11577
11578
11579if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11580	if test -n "$ac_tool_prefix"; then
11581  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11582set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if ${ac_cv_path_PKG_CONFIG+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  case $PKG_CONFIG in
11589  [\\/]* | ?:[\\/]*)
11590  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11591  ;;
11592  *)
11593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594for as_dir in $PATH
11595do
11596  IFS=$as_save_IFS
11597  test -z "$as_dir" && as_dir=.
11598    for ac_exec_ext in '' $ac_executable_extensions; do
11599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602    break 2
11603  fi
11604done
11605  done
11606IFS=$as_save_IFS
11607
11608  ;;
11609esac
11610fi
11611PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11612if test -n "$PKG_CONFIG"; then
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11614$as_echo "$PKG_CONFIG" >&6; }
11615else
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618fi
11619
11620
11621fi
11622if test -z "$ac_cv_path_PKG_CONFIG"; then
11623  ac_pt_PKG_CONFIG=$PKG_CONFIG
11624  # Extract the first word of "pkg-config", so it can be a program name with args.
11625set dummy pkg-config; ac_word=$2
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
11628if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  case $ac_pt_PKG_CONFIG in
11632  [\\/]* | ?:[\\/]*)
11633  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11634  ;;
11635  *)
11636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639  IFS=$as_save_IFS
11640  test -z "$as_dir" && as_dir=.
11641    for ac_exec_ext in '' $ac_executable_extensions; do
11642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645    break 2
11646  fi
11647done
11648  done
11649IFS=$as_save_IFS
11650
11651  ;;
11652esac
11653fi
11654ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11655if test -n "$ac_pt_PKG_CONFIG"; then
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11657$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11658else
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
11661fi
11662
11663  if test "x$ac_pt_PKG_CONFIG" = x; then
11664    PKG_CONFIG=""
11665  else
11666    case $cross_compiling:$ac_tool_warned in
11667yes:)
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11670ac_tool_warned=yes ;;
11671esac
11672    PKG_CONFIG=$ac_pt_PKG_CONFIG
11673  fi
11674else
11675  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11676fi
11677
11678fi
11679if test -n "$PKG_CONFIG"; then
11680	_pkg_min_version=0.9.0
11681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11682$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11683	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685$as_echo "yes" >&6; }
11686	else
11687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
11689		PKG_CONFIG=""
11690	fi
11691fi
11692
11693
11694
11695
11696
11697# Check whether --enable-selective-werror was given.
11698if test "${enable_selective_werror+set}" = set; then :
11699  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11700else
11701  SELECTIVE_WERROR=yes
11702fi
11703
11704
11705
11706
11707
11708# -v is too short to test reliably with XORG_TESTSET_CFLAG
11709if test "x$SUNCC" = "xyes"; then
11710    BASE_CFLAGS="-v"
11711else
11712    BASE_CFLAGS=""
11713fi
11714
11715# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729xorg_testset_save_CFLAGS="$CFLAGS"
11730
11731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739/* end confdefs.h.  */
11740int i;
11741_ACEOF
11742if ac_fn_c_try_compile "$LINENO"; then :
11743  xorg_cv_cc_flag_unknown_warning_option=yes
11744else
11745  xorg_cv_cc_flag_unknown_warning_option=no
11746fi
11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748fi
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11752	CFLAGS="$xorg_testset_save_CFLAGS"
11753fi
11754
11755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11758	fi
11759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11763  $as_echo_n "(cached) " >&6
11764else
11765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766/* end confdefs.h.  */
11767int i;
11768_ACEOF
11769if ac_fn_c_try_compile "$LINENO"; then :
11770  xorg_cv_cc_flag_unused_command_line_argument=yes
11771else
11772  xorg_cv_cc_flag_unused_command_line_argument=no
11773fi
11774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11779	CFLAGS="$xorg_testset_save_CFLAGS"
11780fi
11781
11782found="no"
11783
11784	if test $found = "no" ; then
11785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11787		fi
11788
11789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11791		fi
11792
11793		CFLAGS="$CFLAGS -Wall"
11794
11795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11796$as_echo_n "checking if $CC supports -Wall... " >&6; }
11797		cacheid=xorg_cv_cc_flag__Wall
11798		if eval \${$cacheid+:} false; then :
11799  $as_echo_n "(cached) " >&6
11800else
11801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h.  */
11803int i;
11804int
11805main ()
11806{
11807
11808  ;
11809  return 0;
11810}
11811_ACEOF
11812if ac_fn_c_try_link "$LINENO"; then :
11813  eval $cacheid=yes
11814else
11815  eval $cacheid=no
11816fi
11817rm -f core conftest.err conftest.$ac_objext \
11818    conftest$ac_exeext conftest.$ac_ext
11819fi
11820
11821
11822		CFLAGS="$xorg_testset_save_CFLAGS"
11823
11824		eval supported=\$$cacheid
11825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11826$as_echo "$supported" >&6; }
11827		if test "$supported" = "yes" ; then
11828			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11829			found="yes"
11830		fi
11831	fi
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847xorg_testset_save_CFLAGS="$CFLAGS"
11848
11849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858int i;
11859_ACEOF
11860if ac_fn_c_try_compile "$LINENO"; then :
11861  xorg_cv_cc_flag_unknown_warning_option=yes
11862else
11863  xorg_cv_cc_flag_unknown_warning_option=no
11864fi
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866fi
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11870	CFLAGS="$xorg_testset_save_CFLAGS"
11871fi
11872
11873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11876	fi
11877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h.  */
11885int i;
11886_ACEOF
11887if ac_fn_c_try_compile "$LINENO"; then :
11888  xorg_cv_cc_flag_unused_command_line_argument=yes
11889else
11890  xorg_cv_cc_flag_unused_command_line_argument=no
11891fi
11892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893fi
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11897	CFLAGS="$xorg_testset_save_CFLAGS"
11898fi
11899
11900found="no"
11901
11902	if test $found = "no" ; then
11903		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11905		fi
11906
11907		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11909		fi
11910
11911		CFLAGS="$CFLAGS -Wpointer-arith"
11912
11913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11914$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11915		cacheid=xorg_cv_cc_flag__Wpointer_arith
11916		if eval \${$cacheid+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h.  */
11921int i;
11922int
11923main ()
11924{
11925
11926  ;
11927  return 0;
11928}
11929_ACEOF
11930if ac_fn_c_try_link "$LINENO"; then :
11931  eval $cacheid=yes
11932else
11933  eval $cacheid=no
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936    conftest$ac_exeext conftest.$ac_ext
11937fi
11938
11939
11940		CFLAGS="$xorg_testset_save_CFLAGS"
11941
11942		eval supported=\$$cacheid
11943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11944$as_echo "$supported" >&6; }
11945		if test "$supported" = "yes" ; then
11946			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11947			found="yes"
11948		fi
11949	fi
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965xorg_testset_save_CFLAGS="$CFLAGS"
11966
11967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976int i;
11977_ACEOF
11978if ac_fn_c_try_compile "$LINENO"; then :
11979  xorg_cv_cc_flag_unknown_warning_option=yes
11980else
11981  xorg_cv_cc_flag_unknown_warning_option=no
11982fi
11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984fi
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11988	CFLAGS="$xorg_testset_save_CFLAGS"
11989fi
11990
11991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11994	fi
11995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11999  $as_echo_n "(cached) " >&6
12000else
12001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h.  */
12003int i;
12004_ACEOF
12005if ac_fn_c_try_compile "$LINENO"; then :
12006  xorg_cv_cc_flag_unused_command_line_argument=yes
12007else
12008  xorg_cv_cc_flag_unused_command_line_argument=no
12009fi
12010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011fi
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12015	CFLAGS="$xorg_testset_save_CFLAGS"
12016fi
12017
12018found="no"
12019
12020	if test $found = "no" ; then
12021		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12023		fi
12024
12025		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12027		fi
12028
12029		CFLAGS="$CFLAGS -Wmissing-declarations"
12030
12031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12032$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12033		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12034		if eval \${$cacheid+:} false; then :
12035  $as_echo_n "(cached) " >&6
12036else
12037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038/* end confdefs.h.  */
12039int i;
12040int
12041main ()
12042{
12043
12044  ;
12045  return 0;
12046}
12047_ACEOF
12048if ac_fn_c_try_link "$LINENO"; then :
12049  eval $cacheid=yes
12050else
12051  eval $cacheid=no
12052fi
12053rm -f core conftest.err conftest.$ac_objext \
12054    conftest$ac_exeext conftest.$ac_ext
12055fi
12056
12057
12058		CFLAGS="$xorg_testset_save_CFLAGS"
12059
12060		eval supported=\$$cacheid
12061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12062$as_echo "$supported" >&6; }
12063		if test "$supported" = "yes" ; then
12064			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12065			found="yes"
12066		fi
12067	fi
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083xorg_testset_save_CFLAGS="$CFLAGS"
12084
12085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093/* end confdefs.h.  */
12094int i;
12095_ACEOF
12096if ac_fn_c_try_compile "$LINENO"; then :
12097  xorg_cv_cc_flag_unknown_warning_option=yes
12098else
12099  xorg_cv_cc_flag_unknown_warning_option=no
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102fi
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12106	CFLAGS="$xorg_testset_save_CFLAGS"
12107fi
12108
12109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12112	fi
12113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12117  $as_echo_n "(cached) " >&6
12118else
12119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h.  */
12121int i;
12122_ACEOF
12123if ac_fn_c_try_compile "$LINENO"; then :
12124  xorg_cv_cc_flag_unused_command_line_argument=yes
12125else
12126  xorg_cv_cc_flag_unused_command_line_argument=no
12127fi
12128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129fi
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12133	CFLAGS="$xorg_testset_save_CFLAGS"
12134fi
12135
12136found="no"
12137
12138	if test $found = "no" ; then
12139		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12141		fi
12142
12143		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12145		fi
12146
12147		CFLAGS="$CFLAGS -Wformat=2"
12148
12149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12150$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12151		cacheid=xorg_cv_cc_flag__Wformat_2
12152		if eval \${$cacheid+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h.  */
12157int i;
12158int
12159main ()
12160{
12161
12162  ;
12163  return 0;
12164}
12165_ACEOF
12166if ac_fn_c_try_link "$LINENO"; then :
12167  eval $cacheid=yes
12168else
12169  eval $cacheid=no
12170fi
12171rm -f core conftest.err conftest.$ac_objext \
12172    conftest$ac_exeext conftest.$ac_ext
12173fi
12174
12175
12176		CFLAGS="$xorg_testset_save_CFLAGS"
12177
12178		eval supported=\$$cacheid
12179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12180$as_echo "$supported" >&6; }
12181		if test "$supported" = "yes" ; then
12182			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12183			found="yes"
12184		fi
12185	fi
12186
12187	if test $found = "no" ; then
12188		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12190		fi
12191
12192		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12194		fi
12195
12196		CFLAGS="$CFLAGS -Wformat"
12197
12198		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12199$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12200		cacheid=xorg_cv_cc_flag__Wformat
12201		if eval \${$cacheid+:} false; then :
12202  $as_echo_n "(cached) " >&6
12203else
12204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h.  */
12206int i;
12207int
12208main ()
12209{
12210
12211  ;
12212  return 0;
12213}
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"; then :
12216  eval $cacheid=yes
12217else
12218  eval $cacheid=no
12219fi
12220rm -f core conftest.err conftest.$ac_objext \
12221    conftest$ac_exeext conftest.$ac_ext
12222fi
12223
12224
12225		CFLAGS="$xorg_testset_save_CFLAGS"
12226
12227		eval supported=\$$cacheid
12228		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12229$as_echo "$supported" >&6; }
12230		if test "$supported" = "yes" ; then
12231			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12232			found="yes"
12233		fi
12234	fi
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252xorg_testset_save_CFLAGS="$CFLAGS"
12253
12254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12259  $as_echo_n "(cached) " >&6
12260else
12261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262/* end confdefs.h.  */
12263int i;
12264_ACEOF
12265if ac_fn_c_try_compile "$LINENO"; then :
12266  xorg_cv_cc_flag_unknown_warning_option=yes
12267else
12268  xorg_cv_cc_flag_unknown_warning_option=no
12269fi
12270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271fi
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12275	CFLAGS="$xorg_testset_save_CFLAGS"
12276fi
12277
12278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12281	fi
12282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12286  $as_echo_n "(cached) " >&6
12287else
12288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290int i;
12291_ACEOF
12292if ac_fn_c_try_compile "$LINENO"; then :
12293  xorg_cv_cc_flag_unused_command_line_argument=yes
12294else
12295  xorg_cv_cc_flag_unused_command_line_argument=no
12296fi
12297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12302	CFLAGS="$xorg_testset_save_CFLAGS"
12303fi
12304
12305found="no"
12306
12307	if test $found = "no" ; then
12308		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12310		fi
12311
12312		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12314		fi
12315
12316		CFLAGS="$CFLAGS -Wstrict-prototypes"
12317
12318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12319$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12320		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12321		if eval \${$cacheid+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325/* end confdefs.h.  */
12326int i;
12327int
12328main ()
12329{
12330
12331  ;
12332  return 0;
12333}
12334_ACEOF
12335if ac_fn_c_try_link "$LINENO"; then :
12336  eval $cacheid=yes
12337else
12338  eval $cacheid=no
12339fi
12340rm -f core conftest.err conftest.$ac_objext \
12341    conftest$ac_exeext conftest.$ac_ext
12342fi
12343
12344
12345		CFLAGS="$xorg_testset_save_CFLAGS"
12346
12347		eval supported=\$$cacheid
12348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12349$as_echo "$supported" >&6; }
12350		if test "$supported" = "yes" ; then
12351			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12352			found="yes"
12353		fi
12354	fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370xorg_testset_save_CFLAGS="$CFLAGS"
12371
12372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12377  $as_echo_n "(cached) " >&6
12378else
12379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380/* end confdefs.h.  */
12381int i;
12382_ACEOF
12383if ac_fn_c_try_compile "$LINENO"; then :
12384  xorg_cv_cc_flag_unknown_warning_option=yes
12385else
12386  xorg_cv_cc_flag_unknown_warning_option=no
12387fi
12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12393	CFLAGS="$xorg_testset_save_CFLAGS"
12394fi
12395
12396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12399	fi
12400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12404  $as_echo_n "(cached) " >&6
12405else
12406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h.  */
12408int i;
12409_ACEOF
12410if ac_fn_c_try_compile "$LINENO"; then :
12411  xorg_cv_cc_flag_unused_command_line_argument=yes
12412else
12413  xorg_cv_cc_flag_unused_command_line_argument=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416fi
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12420	CFLAGS="$xorg_testset_save_CFLAGS"
12421fi
12422
12423found="no"
12424
12425	if test $found = "no" ; then
12426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12428		fi
12429
12430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12432		fi
12433
12434		CFLAGS="$CFLAGS -Wmissing-prototypes"
12435
12436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12437$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12438		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12439		if eval \${$cacheid+:} false; then :
12440  $as_echo_n "(cached) " >&6
12441else
12442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444int i;
12445int
12446main ()
12447{
12448
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_c_try_link "$LINENO"; then :
12454  eval $cacheid=yes
12455else
12456  eval $cacheid=no
12457fi
12458rm -f core conftest.err conftest.$ac_objext \
12459    conftest$ac_exeext conftest.$ac_ext
12460fi
12461
12462
12463		CFLAGS="$xorg_testset_save_CFLAGS"
12464
12465		eval supported=\$$cacheid
12466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12467$as_echo "$supported" >&6; }
12468		if test "$supported" = "yes" ; then
12469			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12470			found="yes"
12471		fi
12472	fi
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488xorg_testset_save_CFLAGS="$CFLAGS"
12489
12490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12495  $as_echo_n "(cached) " >&6
12496else
12497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498/* end confdefs.h.  */
12499int i;
12500_ACEOF
12501if ac_fn_c_try_compile "$LINENO"; then :
12502  xorg_cv_cc_flag_unknown_warning_option=yes
12503else
12504  xorg_cv_cc_flag_unknown_warning_option=no
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507fi
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12511	CFLAGS="$xorg_testset_save_CFLAGS"
12512fi
12513
12514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12517	fi
12518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12522  $as_echo_n "(cached) " >&6
12523else
12524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526int i;
12527_ACEOF
12528if ac_fn_c_try_compile "$LINENO"; then :
12529  xorg_cv_cc_flag_unused_command_line_argument=yes
12530else
12531  xorg_cv_cc_flag_unused_command_line_argument=no
12532fi
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12538	CFLAGS="$xorg_testset_save_CFLAGS"
12539fi
12540
12541found="no"
12542
12543	if test $found = "no" ; then
12544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12546		fi
12547
12548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12550		fi
12551
12552		CFLAGS="$CFLAGS -Wnested-externs"
12553
12554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12555$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12556		cacheid=xorg_cv_cc_flag__Wnested_externs
12557		if eval \${$cacheid+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562int i;
12563int
12564main ()
12565{
12566
12567  ;
12568  return 0;
12569}
12570_ACEOF
12571if ac_fn_c_try_link "$LINENO"; then :
12572  eval $cacheid=yes
12573else
12574  eval $cacheid=no
12575fi
12576rm -f core conftest.err conftest.$ac_objext \
12577    conftest$ac_exeext conftest.$ac_ext
12578fi
12579
12580
12581		CFLAGS="$xorg_testset_save_CFLAGS"
12582
12583		eval supported=\$$cacheid
12584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12585$as_echo "$supported" >&6; }
12586		if test "$supported" = "yes" ; then
12587			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12588			found="yes"
12589		fi
12590	fi
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606xorg_testset_save_CFLAGS="$CFLAGS"
12607
12608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12613  $as_echo_n "(cached) " >&6
12614else
12615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616/* end confdefs.h.  */
12617int i;
12618_ACEOF
12619if ac_fn_c_try_compile "$LINENO"; then :
12620  xorg_cv_cc_flag_unknown_warning_option=yes
12621else
12622  xorg_cv_cc_flag_unknown_warning_option=no
12623fi
12624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12629	CFLAGS="$xorg_testset_save_CFLAGS"
12630fi
12631
12632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12635	fi
12636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12640  $as_echo_n "(cached) " >&6
12641else
12642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h.  */
12644int i;
12645_ACEOF
12646if ac_fn_c_try_compile "$LINENO"; then :
12647  xorg_cv_cc_flag_unused_command_line_argument=yes
12648else
12649  xorg_cv_cc_flag_unused_command_line_argument=no
12650fi
12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652fi
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12656	CFLAGS="$xorg_testset_save_CFLAGS"
12657fi
12658
12659found="no"
12660
12661	if test $found = "no" ; then
12662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12664		fi
12665
12666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12668		fi
12669
12670		CFLAGS="$CFLAGS -Wbad-function-cast"
12671
12672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12673$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12674		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12675		if eval \${$cacheid+:} false; then :
12676  $as_echo_n "(cached) " >&6
12677else
12678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679/* end confdefs.h.  */
12680int i;
12681int
12682main ()
12683{
12684
12685  ;
12686  return 0;
12687}
12688_ACEOF
12689if ac_fn_c_try_link "$LINENO"; then :
12690  eval $cacheid=yes
12691else
12692  eval $cacheid=no
12693fi
12694rm -f core conftest.err conftest.$ac_objext \
12695    conftest$ac_exeext conftest.$ac_ext
12696fi
12697
12698
12699		CFLAGS="$xorg_testset_save_CFLAGS"
12700
12701		eval supported=\$$cacheid
12702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12703$as_echo "$supported" >&6; }
12704		if test "$supported" = "yes" ; then
12705			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12706			found="yes"
12707		fi
12708	fi
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724xorg_testset_save_CFLAGS="$CFLAGS"
12725
12726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12731  $as_echo_n "(cached) " >&6
12732else
12733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735int i;
12736_ACEOF
12737if ac_fn_c_try_compile "$LINENO"; then :
12738  xorg_cv_cc_flag_unknown_warning_option=yes
12739else
12740  xorg_cv_cc_flag_unknown_warning_option=no
12741fi
12742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743fi
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12747	CFLAGS="$xorg_testset_save_CFLAGS"
12748fi
12749
12750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12753	fi
12754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12758  $as_echo_n "(cached) " >&6
12759else
12760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761/* end confdefs.h.  */
12762int i;
12763_ACEOF
12764if ac_fn_c_try_compile "$LINENO"; then :
12765  xorg_cv_cc_flag_unused_command_line_argument=yes
12766else
12767  xorg_cv_cc_flag_unused_command_line_argument=no
12768fi
12769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12774	CFLAGS="$xorg_testset_save_CFLAGS"
12775fi
12776
12777found="no"
12778
12779	if test $found = "no" ; then
12780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12782		fi
12783
12784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12786		fi
12787
12788		CFLAGS="$CFLAGS -Wold-style-definition"
12789
12790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12791$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12792		cacheid=xorg_cv_cc_flag__Wold_style_definition
12793		if eval \${$cacheid+:} false; then :
12794  $as_echo_n "(cached) " >&6
12795else
12796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h.  */
12798int i;
12799int
12800main ()
12801{
12802
12803  ;
12804  return 0;
12805}
12806_ACEOF
12807if ac_fn_c_try_link "$LINENO"; then :
12808  eval $cacheid=yes
12809else
12810  eval $cacheid=no
12811fi
12812rm -f core conftest.err conftest.$ac_objext \
12813    conftest$ac_exeext conftest.$ac_ext
12814fi
12815
12816
12817		CFLAGS="$xorg_testset_save_CFLAGS"
12818
12819		eval supported=\$$cacheid
12820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12821$as_echo "$supported" >&6; }
12822		if test "$supported" = "yes" ; then
12823			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12824			found="yes"
12825		fi
12826	fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842xorg_testset_save_CFLAGS="$CFLAGS"
12843
12844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12849  $as_echo_n "(cached) " >&6
12850else
12851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852/* end confdefs.h.  */
12853int i;
12854_ACEOF
12855if ac_fn_c_try_compile "$LINENO"; then :
12856  xorg_cv_cc_flag_unknown_warning_option=yes
12857else
12858  xorg_cv_cc_flag_unknown_warning_option=no
12859fi
12860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861fi
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12865	CFLAGS="$xorg_testset_save_CFLAGS"
12866fi
12867
12868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871	fi
12872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12876  $as_echo_n "(cached) " >&6
12877else
12878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879/* end confdefs.h.  */
12880int i;
12881_ACEOF
12882if ac_fn_c_try_compile "$LINENO"; then :
12883  xorg_cv_cc_flag_unused_command_line_argument=yes
12884else
12885  xorg_cv_cc_flag_unused_command_line_argument=no
12886fi
12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888fi
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12892	CFLAGS="$xorg_testset_save_CFLAGS"
12893fi
12894
12895found="no"
12896
12897	if test $found = "no" ; then
12898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12900		fi
12901
12902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12904		fi
12905
12906		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12907
12908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12909$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12910		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12911		if eval \${$cacheid+:} false; then :
12912  $as_echo_n "(cached) " >&6
12913else
12914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916int i;
12917int
12918main ()
12919{
12920
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925if ac_fn_c_try_link "$LINENO"; then :
12926  eval $cacheid=yes
12927else
12928  eval $cacheid=no
12929fi
12930rm -f core conftest.err conftest.$ac_objext \
12931    conftest$ac_exeext conftest.$ac_ext
12932fi
12933
12934
12935		CFLAGS="$xorg_testset_save_CFLAGS"
12936
12937		eval supported=\$$cacheid
12938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12939$as_echo "$supported" >&6; }
12940		if test "$supported" = "yes" ; then
12941			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12942			found="yes"
12943		fi
12944	fi
12945
12946
12947
12948
12949
12950# This chunk adds additional warnings that could catch undesired effects.
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964xorg_testset_save_CFLAGS="$CFLAGS"
12965
12966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975int i;
12976_ACEOF
12977if ac_fn_c_try_compile "$LINENO"; then :
12978  xorg_cv_cc_flag_unknown_warning_option=yes
12979else
12980  xorg_cv_cc_flag_unknown_warning_option=no
12981fi
12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987	CFLAGS="$xorg_testset_save_CFLAGS"
12988fi
12989
12990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993	fi
12994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12998  $as_echo_n "(cached) " >&6
12999else
13000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001/* end confdefs.h.  */
13002int i;
13003_ACEOF
13004if ac_fn_c_try_compile "$LINENO"; then :
13005  xorg_cv_cc_flag_unused_command_line_argument=yes
13006else
13007  xorg_cv_cc_flag_unused_command_line_argument=no
13008fi
13009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010fi
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13014	CFLAGS="$xorg_testset_save_CFLAGS"
13015fi
13016
13017found="no"
13018
13019	if test $found = "no" ; then
13020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022		fi
13023
13024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026		fi
13027
13028		CFLAGS="$CFLAGS -Wunused"
13029
13030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13031$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13032		cacheid=xorg_cv_cc_flag__Wunused
13033		if eval \${$cacheid+:} false; then :
13034  $as_echo_n "(cached) " >&6
13035else
13036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037/* end confdefs.h.  */
13038int i;
13039int
13040main ()
13041{
13042
13043  ;
13044  return 0;
13045}
13046_ACEOF
13047if ac_fn_c_try_link "$LINENO"; then :
13048  eval $cacheid=yes
13049else
13050  eval $cacheid=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext \
13053    conftest$ac_exeext conftest.$ac_ext
13054fi
13055
13056
13057		CFLAGS="$xorg_testset_save_CFLAGS"
13058
13059		eval supported=\$$cacheid
13060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13061$as_echo "$supported" >&6; }
13062		if test "$supported" = "yes" ; then
13063			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13064			found="yes"
13065		fi
13066	fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092/* end confdefs.h.  */
13093int i;
13094_ACEOF
13095if ac_fn_c_try_compile "$LINENO"; then :
13096  xorg_cv_cc_flag_unknown_warning_option=yes
13097else
13098  xorg_cv_cc_flag_unknown_warning_option=no
13099fi
13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101fi
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105	CFLAGS="$xorg_testset_save_CFLAGS"
13106fi
13107
13108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111	fi
13112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h.  */
13120int i;
13121_ACEOF
13122if ac_fn_c_try_compile "$LINENO"; then :
13123  xorg_cv_cc_flag_unused_command_line_argument=yes
13124else
13125  xorg_cv_cc_flag_unused_command_line_argument=no
13126fi
13127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132	CFLAGS="$xorg_testset_save_CFLAGS"
13133fi
13134
13135found="no"
13136
13137	if test $found = "no" ; then
13138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140		fi
13141
13142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144		fi
13145
13146		CFLAGS="$CFLAGS -Wuninitialized"
13147
13148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13149$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13150		cacheid=xorg_cv_cc_flag__Wuninitialized
13151		if eval \${$cacheid+:} false; then :
13152  $as_echo_n "(cached) " >&6
13153else
13154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155/* end confdefs.h.  */
13156int i;
13157int
13158main ()
13159{
13160
13161  ;
13162  return 0;
13163}
13164_ACEOF
13165if ac_fn_c_try_link "$LINENO"; then :
13166  eval $cacheid=yes
13167else
13168  eval $cacheid=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext \
13171    conftest$ac_exeext conftest.$ac_ext
13172fi
13173
13174
13175		CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177		eval supported=\$$cacheid
13178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179$as_echo "$supported" >&6; }
13180		if test "$supported" = "yes" ; then
13181			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13182			found="yes"
13183		fi
13184	fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207  $as_echo_n "(cached) " >&6
13208else
13209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h.  */
13211int i;
13212_ACEOF
13213if ac_fn_c_try_compile "$LINENO"; then :
13214  xorg_cv_cc_flag_unknown_warning_option=yes
13215else
13216  xorg_cv_cc_flag_unknown_warning_option=no
13217fi
13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223	CFLAGS="$xorg_testset_save_CFLAGS"
13224fi
13225
13226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229	fi
13230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234  $as_echo_n "(cached) " >&6
13235else
13236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238int i;
13239_ACEOF
13240if ac_fn_c_try_compile "$LINENO"; then :
13241  xorg_cv_cc_flag_unused_command_line_argument=yes
13242else
13243  xorg_cv_cc_flag_unused_command_line_argument=no
13244fi
13245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246fi
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250	CFLAGS="$xorg_testset_save_CFLAGS"
13251fi
13252
13253found="no"
13254
13255	if test $found = "no" ; then
13256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258		fi
13259
13260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262		fi
13263
13264		CFLAGS="$CFLAGS -Wshadow"
13265
13266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13267$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13268		cacheid=xorg_cv_cc_flag__Wshadow
13269		if eval \${$cacheid+:} false; then :
13270  $as_echo_n "(cached) " >&6
13271else
13272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h.  */
13274int i;
13275int
13276main ()
13277{
13278
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283if ac_fn_c_try_link "$LINENO"; then :
13284  eval $cacheid=yes
13285else
13286  eval $cacheid=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext \
13289    conftest$ac_exeext conftest.$ac_ext
13290fi
13291
13292
13293		CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295		eval supported=\$$cacheid
13296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297$as_echo "$supported" >&6; }
13298		if test "$supported" = "yes" ; then
13299			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13300			found="yes"
13301		fi
13302	fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329int i;
13330_ACEOF
13331if ac_fn_c_try_compile "$LINENO"; then :
13332  xorg_cv_cc_flag_unknown_warning_option=yes
13333else
13334  xorg_cv_cc_flag_unknown_warning_option=no
13335fi
13336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337fi
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341	CFLAGS="$xorg_testset_save_CFLAGS"
13342fi
13343
13344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347	fi
13348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356int i;
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"; then :
13359  xorg_cv_cc_flag_unused_command_line_argument=yes
13360else
13361  xorg_cv_cc_flag_unused_command_line_argument=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368	CFLAGS="$xorg_testset_save_CFLAGS"
13369fi
13370
13371found="no"
13372
13373	if test $found = "no" ; then
13374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376		fi
13377
13378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380		fi
13381
13382		CFLAGS="$CFLAGS -Wcast-qual"
13383
13384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13385$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13386		cacheid=xorg_cv_cc_flag__Wcast_qual
13387		if eval \${$cacheid+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391/* end confdefs.h.  */
13392int i;
13393int
13394main ()
13395{
13396
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401if ac_fn_c_try_link "$LINENO"; then :
13402  eval $cacheid=yes
13403else
13404  eval $cacheid=no
13405fi
13406rm -f core conftest.err conftest.$ac_objext \
13407    conftest$ac_exeext conftest.$ac_ext
13408fi
13409
13410
13411		CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413		eval supported=\$$cacheid
13414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415$as_echo "$supported" >&6; }
13416		if test "$supported" = "yes" ; then
13417			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13418			found="yes"
13419		fi
13420	fi
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436xorg_testset_save_CFLAGS="$CFLAGS"
13437
13438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446/* end confdefs.h.  */
13447int i;
13448_ACEOF
13449if ac_fn_c_try_compile "$LINENO"; then :
13450  xorg_cv_cc_flag_unknown_warning_option=yes
13451else
13452  xorg_cv_cc_flag_unknown_warning_option=no
13453fi
13454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455fi
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13459	CFLAGS="$xorg_testset_save_CFLAGS"
13460fi
13461
13462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13465	fi
13466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474int i;
13475_ACEOF
13476if ac_fn_c_try_compile "$LINENO"; then :
13477  xorg_cv_cc_flag_unused_command_line_argument=yes
13478else
13479  xorg_cv_cc_flag_unused_command_line_argument=no
13480fi
13481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13486	CFLAGS="$xorg_testset_save_CFLAGS"
13487fi
13488
13489found="no"
13490
13491	if test $found = "no" ; then
13492		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13494		fi
13495
13496		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498		fi
13499
13500		CFLAGS="$CFLAGS -Wmissing-noreturn"
13501
13502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13503$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13504		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13505		if eval \${$cacheid+:} false; then :
13506  $as_echo_n "(cached) " >&6
13507else
13508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509/* end confdefs.h.  */
13510int i;
13511int
13512main ()
13513{
13514
13515  ;
13516  return 0;
13517}
13518_ACEOF
13519if ac_fn_c_try_link "$LINENO"; then :
13520  eval $cacheid=yes
13521else
13522  eval $cacheid=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext \
13525    conftest$ac_exeext conftest.$ac_ext
13526fi
13527
13528
13529		CFLAGS="$xorg_testset_save_CFLAGS"
13530
13531		eval supported=\$$cacheid
13532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13533$as_echo "$supported" >&6; }
13534		if test "$supported" = "yes" ; then
13535			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13536			found="yes"
13537		fi
13538	fi
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554xorg_testset_save_CFLAGS="$CFLAGS"
13555
13556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13561  $as_echo_n "(cached) " >&6
13562else
13563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564/* end confdefs.h.  */
13565int i;
13566_ACEOF
13567if ac_fn_c_try_compile "$LINENO"; then :
13568  xorg_cv_cc_flag_unknown_warning_option=yes
13569else
13570  xorg_cv_cc_flag_unknown_warning_option=no
13571fi
13572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13577	CFLAGS="$xorg_testset_save_CFLAGS"
13578fi
13579
13580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13583	fi
13584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592int i;
13593_ACEOF
13594if ac_fn_c_try_compile "$LINENO"; then :
13595  xorg_cv_cc_flag_unused_command_line_argument=yes
13596else
13597  xorg_cv_cc_flag_unused_command_line_argument=no
13598fi
13599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600fi
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13604	CFLAGS="$xorg_testset_save_CFLAGS"
13605fi
13606
13607found="no"
13608
13609	if test $found = "no" ; then
13610		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612		fi
13613
13614		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13616		fi
13617
13618		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13619
13620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13621$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13622		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13623		if eval \${$cacheid+:} false; then :
13624  $as_echo_n "(cached) " >&6
13625else
13626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627/* end confdefs.h.  */
13628int i;
13629int
13630main ()
13631{
13632
13633  ;
13634  return 0;
13635}
13636_ACEOF
13637if ac_fn_c_try_link "$LINENO"; then :
13638  eval $cacheid=yes
13639else
13640  eval $cacheid=no
13641fi
13642rm -f core conftest.err conftest.$ac_objext \
13643    conftest$ac_exeext conftest.$ac_ext
13644fi
13645
13646
13647		CFLAGS="$xorg_testset_save_CFLAGS"
13648
13649		eval supported=\$$cacheid
13650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13651$as_echo "$supported" >&6; }
13652		if test "$supported" = "yes" ; then
13653			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13654			found="yes"
13655		fi
13656	fi
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672xorg_testset_save_CFLAGS="$CFLAGS"
13673
13674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13679  $as_echo_n "(cached) " >&6
13680else
13681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h.  */
13683int i;
13684_ACEOF
13685if ac_fn_c_try_compile "$LINENO"; then :
13686  xorg_cv_cc_flag_unknown_warning_option=yes
13687else
13688  xorg_cv_cc_flag_unknown_warning_option=no
13689fi
13690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691fi
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13695	CFLAGS="$xorg_testset_save_CFLAGS"
13696fi
13697
13698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13701	fi
13702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13706  $as_echo_n "(cached) " >&6
13707else
13708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709/* end confdefs.h.  */
13710int i;
13711_ACEOF
13712if ac_fn_c_try_compile "$LINENO"; then :
13713  xorg_cv_cc_flag_unused_command_line_argument=yes
13714else
13715  xorg_cv_cc_flag_unused_command_line_argument=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718fi
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13722	CFLAGS="$xorg_testset_save_CFLAGS"
13723fi
13724
13725found="no"
13726
13727	if test $found = "no" ; then
13728		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13730		fi
13731
13732		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734		fi
13735
13736		CFLAGS="$CFLAGS -Wredundant-decls"
13737
13738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13739$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13740		cacheid=xorg_cv_cc_flag__Wredundant_decls
13741		if eval \${$cacheid+:} false; then :
13742  $as_echo_n "(cached) " >&6
13743else
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h.  */
13746int i;
13747int
13748main ()
13749{
13750
13751  ;
13752  return 0;
13753}
13754_ACEOF
13755if ac_fn_c_try_link "$LINENO"; then :
13756  eval $cacheid=yes
13757else
13758  eval $cacheid=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext \
13761    conftest$ac_exeext conftest.$ac_ext
13762fi
13763
13764
13765		CFLAGS="$xorg_testset_save_CFLAGS"
13766
13767		eval supported=\$$cacheid
13768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13769$as_echo "$supported" >&6; }
13770		if test "$supported" = "yes" ; then
13771			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13772			found="yes"
13773		fi
13774	fi
13775
13776
13777
13778# These are currently disabled because they are noisy.  They will be enabled
13779# in the future once the codebase is sufficiently modernized to silence
13780# them.  For now, I don't want them to drown out the other warnings.
13781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13782# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13783# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13784
13785# Turn some warnings into errors, so we don't accidently get successful builds
13786# when there are problems that should be fixed.
13787
13788if test "x$SELECTIVE_WERROR" = "xyes" ; then
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802xorg_testset_save_CFLAGS="$CFLAGS"
13803
13804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813int i;
13814_ACEOF
13815if ac_fn_c_try_compile "$LINENO"; then :
13816  xorg_cv_cc_flag_unknown_warning_option=yes
13817else
13818  xorg_cv_cc_flag_unknown_warning_option=no
13819fi
13820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821fi
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13825	CFLAGS="$xorg_testset_save_CFLAGS"
13826fi
13827
13828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13831	fi
13832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839/* end confdefs.h.  */
13840int i;
13841_ACEOF
13842if ac_fn_c_try_compile "$LINENO"; then :
13843  xorg_cv_cc_flag_unused_command_line_argument=yes
13844else
13845  xorg_cv_cc_flag_unused_command_line_argument=no
13846fi
13847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848fi
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13852	CFLAGS="$xorg_testset_save_CFLAGS"
13853fi
13854
13855found="no"
13856
13857	if test $found = "no" ; then
13858		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13860		fi
13861
13862		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13864		fi
13865
13866		CFLAGS="$CFLAGS -Werror=implicit"
13867
13868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13869$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13870		cacheid=xorg_cv_cc_flag__Werror_implicit
13871		if eval \${$cacheid+:} false; then :
13872  $as_echo_n "(cached) " >&6
13873else
13874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875/* end confdefs.h.  */
13876int i;
13877int
13878main ()
13879{
13880
13881  ;
13882  return 0;
13883}
13884_ACEOF
13885if ac_fn_c_try_link "$LINENO"; then :
13886  eval $cacheid=yes
13887else
13888  eval $cacheid=no
13889fi
13890rm -f core conftest.err conftest.$ac_objext \
13891    conftest$ac_exeext conftest.$ac_ext
13892fi
13893
13894
13895		CFLAGS="$xorg_testset_save_CFLAGS"
13896
13897		eval supported=\$$cacheid
13898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13899$as_echo "$supported" >&6; }
13900		if test "$supported" = "yes" ; then
13901			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13902			found="yes"
13903		fi
13904	fi
13905
13906	if test $found = "no" ; then
13907		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13909		fi
13910
13911		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13913		fi
13914
13915		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13916
13917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13918$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13919		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13920		if eval \${$cacheid+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925int i;
13926int
13927main ()
13928{
13929
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934if ac_fn_c_try_link "$LINENO"; then :
13935  eval $cacheid=yes
13936else
13937  eval $cacheid=no
13938fi
13939rm -f core conftest.err conftest.$ac_objext \
13940    conftest$ac_exeext conftest.$ac_ext
13941fi
13942
13943
13944		CFLAGS="$xorg_testset_save_CFLAGS"
13945
13946		eval supported=\$$cacheid
13947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13948$as_echo "$supported" >&6; }
13949		if test "$supported" = "yes" ; then
13950			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13951			found="yes"
13952		fi
13953	fi
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969xorg_testset_save_CFLAGS="$CFLAGS"
13970
13971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h.  */
13980int i;
13981_ACEOF
13982if ac_fn_c_try_compile "$LINENO"; then :
13983  xorg_cv_cc_flag_unknown_warning_option=yes
13984else
13985  xorg_cv_cc_flag_unknown_warning_option=no
13986fi
13987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988fi
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13992	CFLAGS="$xorg_testset_save_CFLAGS"
13993fi
13994
13995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13998	fi
13999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006/* end confdefs.h.  */
14007int i;
14008_ACEOF
14009if ac_fn_c_try_compile "$LINENO"; then :
14010  xorg_cv_cc_flag_unused_command_line_argument=yes
14011else
14012  xorg_cv_cc_flag_unused_command_line_argument=no
14013fi
14014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015fi
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14019	CFLAGS="$xorg_testset_save_CFLAGS"
14020fi
14021
14022found="no"
14023
14024	if test $found = "no" ; then
14025		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14027		fi
14028
14029		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14031		fi
14032
14033		CFLAGS="$CFLAGS -Werror=nonnull"
14034
14035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14036$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14037		cacheid=xorg_cv_cc_flag__Werror_nonnull
14038		if eval \${$cacheid+:} false; then :
14039  $as_echo_n "(cached) " >&6
14040else
14041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h.  */
14043int i;
14044int
14045main ()
14046{
14047
14048  ;
14049  return 0;
14050}
14051_ACEOF
14052if ac_fn_c_try_link "$LINENO"; then :
14053  eval $cacheid=yes
14054else
14055  eval $cacheid=no
14056fi
14057rm -f core conftest.err conftest.$ac_objext \
14058    conftest$ac_exeext conftest.$ac_ext
14059fi
14060
14061
14062		CFLAGS="$xorg_testset_save_CFLAGS"
14063
14064		eval supported=\$$cacheid
14065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14066$as_echo "$supported" >&6; }
14067		if test "$supported" = "yes" ; then
14068			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14069			found="yes"
14070		fi
14071	fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087xorg_testset_save_CFLAGS="$CFLAGS"
14088
14089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14094  $as_echo_n "(cached) " >&6
14095else
14096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097/* end confdefs.h.  */
14098int i;
14099_ACEOF
14100if ac_fn_c_try_compile "$LINENO"; then :
14101  xorg_cv_cc_flag_unknown_warning_option=yes
14102else
14103  xorg_cv_cc_flag_unknown_warning_option=no
14104fi
14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106fi
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14110	CFLAGS="$xorg_testset_save_CFLAGS"
14111fi
14112
14113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116	fi
14117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14121  $as_echo_n "(cached) " >&6
14122else
14123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124/* end confdefs.h.  */
14125int i;
14126_ACEOF
14127if ac_fn_c_try_compile "$LINENO"; then :
14128  xorg_cv_cc_flag_unused_command_line_argument=yes
14129else
14130  xorg_cv_cc_flag_unused_command_line_argument=no
14131fi
14132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133fi
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14137	CFLAGS="$xorg_testset_save_CFLAGS"
14138fi
14139
14140found="no"
14141
14142	if test $found = "no" ; then
14143		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14145		fi
14146
14147		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14149		fi
14150
14151		CFLAGS="$CFLAGS -Werror=init-self"
14152
14153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14154$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14155		cacheid=xorg_cv_cc_flag__Werror_init_self
14156		if eval \${$cacheid+:} false; then :
14157  $as_echo_n "(cached) " >&6
14158else
14159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160/* end confdefs.h.  */
14161int i;
14162int
14163main ()
14164{
14165
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170if ac_fn_c_try_link "$LINENO"; then :
14171  eval $cacheid=yes
14172else
14173  eval $cacheid=no
14174fi
14175rm -f core conftest.err conftest.$ac_objext \
14176    conftest$ac_exeext conftest.$ac_ext
14177fi
14178
14179
14180		CFLAGS="$xorg_testset_save_CFLAGS"
14181
14182		eval supported=\$$cacheid
14183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14184$as_echo "$supported" >&6; }
14185		if test "$supported" = "yes" ; then
14186			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14187			found="yes"
14188		fi
14189	fi
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205xorg_testset_save_CFLAGS="$CFLAGS"
14206
14207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215/* end confdefs.h.  */
14216int i;
14217_ACEOF
14218if ac_fn_c_try_compile "$LINENO"; then :
14219  xorg_cv_cc_flag_unknown_warning_option=yes
14220else
14221  xorg_cv_cc_flag_unknown_warning_option=no
14222fi
14223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224fi
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14228	CFLAGS="$xorg_testset_save_CFLAGS"
14229fi
14230
14231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14234	fi
14235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14239  $as_echo_n "(cached) " >&6
14240else
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243int i;
14244_ACEOF
14245if ac_fn_c_try_compile "$LINENO"; then :
14246  xorg_cv_cc_flag_unused_command_line_argument=yes
14247else
14248  xorg_cv_cc_flag_unused_command_line_argument=no
14249fi
14250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251fi
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14255	CFLAGS="$xorg_testset_save_CFLAGS"
14256fi
14257
14258found="no"
14259
14260	if test $found = "no" ; then
14261		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14263		fi
14264
14265		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14267		fi
14268
14269		CFLAGS="$CFLAGS -Werror=main"
14270
14271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14272$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14273		cacheid=xorg_cv_cc_flag__Werror_main
14274		if eval \${$cacheid+:} false; then :
14275  $as_echo_n "(cached) " >&6
14276else
14277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h.  */
14279int i;
14280int
14281main ()
14282{
14283
14284  ;
14285  return 0;
14286}
14287_ACEOF
14288if ac_fn_c_try_link "$LINENO"; then :
14289  eval $cacheid=yes
14290else
14291  eval $cacheid=no
14292fi
14293rm -f core conftest.err conftest.$ac_objext \
14294    conftest$ac_exeext conftest.$ac_ext
14295fi
14296
14297
14298		CFLAGS="$xorg_testset_save_CFLAGS"
14299
14300		eval supported=\$$cacheid
14301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14302$as_echo "$supported" >&6; }
14303		if test "$supported" = "yes" ; then
14304			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14305			found="yes"
14306		fi
14307	fi
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323xorg_testset_save_CFLAGS="$CFLAGS"
14324
14325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14330  $as_echo_n "(cached) " >&6
14331else
14332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h.  */
14334int i;
14335_ACEOF
14336if ac_fn_c_try_compile "$LINENO"; then :
14337  xorg_cv_cc_flag_unknown_warning_option=yes
14338else
14339  xorg_cv_cc_flag_unknown_warning_option=no
14340fi
14341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342fi
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14346	CFLAGS="$xorg_testset_save_CFLAGS"
14347fi
14348
14349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14352	fi
14353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14357  $as_echo_n "(cached) " >&6
14358else
14359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360/* end confdefs.h.  */
14361int i;
14362_ACEOF
14363if ac_fn_c_try_compile "$LINENO"; then :
14364  xorg_cv_cc_flag_unused_command_line_argument=yes
14365else
14366  xorg_cv_cc_flag_unused_command_line_argument=no
14367fi
14368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369fi
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14373	CFLAGS="$xorg_testset_save_CFLAGS"
14374fi
14375
14376found="no"
14377
14378	if test $found = "no" ; then
14379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14381		fi
14382
14383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14385		fi
14386
14387		CFLAGS="$CFLAGS -Werror=missing-braces"
14388
14389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14390$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14391		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14392		if eval \${$cacheid+:} false; then :
14393  $as_echo_n "(cached) " >&6
14394else
14395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396/* end confdefs.h.  */
14397int i;
14398int
14399main ()
14400{
14401
14402  ;
14403  return 0;
14404}
14405_ACEOF
14406if ac_fn_c_try_link "$LINENO"; then :
14407  eval $cacheid=yes
14408else
14409  eval $cacheid=no
14410fi
14411rm -f core conftest.err conftest.$ac_objext \
14412    conftest$ac_exeext conftest.$ac_ext
14413fi
14414
14415
14416		CFLAGS="$xorg_testset_save_CFLAGS"
14417
14418		eval supported=\$$cacheid
14419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14420$as_echo "$supported" >&6; }
14421		if test "$supported" = "yes" ; then
14422			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14423			found="yes"
14424		fi
14425	fi
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441xorg_testset_save_CFLAGS="$CFLAGS"
14442
14443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14448  $as_echo_n "(cached) " >&6
14449else
14450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452int i;
14453_ACEOF
14454if ac_fn_c_try_compile "$LINENO"; then :
14455  xorg_cv_cc_flag_unknown_warning_option=yes
14456else
14457  xorg_cv_cc_flag_unknown_warning_option=no
14458fi
14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460fi
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14464	CFLAGS="$xorg_testset_save_CFLAGS"
14465fi
14466
14467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470	fi
14471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14475  $as_echo_n "(cached) " >&6
14476else
14477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h.  */
14479int i;
14480_ACEOF
14481if ac_fn_c_try_compile "$LINENO"; then :
14482  xorg_cv_cc_flag_unused_command_line_argument=yes
14483else
14484  xorg_cv_cc_flag_unused_command_line_argument=no
14485fi
14486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487fi
14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14491	CFLAGS="$xorg_testset_save_CFLAGS"
14492fi
14493
14494found="no"
14495
14496	if test $found = "no" ; then
14497		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14499		fi
14500
14501		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14503		fi
14504
14505		CFLAGS="$CFLAGS -Werror=sequence-point"
14506
14507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14508$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14509		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14510		if eval \${$cacheid+:} false; then :
14511  $as_echo_n "(cached) " >&6
14512else
14513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514/* end confdefs.h.  */
14515int i;
14516int
14517main ()
14518{
14519
14520  ;
14521  return 0;
14522}
14523_ACEOF
14524if ac_fn_c_try_link "$LINENO"; then :
14525  eval $cacheid=yes
14526else
14527  eval $cacheid=no
14528fi
14529rm -f core conftest.err conftest.$ac_objext \
14530    conftest$ac_exeext conftest.$ac_ext
14531fi
14532
14533
14534		CFLAGS="$xorg_testset_save_CFLAGS"
14535
14536		eval supported=\$$cacheid
14537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14538$as_echo "$supported" >&6; }
14539		if test "$supported" = "yes" ; then
14540			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14541			found="yes"
14542		fi
14543	fi
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559xorg_testset_save_CFLAGS="$CFLAGS"
14560
14561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14566  $as_echo_n "(cached) " >&6
14567else
14568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569/* end confdefs.h.  */
14570int i;
14571_ACEOF
14572if ac_fn_c_try_compile "$LINENO"; then :
14573  xorg_cv_cc_flag_unknown_warning_option=yes
14574else
14575  xorg_cv_cc_flag_unknown_warning_option=no
14576fi
14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578fi
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14582	CFLAGS="$xorg_testset_save_CFLAGS"
14583fi
14584
14585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14588	fi
14589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14593  $as_echo_n "(cached) " >&6
14594else
14595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596/* end confdefs.h.  */
14597int i;
14598_ACEOF
14599if ac_fn_c_try_compile "$LINENO"; then :
14600  xorg_cv_cc_flag_unused_command_line_argument=yes
14601else
14602  xorg_cv_cc_flag_unused_command_line_argument=no
14603fi
14604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14609	CFLAGS="$xorg_testset_save_CFLAGS"
14610fi
14611
14612found="no"
14613
14614	if test $found = "no" ; then
14615		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14617		fi
14618
14619		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14621		fi
14622
14623		CFLAGS="$CFLAGS -Werror=return-type"
14624
14625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14626$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14627		cacheid=xorg_cv_cc_flag__Werror_return_type
14628		if eval \${$cacheid+:} false; then :
14629  $as_echo_n "(cached) " >&6
14630else
14631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632/* end confdefs.h.  */
14633int i;
14634int
14635main ()
14636{
14637
14638  ;
14639  return 0;
14640}
14641_ACEOF
14642if ac_fn_c_try_link "$LINENO"; then :
14643  eval $cacheid=yes
14644else
14645  eval $cacheid=no
14646fi
14647rm -f core conftest.err conftest.$ac_objext \
14648    conftest$ac_exeext conftest.$ac_ext
14649fi
14650
14651
14652		CFLAGS="$xorg_testset_save_CFLAGS"
14653
14654		eval supported=\$$cacheid
14655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14656$as_echo "$supported" >&6; }
14657		if test "$supported" = "yes" ; then
14658			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14659			found="yes"
14660		fi
14661	fi
14662
14663	if test $found = "no" ; then
14664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14666		fi
14667
14668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14670		fi
14671
14672		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14673
14674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14675$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14676		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14677		if eval \${$cacheid+:} false; then :
14678  $as_echo_n "(cached) " >&6
14679else
14680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681/* end confdefs.h.  */
14682int i;
14683int
14684main ()
14685{
14686
14687  ;
14688  return 0;
14689}
14690_ACEOF
14691if ac_fn_c_try_link "$LINENO"; then :
14692  eval $cacheid=yes
14693else
14694  eval $cacheid=no
14695fi
14696rm -f core conftest.err conftest.$ac_objext \
14697    conftest$ac_exeext conftest.$ac_ext
14698fi
14699
14700
14701		CFLAGS="$xorg_testset_save_CFLAGS"
14702
14703		eval supported=\$$cacheid
14704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14705$as_echo "$supported" >&6; }
14706		if test "$supported" = "yes" ; then
14707			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14708			found="yes"
14709		fi
14710	fi
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726xorg_testset_save_CFLAGS="$CFLAGS"
14727
14728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14733  $as_echo_n "(cached) " >&6
14734else
14735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736/* end confdefs.h.  */
14737int i;
14738_ACEOF
14739if ac_fn_c_try_compile "$LINENO"; then :
14740  xorg_cv_cc_flag_unknown_warning_option=yes
14741else
14742  xorg_cv_cc_flag_unknown_warning_option=no
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745fi
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14749	CFLAGS="$xorg_testset_save_CFLAGS"
14750fi
14751
14752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14755	fi
14756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14760  $as_echo_n "(cached) " >&6
14761else
14762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h.  */
14764int i;
14765_ACEOF
14766if ac_fn_c_try_compile "$LINENO"; then :
14767  xorg_cv_cc_flag_unused_command_line_argument=yes
14768else
14769  xorg_cv_cc_flag_unused_command_line_argument=no
14770fi
14771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772fi
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14776	CFLAGS="$xorg_testset_save_CFLAGS"
14777fi
14778
14779found="no"
14780
14781	if test $found = "no" ; then
14782		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14784		fi
14785
14786		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14788		fi
14789
14790		CFLAGS="$CFLAGS -Werror=trigraphs"
14791
14792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14793$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14794		cacheid=xorg_cv_cc_flag__Werror_trigraphs
14795		if eval \${$cacheid+:} false; then :
14796  $as_echo_n "(cached) " >&6
14797else
14798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799/* end confdefs.h.  */
14800int i;
14801int
14802main ()
14803{
14804
14805  ;
14806  return 0;
14807}
14808_ACEOF
14809if ac_fn_c_try_link "$LINENO"; then :
14810  eval $cacheid=yes
14811else
14812  eval $cacheid=no
14813fi
14814rm -f core conftest.err conftest.$ac_objext \
14815    conftest$ac_exeext conftest.$ac_ext
14816fi
14817
14818
14819		CFLAGS="$xorg_testset_save_CFLAGS"
14820
14821		eval supported=\$$cacheid
14822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14823$as_echo "$supported" >&6; }
14824		if test "$supported" = "yes" ; then
14825			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14826			found="yes"
14827		fi
14828	fi
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844xorg_testset_save_CFLAGS="$CFLAGS"
14845
14846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14851  $as_echo_n "(cached) " >&6
14852else
14853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h.  */
14855int i;
14856_ACEOF
14857if ac_fn_c_try_compile "$LINENO"; then :
14858  xorg_cv_cc_flag_unknown_warning_option=yes
14859else
14860  xorg_cv_cc_flag_unknown_warning_option=no
14861fi
14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863fi
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14867	CFLAGS="$xorg_testset_save_CFLAGS"
14868fi
14869
14870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873	fi
14874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14878  $as_echo_n "(cached) " >&6
14879else
14880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881/* end confdefs.h.  */
14882int i;
14883_ACEOF
14884if ac_fn_c_try_compile "$LINENO"; then :
14885  xorg_cv_cc_flag_unused_command_line_argument=yes
14886else
14887  xorg_cv_cc_flag_unused_command_line_argument=no
14888fi
14889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890fi
14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14894	CFLAGS="$xorg_testset_save_CFLAGS"
14895fi
14896
14897found="no"
14898
14899	if test $found = "no" ; then
14900		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14902		fi
14903
14904		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14906		fi
14907
14908		CFLAGS="$CFLAGS -Werror=array-bounds"
14909
14910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14911$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14912		cacheid=xorg_cv_cc_flag__Werror_array_bounds
14913		if eval \${$cacheid+:} false; then :
14914  $as_echo_n "(cached) " >&6
14915else
14916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917/* end confdefs.h.  */
14918int i;
14919int
14920main ()
14921{
14922
14923  ;
14924  return 0;
14925}
14926_ACEOF
14927if ac_fn_c_try_link "$LINENO"; then :
14928  eval $cacheid=yes
14929else
14930  eval $cacheid=no
14931fi
14932rm -f core conftest.err conftest.$ac_objext \
14933    conftest$ac_exeext conftest.$ac_ext
14934fi
14935
14936
14937		CFLAGS="$xorg_testset_save_CFLAGS"
14938
14939		eval supported=\$$cacheid
14940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14941$as_echo "$supported" >&6; }
14942		if test "$supported" = "yes" ; then
14943			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14944			found="yes"
14945		fi
14946	fi
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962xorg_testset_save_CFLAGS="$CFLAGS"
14963
14964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14969  $as_echo_n "(cached) " >&6
14970else
14971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972/* end confdefs.h.  */
14973int i;
14974_ACEOF
14975if ac_fn_c_try_compile "$LINENO"; then :
14976  xorg_cv_cc_flag_unknown_warning_option=yes
14977else
14978  xorg_cv_cc_flag_unknown_warning_option=no
14979fi
14980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981fi
14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14985	CFLAGS="$xorg_testset_save_CFLAGS"
14986fi
14987
14988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14991	fi
14992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14996  $as_echo_n "(cached) " >&6
14997else
14998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999/* end confdefs.h.  */
15000int i;
15001_ACEOF
15002if ac_fn_c_try_compile "$LINENO"; then :
15003  xorg_cv_cc_flag_unused_command_line_argument=yes
15004else
15005  xorg_cv_cc_flag_unused_command_line_argument=no
15006fi
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008fi
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15012	CFLAGS="$xorg_testset_save_CFLAGS"
15013fi
15014
15015found="no"
15016
15017	if test $found = "no" ; then
15018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15020		fi
15021
15022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15024		fi
15025
15026		CFLAGS="$CFLAGS -Werror=write-strings"
15027
15028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15029$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15030		cacheid=xorg_cv_cc_flag__Werror_write_strings
15031		if eval \${$cacheid+:} false; then :
15032  $as_echo_n "(cached) " >&6
15033else
15034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036int i;
15037int
15038main ()
15039{
15040
15041  ;
15042  return 0;
15043}
15044_ACEOF
15045if ac_fn_c_try_link "$LINENO"; then :
15046  eval $cacheid=yes
15047else
15048  eval $cacheid=no
15049fi
15050rm -f core conftest.err conftest.$ac_objext \
15051    conftest$ac_exeext conftest.$ac_ext
15052fi
15053
15054
15055		CFLAGS="$xorg_testset_save_CFLAGS"
15056
15057		eval supported=\$$cacheid
15058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15059$as_echo "$supported" >&6; }
15060		if test "$supported" = "yes" ; then
15061			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15062			found="yes"
15063		fi
15064	fi
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080xorg_testset_save_CFLAGS="$CFLAGS"
15081
15082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15087  $as_echo_n "(cached) " >&6
15088else
15089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090/* end confdefs.h.  */
15091int i;
15092_ACEOF
15093if ac_fn_c_try_compile "$LINENO"; then :
15094  xorg_cv_cc_flag_unknown_warning_option=yes
15095else
15096  xorg_cv_cc_flag_unknown_warning_option=no
15097fi
15098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099fi
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15103	CFLAGS="$xorg_testset_save_CFLAGS"
15104fi
15105
15106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109	fi
15110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15114  $as_echo_n "(cached) " >&6
15115else
15116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117/* end confdefs.h.  */
15118int i;
15119_ACEOF
15120if ac_fn_c_try_compile "$LINENO"; then :
15121  xorg_cv_cc_flag_unused_command_line_argument=yes
15122else
15123  xorg_cv_cc_flag_unused_command_line_argument=no
15124fi
15125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126fi
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15130	CFLAGS="$xorg_testset_save_CFLAGS"
15131fi
15132
15133found="no"
15134
15135	if test $found = "no" ; then
15136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138		fi
15139
15140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142		fi
15143
15144		CFLAGS="$CFLAGS -Werror=address"
15145
15146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15147$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15148		cacheid=xorg_cv_cc_flag__Werror_address
15149		if eval \${$cacheid+:} false; then :
15150  $as_echo_n "(cached) " >&6
15151else
15152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153/* end confdefs.h.  */
15154int i;
15155int
15156main ()
15157{
15158
15159  ;
15160  return 0;
15161}
15162_ACEOF
15163if ac_fn_c_try_link "$LINENO"; then :
15164  eval $cacheid=yes
15165else
15166  eval $cacheid=no
15167fi
15168rm -f core conftest.err conftest.$ac_objext \
15169    conftest$ac_exeext conftest.$ac_ext
15170fi
15171
15172
15173		CFLAGS="$xorg_testset_save_CFLAGS"
15174
15175		eval supported=\$$cacheid
15176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15177$as_echo "$supported" >&6; }
15178		if test "$supported" = "yes" ; then
15179			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15180			found="yes"
15181		fi
15182	fi
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198xorg_testset_save_CFLAGS="$CFLAGS"
15199
15200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15205  $as_echo_n "(cached) " >&6
15206else
15207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208/* end confdefs.h.  */
15209int i;
15210_ACEOF
15211if ac_fn_c_try_compile "$LINENO"; then :
15212  xorg_cv_cc_flag_unknown_warning_option=yes
15213else
15214  xorg_cv_cc_flag_unknown_warning_option=no
15215fi
15216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217fi
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15221	CFLAGS="$xorg_testset_save_CFLAGS"
15222fi
15223
15224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15227	fi
15228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15232  $as_echo_n "(cached) " >&6
15233else
15234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h.  */
15236int i;
15237_ACEOF
15238if ac_fn_c_try_compile "$LINENO"; then :
15239  xorg_cv_cc_flag_unused_command_line_argument=yes
15240else
15241  xorg_cv_cc_flag_unused_command_line_argument=no
15242fi
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244fi
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15248	CFLAGS="$xorg_testset_save_CFLAGS"
15249fi
15250
15251found="no"
15252
15253	if test $found = "no" ; then
15254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15256		fi
15257
15258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15260		fi
15261
15262		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15263
15264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15265$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15266		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15267		if eval \${$cacheid+:} false; then :
15268  $as_echo_n "(cached) " >&6
15269else
15270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272int i;
15273int
15274main ()
15275{
15276
15277  ;
15278  return 0;
15279}
15280_ACEOF
15281if ac_fn_c_try_link "$LINENO"; then :
15282  eval $cacheid=yes
15283else
15284  eval $cacheid=no
15285fi
15286rm -f core conftest.err conftest.$ac_objext \
15287    conftest$ac_exeext conftest.$ac_ext
15288fi
15289
15290
15291		CFLAGS="$xorg_testset_save_CFLAGS"
15292
15293		eval supported=\$$cacheid
15294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15295$as_echo "$supported" >&6; }
15296		if test "$supported" = "yes" ; then
15297			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15298			found="yes"
15299		fi
15300	fi
15301
15302	if test $found = "no" ; then
15303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15305		fi
15306
15307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15309		fi
15310
15311		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15312
15313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15314$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15315		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15316		if eval \${$cacheid+:} false; then :
15317  $as_echo_n "(cached) " >&6
15318else
15319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320/* end confdefs.h.  */
15321int i;
15322int
15323main ()
15324{
15325
15326  ;
15327  return 0;
15328}
15329_ACEOF
15330if ac_fn_c_try_link "$LINENO"; then :
15331  eval $cacheid=yes
15332else
15333  eval $cacheid=no
15334fi
15335rm -f core conftest.err conftest.$ac_objext \
15336    conftest$ac_exeext conftest.$ac_ext
15337fi
15338
15339
15340		CFLAGS="$xorg_testset_save_CFLAGS"
15341
15342		eval supported=\$$cacheid
15343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15344$as_echo "$supported" >&6; }
15345		if test "$supported" = "yes" ; then
15346			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15347			found="yes"
15348		fi
15349	fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15372  $as_echo_n "(cached) " >&6
15373else
15374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376int i;
15377_ACEOF
15378if ac_fn_c_try_compile "$LINENO"; then :
15379  xorg_cv_cc_flag_unknown_warning_option=yes
15380else
15381  xorg_cv_cc_flag_unknown_warning_option=no
15382fi
15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384fi
15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15388	CFLAGS="$xorg_testset_save_CFLAGS"
15389fi
15390
15391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15394	fi
15395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15399  $as_echo_n "(cached) " >&6
15400else
15401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402/* end confdefs.h.  */
15403int i;
15404_ACEOF
15405if ac_fn_c_try_compile "$LINENO"; then :
15406  xorg_cv_cc_flag_unused_command_line_argument=yes
15407else
15408  xorg_cv_cc_flag_unused_command_line_argument=no
15409fi
15410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411fi
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15415	CFLAGS="$xorg_testset_save_CFLAGS"
15416fi
15417
15418found="no"
15419
15420	if test $found = "no" ; then
15421		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423		fi
15424
15425		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15427		fi
15428
15429		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15430
15431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15432$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15433		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15434		if eval \${$cacheid+:} false; then :
15435  $as_echo_n "(cached) " >&6
15436else
15437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439int i;
15440int
15441main ()
15442{
15443
15444  ;
15445  return 0;
15446}
15447_ACEOF
15448if ac_fn_c_try_link "$LINENO"; then :
15449  eval $cacheid=yes
15450else
15451  eval $cacheid=no
15452fi
15453rm -f core conftest.err conftest.$ac_objext \
15454    conftest$ac_exeext conftest.$ac_ext
15455fi
15456
15457
15458		CFLAGS="$xorg_testset_save_CFLAGS"
15459
15460		eval supported=\$$cacheid
15461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15462$as_echo "$supported" >&6; }
15463		if test "$supported" = "yes" ; then
15464			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15465			found="yes"
15466		fi
15467	fi
15468
15469 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15470else
15471{ $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
15472$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;}
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486xorg_testset_save_CFLAGS="$CFLAGS"
15487
15488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15493  $as_echo_n "(cached) " >&6
15494else
15495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496/* end confdefs.h.  */
15497int i;
15498_ACEOF
15499if ac_fn_c_try_compile "$LINENO"; then :
15500  xorg_cv_cc_flag_unknown_warning_option=yes
15501else
15502  xorg_cv_cc_flag_unknown_warning_option=no
15503fi
15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505fi
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15509	CFLAGS="$xorg_testset_save_CFLAGS"
15510fi
15511
15512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15515	fi
15516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15520  $as_echo_n "(cached) " >&6
15521else
15522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523/* end confdefs.h.  */
15524int i;
15525_ACEOF
15526if ac_fn_c_try_compile "$LINENO"; then :
15527  xorg_cv_cc_flag_unused_command_line_argument=yes
15528else
15529  xorg_cv_cc_flag_unused_command_line_argument=no
15530fi
15531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532fi
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15536	CFLAGS="$xorg_testset_save_CFLAGS"
15537fi
15538
15539found="no"
15540
15541	if test $found = "no" ; then
15542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544		fi
15545
15546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15548		fi
15549
15550		CFLAGS="$CFLAGS -Wimplicit"
15551
15552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15553$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15554		cacheid=xorg_cv_cc_flag__Wimplicit
15555		if eval \${$cacheid+:} false; then :
15556  $as_echo_n "(cached) " >&6
15557else
15558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559/* end confdefs.h.  */
15560int i;
15561int
15562main ()
15563{
15564
15565  ;
15566  return 0;
15567}
15568_ACEOF
15569if ac_fn_c_try_link "$LINENO"; then :
15570  eval $cacheid=yes
15571else
15572  eval $cacheid=no
15573fi
15574rm -f core conftest.err conftest.$ac_objext \
15575    conftest$ac_exeext conftest.$ac_ext
15576fi
15577
15578
15579		CFLAGS="$xorg_testset_save_CFLAGS"
15580
15581		eval supported=\$$cacheid
15582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15583$as_echo "$supported" >&6; }
15584		if test "$supported" = "yes" ; then
15585			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15586			found="yes"
15587		fi
15588	fi
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604xorg_testset_save_CFLAGS="$CFLAGS"
15605
15606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15611  $as_echo_n "(cached) " >&6
15612else
15613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614/* end confdefs.h.  */
15615int i;
15616_ACEOF
15617if ac_fn_c_try_compile "$LINENO"; then :
15618  xorg_cv_cc_flag_unknown_warning_option=yes
15619else
15620  xorg_cv_cc_flag_unknown_warning_option=no
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623fi
15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15627	CFLAGS="$xorg_testset_save_CFLAGS"
15628fi
15629
15630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15633	fi
15634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641/* end confdefs.h.  */
15642int i;
15643_ACEOF
15644if ac_fn_c_try_compile "$LINENO"; then :
15645  xorg_cv_cc_flag_unused_command_line_argument=yes
15646else
15647  xorg_cv_cc_flag_unused_command_line_argument=no
15648fi
15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15654	CFLAGS="$xorg_testset_save_CFLAGS"
15655fi
15656
15657found="no"
15658
15659	if test $found = "no" ; then
15660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15662		fi
15663
15664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15666		fi
15667
15668		CFLAGS="$CFLAGS -Wnonnull"
15669
15670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15671$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15672		cacheid=xorg_cv_cc_flag__Wnonnull
15673		if eval \${$cacheid+:} false; then :
15674  $as_echo_n "(cached) " >&6
15675else
15676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677/* end confdefs.h.  */
15678int i;
15679int
15680main ()
15681{
15682
15683  ;
15684  return 0;
15685}
15686_ACEOF
15687if ac_fn_c_try_link "$LINENO"; then :
15688  eval $cacheid=yes
15689else
15690  eval $cacheid=no
15691fi
15692rm -f core conftest.err conftest.$ac_objext \
15693    conftest$ac_exeext conftest.$ac_ext
15694fi
15695
15696
15697		CFLAGS="$xorg_testset_save_CFLAGS"
15698
15699		eval supported=\$$cacheid
15700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15701$as_echo "$supported" >&6; }
15702		if test "$supported" = "yes" ; then
15703			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15704			found="yes"
15705		fi
15706	fi
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722xorg_testset_save_CFLAGS="$CFLAGS"
15723
15724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15729  $as_echo_n "(cached) " >&6
15730else
15731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732/* end confdefs.h.  */
15733int i;
15734_ACEOF
15735if ac_fn_c_try_compile "$LINENO"; then :
15736  xorg_cv_cc_flag_unknown_warning_option=yes
15737else
15738  xorg_cv_cc_flag_unknown_warning_option=no
15739fi
15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15745	CFLAGS="$xorg_testset_save_CFLAGS"
15746fi
15747
15748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15751	fi
15752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15756  $as_echo_n "(cached) " >&6
15757else
15758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759/* end confdefs.h.  */
15760int i;
15761_ACEOF
15762if ac_fn_c_try_compile "$LINENO"; then :
15763  xorg_cv_cc_flag_unused_command_line_argument=yes
15764else
15765  xorg_cv_cc_flag_unused_command_line_argument=no
15766fi
15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768fi
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15772	CFLAGS="$xorg_testset_save_CFLAGS"
15773fi
15774
15775found="no"
15776
15777	if test $found = "no" ; then
15778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780		fi
15781
15782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784		fi
15785
15786		CFLAGS="$CFLAGS -Winit-self"
15787
15788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15789$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15790		cacheid=xorg_cv_cc_flag__Winit_self
15791		if eval \${$cacheid+:} false; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795/* end confdefs.h.  */
15796int i;
15797int
15798main ()
15799{
15800
15801  ;
15802  return 0;
15803}
15804_ACEOF
15805if ac_fn_c_try_link "$LINENO"; then :
15806  eval $cacheid=yes
15807else
15808  eval $cacheid=no
15809fi
15810rm -f core conftest.err conftest.$ac_objext \
15811    conftest$ac_exeext conftest.$ac_ext
15812fi
15813
15814
15815		CFLAGS="$xorg_testset_save_CFLAGS"
15816
15817		eval supported=\$$cacheid
15818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15819$as_echo "$supported" >&6; }
15820		if test "$supported" = "yes" ; then
15821			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15822			found="yes"
15823		fi
15824	fi
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840xorg_testset_save_CFLAGS="$CFLAGS"
15841
15842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15847  $as_echo_n "(cached) " >&6
15848else
15849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851int i;
15852_ACEOF
15853if ac_fn_c_try_compile "$LINENO"; then :
15854  xorg_cv_cc_flag_unknown_warning_option=yes
15855else
15856  xorg_cv_cc_flag_unknown_warning_option=no
15857fi
15858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859fi
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15863	CFLAGS="$xorg_testset_save_CFLAGS"
15864fi
15865
15866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15869	fi
15870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15874  $as_echo_n "(cached) " >&6
15875else
15876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h.  */
15878int i;
15879_ACEOF
15880if ac_fn_c_try_compile "$LINENO"; then :
15881  xorg_cv_cc_flag_unused_command_line_argument=yes
15882else
15883  xorg_cv_cc_flag_unused_command_line_argument=no
15884fi
15885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886fi
15887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15890	CFLAGS="$xorg_testset_save_CFLAGS"
15891fi
15892
15893found="no"
15894
15895	if test $found = "no" ; then
15896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15898		fi
15899
15900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15902		fi
15903
15904		CFLAGS="$CFLAGS -Wmain"
15905
15906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15907$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15908		cacheid=xorg_cv_cc_flag__Wmain
15909		if eval \${$cacheid+:} false; then :
15910  $as_echo_n "(cached) " >&6
15911else
15912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h.  */
15914int i;
15915int
15916main ()
15917{
15918
15919  ;
15920  return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_link "$LINENO"; then :
15924  eval $cacheid=yes
15925else
15926  eval $cacheid=no
15927fi
15928rm -f core conftest.err conftest.$ac_objext \
15929    conftest$ac_exeext conftest.$ac_ext
15930fi
15931
15932
15933		CFLAGS="$xorg_testset_save_CFLAGS"
15934
15935		eval supported=\$$cacheid
15936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15937$as_echo "$supported" >&6; }
15938		if test "$supported" = "yes" ; then
15939			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15940			found="yes"
15941		fi
15942	fi
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958xorg_testset_save_CFLAGS="$CFLAGS"
15959
15960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15965  $as_echo_n "(cached) " >&6
15966else
15967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969int i;
15970_ACEOF
15971if ac_fn_c_try_compile "$LINENO"; then :
15972  xorg_cv_cc_flag_unknown_warning_option=yes
15973else
15974  xorg_cv_cc_flag_unknown_warning_option=no
15975fi
15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977fi
15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15981	CFLAGS="$xorg_testset_save_CFLAGS"
15982fi
15983
15984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15987	fi
15988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15992  $as_echo_n "(cached) " >&6
15993else
15994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995/* end confdefs.h.  */
15996int i;
15997_ACEOF
15998if ac_fn_c_try_compile "$LINENO"; then :
15999  xorg_cv_cc_flag_unused_command_line_argument=yes
16000else
16001  xorg_cv_cc_flag_unused_command_line_argument=no
16002fi
16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004fi
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16008	CFLAGS="$xorg_testset_save_CFLAGS"
16009fi
16010
16011found="no"
16012
16013	if test $found = "no" ; then
16014		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016		fi
16017
16018		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16020		fi
16021
16022		CFLAGS="$CFLAGS -Wmissing-braces"
16023
16024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16025$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16026		cacheid=xorg_cv_cc_flag__Wmissing_braces
16027		if eval \${$cacheid+:} false; then :
16028  $as_echo_n "(cached) " >&6
16029else
16030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032int i;
16033int
16034main ()
16035{
16036
16037  ;
16038  return 0;
16039}
16040_ACEOF
16041if ac_fn_c_try_link "$LINENO"; then :
16042  eval $cacheid=yes
16043else
16044  eval $cacheid=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext \
16047    conftest$ac_exeext conftest.$ac_ext
16048fi
16049
16050
16051		CFLAGS="$xorg_testset_save_CFLAGS"
16052
16053		eval supported=\$$cacheid
16054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16055$as_echo "$supported" >&6; }
16056		if test "$supported" = "yes" ; then
16057			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16058			found="yes"
16059		fi
16060	fi
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076xorg_testset_save_CFLAGS="$CFLAGS"
16077
16078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16083  $as_echo_n "(cached) " >&6
16084else
16085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h.  */
16087int i;
16088_ACEOF
16089if ac_fn_c_try_compile "$LINENO"; then :
16090  xorg_cv_cc_flag_unknown_warning_option=yes
16091else
16092  xorg_cv_cc_flag_unknown_warning_option=no
16093fi
16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099	CFLAGS="$xorg_testset_save_CFLAGS"
16100fi
16101
16102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105	fi
16106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16110  $as_echo_n "(cached) " >&6
16111else
16112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113/* end confdefs.h.  */
16114int i;
16115_ACEOF
16116if ac_fn_c_try_compile "$LINENO"; then :
16117  xorg_cv_cc_flag_unused_command_line_argument=yes
16118else
16119  xorg_cv_cc_flag_unused_command_line_argument=no
16120fi
16121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122fi
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16126	CFLAGS="$xorg_testset_save_CFLAGS"
16127fi
16128
16129found="no"
16130
16131	if test $found = "no" ; then
16132		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134		fi
16135
16136		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138		fi
16139
16140		CFLAGS="$CFLAGS -Wsequence-point"
16141
16142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16143$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16144		cacheid=xorg_cv_cc_flag__Wsequence_point
16145		if eval \${$cacheid+:} false; then :
16146  $as_echo_n "(cached) " >&6
16147else
16148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150int i;
16151int
16152main ()
16153{
16154
16155  ;
16156  return 0;
16157}
16158_ACEOF
16159if ac_fn_c_try_link "$LINENO"; then :
16160  eval $cacheid=yes
16161else
16162  eval $cacheid=no
16163fi
16164rm -f core conftest.err conftest.$ac_objext \
16165    conftest$ac_exeext conftest.$ac_ext
16166fi
16167
16168
16169		CFLAGS="$xorg_testset_save_CFLAGS"
16170
16171		eval supported=\$$cacheid
16172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16173$as_echo "$supported" >&6; }
16174		if test "$supported" = "yes" ; then
16175			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16176			found="yes"
16177		fi
16178	fi
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194xorg_testset_save_CFLAGS="$CFLAGS"
16195
16196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16201  $as_echo_n "(cached) " >&6
16202else
16203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h.  */
16205int i;
16206_ACEOF
16207if ac_fn_c_try_compile "$LINENO"; then :
16208  xorg_cv_cc_flag_unknown_warning_option=yes
16209else
16210  xorg_cv_cc_flag_unknown_warning_option=no
16211fi
16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213fi
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16217	CFLAGS="$xorg_testset_save_CFLAGS"
16218fi
16219
16220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16223	fi
16224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16228  $as_echo_n "(cached) " >&6
16229else
16230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231/* end confdefs.h.  */
16232int i;
16233_ACEOF
16234if ac_fn_c_try_compile "$LINENO"; then :
16235  xorg_cv_cc_flag_unused_command_line_argument=yes
16236else
16237  xorg_cv_cc_flag_unused_command_line_argument=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16244	CFLAGS="$xorg_testset_save_CFLAGS"
16245fi
16246
16247found="no"
16248
16249	if test $found = "no" ; then
16250		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252		fi
16253
16254		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16256		fi
16257
16258		CFLAGS="$CFLAGS -Wreturn-type"
16259
16260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16261$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16262		cacheid=xorg_cv_cc_flag__Wreturn_type
16263		if eval \${$cacheid+:} false; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269int
16270main ()
16271{
16272
16273  ;
16274  return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_link "$LINENO"; then :
16278  eval $cacheid=yes
16279else
16280  eval $cacheid=no
16281fi
16282rm -f core conftest.err conftest.$ac_objext \
16283    conftest$ac_exeext conftest.$ac_ext
16284fi
16285
16286
16287		CFLAGS="$xorg_testset_save_CFLAGS"
16288
16289		eval supported=\$$cacheid
16290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16291$as_echo "$supported" >&6; }
16292		if test "$supported" = "yes" ; then
16293			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16294			found="yes"
16295		fi
16296	fi
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312xorg_testset_save_CFLAGS="$CFLAGS"
16313
16314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16319  $as_echo_n "(cached) " >&6
16320else
16321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h.  */
16323int i;
16324_ACEOF
16325if ac_fn_c_try_compile "$LINENO"; then :
16326  xorg_cv_cc_flag_unknown_warning_option=yes
16327else
16328  xorg_cv_cc_flag_unknown_warning_option=no
16329fi
16330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331fi
16332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16335	CFLAGS="$xorg_testset_save_CFLAGS"
16336fi
16337
16338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16341	fi
16342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16346  $as_echo_n "(cached) " >&6
16347else
16348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349/* end confdefs.h.  */
16350int i;
16351_ACEOF
16352if ac_fn_c_try_compile "$LINENO"; then :
16353  xorg_cv_cc_flag_unused_command_line_argument=yes
16354else
16355  xorg_cv_cc_flag_unused_command_line_argument=no
16356fi
16357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358fi
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16362	CFLAGS="$xorg_testset_save_CFLAGS"
16363fi
16364
16365found="no"
16366
16367	if test $found = "no" ; then
16368		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16370		fi
16371
16372		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374		fi
16375
16376		CFLAGS="$CFLAGS -Wtrigraphs"
16377
16378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16379$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16380		cacheid=xorg_cv_cc_flag__Wtrigraphs
16381		if eval \${$cacheid+:} false; then :
16382  $as_echo_n "(cached) " >&6
16383else
16384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386int i;
16387int
16388main ()
16389{
16390
16391  ;
16392  return 0;
16393}
16394_ACEOF
16395if ac_fn_c_try_link "$LINENO"; then :
16396  eval $cacheid=yes
16397else
16398  eval $cacheid=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext \
16401    conftest$ac_exeext conftest.$ac_ext
16402fi
16403
16404
16405		CFLAGS="$xorg_testset_save_CFLAGS"
16406
16407		eval supported=\$$cacheid
16408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16409$as_echo "$supported" >&6; }
16410		if test "$supported" = "yes" ; then
16411			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16412			found="yes"
16413		fi
16414	fi
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430xorg_testset_save_CFLAGS="$CFLAGS"
16431
16432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16437  $as_echo_n "(cached) " >&6
16438else
16439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440/* end confdefs.h.  */
16441int i;
16442_ACEOF
16443if ac_fn_c_try_compile "$LINENO"; then :
16444  xorg_cv_cc_flag_unknown_warning_option=yes
16445else
16446  xorg_cv_cc_flag_unknown_warning_option=no
16447fi
16448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16449fi
16450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16453	CFLAGS="$xorg_testset_save_CFLAGS"
16454fi
16455
16456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16459	fi
16460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16464  $as_echo_n "(cached) " >&6
16465else
16466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467/* end confdefs.h.  */
16468int i;
16469_ACEOF
16470if ac_fn_c_try_compile "$LINENO"; then :
16471  xorg_cv_cc_flag_unused_command_line_argument=yes
16472else
16473  xorg_cv_cc_flag_unused_command_line_argument=no
16474fi
16475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476fi
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16480	CFLAGS="$xorg_testset_save_CFLAGS"
16481fi
16482
16483found="no"
16484
16485	if test $found = "no" ; then
16486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16488		fi
16489
16490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16492		fi
16493
16494		CFLAGS="$CFLAGS -Warray-bounds"
16495
16496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16497$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16498		cacheid=xorg_cv_cc_flag__Warray_bounds
16499		if eval \${$cacheid+:} false; then :
16500  $as_echo_n "(cached) " >&6
16501else
16502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h.  */
16504int i;
16505int
16506main ()
16507{
16508
16509  ;
16510  return 0;
16511}
16512_ACEOF
16513if ac_fn_c_try_link "$LINENO"; then :
16514  eval $cacheid=yes
16515else
16516  eval $cacheid=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext \
16519    conftest$ac_exeext conftest.$ac_ext
16520fi
16521
16522
16523		CFLAGS="$xorg_testset_save_CFLAGS"
16524
16525		eval supported=\$$cacheid
16526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16527$as_echo "$supported" >&6; }
16528		if test "$supported" = "yes" ; then
16529			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16530			found="yes"
16531		fi
16532	fi
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548xorg_testset_save_CFLAGS="$CFLAGS"
16549
16550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16555  $as_echo_n "(cached) " >&6
16556else
16557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559int i;
16560_ACEOF
16561if ac_fn_c_try_compile "$LINENO"; then :
16562  xorg_cv_cc_flag_unknown_warning_option=yes
16563else
16564  xorg_cv_cc_flag_unknown_warning_option=no
16565fi
16566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567fi
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16571	CFLAGS="$xorg_testset_save_CFLAGS"
16572fi
16573
16574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16577	fi
16578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16582  $as_echo_n "(cached) " >&6
16583else
16584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585/* end confdefs.h.  */
16586int i;
16587_ACEOF
16588if ac_fn_c_try_compile "$LINENO"; then :
16589  xorg_cv_cc_flag_unused_command_line_argument=yes
16590else
16591  xorg_cv_cc_flag_unused_command_line_argument=no
16592fi
16593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594fi
16595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16598	CFLAGS="$xorg_testset_save_CFLAGS"
16599fi
16600
16601found="no"
16602
16603	if test $found = "no" ; then
16604		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606		fi
16607
16608		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610		fi
16611
16612		CFLAGS="$CFLAGS -Wwrite-strings"
16613
16614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16615$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16616		cacheid=xorg_cv_cc_flag__Wwrite_strings
16617		if eval \${$cacheid+:} false; then :
16618  $as_echo_n "(cached) " >&6
16619else
16620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621/* end confdefs.h.  */
16622int i;
16623int
16624main ()
16625{
16626
16627  ;
16628  return 0;
16629}
16630_ACEOF
16631if ac_fn_c_try_link "$LINENO"; then :
16632  eval $cacheid=yes
16633else
16634  eval $cacheid=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext \
16637    conftest$ac_exeext conftest.$ac_ext
16638fi
16639
16640
16641		CFLAGS="$xorg_testset_save_CFLAGS"
16642
16643		eval supported=\$$cacheid
16644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16645$as_echo "$supported" >&6; }
16646		if test "$supported" = "yes" ; then
16647			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16648			found="yes"
16649		fi
16650	fi
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666xorg_testset_save_CFLAGS="$CFLAGS"
16667
16668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16673  $as_echo_n "(cached) " >&6
16674else
16675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676/* end confdefs.h.  */
16677int i;
16678_ACEOF
16679if ac_fn_c_try_compile "$LINENO"; then :
16680  xorg_cv_cc_flag_unknown_warning_option=yes
16681else
16682  xorg_cv_cc_flag_unknown_warning_option=no
16683fi
16684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685fi
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16689	CFLAGS="$xorg_testset_save_CFLAGS"
16690fi
16691
16692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16695	fi
16696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16700  $as_echo_n "(cached) " >&6
16701else
16702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703/* end confdefs.h.  */
16704int i;
16705_ACEOF
16706if ac_fn_c_try_compile "$LINENO"; then :
16707  xorg_cv_cc_flag_unused_command_line_argument=yes
16708else
16709  xorg_cv_cc_flag_unused_command_line_argument=no
16710fi
16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712fi
16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16716	CFLAGS="$xorg_testset_save_CFLAGS"
16717fi
16718
16719found="no"
16720
16721	if test $found = "no" ; then
16722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724		fi
16725
16726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16728		fi
16729
16730		CFLAGS="$CFLAGS -Waddress"
16731
16732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16733$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16734		cacheid=xorg_cv_cc_flag__Waddress
16735		if eval \${$cacheid+:} false; then :
16736  $as_echo_n "(cached) " >&6
16737else
16738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h.  */
16740int i;
16741int
16742main ()
16743{
16744
16745  ;
16746  return 0;
16747}
16748_ACEOF
16749if ac_fn_c_try_link "$LINENO"; then :
16750  eval $cacheid=yes
16751else
16752  eval $cacheid=no
16753fi
16754rm -f core conftest.err conftest.$ac_objext \
16755    conftest$ac_exeext conftest.$ac_ext
16756fi
16757
16758
16759		CFLAGS="$xorg_testset_save_CFLAGS"
16760
16761		eval supported=\$$cacheid
16762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16763$as_echo "$supported" >&6; }
16764		if test "$supported" = "yes" ; then
16765			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16766			found="yes"
16767		fi
16768	fi
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784xorg_testset_save_CFLAGS="$CFLAGS"
16785
16786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16791  $as_echo_n "(cached) " >&6
16792else
16793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h.  */
16795int i;
16796_ACEOF
16797if ac_fn_c_try_compile "$LINENO"; then :
16798  xorg_cv_cc_flag_unknown_warning_option=yes
16799else
16800  xorg_cv_cc_flag_unknown_warning_option=no
16801fi
16802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803fi
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16807	CFLAGS="$xorg_testset_save_CFLAGS"
16808fi
16809
16810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16813	fi
16814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16818  $as_echo_n "(cached) " >&6
16819else
16820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h.  */
16822int i;
16823_ACEOF
16824if ac_fn_c_try_compile "$LINENO"; then :
16825  xorg_cv_cc_flag_unused_command_line_argument=yes
16826else
16827  xorg_cv_cc_flag_unused_command_line_argument=no
16828fi
16829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830fi
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16834	CFLAGS="$xorg_testset_save_CFLAGS"
16835fi
16836
16837found="no"
16838
16839	if test $found = "no" ; then
16840		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16842		fi
16843
16844		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16846		fi
16847
16848		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16849
16850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16851$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16852		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16853		if eval \${$cacheid+:} false; then :
16854  $as_echo_n "(cached) " >&6
16855else
16856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857/* end confdefs.h.  */
16858int i;
16859int
16860main ()
16861{
16862
16863  ;
16864  return 0;
16865}
16866_ACEOF
16867if ac_fn_c_try_link "$LINENO"; then :
16868  eval $cacheid=yes
16869else
16870  eval $cacheid=no
16871fi
16872rm -f core conftest.err conftest.$ac_objext \
16873    conftest$ac_exeext conftest.$ac_ext
16874fi
16875
16876
16877		CFLAGS="$xorg_testset_save_CFLAGS"
16878
16879		eval supported=\$$cacheid
16880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16881$as_echo "$supported" >&6; }
16882		if test "$supported" = "yes" ; then
16883			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16884			found="yes"
16885		fi
16886	fi
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902xorg_testset_save_CFLAGS="$CFLAGS"
16903
16904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912/* end confdefs.h.  */
16913int i;
16914_ACEOF
16915if ac_fn_c_try_compile "$LINENO"; then :
16916  xorg_cv_cc_flag_unknown_warning_option=yes
16917else
16918  xorg_cv_cc_flag_unknown_warning_option=no
16919fi
16920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16925	CFLAGS="$xorg_testset_save_CFLAGS"
16926fi
16927
16928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16931	fi
16932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16936  $as_echo_n "(cached) " >&6
16937else
16938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940int i;
16941_ACEOF
16942if ac_fn_c_try_compile "$LINENO"; then :
16943  xorg_cv_cc_flag_unused_command_line_argument=yes
16944else
16945  xorg_cv_cc_flag_unused_command_line_argument=no
16946fi
16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948fi
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16952	CFLAGS="$xorg_testset_save_CFLAGS"
16953fi
16954
16955found="no"
16956
16957	if test $found = "no" ; then
16958		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960		fi
16961
16962		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964		fi
16965
16966		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16967
16968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16969$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16970		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16971		if eval \${$cacheid+:} false; then :
16972  $as_echo_n "(cached) " >&6
16973else
16974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975/* end confdefs.h.  */
16976int i;
16977int
16978main ()
16979{
16980
16981  ;
16982  return 0;
16983}
16984_ACEOF
16985if ac_fn_c_try_link "$LINENO"; then :
16986  eval $cacheid=yes
16987else
16988  eval $cacheid=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991    conftest$ac_exeext conftest.$ac_ext
16992fi
16993
16994
16995		CFLAGS="$xorg_testset_save_CFLAGS"
16996
16997		eval supported=\$$cacheid
16998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16999$as_echo "$supported" >&6; }
17000		if test "$supported" = "yes" ; then
17001			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17002			found="yes"
17003		fi
17004	fi
17005
17006
17007fi
17008
17009
17010
17011
17012
17013
17014
17015		CWARNFLAGS="$BASE_CFLAGS"
17016		if  test "x$GCC" = xyes ; then
17017		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17018		fi
17019
17020
17021
17022
17023
17024
17025
17026
17027# Check whether --enable-strict-compilation was given.
17028if test "${enable_strict_compilation+set}" = set; then :
17029  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17030else
17031  STRICT_COMPILE=no
17032fi
17033
17034
17035
17036
17037
17038
17039STRICT_CFLAGS=""
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053xorg_testset_save_CFLAGS="$CFLAGS"
17054
17055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17060  $as_echo_n "(cached) " >&6
17061else
17062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063/* end confdefs.h.  */
17064int i;
17065_ACEOF
17066if ac_fn_c_try_compile "$LINENO"; then :
17067  xorg_cv_cc_flag_unknown_warning_option=yes
17068else
17069  xorg_cv_cc_flag_unknown_warning_option=no
17070fi
17071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072fi
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17076	CFLAGS="$xorg_testset_save_CFLAGS"
17077fi
17078
17079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17082	fi
17083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17087  $as_echo_n "(cached) " >&6
17088else
17089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090/* end confdefs.h.  */
17091int i;
17092_ACEOF
17093if ac_fn_c_try_compile "$LINENO"; then :
17094  xorg_cv_cc_flag_unused_command_line_argument=yes
17095else
17096  xorg_cv_cc_flag_unused_command_line_argument=no
17097fi
17098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099fi
17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17103	CFLAGS="$xorg_testset_save_CFLAGS"
17104fi
17105
17106found="no"
17107
17108	if test $found = "no" ; then
17109		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111		fi
17112
17113		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17115		fi
17116
17117		CFLAGS="$CFLAGS -pedantic"
17118
17119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17120$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17121		cacheid=xorg_cv_cc_flag__pedantic
17122		if eval \${$cacheid+:} false; then :
17123  $as_echo_n "(cached) " >&6
17124else
17125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126/* end confdefs.h.  */
17127int i;
17128int
17129main ()
17130{
17131
17132  ;
17133  return 0;
17134}
17135_ACEOF
17136if ac_fn_c_try_link "$LINENO"; then :
17137  eval $cacheid=yes
17138else
17139  eval $cacheid=no
17140fi
17141rm -f core conftest.err conftest.$ac_objext \
17142    conftest$ac_exeext conftest.$ac_ext
17143fi
17144
17145
17146		CFLAGS="$xorg_testset_save_CFLAGS"
17147
17148		eval supported=\$$cacheid
17149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17150$as_echo "$supported" >&6; }
17151		if test "$supported" = "yes" ; then
17152			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17153			found="yes"
17154		fi
17155	fi
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171xorg_testset_save_CFLAGS="$CFLAGS"
17172
17173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17178  $as_echo_n "(cached) " >&6
17179else
17180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181/* end confdefs.h.  */
17182int i;
17183_ACEOF
17184if ac_fn_c_try_compile "$LINENO"; then :
17185  xorg_cv_cc_flag_unknown_warning_option=yes
17186else
17187  xorg_cv_cc_flag_unknown_warning_option=no
17188fi
17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190fi
17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17194	CFLAGS="$xorg_testset_save_CFLAGS"
17195fi
17196
17197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17200	fi
17201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17205  $as_echo_n "(cached) " >&6
17206else
17207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208/* end confdefs.h.  */
17209int i;
17210_ACEOF
17211if ac_fn_c_try_compile "$LINENO"; then :
17212  xorg_cv_cc_flag_unused_command_line_argument=yes
17213else
17214  xorg_cv_cc_flag_unused_command_line_argument=no
17215fi
17216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217fi
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17221	CFLAGS="$xorg_testset_save_CFLAGS"
17222fi
17223
17224found="no"
17225
17226	if test $found = "no" ; then
17227		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17229		fi
17230
17231		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17233		fi
17234
17235		CFLAGS="$CFLAGS -Werror"
17236
17237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17238$as_echo_n "checking if $CC supports -Werror... " >&6; }
17239		cacheid=xorg_cv_cc_flag__Werror
17240		if eval \${$cacheid+:} false; then :
17241  $as_echo_n "(cached) " >&6
17242else
17243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245int i;
17246int
17247main ()
17248{
17249
17250  ;
17251  return 0;
17252}
17253_ACEOF
17254if ac_fn_c_try_link "$LINENO"; then :
17255  eval $cacheid=yes
17256else
17257  eval $cacheid=no
17258fi
17259rm -f core conftest.err conftest.$ac_objext \
17260    conftest$ac_exeext conftest.$ac_ext
17261fi
17262
17263
17264		CFLAGS="$xorg_testset_save_CFLAGS"
17265
17266		eval supported=\$$cacheid
17267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17268$as_echo "$supported" >&6; }
17269		if test "$supported" = "yes" ; then
17270			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17271			found="yes"
17272		fi
17273	fi
17274
17275	if test $found = "no" ; then
17276		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17278		fi
17279
17280		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17282		fi
17283
17284		CFLAGS="$CFLAGS -errwarn"
17285
17286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17287$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17288		cacheid=xorg_cv_cc_flag__errwarn
17289		if eval \${$cacheid+:} false; then :
17290  $as_echo_n "(cached) " >&6
17291else
17292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293/* end confdefs.h.  */
17294int i;
17295int
17296main ()
17297{
17298
17299  ;
17300  return 0;
17301}
17302_ACEOF
17303if ac_fn_c_try_link "$LINENO"; then :
17304  eval $cacheid=yes
17305else
17306  eval $cacheid=no
17307fi
17308rm -f core conftest.err conftest.$ac_objext \
17309    conftest$ac_exeext conftest.$ac_ext
17310fi
17311
17312
17313		CFLAGS="$xorg_testset_save_CFLAGS"
17314
17315		eval supported=\$$cacheid
17316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17317$as_echo "$supported" >&6; }
17318		if test "$supported" = "yes" ; then
17319			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17320			found="yes"
17321		fi
17322	fi
17323
17324
17325
17326# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17327# activate it with -Werror, so we add it here explicitly.
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341xorg_testset_save_CFLAGS="$CFLAGS"
17342
17343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17348  $as_echo_n "(cached) " >&6
17349else
17350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h.  */
17352int i;
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"; then :
17355  xorg_cv_cc_flag_unknown_warning_option=yes
17356else
17357  xorg_cv_cc_flag_unknown_warning_option=no
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360fi
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17364	CFLAGS="$xorg_testset_save_CFLAGS"
17365fi
17366
17367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370	fi
17371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17375  $as_echo_n "(cached) " >&6
17376else
17377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378/* end confdefs.h.  */
17379int i;
17380_ACEOF
17381if ac_fn_c_try_compile "$LINENO"; then :
17382  xorg_cv_cc_flag_unused_command_line_argument=yes
17383else
17384  xorg_cv_cc_flag_unused_command_line_argument=no
17385fi
17386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387fi
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17391	CFLAGS="$xorg_testset_save_CFLAGS"
17392fi
17393
17394found="no"
17395
17396	if test $found = "no" ; then
17397		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399		fi
17400
17401		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403		fi
17404
17405		CFLAGS="$CFLAGS -Werror=attributes"
17406
17407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17408$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17409		cacheid=xorg_cv_cc_flag__Werror_attributes
17410		if eval \${$cacheid+:} false; then :
17411  $as_echo_n "(cached) " >&6
17412else
17413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h.  */
17415int i;
17416int
17417main ()
17418{
17419
17420  ;
17421  return 0;
17422}
17423_ACEOF
17424if ac_fn_c_try_link "$LINENO"; then :
17425  eval $cacheid=yes
17426else
17427  eval $cacheid=no
17428fi
17429rm -f core conftest.err conftest.$ac_objext \
17430    conftest$ac_exeext conftest.$ac_ext
17431fi
17432
17433
17434		CFLAGS="$xorg_testset_save_CFLAGS"
17435
17436		eval supported=\$$cacheid
17437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17438$as_echo "$supported" >&6; }
17439		if test "$supported" = "yes" ; then
17440			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17441			found="yes"
17442		fi
17443	fi
17444
17445
17446
17447if test "x$STRICT_COMPILE" = "xyes"; then
17448    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17449    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17450fi
17451
17452
17453
17454
17455
17456
17457cat >>confdefs.h <<_ACEOF
17458#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17459_ACEOF
17460
17461	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17462	if test "x$PVM" = "x"; then
17463		PVM="0"
17464	fi
17465
17466cat >>confdefs.h <<_ACEOF
17467#define PACKAGE_VERSION_MINOR $PVM
17468_ACEOF
17469
17470	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17471	if test "x$PVP" = "x"; then
17472		PVP="0"
17473	fi
17474
17475cat >>confdefs.h <<_ACEOF
17476#define PACKAGE_VERSION_PATCHLEVEL $PVP
17477_ACEOF
17478
17479
17480
17481CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17482mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17483|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17484echo 'git directory not found: installing possibly empty changelog.' >&2)"
17485
17486
17487
17488
17489macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17490INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17491mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17492|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17493echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17494
17495
17496
17497
17498
17499
17500if test x$APP_MAN_SUFFIX = x    ; then
17501    APP_MAN_SUFFIX=1
17502fi
17503if test x$APP_MAN_DIR = x    ; then
17504    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17505fi
17506
17507if test x$LIB_MAN_SUFFIX = x    ; then
17508    LIB_MAN_SUFFIX=3
17509fi
17510if test x$LIB_MAN_DIR = x    ; then
17511    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17512fi
17513
17514if test x$FILE_MAN_SUFFIX = x    ; then
17515    case $host_os in
17516	solaris*)	FILE_MAN_SUFFIX=4  ;;
17517	*)		FILE_MAN_SUFFIX=5  ;;
17518    esac
17519fi
17520if test x$FILE_MAN_DIR = x    ; then
17521    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17522fi
17523
17524if test x$MISC_MAN_SUFFIX = x    ; then
17525    case $host_os in
17526	solaris*)	MISC_MAN_SUFFIX=5  ;;
17527	*)		MISC_MAN_SUFFIX=7  ;;
17528    esac
17529fi
17530if test x$MISC_MAN_DIR = x    ; then
17531    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17532fi
17533
17534if test x$DRIVER_MAN_SUFFIX = x    ; then
17535    case $host_os in
17536	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17537	*)		DRIVER_MAN_SUFFIX=4  ;;
17538    esac
17539fi
17540if test x$DRIVER_MAN_DIR = x    ; then
17541    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17542fi
17543
17544if test x$ADMIN_MAN_SUFFIX = x    ; then
17545    case $host_os in
17546	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17547	*)		ADMIN_MAN_SUFFIX=8  ;;
17548    esac
17549fi
17550if test x$ADMIN_MAN_DIR = x    ; then
17551    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17552fi
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568XORG_MAN_PAGE="X Version 11"
17569
17570MAN_SUBSTS="\
17571	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17572	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17573	-e 's|__xservername__|Xorg|g' \
17574	-e 's|__xconfigfile__|xorg.conf|g' \
17575	-e 's|__xorgconfdir__|xorg.conf.d|g' \
17576	-e 's|__projectroot__|\$(prefix)|g' \
17577	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17578	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17579	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17580	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17581	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17582	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17583	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17584
17585
17586
17587# Check whether --enable-silent-rules was given.
17588if test "${enable_silent_rules+set}" = set; then :
17589  enableval=$enable_silent_rules;
17590fi
17591
17592case $enable_silent_rules in # (((
17593  yes) AM_DEFAULT_VERBOSITY=0;;
17594   no) AM_DEFAULT_VERBOSITY=1;;
17595    *) AM_DEFAULT_VERBOSITY=0;;
17596esac
17597am_make=${MAKE-make}
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17599$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17600if ${am_cv_make_support_nested_variables+:} false; then :
17601  $as_echo_n "(cached) " >&6
17602else
17603  if $as_echo 'TRUE=$(BAR$(V))
17604BAR0=false
17605BAR1=true
17606V=1
17607am__doit:
17608	@$(TRUE)
17609.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17610  am_cv_make_support_nested_variables=yes
17611else
17612  am_cv_make_support_nested_variables=no
17613fi
17614fi
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17616$as_echo "$am_cv_make_support_nested_variables" >&6; }
17617if test $am_cv_make_support_nested_variables = yes; then
17618    AM_V='$(V)'
17619  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17620else
17621  AM_V=$AM_DEFAULT_VERBOSITY
17622  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17623fi
17624AM_BACKSLASH='\'
17625
17626
17627
17628# Obtain compiler/linker options from server and required extensions
17629
17630pkg_failed=no
17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17632$as_echo_n "checking for XORG... " >&6; }
17633
17634if test -n "$XORG_CFLAGS"; then
17635    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17636 elif test -n "$PKG_CONFIG"; then
17637    if test -n "$PKG_CONFIG" && \
17638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
17639  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
17640  ac_status=$?
17641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17642  test $ac_status = 0; }; then
17643  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
17644else
17645  pkg_failed=yes
17646fi
17647 else
17648    pkg_failed=untried
17649fi
17650if test -n "$XORG_LIBS"; then
17651    pkg_cv_XORG_LIBS="$XORG_LIBS"
17652 elif test -n "$PKG_CONFIG"; then
17653    if test -n "$PKG_CONFIG" && \
17654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
17655  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
17656  ac_status=$?
17657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658  test $ac_status = 0; }; then
17659  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
17660else
17661  pkg_failed=yes
17662fi
17663 else
17664    pkg_failed=untried
17665fi
17666
17667
17668
17669if test $pkg_failed = yes; then
17670   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
17672
17673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17674        _pkg_short_errors_supported=yes
17675else
17676        _pkg_short_errors_supported=no
17677fi
17678        if test $_pkg_short_errors_supported = yes; then
17679	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.4 xproto inputproto" 2>&1`
17680        else
17681	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.4 xproto inputproto" 2>&1`
17682        fi
17683	# Put the nasty error message in config.log where it belongs
17684	echo "$XORG_PKG_ERRORS" >&5
17685
17686	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto inputproto) were not met:
17687
17688$XORG_PKG_ERRORS
17689
17690Consider adjusting the PKG_CONFIG_PATH environment variable if you
17691installed software in a non-standard prefix.
17692
17693Alternatively, you may set the environment variables XORG_CFLAGS
17694and XORG_LIBS to avoid the need to call pkg-config.
17695See the pkg-config man page for more details." "$LINENO" 5
17696
17697elif test $pkg_failed = untried; then
17698     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699$as_echo "no" >&6; }
17700	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17702as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17703is in your PATH or set the PKG_CONFIG environment variable to the full
17704path to pkg-config.
17705
17706Alternatively, you may set the environment variables XORG_CFLAGS
17707and XORG_LIBS to avoid the need to call pkg-config.
17708See the pkg-config man page for more details.
17709
17710To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17711See \`config.log' for more details" "$LINENO" 5; }
17712
17713else
17714	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17715	XORG_LIBS=$pkg_cv_XORG_LIBS
17716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717$as_echo "yes" >&6; }
17718
17719fi
17720
17721# Define a configure option for an alternate input module directory
17722
17723# Check whether --with-xorg-module-dir was given.
17724if test "${with_xorg_module_dir+set}" = set; then :
17725  withval=$with_xorg_module_dir; moduledir="$withval"
17726else
17727  moduledir="$libdir/xorg/modules"
17728fi
17729
17730inputdir=${moduledir}/input
17731
17732
17733# The keyboard driver code is O/S specific
17734case $host_os in
17735  linux*)
17736    IS_LINUX="yes"
17737    ;;
17738
17739  freebsd* | kfreebsd-gnu* | netbsd* | openbsd* | dragonfly*)
17740    IS_BSD="yes"
17741    ;;
17742
17743  solaris*)
17744    IS_SOLARIS="yes"
17745    ;;
17746
17747  gnu*)
17748    IS_HURD="yes"
17749    ;;
17750
17751  *)
17752    as_fn_error $? "Your operating system is not supported by the kbd driver.
17753                  Contact xorg@lists.freedesktop.org if you are interested in
17754                  porting it." "$LINENO" 5
17755    ;;
17756esac
17757case $host_os in
17758  netbsd*)
17759    case $host in
17760      *powerpc-*|*sparc-*|*sparc64-*|*vax-*)
17761        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
17762        ;;
17763    esac
17764    case "$(uname -m 2>&1)" in
17765      evbarm|sgimips|shark)
17766        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
17767        ;;
17768    esac
17769    ;;
17770esac
17771
17772
17773 if test "x$IS_LINUX" = xyes; then
17774  LINUX_TRUE=
17775  LINUX_FALSE='#'
17776else
17777  LINUX_TRUE='#'
17778  LINUX_FALSE=
17779fi
17780
17781 if test "x$IS_BSD" = xyes; then
17782  BSD_TRUE=
17783  BSD_FALSE='#'
17784else
17785  BSD_TRUE='#'
17786  BSD_FALSE=
17787fi
17788
17789 if test "x$IS_SOLARIS" = xyes; then
17790  SOLARIS_TRUE=
17791  SOLARIS_FALSE='#'
17792else
17793  SOLARIS_TRUE='#'
17794  SOLARIS_FALSE=
17795fi
17796
17797 if test "x$IS_HURD" = xyes; then
17798  HURD_TRUE=
17799  HURD_FALSE='#'
17800else
17801  HURD_TRUE='#'
17802  HURD_FALSE=
17803fi
17804
17805
17806DRIVER_NAME=kbd
17807
17808
17809ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
17810
17811cat >confcache <<\_ACEOF
17812# This file is a shell script that caches the results of configure
17813# tests run on this system so they can be shared between configure
17814# scripts and configure runs, see configure's option --config-cache.
17815# It is not useful on other systems.  If it contains results you don't
17816# want to keep, you may remove or edit it.
17817#
17818# config.status only pays attention to the cache file if you give it
17819# the --recheck option to rerun configure.
17820#
17821# `ac_cv_env_foo' variables (set or unset) will be overridden when
17822# loading this file, other *unset* `ac_cv_foo' will be assigned the
17823# following values.
17824
17825_ACEOF
17826
17827# The following way of writing the cache mishandles newlines in values,
17828# but we know of no workaround that is simple, portable, and efficient.
17829# So, we kill variables containing newlines.
17830# Ultrix sh set writes to stderr and can't be redirected directly,
17831# and sets the high bit in the cache file unless we assign to the vars.
17832(
17833  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17834    eval ac_val=\$$ac_var
17835    case $ac_val in #(
17836    *${as_nl}*)
17837      case $ac_var in #(
17838      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17840      esac
17841      case $ac_var in #(
17842      _ | IFS | as_nl) ;; #(
17843      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17844      *) { eval $ac_var=; unset $ac_var;} ;;
17845      esac ;;
17846    esac
17847  done
17848
17849  (set) 2>&1 |
17850    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17851    *${as_nl}ac_space=\ *)
17852      # `set' does not quote correctly, so add quotes: double-quote
17853      # substitution turns \\\\ into \\, and sed turns \\ into \.
17854      sed -n \
17855	"s/'/'\\\\''/g;
17856	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17857      ;; #(
17858    *)
17859      # `set' quotes correctly as required by POSIX, so do not add quotes.
17860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17861      ;;
17862    esac |
17863    sort
17864) |
17865  sed '
17866     /^ac_cv_env_/b end
17867     t clear
17868     :clear
17869     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17870     t end
17871     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17872     :end' >>confcache
17873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17874  if test -w "$cache_file"; then
17875    if test "x$cache_file" != "x/dev/null"; then
17876      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17877$as_echo "$as_me: updating cache $cache_file" >&6;}
17878      if test ! -f "$cache_file" || test -h "$cache_file"; then
17879	cat confcache >"$cache_file"
17880      else
17881        case $cache_file in #(
17882        */* | ?:*)
17883	  mv -f confcache "$cache_file"$$ &&
17884	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17885        *)
17886	  mv -f confcache "$cache_file" ;;
17887	esac
17888      fi
17889    fi
17890  else
17891    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17892$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17893  fi
17894fi
17895rm -f confcache
17896
17897test "x$prefix" = xNONE && prefix=$ac_default_prefix
17898# Let make expand exec_prefix.
17899test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17900
17901DEFS=-DHAVE_CONFIG_H
17902
17903ac_libobjs=
17904ac_ltlibobjs=
17905U=
17906for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17907  # 1. Remove the extension, and $U if already installed.
17908  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17909  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17910  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17911  #    will be set to the directory where LIBOBJS objects are built.
17912  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17913  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17914done
17915LIBOBJS=$ac_libobjs
17916
17917LTLIBOBJS=$ac_ltlibobjs
17918
17919
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17921$as_echo_n "checking that generated files are newer than configure... " >&6; }
17922   if test -n "$am_sleep_pid"; then
17923     # Hide warnings about reused PIDs.
17924     wait $am_sleep_pid 2>/dev/null
17925   fi
17926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17927$as_echo "done" >&6; }
17928 if test -n "$EXEEXT"; then
17929  am__EXEEXT_TRUE=
17930  am__EXEEXT_FALSE='#'
17931else
17932  am__EXEEXT_TRUE='#'
17933  am__EXEEXT_FALSE=
17934fi
17935
17936if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17937  as_fn_error $? "conditional \"AMDEP\" was never defined.
17938Usually this means the macro was only invoked conditionally." "$LINENO" 5
17939fi
17940if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17941  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17942Usually this means the macro was only invoked conditionally." "$LINENO" 5
17943fi
17944if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
17945  as_fn_error $? "conditional \"LINUX\" was never defined.
17946Usually this means the macro was only invoked conditionally." "$LINENO" 5
17947fi
17948if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
17949  as_fn_error $? "conditional \"BSD\" was never defined.
17950Usually this means the macro was only invoked conditionally." "$LINENO" 5
17951fi
17952if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
17953  as_fn_error $? "conditional \"SOLARIS\" was never defined.
17954Usually this means the macro was only invoked conditionally." "$LINENO" 5
17955fi
17956if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
17957  as_fn_error $? "conditional \"HURD\" was never defined.
17958Usually this means the macro was only invoked conditionally." "$LINENO" 5
17959fi
17960
17961: "${CONFIG_STATUS=./config.status}"
17962ac_write_fail=0
17963ac_clean_files_save=$ac_clean_files
17964ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17966$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17967as_write_fail=0
17968cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17969#! $SHELL
17970# Generated by $as_me.
17971# Run this file to recreate the current configuration.
17972# Compiler output produced by configure, useful for debugging
17973# configure, is in config.log if it exists.
17974
17975debug=false
17976ac_cs_recheck=false
17977ac_cs_silent=false
17978
17979SHELL=\${CONFIG_SHELL-$SHELL}
17980export SHELL
17981_ASEOF
17982cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17983## -------------------- ##
17984## M4sh Initialization. ##
17985## -------------------- ##
17986
17987# Be more Bourne compatible
17988DUALCASE=1; export DUALCASE # for MKS sh
17989if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17990  emulate sh
17991  NULLCMD=:
17992  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17993  # is contrary to our usage.  Disable this feature.
17994  alias -g '${1+"$@"}'='"$@"'
17995  setopt NO_GLOB_SUBST
17996else
17997  case `(set -o) 2>/dev/null` in #(
17998  *posix*) :
17999    set -o posix ;; #(
18000  *) :
18001     ;;
18002esac
18003fi
18004
18005
18006as_nl='
18007'
18008export as_nl
18009# Printing a long string crashes Solaris 7 /usr/bin/printf.
18010as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18011as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18012as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18013# Prefer a ksh shell builtin over an external printf program on Solaris,
18014# but without wasting forks for bash or zsh.
18015if test -z "$BASH_VERSION$ZSH_VERSION" \
18016    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18017  as_echo='print -r --'
18018  as_echo_n='print -rn --'
18019elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18020  as_echo='printf %s\n'
18021  as_echo_n='printf %s'
18022else
18023  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18024    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18025    as_echo_n='/usr/ucb/echo -n'
18026  else
18027    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18028    as_echo_n_body='eval
18029      arg=$1;
18030      case $arg in #(
18031      *"$as_nl"*)
18032	expr "X$arg" : "X\\(.*\\)$as_nl";
18033	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18034      esac;
18035      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18036    '
18037    export as_echo_n_body
18038    as_echo_n='sh -c $as_echo_n_body as_echo'
18039  fi
18040  export as_echo_body
18041  as_echo='sh -c $as_echo_body as_echo'
18042fi
18043
18044# The user is always right.
18045if test "${PATH_SEPARATOR+set}" != set; then
18046  PATH_SEPARATOR=:
18047  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18048    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18049      PATH_SEPARATOR=';'
18050  }
18051fi
18052
18053
18054# IFS
18055# We need space, tab and new line, in precisely that order.  Quoting is
18056# there to prevent editors from complaining about space-tab.
18057# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18058# splitting by setting IFS to empty value.)
18059IFS=" ""	$as_nl"
18060
18061# Find who we are.  Look in the path if we contain no directory separator.
18062as_myself=
18063case $0 in #((
18064  *[\\/]* ) as_myself=$0 ;;
18065  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18066for as_dir in $PATH
18067do
18068  IFS=$as_save_IFS
18069  test -z "$as_dir" && as_dir=.
18070    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18071  done
18072IFS=$as_save_IFS
18073
18074     ;;
18075esac
18076# We did not find ourselves, most probably we were run as `sh COMMAND'
18077# in which case we are not to be found in the path.
18078if test "x$as_myself" = x; then
18079  as_myself=$0
18080fi
18081if test ! -f "$as_myself"; then
18082  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18083  exit 1
18084fi
18085
18086# Unset variables that we do not need and which cause bugs (e.g. in
18087# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18088# suppresses any "Segmentation fault" message there.  '((' could
18089# trigger a bug in pdksh 5.2.14.
18090for as_var in BASH_ENV ENV MAIL MAILPATH
18091do eval test x\${$as_var+set} = xset \
18092  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18093done
18094PS1='$ '
18095PS2='> '
18096PS4='+ '
18097
18098# NLS nuisances.
18099LC_ALL=C
18100export LC_ALL
18101LANGUAGE=C
18102export LANGUAGE
18103
18104# CDPATH.
18105(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18106
18107
18108# as_fn_error STATUS ERROR [LINENO LOG_FD]
18109# ----------------------------------------
18110# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18111# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18112# script with STATUS, using 1 if that was 0.
18113as_fn_error ()
18114{
18115  as_status=$1; test $as_status -eq 0 && as_status=1
18116  if test "$4"; then
18117    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18118    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18119  fi
18120  $as_echo "$as_me: error: $2" >&2
18121  as_fn_exit $as_status
18122} # as_fn_error
18123
18124
18125# as_fn_set_status STATUS
18126# -----------------------
18127# Set $? to STATUS, without forking.
18128as_fn_set_status ()
18129{
18130  return $1
18131} # as_fn_set_status
18132
18133# as_fn_exit STATUS
18134# -----------------
18135# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18136as_fn_exit ()
18137{
18138  set +e
18139  as_fn_set_status $1
18140  exit $1
18141} # as_fn_exit
18142
18143# as_fn_unset VAR
18144# ---------------
18145# Portably unset VAR.
18146as_fn_unset ()
18147{
18148  { eval $1=; unset $1;}
18149}
18150as_unset=as_fn_unset
18151# as_fn_append VAR VALUE
18152# ----------------------
18153# Append the text in VALUE to the end of the definition contained in VAR. Take
18154# advantage of any shell optimizations that allow amortized linear growth over
18155# repeated appends, instead of the typical quadratic growth present in naive
18156# implementations.
18157if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18158  eval 'as_fn_append ()
18159  {
18160    eval $1+=\$2
18161  }'
18162else
18163  as_fn_append ()
18164  {
18165    eval $1=\$$1\$2
18166  }
18167fi # as_fn_append
18168
18169# as_fn_arith ARG...
18170# ------------------
18171# Perform arithmetic evaluation on the ARGs, and store the result in the
18172# global $as_val. Take advantage of shells that can avoid forks. The arguments
18173# must be portable across $(()) and expr.
18174if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18175  eval 'as_fn_arith ()
18176  {
18177    as_val=$(( $* ))
18178  }'
18179else
18180  as_fn_arith ()
18181  {
18182    as_val=`expr "$@" || test $? -eq 1`
18183  }
18184fi # as_fn_arith
18185
18186
18187if expr a : '\(a\)' >/dev/null 2>&1 &&
18188   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18189  as_expr=expr
18190else
18191  as_expr=false
18192fi
18193
18194if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18195  as_basename=basename
18196else
18197  as_basename=false
18198fi
18199
18200if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18201  as_dirname=dirname
18202else
18203  as_dirname=false
18204fi
18205
18206as_me=`$as_basename -- "$0" ||
18207$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18208	 X"$0" : 'X\(//\)$' \| \
18209	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18210$as_echo X/"$0" |
18211    sed '/^.*\/\([^/][^/]*\)\/*$/{
18212	    s//\1/
18213	    q
18214	  }
18215	  /^X\/\(\/\/\)$/{
18216	    s//\1/
18217	    q
18218	  }
18219	  /^X\/\(\/\).*/{
18220	    s//\1/
18221	    q
18222	  }
18223	  s/.*/./; q'`
18224
18225# Avoid depending upon Character Ranges.
18226as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18227as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18228as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18229as_cr_digits='0123456789'
18230as_cr_alnum=$as_cr_Letters$as_cr_digits
18231
18232ECHO_C= ECHO_N= ECHO_T=
18233case `echo -n x` in #(((((
18234-n*)
18235  case `echo 'xy\c'` in
18236  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18237  xy)  ECHO_C='\c';;
18238  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18239       ECHO_T='	';;
18240  esac;;
18241*)
18242  ECHO_N='-n';;
18243esac
18244
18245rm -f conf$$ conf$$.exe conf$$.file
18246if test -d conf$$.dir; then
18247  rm -f conf$$.dir/conf$$.file
18248else
18249  rm -f conf$$.dir
18250  mkdir conf$$.dir 2>/dev/null
18251fi
18252if (echo >conf$$.file) 2>/dev/null; then
18253  if ln -s conf$$.file conf$$ 2>/dev/null; then
18254    as_ln_s='ln -s'
18255    # ... but there are two gotchas:
18256    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18257    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18258    # In both cases, we have to default to `cp -pR'.
18259    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18260      as_ln_s='cp -pR'
18261  elif ln conf$$.file conf$$ 2>/dev/null; then
18262    as_ln_s=ln
18263  else
18264    as_ln_s='cp -pR'
18265  fi
18266else
18267  as_ln_s='cp -pR'
18268fi
18269rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18270rmdir conf$$.dir 2>/dev/null
18271
18272
18273# as_fn_mkdir_p
18274# -------------
18275# Create "$as_dir" as a directory, including parents if necessary.
18276as_fn_mkdir_p ()
18277{
18278
18279  case $as_dir in #(
18280  -*) as_dir=./$as_dir;;
18281  esac
18282  test -d "$as_dir" || eval $as_mkdir_p || {
18283    as_dirs=
18284    while :; do
18285      case $as_dir in #(
18286      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18287      *) as_qdir=$as_dir;;
18288      esac
18289      as_dirs="'$as_qdir' $as_dirs"
18290      as_dir=`$as_dirname -- "$as_dir" ||
18291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292	 X"$as_dir" : 'X\(//\)[^/]' \| \
18293	 X"$as_dir" : 'X\(//\)$' \| \
18294	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18295$as_echo X"$as_dir" |
18296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18297	    s//\1/
18298	    q
18299	  }
18300	  /^X\(\/\/\)[^/].*/{
18301	    s//\1/
18302	    q
18303	  }
18304	  /^X\(\/\/\)$/{
18305	    s//\1/
18306	    q
18307	  }
18308	  /^X\(\/\).*/{
18309	    s//\1/
18310	    q
18311	  }
18312	  s/.*/./; q'`
18313      test -d "$as_dir" && break
18314    done
18315    test -z "$as_dirs" || eval "mkdir $as_dirs"
18316  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18317
18318
18319} # as_fn_mkdir_p
18320if mkdir -p . 2>/dev/null; then
18321  as_mkdir_p='mkdir -p "$as_dir"'
18322else
18323  test -d ./-p && rmdir ./-p
18324  as_mkdir_p=false
18325fi
18326
18327
18328# as_fn_executable_p FILE
18329# -----------------------
18330# Test if FILE is an executable regular file.
18331as_fn_executable_p ()
18332{
18333  test -f "$1" && test -x "$1"
18334} # as_fn_executable_p
18335as_test_x='test -x'
18336as_executable_p=as_fn_executable_p
18337
18338# Sed expression to map a string onto a valid CPP name.
18339as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18340
18341# Sed expression to map a string onto a valid variable name.
18342as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18343
18344
18345exec 6>&1
18346## ----------------------------------- ##
18347## Main body of $CONFIG_STATUS script. ##
18348## ----------------------------------- ##
18349_ASEOF
18350test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18351
18352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18353# Save the log message, to keep $0 and so on meaningful, and to
18354# report actual input values of CONFIG_FILES etc. instead of their
18355# values after options handling.
18356ac_log="
18357This file was extended by xf86-input-keyboard $as_me 1.8.0, which was
18358generated by GNU Autoconf 2.69.  Invocation command line was
18359
18360  CONFIG_FILES    = $CONFIG_FILES
18361  CONFIG_HEADERS  = $CONFIG_HEADERS
18362  CONFIG_LINKS    = $CONFIG_LINKS
18363  CONFIG_COMMANDS = $CONFIG_COMMANDS
18364  $ $0 $@
18365
18366on `(hostname || uname -n) 2>/dev/null | sed 1q`
18367"
18368
18369_ACEOF
18370
18371case $ac_config_files in *"
18372"*) set x $ac_config_files; shift; ac_config_files=$*;;
18373esac
18374
18375case $ac_config_headers in *"
18376"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18377esac
18378
18379
18380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381# Files that config.status was made for.
18382config_files="$ac_config_files"
18383config_headers="$ac_config_headers"
18384config_commands="$ac_config_commands"
18385
18386_ACEOF
18387
18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389ac_cs_usage="\
18390\`$as_me' instantiates files and other configuration actions
18391from templates according to the current configuration.  Unless the files
18392and actions are specified as TAGs, all are instantiated by default.
18393
18394Usage: $0 [OPTION]... [TAG]...
18395
18396  -h, --help       print this help, then exit
18397  -V, --version    print version number and configuration settings, then exit
18398      --config     print configuration, then exit
18399  -q, --quiet, --silent
18400                   do not print progress messages
18401  -d, --debug      don't remove temporary files
18402      --recheck    update $as_me by reconfiguring in the same conditions
18403      --file=FILE[:TEMPLATE]
18404                   instantiate the configuration file FILE
18405      --header=FILE[:TEMPLATE]
18406                   instantiate the configuration header FILE
18407
18408Configuration files:
18409$config_files
18410
18411Configuration headers:
18412$config_headers
18413
18414Configuration commands:
18415$config_commands
18416
18417Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18418
18419_ACEOF
18420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18422ac_cs_version="\\
18423xf86-input-keyboard config.status 1.8.0
18424configured by $0, generated by GNU Autoconf 2.69,
18425  with options \\"\$ac_cs_config\\"
18426
18427Copyright (C) 2012 Free Software Foundation, Inc.
18428This config.status script is free software; the Free Software Foundation
18429gives unlimited permission to copy, distribute and modify it."
18430
18431ac_pwd='$ac_pwd'
18432srcdir='$srcdir'
18433INSTALL='$INSTALL'
18434MKDIR_P='$MKDIR_P'
18435AWK='$AWK'
18436test -n "\$AWK" || AWK=awk
18437_ACEOF
18438
18439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440# The default lists apply if the user does not specify any file.
18441ac_need_defaults=:
18442while test $# != 0
18443do
18444  case $1 in
18445  --*=?*)
18446    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18447    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18448    ac_shift=:
18449    ;;
18450  --*=)
18451    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18452    ac_optarg=
18453    ac_shift=:
18454    ;;
18455  *)
18456    ac_option=$1
18457    ac_optarg=$2
18458    ac_shift=shift
18459    ;;
18460  esac
18461
18462  case $ac_option in
18463  # Handling of the options.
18464  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18465    ac_cs_recheck=: ;;
18466  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18467    $as_echo "$ac_cs_version"; exit ;;
18468  --config | --confi | --conf | --con | --co | --c )
18469    $as_echo "$ac_cs_config"; exit ;;
18470  --debug | --debu | --deb | --de | --d | -d )
18471    debug=: ;;
18472  --file | --fil | --fi | --f )
18473    $ac_shift
18474    case $ac_optarg in
18475    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18476    '') as_fn_error $? "missing file argument" ;;
18477    esac
18478    as_fn_append CONFIG_FILES " '$ac_optarg'"
18479    ac_need_defaults=false;;
18480  --header | --heade | --head | --hea )
18481    $ac_shift
18482    case $ac_optarg in
18483    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18484    esac
18485    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18486    ac_need_defaults=false;;
18487  --he | --h)
18488    # Conflict between --help and --header
18489    as_fn_error $? "ambiguous option: \`$1'
18490Try \`$0 --help' for more information.";;
18491  --help | --hel | -h )
18492    $as_echo "$ac_cs_usage"; exit ;;
18493  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18494  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18495    ac_cs_silent=: ;;
18496
18497  # This is an error.
18498  -*) as_fn_error $? "unrecognized option: \`$1'
18499Try \`$0 --help' for more information." ;;
18500
18501  *) as_fn_append ac_config_targets " $1"
18502     ac_need_defaults=false ;;
18503
18504  esac
18505  shift
18506done
18507
18508ac_configure_extra_args=
18509
18510if $ac_cs_silent; then
18511  exec 6>/dev/null
18512  ac_configure_extra_args="$ac_configure_extra_args --silent"
18513fi
18514
18515_ACEOF
18516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18517if \$ac_cs_recheck; then
18518  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18519  shift
18520  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18521  CONFIG_SHELL='$SHELL'
18522  export CONFIG_SHELL
18523  exec "\$@"
18524fi
18525
18526_ACEOF
18527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18528exec 5>>config.log
18529{
18530  echo
18531  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18532## Running $as_me. ##
18533_ASBOX
18534  $as_echo "$ac_log"
18535} >&5
18536
18537_ACEOF
18538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18539#
18540# INIT-COMMANDS
18541#
18542AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18543
18544
18545# The HP-UX ksh and POSIX shell print the target directory to stdout
18546# if CDPATH is set.
18547(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18548
18549sed_quote_subst='$sed_quote_subst'
18550double_quote_subst='$double_quote_subst'
18551delay_variable_subst='$delay_variable_subst'
18552enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18553macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18554macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18555enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18556pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18557enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18558SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18559ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18560PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18561host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18562host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18563host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18564build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18565build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18566build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18567SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18568Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18569GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18570EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18571FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18572LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18573NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18574LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18575max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18576ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18577exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18578lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18579lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18580lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18581lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18582lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18583reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18584reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18585OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18586deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18587file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18588file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18589want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18590DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18591sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18592AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18593AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18594archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18595STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18596RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18597old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18598old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18599old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18600lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18601CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18602CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18603compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18604GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18605lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18606lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18607lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18608lt_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"`'
18609nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18610lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18611objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18612MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18613lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18614lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18615lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18616lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18617lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18618need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18619MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18620DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18621NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18622LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18623OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18624OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18625libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18626shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18627extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18628archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18629enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18630export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18631whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18632compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18633old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18634old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18635archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18636archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18637module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18638module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18639with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18640allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18641no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18642hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18643hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18644hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18645hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18646hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18647hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18648hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18649inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18650link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18651always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18652export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18653exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18654include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18655prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18656postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18657file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18658variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18659need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18660need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18661version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18662runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18663shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18664shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18665libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18666library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18667soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18668install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18669postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18670postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18671finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18672finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18673hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18674sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18675sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18676hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18677enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18678enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18679enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18680old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18681striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18682
18683LTCC='$LTCC'
18684LTCFLAGS='$LTCFLAGS'
18685compiler='$compiler_DEFAULT'
18686
18687# A function that is used when there is no print builtin or printf.
18688func_fallback_echo ()
18689{
18690  eval 'cat <<_LTECHO_EOF
18691\$1
18692_LTECHO_EOF'
18693}
18694
18695# Quote evaled strings.
18696for var in SHELL \
18697ECHO \
18698PATH_SEPARATOR \
18699SED \
18700GREP \
18701EGREP \
18702FGREP \
18703LD \
18704NM \
18705LN_S \
18706lt_SP2NL \
18707lt_NL2SP \
18708reload_flag \
18709OBJDUMP \
18710deplibs_check_method \
18711file_magic_cmd \
18712file_magic_glob \
18713want_nocaseglob \
18714DLLTOOL \
18715sharedlib_from_linklib_cmd \
18716AR \
18717AR_FLAGS \
18718archiver_list_spec \
18719STRIP \
18720RANLIB \
18721CC \
18722CFLAGS \
18723compiler \
18724lt_cv_sys_global_symbol_pipe \
18725lt_cv_sys_global_symbol_to_cdecl \
18726lt_cv_sys_global_symbol_to_c_name_address \
18727lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18728nm_file_list_spec \
18729lt_prog_compiler_no_builtin_flag \
18730lt_prog_compiler_pic \
18731lt_prog_compiler_wl \
18732lt_prog_compiler_static \
18733lt_cv_prog_compiler_c_o \
18734need_locks \
18735MANIFEST_TOOL \
18736DSYMUTIL \
18737NMEDIT \
18738LIPO \
18739OTOOL \
18740OTOOL64 \
18741shrext_cmds \
18742export_dynamic_flag_spec \
18743whole_archive_flag_spec \
18744compiler_needs_object \
18745with_gnu_ld \
18746allow_undefined_flag \
18747no_undefined_flag \
18748hardcode_libdir_flag_spec \
18749hardcode_libdir_separator \
18750exclude_expsyms \
18751include_expsyms \
18752file_list_spec \
18753variables_saved_for_relink \
18754libname_spec \
18755library_names_spec \
18756soname_spec \
18757install_override_mode \
18758finish_eval \
18759old_striplib \
18760striplib; do
18761    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18762    *[\\\\\\\`\\"\\\$]*)
18763      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18764      ;;
18765    *)
18766      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18767      ;;
18768    esac
18769done
18770
18771# Double-quote double-evaled strings.
18772for var in reload_cmds \
18773old_postinstall_cmds \
18774old_postuninstall_cmds \
18775old_archive_cmds \
18776extract_expsyms_cmds \
18777old_archive_from_new_cmds \
18778old_archive_from_expsyms_cmds \
18779archive_cmds \
18780archive_expsym_cmds \
18781module_cmds \
18782module_expsym_cmds \
18783export_symbols_cmds \
18784prelink_cmds \
18785postlink_cmds \
18786postinstall_cmds \
18787postuninstall_cmds \
18788finish_cmds \
18789sys_lib_search_path_spec \
18790sys_lib_dlsearch_path_spec; do
18791    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18792    *[\\\\\\\`\\"\\\$]*)
18793      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18794      ;;
18795    *)
18796      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18797      ;;
18798    esac
18799done
18800
18801ac_aux_dir='$ac_aux_dir'
18802xsi_shell='$xsi_shell'
18803lt_shell_append='$lt_shell_append'
18804
18805# See if we are running on zsh, and set the options which allow our
18806# commands through without removal of \ escapes INIT.
18807if test -n "\${ZSH_VERSION+set}" ; then
18808   setopt NO_GLOB_SUBST
18809fi
18810
18811
18812    PACKAGE='$PACKAGE'
18813    VERSION='$VERSION'
18814    TIMESTAMP='$TIMESTAMP'
18815    RM='$RM'
18816    ofile='$ofile'
18817
18818
18819
18820
18821_ACEOF
18822
18823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18824
18825# Handling of arguments.
18826for ac_config_target in $ac_config_targets
18827do
18828  case $ac_config_target in
18829    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18830    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18831    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18832    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18833    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18834    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18835
18836  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18837  esac
18838done
18839
18840
18841# If the user did not use the arguments to specify the items to instantiate,
18842# then the envvar interface is used.  Set only those that are not.
18843# We use the long form for the default assignment because of an extremely
18844# bizarre bug on SunOS 4.1.3.
18845if $ac_need_defaults; then
18846  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18847  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18848  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18849fi
18850
18851# Have a temporary directory for convenience.  Make it in the build tree
18852# simply because there is no reason against having it here, and in addition,
18853# creating and moving files from /tmp can sometimes cause problems.
18854# Hook for its removal unless debugging.
18855# Note that there is a small window in which the directory will not be cleaned:
18856# after its creation but before its name has been assigned to `$tmp'.
18857$debug ||
18858{
18859  tmp= ac_tmp=
18860  trap 'exit_status=$?
18861  : "${ac_tmp:=$tmp}"
18862  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18863' 0
18864  trap 'as_fn_exit 1' 1 2 13 15
18865}
18866# Create a (secure) tmp directory for tmp files.
18867
18868{
18869  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18870  test -d "$tmp"
18871}  ||
18872{
18873  tmp=./conf$$-$RANDOM
18874  (umask 077 && mkdir "$tmp")
18875} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18876ac_tmp=$tmp
18877
18878# Set up the scripts for CONFIG_FILES section.
18879# No need to generate them if there are no CONFIG_FILES.
18880# This happens for instance with `./config.status config.h'.
18881if test -n "$CONFIG_FILES"; then
18882
18883
18884ac_cr=`echo X | tr X '\015'`
18885# On cygwin, bash can eat \r inside `` if the user requested igncr.
18886# But we know of no other shell where ac_cr would be empty at this
18887# point, so we can use a bashism as a fallback.
18888if test "x$ac_cr" = x; then
18889  eval ac_cr=\$\'\\r\'
18890fi
18891ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18892if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18893  ac_cs_awk_cr='\\r'
18894else
18895  ac_cs_awk_cr=$ac_cr
18896fi
18897
18898echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18899_ACEOF
18900
18901
18902{
18903  echo "cat >conf$$subs.awk <<_ACEOF" &&
18904  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18905  echo "_ACEOF"
18906} >conf$$subs.sh ||
18907  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18908ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18909ac_delim='%!_!# '
18910for ac_last_try in false false false false false :; do
18911  . ./conf$$subs.sh ||
18912    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18913
18914  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18915  if test $ac_delim_n = $ac_delim_num; then
18916    break
18917  elif $ac_last_try; then
18918    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18919  else
18920    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18921  fi
18922done
18923rm -f conf$$subs.sh
18924
18925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18927_ACEOF
18928sed -n '
18929h
18930s/^/S["/; s/!.*/"]=/
18931p
18932g
18933s/^[^!]*!//
18934:repl
18935t repl
18936s/'"$ac_delim"'$//
18937t delim
18938:nl
18939h
18940s/\(.\{148\}\)..*/\1/
18941t more1
18942s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18943p
18944n
18945b repl
18946:more1
18947s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18948p
18949g
18950s/.\{148\}//
18951t nl
18952:delim
18953h
18954s/\(.\{148\}\)..*/\1/
18955t more2
18956s/["\\]/\\&/g; s/^/"/; s/$/"/
18957p
18958b
18959:more2
18960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18961p
18962g
18963s/.\{148\}//
18964t delim
18965' <conf$$subs.awk | sed '
18966/^[^""]/{
18967  N
18968  s/\n//
18969}
18970' >>$CONFIG_STATUS || ac_write_fail=1
18971rm -f conf$$subs.awk
18972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18973_ACAWK
18974cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18975  for (key in S) S_is_set[key] = 1
18976  FS = ""
18977
18978}
18979{
18980  line = $ 0
18981  nfields = split(line, field, "@")
18982  substed = 0
18983  len = length(field[1])
18984  for (i = 2; i < nfields; i++) {
18985    key = field[i]
18986    keylen = length(key)
18987    if (S_is_set[key]) {
18988      value = S[key]
18989      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18990      len += length(value) + length(field[++i])
18991      substed = 1
18992    } else
18993      len += 1 + keylen
18994  }
18995
18996  print line
18997}
18998
18999_ACAWK
19000_ACEOF
19001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19002if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19003  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19004else
19005  cat
19006fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19007  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19008_ACEOF
19009
19010# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19011# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19012# trailing colons and then remove the whole line if VPATH becomes empty
19013# (actually we leave an empty line to preserve line numbers).
19014if test "x$srcdir" = x.; then
19015  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19016h
19017s///
19018s/^/:/
19019s/[	 ]*$/:/
19020s/:\$(srcdir):/:/g
19021s/:\${srcdir}:/:/g
19022s/:@srcdir@:/:/g
19023s/^:*//
19024s/:*$//
19025x
19026s/\(=[	 ]*\).*/\1/
19027G
19028s/\n//
19029s/^[^=]*=[	 ]*$//
19030}'
19031fi
19032
19033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19034fi # test -n "$CONFIG_FILES"
19035
19036# Set up the scripts for CONFIG_HEADERS section.
19037# No need to generate them if there are no CONFIG_HEADERS.
19038# This happens for instance with `./config.status Makefile'.
19039if test -n "$CONFIG_HEADERS"; then
19040cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19041BEGIN {
19042_ACEOF
19043
19044# Transform confdefs.h into an awk script `defines.awk', embedded as
19045# here-document in config.status, that substitutes the proper values into
19046# config.h.in to produce config.h.
19047
19048# Create a delimiter string that does not exist in confdefs.h, to ease
19049# handling of long lines.
19050ac_delim='%!_!# '
19051for ac_last_try in false false :; do
19052  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19053  if test -z "$ac_tt"; then
19054    break
19055  elif $ac_last_try; then
19056    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19057  else
19058    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19059  fi
19060done
19061
19062# For the awk script, D is an array of macro values keyed by name,
19063# likewise P contains macro parameters if any.  Preserve backslash
19064# newline sequences.
19065
19066ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19067sed -n '
19068s/.\{148\}/&'"$ac_delim"'/g
19069t rset
19070:rset
19071s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19072t def
19073d
19074:def
19075s/\\$//
19076t bsnl
19077s/["\\]/\\&/g
19078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19079D["\1"]=" \3"/p
19080s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19081d
19082:bsnl
19083s/["\\]/\\&/g
19084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19085D["\1"]=" \3\\\\\\n"\\/p
19086t cont
19087s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19088t cont
19089d
19090:cont
19091n
19092s/.\{148\}/&'"$ac_delim"'/g
19093t clear
19094:clear
19095s/\\$//
19096t bsnlc
19097s/["\\]/\\&/g; s/^/"/; s/$/"/p
19098d
19099:bsnlc
19100s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19101b cont
19102' <confdefs.h | sed '
19103s/'"$ac_delim"'/"\\\
19104"/g' >>$CONFIG_STATUS || ac_write_fail=1
19105
19106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19107  for (key in D) D_is_set[key] = 1
19108  FS = ""
19109}
19110/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19111  line = \$ 0
19112  split(line, arg, " ")
19113  if (arg[1] == "#") {
19114    defundef = arg[2]
19115    mac1 = arg[3]
19116  } else {
19117    defundef = substr(arg[1], 2)
19118    mac1 = arg[2]
19119  }
19120  split(mac1, mac2, "(") #)
19121  macro = mac2[1]
19122  prefix = substr(line, 1, index(line, defundef) - 1)
19123  if (D_is_set[macro]) {
19124    # Preserve the white space surrounding the "#".
19125    print prefix "define", macro P[macro] D[macro]
19126    next
19127  } else {
19128    # Replace #undef with comments.  This is necessary, for example,
19129    # in the case of _POSIX_SOURCE, which is predefined and required
19130    # on some systems where configure will not decide to define it.
19131    if (defundef == "undef") {
19132      print "/*", prefix defundef, macro, "*/"
19133      next
19134    }
19135  }
19136}
19137{ print }
19138_ACAWK
19139_ACEOF
19140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19141  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19142fi # test -n "$CONFIG_HEADERS"
19143
19144
19145eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19146shift
19147for ac_tag
19148do
19149  case $ac_tag in
19150  :[FHLC]) ac_mode=$ac_tag; continue;;
19151  esac
19152  case $ac_mode$ac_tag in
19153  :[FHL]*:*);;
19154  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19155  :[FH]-) ac_tag=-:-;;
19156  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19157  esac
19158  ac_save_IFS=$IFS
19159  IFS=:
19160  set x $ac_tag
19161  IFS=$ac_save_IFS
19162  shift
19163  ac_file=$1
19164  shift
19165
19166  case $ac_mode in
19167  :L) ac_source=$1;;
19168  :[FH])
19169    ac_file_inputs=
19170    for ac_f
19171    do
19172      case $ac_f in
19173      -) ac_f="$ac_tmp/stdin";;
19174      *) # Look for the file first in the build tree, then in the source tree
19175	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19176	 # because $ac_f cannot contain `:'.
19177	 test -f "$ac_f" ||
19178	   case $ac_f in
19179	   [\\/$]*) false;;
19180	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19181	   esac ||
19182	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19183      esac
19184      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19185      as_fn_append ac_file_inputs " '$ac_f'"
19186    done
19187
19188    # Let's still pretend it is `configure' which instantiates (i.e., don't
19189    # use $as_me), people would be surprised to read:
19190    #    /* config.h.  Generated by config.status.  */
19191    configure_input='Generated from '`
19192	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19193	`' by configure.'
19194    if test x"$ac_file" != x-; then
19195      configure_input="$ac_file.  $configure_input"
19196      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19197$as_echo "$as_me: creating $ac_file" >&6;}
19198    fi
19199    # Neutralize special characters interpreted by sed in replacement strings.
19200    case $configure_input in #(
19201    *\&* | *\|* | *\\* )
19202       ac_sed_conf_input=`$as_echo "$configure_input" |
19203       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19204    *) ac_sed_conf_input=$configure_input;;
19205    esac
19206
19207    case $ac_tag in
19208    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19209      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19210    esac
19211    ;;
19212  esac
19213
19214  ac_dir=`$as_dirname -- "$ac_file" ||
19215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19216	 X"$ac_file" : 'X\(//\)[^/]' \| \
19217	 X"$ac_file" : 'X\(//\)$' \| \
19218	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19219$as_echo X"$ac_file" |
19220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19221	    s//\1/
19222	    q
19223	  }
19224	  /^X\(\/\/\)[^/].*/{
19225	    s//\1/
19226	    q
19227	  }
19228	  /^X\(\/\/\)$/{
19229	    s//\1/
19230	    q
19231	  }
19232	  /^X\(\/\).*/{
19233	    s//\1/
19234	    q
19235	  }
19236	  s/.*/./; q'`
19237  as_dir="$ac_dir"; as_fn_mkdir_p
19238  ac_builddir=.
19239
19240case "$ac_dir" in
19241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19242*)
19243  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19244  # A ".." for each directory in $ac_dir_suffix.
19245  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19246  case $ac_top_builddir_sub in
19247  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19248  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19249  esac ;;
19250esac
19251ac_abs_top_builddir=$ac_pwd
19252ac_abs_builddir=$ac_pwd$ac_dir_suffix
19253# for backward compatibility:
19254ac_top_builddir=$ac_top_build_prefix
19255
19256case $srcdir in
19257  .)  # We are building in place.
19258    ac_srcdir=.
19259    ac_top_srcdir=$ac_top_builddir_sub
19260    ac_abs_top_srcdir=$ac_pwd ;;
19261  [\\/]* | ?:[\\/]* )  # Absolute name.
19262    ac_srcdir=$srcdir$ac_dir_suffix;
19263    ac_top_srcdir=$srcdir
19264    ac_abs_top_srcdir=$srcdir ;;
19265  *) # Relative name.
19266    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19267    ac_top_srcdir=$ac_top_build_prefix$srcdir
19268    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19269esac
19270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19271
19272
19273  case $ac_mode in
19274  :F)
19275  #
19276  # CONFIG_FILE
19277  #
19278
19279  case $INSTALL in
19280  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19281  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19282  esac
19283  ac_MKDIR_P=$MKDIR_P
19284  case $MKDIR_P in
19285  [\\/$]* | ?:[\\/]* ) ;;
19286  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19287  esac
19288_ACEOF
19289
19290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291# If the template does not know about datarootdir, expand it.
19292# FIXME: This hack should be removed a few years after 2.60.
19293ac_datarootdir_hack=; ac_datarootdir_seen=
19294ac_sed_dataroot='
19295/datarootdir/ {
19296  p
19297  q
19298}
19299/@datadir@/p
19300/@docdir@/p
19301/@infodir@/p
19302/@localedir@/p
19303/@mandir@/p'
19304case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19305*datarootdir*) ac_datarootdir_seen=yes;;
19306*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19307  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19308$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19309_ACEOF
19310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19311  ac_datarootdir_hack='
19312  s&@datadir@&$datadir&g
19313  s&@docdir@&$docdir&g
19314  s&@infodir@&$infodir&g
19315  s&@localedir@&$localedir&g
19316  s&@mandir@&$mandir&g
19317  s&\\\${datarootdir}&$datarootdir&g' ;;
19318esac
19319_ACEOF
19320
19321# Neutralize VPATH when `$srcdir' = `.'.
19322# Shell code in configure.ac might set extrasub.
19323# FIXME: do we really want to maintain this feature?
19324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19325ac_sed_extra="$ac_vpsub
19326$extrasub
19327_ACEOF
19328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19329:t
19330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19331s|@configure_input@|$ac_sed_conf_input|;t t
19332s&@top_builddir@&$ac_top_builddir_sub&;t t
19333s&@top_build_prefix@&$ac_top_build_prefix&;t t
19334s&@srcdir@&$ac_srcdir&;t t
19335s&@abs_srcdir@&$ac_abs_srcdir&;t t
19336s&@top_srcdir@&$ac_top_srcdir&;t t
19337s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19338s&@builddir@&$ac_builddir&;t t
19339s&@abs_builddir@&$ac_abs_builddir&;t t
19340s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19341s&@INSTALL@&$ac_INSTALL&;t t
19342s&@MKDIR_P@&$ac_MKDIR_P&;t t
19343$ac_datarootdir_hack
19344"
19345eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19346  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19347
19348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19349  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19350  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19351      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19352  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19353which seems to be undefined.  Please make sure it is defined" >&5
19354$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19355which seems to be undefined.  Please make sure it is defined" >&2;}
19356
19357  rm -f "$ac_tmp/stdin"
19358  case $ac_file in
19359  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19360  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19361  esac \
19362  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19363 ;;
19364  :H)
19365  #
19366  # CONFIG_HEADER
19367  #
19368  if test x"$ac_file" != x-; then
19369    {
19370      $as_echo "/* $configure_input  */" \
19371      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19372    } >"$ac_tmp/config.h" \
19373      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19374    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19375      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19376$as_echo "$as_me: $ac_file is unchanged" >&6;}
19377    else
19378      rm -f "$ac_file"
19379      mv "$ac_tmp/config.h" "$ac_file" \
19380	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19381    fi
19382  else
19383    $as_echo "/* $configure_input  */" \
19384      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19385      || as_fn_error $? "could not create -" "$LINENO" 5
19386  fi
19387# Compute "$ac_file"'s index in $config_headers.
19388_am_arg="$ac_file"
19389_am_stamp_count=1
19390for _am_header in $config_headers :; do
19391  case $_am_header in
19392    $_am_arg | $_am_arg:* )
19393      break ;;
19394    * )
19395      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19396  esac
19397done
19398echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19399$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19400	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19401	 X"$_am_arg" : 'X\(//\)$' \| \
19402	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19403$as_echo X"$_am_arg" |
19404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19405	    s//\1/
19406	    q
19407	  }
19408	  /^X\(\/\/\)[^/].*/{
19409	    s//\1/
19410	    q
19411	  }
19412	  /^X\(\/\/\)$/{
19413	    s//\1/
19414	    q
19415	  }
19416	  /^X\(\/\).*/{
19417	    s//\1/
19418	    q
19419	  }
19420	  s/.*/./; q'`/stamp-h$_am_stamp_count
19421 ;;
19422
19423  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19424$as_echo "$as_me: executing $ac_file commands" >&6;}
19425 ;;
19426  esac
19427
19428
19429  case $ac_file$ac_mode in
19430    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19431  # Older Autoconf quotes --file arguments for eval, but not when files
19432  # are listed without --file.  Let's play safe and only enable the eval
19433  # if we detect the quoting.
19434  case $CONFIG_FILES in
19435  *\'*) eval set x "$CONFIG_FILES" ;;
19436  *)   set x $CONFIG_FILES ;;
19437  esac
19438  shift
19439  for mf
19440  do
19441    # Strip MF so we end up with the name of the file.
19442    mf=`echo "$mf" | sed -e 's/:.*$//'`
19443    # Check whether this is an Automake generated Makefile or not.
19444    # We used to match only the files named 'Makefile.in', but
19445    # some people rename them; so instead we look at the file content.
19446    # Grep'ing the first line is not enough: some people post-process
19447    # each Makefile.in and add a new line on top of each file to say so.
19448    # Grep'ing the whole file is not good either: AIX grep has a line
19449    # limit of 2048, but all sed's we know have understand at least 4000.
19450    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19451      dirpart=`$as_dirname -- "$mf" ||
19452$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19453	 X"$mf" : 'X\(//\)[^/]' \| \
19454	 X"$mf" : 'X\(//\)$' \| \
19455	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19456$as_echo X"$mf" |
19457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19458	    s//\1/
19459	    q
19460	  }
19461	  /^X\(\/\/\)[^/].*/{
19462	    s//\1/
19463	    q
19464	  }
19465	  /^X\(\/\/\)$/{
19466	    s//\1/
19467	    q
19468	  }
19469	  /^X\(\/\).*/{
19470	    s//\1/
19471	    q
19472	  }
19473	  s/.*/./; q'`
19474    else
19475      continue
19476    fi
19477    # Extract the definition of DEPDIR, am__include, and am__quote
19478    # from the Makefile without running 'make'.
19479    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19480    test -z "$DEPDIR" && continue
19481    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19482    test -z "$am__include" && continue
19483    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19484    # Find all dependency output files, they are included files with
19485    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19486    # simplest approach to changing $(DEPDIR) to its actual value in the
19487    # expansion.
19488    for file in `sed -n "
19489      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19490	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19491      # Make sure the directory exists.
19492      test -f "$dirpart/$file" && continue
19493      fdir=`$as_dirname -- "$file" ||
19494$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495	 X"$file" : 'X\(//\)[^/]' \| \
19496	 X"$file" : 'X\(//\)$' \| \
19497	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19498$as_echo X"$file" |
19499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19500	    s//\1/
19501	    q
19502	  }
19503	  /^X\(\/\/\)[^/].*/{
19504	    s//\1/
19505	    q
19506	  }
19507	  /^X\(\/\/\)$/{
19508	    s//\1/
19509	    q
19510	  }
19511	  /^X\(\/\).*/{
19512	    s//\1/
19513	    q
19514	  }
19515	  s/.*/./; q'`
19516      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19517      # echo "creating $dirpart/$file"
19518      echo '# dummy' > "$dirpart/$file"
19519    done
19520  done
19521}
19522 ;;
19523    "libtool":C)
19524
19525    # See if we are running on zsh, and set the options which allow our
19526    # commands through without removal of \ escapes.
19527    if test -n "${ZSH_VERSION+set}" ; then
19528      setopt NO_GLOB_SUBST
19529    fi
19530
19531    cfgfile="${ofile}T"
19532    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19533    $RM "$cfgfile"
19534
19535    cat <<_LT_EOF >> "$cfgfile"
19536#! $SHELL
19537
19538# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19539# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19541# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19542#
19543#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19544#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19545#                 Foundation, Inc.
19546#   Written by Gordon Matzigkeit, 1996
19547#
19548#   This file is part of GNU Libtool.
19549#
19550# GNU Libtool is free software; you can redistribute it and/or
19551# modify it under the terms of the GNU General Public License as
19552# published by the Free Software Foundation; either version 2 of
19553# the License, or (at your option) any later version.
19554#
19555# As a special exception to the GNU General Public License,
19556# if you distribute this file as part of a program or library that
19557# is built using GNU Libtool, you may include this file under the
19558# same distribution terms that you use for the rest of that program.
19559#
19560# GNU Libtool is distributed in the hope that it will be useful,
19561# but WITHOUT ANY WARRANTY; without even the implied warranty of
19562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19563# GNU General Public License for more details.
19564#
19565# You should have received a copy of the GNU General Public License
19566# along with GNU Libtool; see the file COPYING.  If not, a copy
19567# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19568# obtained by writing to the Free Software Foundation, Inc.,
19569# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19570
19571
19572# The names of the tagged configurations supported by this script.
19573available_tags=""
19574
19575# ### BEGIN LIBTOOL CONFIG
19576
19577# Whether or not to build static libraries.
19578build_old_libs=$enable_static
19579
19580# Which release of libtool.m4 was used?
19581macro_version=$macro_version
19582macro_revision=$macro_revision
19583
19584# Whether or not to build shared libraries.
19585build_libtool_libs=$enable_shared
19586
19587# What type of objects to build.
19588pic_mode=$pic_mode
19589
19590# Whether or not to optimize for fast installation.
19591fast_install=$enable_fast_install
19592
19593# Shell to use when invoking shell scripts.
19594SHELL=$lt_SHELL
19595
19596# An echo program that protects backslashes.
19597ECHO=$lt_ECHO
19598
19599# The PATH separator for the build system.
19600PATH_SEPARATOR=$lt_PATH_SEPARATOR
19601
19602# The host system.
19603host_alias=$host_alias
19604host=$host
19605host_os=$host_os
19606
19607# The build system.
19608build_alias=$build_alias
19609build=$build
19610build_os=$build_os
19611
19612# A sed program that does not truncate output.
19613SED=$lt_SED
19614
19615# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19616Xsed="\$SED -e 1s/^X//"
19617
19618# A grep program that handles long lines.
19619GREP=$lt_GREP
19620
19621# An ERE matcher.
19622EGREP=$lt_EGREP
19623
19624# A literal string matcher.
19625FGREP=$lt_FGREP
19626
19627# A BSD- or MS-compatible name lister.
19628NM=$lt_NM
19629
19630# Whether we need soft or hard links.
19631LN_S=$lt_LN_S
19632
19633# What is the maximum length of a command?
19634max_cmd_len=$max_cmd_len
19635
19636# Object file suffix (normally "o").
19637objext=$ac_objext
19638
19639# Executable file suffix (normally "").
19640exeext=$exeext
19641
19642# whether the shell understands "unset".
19643lt_unset=$lt_unset
19644
19645# turn spaces into newlines.
19646SP2NL=$lt_lt_SP2NL
19647
19648# turn newlines into spaces.
19649NL2SP=$lt_lt_NL2SP
19650
19651# convert \$build file names to \$host format.
19652to_host_file_cmd=$lt_cv_to_host_file_cmd
19653
19654# convert \$build files to toolchain format.
19655to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19656
19657# An object symbol dumper.
19658OBJDUMP=$lt_OBJDUMP
19659
19660# Method to check whether dependent libraries are shared objects.
19661deplibs_check_method=$lt_deplibs_check_method
19662
19663# Command to use when deplibs_check_method = "file_magic".
19664file_magic_cmd=$lt_file_magic_cmd
19665
19666# How to find potential files when deplibs_check_method = "file_magic".
19667file_magic_glob=$lt_file_magic_glob
19668
19669# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19670want_nocaseglob=$lt_want_nocaseglob
19671
19672# DLL creation program.
19673DLLTOOL=$lt_DLLTOOL
19674
19675# Command to associate shared and link libraries.
19676sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19677
19678# The archiver.
19679AR=$lt_AR
19680
19681# Flags to create an archive.
19682AR_FLAGS=$lt_AR_FLAGS
19683
19684# How to feed a file listing to the archiver.
19685archiver_list_spec=$lt_archiver_list_spec
19686
19687# A symbol stripping program.
19688STRIP=$lt_STRIP
19689
19690# Commands used to install an old-style archive.
19691RANLIB=$lt_RANLIB
19692old_postinstall_cmds=$lt_old_postinstall_cmds
19693old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695# Whether to use a lock for old archive extraction.
19696lock_old_archive_extraction=$lock_old_archive_extraction
19697
19698# A C compiler.
19699LTCC=$lt_CC
19700
19701# LTCC compiler flags.
19702LTCFLAGS=$lt_CFLAGS
19703
19704# Take the output of nm and produce a listing of raw symbols and C names.
19705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19706
19707# Transform the output of nm in a proper C declaration.
19708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19709
19710# Transform the output of nm in a C name address pair.
19711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19712
19713# Transform the output of nm in a C name address pair when lib prefix is needed.
19714global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19715
19716# Specify filename containing input files for \$NM.
19717nm_file_list_spec=$lt_nm_file_list_spec
19718
19719# The root where to search for dependent libraries,and in which our libraries should be installed.
19720lt_sysroot=$lt_sysroot
19721
19722# The name of the directory that contains temporary libtool files.
19723objdir=$objdir
19724
19725# Used to examine libraries when file_magic_cmd begins with "file".
19726MAGIC_CMD=$MAGIC_CMD
19727
19728# Must we lock files when doing compilation?
19729need_locks=$lt_need_locks
19730
19731# Manifest tool.
19732MANIFEST_TOOL=$lt_MANIFEST_TOOL
19733
19734# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19735DSYMUTIL=$lt_DSYMUTIL
19736
19737# Tool to change global to local symbols on Mac OS X.
19738NMEDIT=$lt_NMEDIT
19739
19740# Tool to manipulate fat objects and archives on Mac OS X.
19741LIPO=$lt_LIPO
19742
19743# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19744OTOOL=$lt_OTOOL
19745
19746# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19747OTOOL64=$lt_OTOOL64
19748
19749# Old archive suffix (normally "a").
19750libext=$libext
19751
19752# Shared library suffix (normally ".so").
19753shrext_cmds=$lt_shrext_cmds
19754
19755# The commands to extract the exported symbol list from a shared archive.
19756extract_expsyms_cmds=$lt_extract_expsyms_cmds
19757
19758# Variables whose values should be saved in libtool wrapper scripts and
19759# restored at link time.
19760variables_saved_for_relink=$lt_variables_saved_for_relink
19761
19762# Do we need the "lib" prefix for modules?
19763need_lib_prefix=$need_lib_prefix
19764
19765# Do we need a version for libraries?
19766need_version=$need_version
19767
19768# Library versioning type.
19769version_type=$version_type
19770
19771# Shared library runtime path variable.
19772runpath_var=$runpath_var
19773
19774# Shared library path variable.
19775shlibpath_var=$shlibpath_var
19776
19777# Is shlibpath searched before the hard-coded library search path?
19778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19779
19780# Format of library name prefix.
19781libname_spec=$lt_libname_spec
19782
19783# List of archive names.  First name is the real one, the rest are links.
19784# The last name is the one that the linker finds with -lNAME
19785library_names_spec=$lt_library_names_spec
19786
19787# The coded name of the library, if different from the real name.
19788soname_spec=$lt_soname_spec
19789
19790# Permission mode override for installation of shared libraries.
19791install_override_mode=$lt_install_override_mode
19792
19793# Command to use after installation of a shared archive.
19794postinstall_cmds=$lt_postinstall_cmds
19795
19796# Command to use after uninstallation of a shared archive.
19797postuninstall_cmds=$lt_postuninstall_cmds
19798
19799# Commands used to finish a libtool library installation in a directory.
19800finish_cmds=$lt_finish_cmds
19801
19802# As "finish_cmds", except a single script fragment to be evaled but
19803# not shown.
19804finish_eval=$lt_finish_eval
19805
19806# Whether we should hardcode library paths into libraries.
19807hardcode_into_libs=$hardcode_into_libs
19808
19809# Compile-time system search path for libraries.
19810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19811
19812# Run-time system search path for libraries.
19813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19814
19815# Whether dlopen is supported.
19816dlopen_support=$enable_dlopen
19817
19818# Whether dlopen of programs is supported.
19819dlopen_self=$enable_dlopen_self
19820
19821# Whether dlopen of statically linked programs is supported.
19822dlopen_self_static=$enable_dlopen_self_static
19823
19824# Commands to strip libraries.
19825old_striplib=$lt_old_striplib
19826striplib=$lt_striplib
19827
19828
19829# The linker used to build libraries.
19830LD=$lt_LD
19831
19832# How to create reloadable object files.
19833reload_flag=$lt_reload_flag
19834reload_cmds=$lt_reload_cmds
19835
19836# Commands used to build an old-style archive.
19837old_archive_cmds=$lt_old_archive_cmds
19838
19839# A language specific compiler.
19840CC=$lt_compiler
19841
19842# Is the compiler the GNU compiler?
19843with_gcc=$GCC
19844
19845# Compiler flag to turn off builtin functions.
19846no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19847
19848# Additional compiler flags for building library objects.
19849pic_flag=$lt_lt_prog_compiler_pic
19850
19851# How to pass a linker flag through the compiler.
19852wl=$lt_lt_prog_compiler_wl
19853
19854# Compiler flag to prevent dynamic linking.
19855link_static_flag=$lt_lt_prog_compiler_static
19856
19857# Does compiler simultaneously support -c and -o options?
19858compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19859
19860# Whether or not to add -lc for building shared libraries.
19861build_libtool_need_lc=$archive_cmds_need_lc
19862
19863# Whether or not to disallow shared libs when runtime libs are static.
19864allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19865
19866# Compiler flag to allow reflexive dlopens.
19867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19868
19869# Compiler flag to generate shared objects directly from archives.
19870whole_archive_flag_spec=$lt_whole_archive_flag_spec
19871
19872# Whether the compiler copes with passing no objects directly.
19873compiler_needs_object=$lt_compiler_needs_object
19874
19875# Create an old-style archive from a shared archive.
19876old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19877
19878# Create a temporary old-style archive to link instead of a shared archive.
19879old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19880
19881# Commands used to build a shared archive.
19882archive_cmds=$lt_archive_cmds
19883archive_expsym_cmds=$lt_archive_expsym_cmds
19884
19885# Commands used to build a loadable module if different from building
19886# a shared archive.
19887module_cmds=$lt_module_cmds
19888module_expsym_cmds=$lt_module_expsym_cmds
19889
19890# Whether we are building with GNU ld or not.
19891with_gnu_ld=$lt_with_gnu_ld
19892
19893# Flag that allows shared libraries with undefined symbols to be built.
19894allow_undefined_flag=$lt_allow_undefined_flag
19895
19896# Flag that enforces no undefined symbols.
19897no_undefined_flag=$lt_no_undefined_flag
19898
19899# Flag to hardcode \$libdir into a binary during linking.
19900# This must work even if \$libdir does not exist
19901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19902
19903# Whether we need a single "-rpath" flag with a separated argument.
19904hardcode_libdir_separator=$lt_hardcode_libdir_separator
19905
19906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19907# DIR into the resulting binary.
19908hardcode_direct=$hardcode_direct
19909
19910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19911# DIR into the resulting binary and the resulting library dependency is
19912# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19913# library is relocated.
19914hardcode_direct_absolute=$hardcode_direct_absolute
19915
19916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19917# into the resulting binary.
19918hardcode_minus_L=$hardcode_minus_L
19919
19920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19921# into the resulting binary.
19922hardcode_shlibpath_var=$hardcode_shlibpath_var
19923
19924# Set to "yes" if building a shared library automatically hardcodes DIR
19925# into the library and all subsequent libraries and executables linked
19926# against it.
19927hardcode_automatic=$hardcode_automatic
19928
19929# Set to yes if linker adds runtime paths of dependent libraries
19930# to runtime path list.
19931inherit_rpath=$inherit_rpath
19932
19933# Whether libtool must link a program against all its dependency libraries.
19934link_all_deplibs=$link_all_deplibs
19935
19936# Set to "yes" if exported symbols are required.
19937always_export_symbols=$always_export_symbols
19938
19939# The commands to list exported symbols.
19940export_symbols_cmds=$lt_export_symbols_cmds
19941
19942# Symbols that should not be listed in the preloaded symbols.
19943exclude_expsyms=$lt_exclude_expsyms
19944
19945# Symbols that must always be exported.
19946include_expsyms=$lt_include_expsyms
19947
19948# Commands necessary for linking programs (against libraries) with templates.
19949prelink_cmds=$lt_prelink_cmds
19950
19951# Commands necessary for finishing linking programs.
19952postlink_cmds=$lt_postlink_cmds
19953
19954# Specify filename containing input files.
19955file_list_spec=$lt_file_list_spec
19956
19957# How to hardcode a shared library path into an executable.
19958hardcode_action=$hardcode_action
19959
19960# ### END LIBTOOL CONFIG
19961
19962_LT_EOF
19963
19964  case $host_os in
19965  aix3*)
19966    cat <<\_LT_EOF >> "$cfgfile"
19967# AIX sometimes has problems with the GCC collect2 program.  For some
19968# reason, if we set the COLLECT_NAMES environment variable, the problems
19969# vanish in a puff of smoke.
19970if test "X${COLLECT_NAMES+set}" != Xset; then
19971  COLLECT_NAMES=
19972  export COLLECT_NAMES
19973fi
19974_LT_EOF
19975    ;;
19976  esac
19977
19978
19979ltmain="$ac_aux_dir/ltmain.sh"
19980
19981
19982  # We use sed instead of cat because bash on DJGPP gets confused if
19983  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19984  # text mode, it properly converts lines to CR/LF.  This bash problem
19985  # is reportedly fixed, but why not run on old versions too?
19986  sed '$q' "$ltmain" >> "$cfgfile" \
19987     || (rm -f "$cfgfile"; exit 1)
19988
19989  if test x"$xsi_shell" = xyes; then
19990  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19991func_dirname ()\
19992{\
19993\    case ${1} in\
19994\      */*) func_dirname_result="${1%/*}${2}" ;;\
19995\      *  ) func_dirname_result="${3}" ;;\
19996\    esac\
19997} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19998  && mv -f "$cfgfile.tmp" "$cfgfile" \
19999    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20000test 0 -eq $? || _lt_function_replace_fail=:
20001
20002
20003  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20004func_basename ()\
20005{\
20006\    func_basename_result="${1##*/}"\
20007} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20008  && mv -f "$cfgfile.tmp" "$cfgfile" \
20009    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20010test 0 -eq $? || _lt_function_replace_fail=:
20011
20012
20013  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20014func_dirname_and_basename ()\
20015{\
20016\    case ${1} in\
20017\      */*) func_dirname_result="${1%/*}${2}" ;;\
20018\      *  ) func_dirname_result="${3}" ;;\
20019\    esac\
20020\    func_basename_result="${1##*/}"\
20021} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20022  && mv -f "$cfgfile.tmp" "$cfgfile" \
20023    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20024test 0 -eq $? || _lt_function_replace_fail=:
20025
20026
20027  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20028func_stripname ()\
20029{\
20030\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20031\    # positional parameters, so assign one to ordinary parameter first.\
20032\    func_stripname_result=${3}\
20033\    func_stripname_result=${func_stripname_result#"${1}"}\
20034\    func_stripname_result=${func_stripname_result%"${2}"}\
20035} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20036  && mv -f "$cfgfile.tmp" "$cfgfile" \
20037    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20038test 0 -eq $? || _lt_function_replace_fail=:
20039
20040
20041  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20042func_split_long_opt ()\
20043{\
20044\    func_split_long_opt_name=${1%%=*}\
20045\    func_split_long_opt_arg=${1#*=}\
20046} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20047  && mv -f "$cfgfile.tmp" "$cfgfile" \
20048    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20049test 0 -eq $? || _lt_function_replace_fail=:
20050
20051
20052  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20053func_split_short_opt ()\
20054{\
20055\    func_split_short_opt_arg=${1#??}\
20056\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20057} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20058  && mv -f "$cfgfile.tmp" "$cfgfile" \
20059    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20060test 0 -eq $? || _lt_function_replace_fail=:
20061
20062
20063  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20064func_lo2o ()\
20065{\
20066\    case ${1} in\
20067\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20068\      *)    func_lo2o_result=${1} ;;\
20069\    esac\
20070} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20071  && mv -f "$cfgfile.tmp" "$cfgfile" \
20072    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20073test 0 -eq $? || _lt_function_replace_fail=:
20074
20075
20076  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20077func_xform ()\
20078{\
20079    func_xform_result=${1%.*}.lo\
20080} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20081  && mv -f "$cfgfile.tmp" "$cfgfile" \
20082    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20083test 0 -eq $? || _lt_function_replace_fail=:
20084
20085
20086  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20087func_arith ()\
20088{\
20089    func_arith_result=$(( $* ))\
20090} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20091  && mv -f "$cfgfile.tmp" "$cfgfile" \
20092    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20093test 0 -eq $? || _lt_function_replace_fail=:
20094
20095
20096  sed -e '/^func_len ()$/,/^} # func_len /c\
20097func_len ()\
20098{\
20099    func_len_result=${#1}\
20100} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20101  && mv -f "$cfgfile.tmp" "$cfgfile" \
20102    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20103test 0 -eq $? || _lt_function_replace_fail=:
20104
20105fi
20106
20107if test x"$lt_shell_append" = xyes; then
20108  sed -e '/^func_append ()$/,/^} # func_append /c\
20109func_append ()\
20110{\
20111    eval "${1}+=\\${2}"\
20112} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20113  && mv -f "$cfgfile.tmp" "$cfgfile" \
20114    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115test 0 -eq $? || _lt_function_replace_fail=:
20116
20117
20118  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20119func_append_quoted ()\
20120{\
20121\    func_quote_for_eval "${2}"\
20122\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20123} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20124  && mv -f "$cfgfile.tmp" "$cfgfile" \
20125    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20126test 0 -eq $? || _lt_function_replace_fail=:
20127
20128
20129  # Save a `func_append' function call where possible by direct use of '+='
20130  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20131    && mv -f "$cfgfile.tmp" "$cfgfile" \
20132      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20133  test 0 -eq $? || _lt_function_replace_fail=:
20134else
20135  # Save a `func_append' function call even when '+=' is not available
20136  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20137    && mv -f "$cfgfile.tmp" "$cfgfile" \
20138      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20139  test 0 -eq $? || _lt_function_replace_fail=:
20140fi
20141
20142if test x"$_lt_function_replace_fail" = x":"; then
20143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20144$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20145fi
20146
20147
20148   mv -f "$cfgfile" "$ofile" ||
20149    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20150  chmod +x "$ofile"
20151
20152 ;;
20153
20154  esac
20155done # for ac_tag
20156
20157
20158as_fn_exit 0
20159_ACEOF
20160ac_clean_files=$ac_clean_files_save
20161
20162test $ac_write_fail = 0 ||
20163  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20164
20165
20166# configure is writing to config.log, and then calls config.status.
20167# config.status does its own redirection, appending to config.log.
20168# Unfortunately, on DOS this fails, as config.log is still kept open
20169# by configure, so config.status won't be able to write to it; its
20170# output is simply discarded.  So we exec the FD to /dev/null,
20171# effectively closing config.log, so it can be properly (re)opened and
20172# appended to by config.status.  When coming back to configure, we
20173# need to make the FD available again.
20174if test "$no_create" != yes; then
20175  ac_cs_success=:
20176  ac_config_status_args=
20177  test "$silent" = yes &&
20178    ac_config_status_args="$ac_config_status_args --quiet"
20179  exec 5>/dev/null
20180  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20181  exec 5>>config.log
20182  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20183  # would make configure fail if this is the last instruction.
20184  $ac_cs_success || as_fn_exit 1
20185fi
20186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20187  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20188$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20189fi
20190
20191