1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-joystick 1.6.3.
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-joystick'
593PACKAGE_TARNAME='xf86-input-joystick'
594PACKAGE_VERSION='1.6.3'
595PACKAGE_STRING='xf86-input-joystick 1.6.3'
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
640EVDEV_BACKEND_FALSE
641EVDEV_BACKEND_TRUE
642BSD_BACKEND_FALSE
643BSD_BACKEND_TRUE
644LINUX_BACKEND_FALSE
645LINUX_BACKEND_TRUE
646DEBUG_FALSE
647DEBUG_TRUE
648sdkdir
649inputdir
650DRIVER_NAME
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
676LT_SYS_LIBRARY_PATH
677OTOOL64
678OTOOL
679LIPO
680NMEDIT
681DSYMUTIL
682MANIFEST_TOOL
683RANLIB
684ac_ct_AR
685AR
686DLLTOOL
687OBJDUMP
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696SED
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722LIBTOOL
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_maintainer_mode
796enable_static
797enable_shared
798with_pic
799enable_fast_install
800with_aix_soname
801enable_dependency_tracking
802with_gnu_ld
803with_sysroot
804enable_libtool_lock
805enable_selective_werror
806enable_strict_compilation
807with_xorg_module_dir
808with_sdkdir
809enable_debug
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819LT_SYS_LIBRARY_PATH
820CPP
821PKG_CONFIG
822PKG_CONFIG_PATH
823PKG_CONFIG_LIBDIR
824XORG_CFLAGS
825XORG_LIBS'
826
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831ac_unrecognized_opts=
832ac_unrecognized_sep=
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
855# (The list follows the same order as the GNU Coding Standards.)
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
864includedir='${prefix}/include'
865oldincludedir='/usr/include'
866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
875
876ac_prev=
877ac_dashdash=
878for ac_option
879do
880  # If the previous option needs an argument, assign it.
881  if test -n "$ac_prev"; then
882    eval $ac_prev=\$ac_option
883    ac_prev=
884    continue
885  fi
886
887  case $ac_option in
888  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889  *=)   ac_optarg= ;;
890  *)    ac_optarg=yes ;;
891  esac
892
893  # Accept the important Cygnus configure options, so we can diagnose typos.
894
895  case $ac_dashdash$ac_option in
896  --)
897    ac_dashdash=yes ;;
898
899  -bindir | --bindir | --bindi | --bind | --bin | --bi)
900    ac_prev=bindir ;;
901  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902    bindir=$ac_optarg ;;
903
904  -build | --build | --buil | --bui | --bu)
905    ac_prev=build_alias ;;
906  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907    build_alias=$ac_optarg ;;
908
909  -cache-file | --cache-file | --cache-fil | --cache-fi \
910  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911    ac_prev=cache_file ;;
912  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914    cache_file=$ac_optarg ;;
915
916  --config-cache | -C)
917    cache_file=config.cache ;;
918
919  -datadir | --datadir | --datadi | --datad)
920    ac_prev=datadir ;;
921  -datadir=* | --datadir=* | --datadi=* | --datad=*)
922    datadir=$ac_optarg ;;
923
924  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925  | --dataroo | --dataro | --datar)
926    ac_prev=datarootdir ;;
927  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929    datarootdir=$ac_optarg ;;
930
931  -disable-* | --disable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error $? "invalid feature name: $ac_useropt"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=no ;;
946
947  -docdir | --docdir | --docdi | --doc | --do)
948    ac_prev=docdir ;;
949  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950    docdir=$ac_optarg ;;
951
952  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953    ac_prev=dvidir ;;
954  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955    dvidir=$ac_optarg ;;
956
957  -enable-* | --enable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=\$ac_optarg ;;
972
973  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975  | --exec | --exe | --ex)
976    ac_prev=exec_prefix ;;
977  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979  | --exec=* | --exe=* | --ex=*)
980    exec_prefix=$ac_optarg ;;
981
982  -gas | --gas | --ga | --g)
983    # Obsolete; use --with-gas.
984    with_gas=yes ;;
985
986  -help | --help | --hel | --he | -h)
987    ac_init_help=long ;;
988  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989    ac_init_help=recursive ;;
990  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991    ac_init_help=short ;;
992
993  -host | --host | --hos | --ho)
994    ac_prev=host_alias ;;
995  -host=* | --host=* | --hos=* | --ho=*)
996    host_alias=$ac_optarg ;;
997
998  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999    ac_prev=htmldir ;;
1000  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001  | --ht=*)
1002    htmldir=$ac_optarg ;;
1003
1004  -includedir | --includedir | --includedi | --included | --include \
1005  | --includ | --inclu | --incl | --inc)
1006    ac_prev=includedir ;;
1007  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008  | --includ=* | --inclu=* | --incl=* | --inc=*)
1009    includedir=$ac_optarg ;;
1010
1011  -infodir | --infodir | --infodi | --infod | --info | --inf)
1012    ac_prev=infodir ;;
1013  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014    infodir=$ac_optarg ;;
1015
1016  -libdir | --libdir | --libdi | --libd)
1017    ac_prev=libdir ;;
1018  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019    libdir=$ac_optarg ;;
1020
1021  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022  | --libexe | --libex | --libe)
1023    ac_prev=libexecdir ;;
1024  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025  | --libexe=* | --libex=* | --libe=*)
1026    libexecdir=$ac_optarg ;;
1027
1028  -localedir | --localedir | --localedi | --localed | --locale)
1029    ac_prev=localedir ;;
1030  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031    localedir=$ac_optarg ;;
1032
1033  -localstatedir | --localstatedir | --localstatedi | --localstated \
1034  | --localstate | --localstat | --localsta | --localst | --locals)
1035    ac_prev=localstatedir ;;
1036  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038    localstatedir=$ac_optarg ;;
1039
1040  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041    ac_prev=mandir ;;
1042  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043    mandir=$ac_optarg ;;
1044
1045  -nfp | --nfp | --nf)
1046    # Obsolete; use --without-fp.
1047    with_fp=no ;;
1048
1049  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050  | --no-cr | --no-c | -n)
1051    no_create=yes ;;
1052
1053  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055    no_recursion=yes ;;
1056
1057  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059  | --oldin | --oldi | --old | --ol | --o)
1060    ac_prev=oldincludedir ;;
1061  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064    oldincludedir=$ac_optarg ;;
1065
1066  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067    ac_prev=prefix ;;
1068  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069    prefix=$ac_optarg ;;
1070
1071  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072  | --program-pre | --program-pr | --program-p)
1073    ac_prev=program_prefix ;;
1074  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076    program_prefix=$ac_optarg ;;
1077
1078  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079  | --program-suf | --program-su | --program-s)
1080    ac_prev=program_suffix ;;
1081  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083    program_suffix=$ac_optarg ;;
1084
1085  -program-transform-name | --program-transform-name \
1086  | --program-transform-nam | --program-transform-na \
1087  | --program-transform-n | --program-transform- \
1088  | --program-transform | --program-transfor \
1089  | --program-transfo | --program-transf \
1090  | --program-trans | --program-tran \
1091  | --progr-tra | --program-tr | --program-t)
1092    ac_prev=program_transform_name ;;
1093  -program-transform-name=* | --program-transform-name=* \
1094  | --program-transform-nam=* | --program-transform-na=* \
1095  | --program-transform-n=* | --program-transform-=* \
1096  | --program-transform=* | --program-transfor=* \
1097  | --program-transfo=* | --program-transf=* \
1098  | --program-trans=* | --program-tran=* \
1099  | --progr-tra=* | --program-tr=* | --program-t=*)
1100    program_transform_name=$ac_optarg ;;
1101
1102  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103    ac_prev=pdfdir ;;
1104  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105    pdfdir=$ac_optarg ;;
1106
1107  -psdir | --psdir | --psdi | --psd | --ps)
1108    ac_prev=psdir ;;
1109  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110    psdir=$ac_optarg ;;
1111
1112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113  | -silent | --silent | --silen | --sile | --sil)
1114    silent=yes ;;
1115
1116  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117    ac_prev=sbindir ;;
1118  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119  | --sbi=* | --sb=*)
1120    sbindir=$ac_optarg ;;
1121
1122  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124  | --sharedst | --shareds | --shared | --share | --shar \
1125  | --sha | --sh)
1126    ac_prev=sharedstatedir ;;
1127  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130  | --sha=* | --sh=*)
1131    sharedstatedir=$ac_optarg ;;
1132
1133  -site | --site | --sit)
1134    ac_prev=site ;;
1135  -site=* | --site=* | --sit=*)
1136    site=$ac_optarg ;;
1137
1138  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139    ac_prev=srcdir ;;
1140  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141    srcdir=$ac_optarg ;;
1142
1143  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144  | --syscon | --sysco | --sysc | --sys | --sy)
1145    ac_prev=sysconfdir ;;
1146  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148    sysconfdir=$ac_optarg ;;
1149
1150  -target | --target | --targe | --targ | --tar | --ta | --t)
1151    ac_prev=target_alias ;;
1152  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153    target_alias=$ac_optarg ;;
1154
1155  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156    verbose=yes ;;
1157
1158  -version | --version | --versio | --versi | --vers | -V)
1159    ac_init_version=: ;;
1160
1161  -with-* | --with-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=\$ac_optarg ;;
1176
1177  -without-* | --without-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=no ;;
1192
1193  --x)
1194    # Obsolete; use --with-x.
1195    with_x=yes ;;
1196
1197  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198  | --x-incl | --x-inc | --x-in | --x-i)
1199    ac_prev=x_includes ;;
1200  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202    x_includes=$ac_optarg ;;
1203
1204  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206    ac_prev=x_libraries ;;
1207  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209    x_libraries=$ac_optarg ;;
1210
1211  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information"
1213    ;;
1214
1215  *=*)
1216    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217    # Reject names that are not valid shell variable names.
1218    case $ac_envvar in #(
1219      '' | [0-9]* | *[!_$as_cr_alnum]* )
1220      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221    esac
1222    eval $ac_envvar=\$ac_optarg
1223    export $ac_envvar ;;
1224
1225  *)
1226    # FIXME: should be removed in autoconf 3.0.
1227    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231    ;;
1232
1233  esac
1234done
1235
1236if test -n "$ac_prev"; then
1237  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238  as_fn_error $? "missing argument to $ac_option"
1239fi
1240
1241if test -n "$ac_unrecognized_opts"; then
1242  case $enable_option_checking in
1243    no) ;;
1244    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246  esac
1247fi
1248
1249# Check all directory arguments for consistency.
1250for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251		datadir sysconfdir sharedstatedir localstatedir includedir \
1252		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253		libdir localedir mandir
1254do
1255  eval ac_val=\$$ac_var
1256  # Remove trailing slashes.
1257  case $ac_val in
1258    */ )
1259      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260      eval $ac_var=\$ac_val;;
1261  esac
1262  # Be sure to have absolute directory names.
1263  case $ac_val in
1264    [\\/$]* | ?:[\\/]* )  continue;;
1265    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266  esac
1267  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268done
1269
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281  elif test "x$build_alias" != "x$host_alias"; then
1282    cross_compiling=yes
1283  fi
1284fi
1285
1286ac_tool_prefix=
1287test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289test "$silent" = yes && exec 6>/dev/null
1290
1291
1292ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293ac_ls_di=`ls -di .` &&
1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295  as_fn_error $? "working directory cannot be determined"
1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297  as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302  ac_srcdir_defaulted=yes
1303  # Try the directory containing this script, then the parent directory.
1304  ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306	 X"$as_myself" : 'X\(//\)[^/]' \| \
1307	 X"$as_myself" : 'X\(//\)$' \| \
1308	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309$as_echo X"$as_myself" |
1310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)[^/].*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\).*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  s/.*/./; q'`
1327  srcdir=$ac_confdir
1328  if test ! -r "$srcdir/$ac_unique_file"; then
1329    srcdir=..
1330  fi
1331else
1332  ac_srcdir_defaulted=no
1333fi
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337fi
1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339ac_abs_confdir=`(
1340	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341	pwd)`
1342# When building in place, set srcdir=.
1343if test "$ac_abs_confdir" = "$ac_pwd"; then
1344  srcdir=.
1345fi
1346# Remove unnecessary trailing slashes from srcdir.
1347# Double slashes in file names in object file debugging info
1348# mess up M-x gdb in Emacs.
1349case $srcdir in
1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351esac
1352for ac_var in $ac_precious_vars; do
1353  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354  eval ac_env_${ac_var}_value=\$${ac_var}
1355  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357done
1358
1359#
1360# Report the --help message.
1361#
1362if test "$ac_init_help" = "long"; then
1363  # Omit some internal or obsolete options to make the list less imposing.
1364  # This message is too long to be a string in the A/UX 3.1 sh.
1365  cat <<_ACEOF
1366\`configure' configures xf86-input-joystick 1.6.3 to adapt to many kinds of systems.
1367
1368Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373Defaults for the options are specified in brackets.
1374
1375Configuration:
1376  -h, --help              display this help and exit
1377      --help=short        display options specific to this package
1378      --help=recursive    display the short help of all the included packages
1379  -V, --version           display version information and exit
1380  -q, --quiet, --silent   do not print \`checking ...' messages
1381      --cache-file=FILE   cache test results in FILE [disabled]
1382  -C, --config-cache      alias for \`--cache-file=config.cache'
1383  -n, --no-create         do not create output files
1384      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386Installation directories:
1387  --prefix=PREFIX         install architecture-independent files in PREFIX
1388                          [$ac_default_prefix]
1389  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                          [PREFIX]
1391
1392By default, \`make install' will install all the files in
1393\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395for instance \`--prefix=\$HOME'.
1396
1397For better control, use the options below.
1398
1399Fine tuning of the installation directories:
1400  --bindir=DIR            user executables [EPREFIX/bin]
1401  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402  --libexecdir=DIR        program executables [EPREFIX/libexec]
1403  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root
1415                          [DATAROOTDIR/doc/xf86-input-joystick]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432_ACEOF
1433fi
1434
1435if test -n "$ac_init_help"; then
1436  case $ac_init_help in
1437     short | recursive ) echo "Configuration of xf86-input-joystick 1.6.3:";;
1438   esac
1439  cat <<\_ACEOF
1440
1441Optional Features:
1442  --disable-option-checking  ignore unrecognized --enable/--with options
1443  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-maintainer-mode
1448                          enable make rules and dependencies not useful (and
1449                          sometimes confusing) to the casual installer
1450  --enable-static[=PKGS]  build static libraries [default=no]
1451  --enable-shared[=PKGS]  build shared libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --disable-selective-werror
1460                          Turn off selective compiler errors. (default:
1461                          enabled)
1462  --enable-strict-compilation
1463                          Enable all warnings from compiler and make them
1464                          errors (default: disabled)
1465  --disable-debug         Disable debugging code (default: enabled)
1466
1467Optional Packages:
1468  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1471                          both]
1472  --with-aix-soname=aix|svr4|both
1473                          shared library versioning (aka "SONAME") variant to
1474                          provide on AIX, [default=aix].
1475  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1476  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1477                          compiler's sysroot if not specified).
1478  --with-xorg-module-dir=DIR
1479                          Default xorg module directory
1480                          [[default=$libdir/xorg/modules]]
1481  --with-sdkdir=<path>    Xorg X Server sdk headers (default is autodetected)
1482
1483Some influential environment variables:
1484  CC          C compiler command
1485  CFLAGS      C compiler flags
1486  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487              nonstandard directory <lib dir>
1488  LIBS        libraries to pass to the linker, e.g. -l<library>
1489  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490              you have headers in a nonstandard directory <include dir>
1491  LT_SYS_LIBRARY_PATH
1492              User-defined run-time library search path.
1493  CPP         C preprocessor
1494  PKG_CONFIG  path to pkg-config utility
1495  PKG_CONFIG_PATH
1496              directories to add to pkg-config's search path
1497  PKG_CONFIG_LIBDIR
1498              path overriding pkg-config's built-in search path
1499  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1500  XORG_LIBS   linker flags for XORG, overriding pkg-config
1501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
1505Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1506_ACEOF
1507ac_status=$?
1508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511  # If there are subdirs, report their specific --help.
1512  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513    test -d "$ac_dir" ||
1514      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515      continue
1516    ac_builddir=.
1517
1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
1521  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522  # A ".." for each directory in $ac_dir_suffix.
1523  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524  case $ac_top_builddir_sub in
1525  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527  esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
1533
1534case $srcdir in
1535  .)  # We are building in place.
1536    ac_srcdir=.
1537    ac_top_srcdir=$ac_top_builddir_sub
1538    ac_abs_top_srcdir=$ac_pwd ;;
1539  [\\/]* | ?:[\\/]* )  # Absolute name.
1540    ac_srcdir=$srcdir$ac_dir_suffix;
1541    ac_top_srcdir=$srcdir
1542    ac_abs_top_srcdir=$srcdir ;;
1543  *) # Relative name.
1544    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545    ac_top_srcdir=$ac_top_build_prefix$srcdir
1546    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547esac
1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550    cd "$ac_dir" || { ac_status=$?; continue; }
1551    # Check for guested configure.
1552    if test -f "$ac_srcdir/configure.gnu"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555    elif test -f "$ac_srcdir/configure"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure" --help=recursive
1558    else
1559      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560    fi || ac_status=$?
1561    cd "$ac_pwd" || { ac_status=$?; break; }
1562  done
1563fi
1564
1565test -n "$ac_init_help" && exit $ac_status
1566if $ac_init_version; then
1567  cat <<\_ACEOF
1568xf86-input-joystick configure 1.6.3
1569generated by GNU Autoconf 2.69
1570
1571Copyright (C) 2012 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext
1589  if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_compile") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest.$ac_objext; then :
1608  ac_retval=0
1609else
1610  $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613	ac_retval=1
1614fi
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616  as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_compile
1619
1620# ac_fn_c_try_link LINENO
1621# -----------------------
1622# Try to link conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_link ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  rm -f conftest.$ac_objext conftest$ac_exeext
1627  if { { ac_try="$ac_link"
1628case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634  (eval "$ac_link") 2>conftest.err
1635  ac_status=$?
1636  if test -s conftest.err; then
1637    grep -v '^ *+' conftest.err >conftest.er1
1638    cat conftest.er1 >&5
1639    mv -f conftest.er1 conftest.err
1640  fi
1641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; } && {
1643	 test -z "$ac_c_werror_flag" ||
1644	 test ! -s conftest.err
1645       } && test -s conftest$ac_exeext && {
1646	 test "$cross_compiling" = yes ||
1647	 test -x conftest$ac_exeext
1648       }; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654	ac_retval=1
1655fi
1656  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658  # interfere with the next link command; also delete a directory that is
1659  # left behind by Apple's compiler.  We do this before executing the actions.
1660  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662  as_fn_set_status $ac_retval
1663
1664} # ac_fn_c_try_link
1665
1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667# -------------------------------------------------------
1668# Tests whether HEADER exists and can be compiled using the include files in
1669# INCLUDES, setting the cache variable VAR accordingly.
1670ac_fn_c_check_header_compile ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674$as_echo_n "checking for $2... " >&6; }
1675if eval \${$3+:} false; then :
1676  $as_echo_n "(cached) " >&6
1677else
1678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679/* end confdefs.h.  */
1680$4
1681#include <$2>
1682_ACEOF
1683if ac_fn_c_try_compile "$LINENO"; then :
1684  eval "$3=yes"
1685else
1686  eval "$3=no"
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689fi
1690eval ac_res=\$$3
1691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692$as_echo "$ac_res" >&6; }
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695} # ac_fn_c_check_header_compile
1696
1697# ac_fn_c_try_cpp LINENO
1698# ----------------------
1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_cpp ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_cpp conftest.$ac_ext"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711  ac_status=$?
1712  if test -s conftest.err; then
1713    grep -v '^ *+' conftest.err >conftest.er1
1714    cat conftest.er1 >&5
1715    mv -f conftest.er1 conftest.err
1716  fi
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } > conftest.i && {
1719	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720	 test ! -s conftest.err
1721       }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727    ac_retval=1
1728fi
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_cpp
1733
1734# ac_fn_c_try_run LINENO
1735# ----------------------
1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737# that executables *can* be run.
1738ac_fn_c_try_run ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  if { { ac_try="$ac_link"
1742case "(($ac_try" in
1743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744  *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748  (eval "$ac_link") 2>&5
1749  ac_status=$?
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752  { { case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_try") 2>&5
1759  ac_status=$?
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; }; }; then :
1762  ac_retval=0
1763else
1764  $as_echo "$as_me: program exited with status $ac_status" >&5
1765       $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768       ac_retval=$ac_status
1769fi
1770  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772  as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_run
1775
1776# ac_fn_c_check_func LINENO FUNC VAR
1777# ----------------------------------
1778# Tests whether FUNC exists, setting the cache variable VAR accordingly
1779ac_fn_c_check_func ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786else
1787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h.  */
1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1791#define $2 innocuous_$2
1792
1793/* System header to define __stub macros and hopefully few prototypes,
1794    which can conflict with char $2 (); below.
1795    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1796    <limits.h> exists even on freestanding compilers.  */
1797
1798#ifdef __STDC__
1799# include <limits.h>
1800#else
1801# include <assert.h>
1802#endif
1803
1804#undef $2
1805
1806/* Override any GCC internal prototype to avoid an error.
1807   Use char because int might match the return type of a GCC
1808   builtin and then its argument prototype would still apply.  */
1809#ifdef __cplusplus
1810extern "C"
1811#endif
1812char $2 ();
1813/* The GNU C library defines this for functions which it implements
1814    to always fail with ENOSYS.  Some functions are actually named
1815    something starting with __ and the normal name is an alias.  */
1816#if defined __stub_$2 || defined __stub___$2
1817choke me
1818#endif
1819
1820int
1821main ()
1822{
1823return $2 ();
1824  ;
1825  return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_link "$LINENO"; then :
1829  eval "$3=yes"
1830else
1831  eval "$3=no"
1832fi
1833rm -f core conftest.err conftest.$ac_objext \
1834    conftest$ac_exeext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841} # ac_fn_c_check_func
1842
1843# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1844# ---------------------------------------------
1845# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1846# accordingly.
1847ac_fn_c_check_decl ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  as_decl_name=`echo $2|sed 's/ *(.*//'`
1851  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1853$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860int
1861main ()
1862{
1863#ifndef $as_decl_name
1864#ifdef __cplusplus
1865  (void) $as_decl_use;
1866#else
1867  (void) $as_decl_name;
1868#endif
1869#endif
1870
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876  eval "$3=yes"
1877else
1878  eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887} # ac_fn_c_check_decl
1888
1889# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890# -------------------------------------------------------
1891# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892# the include files in INCLUDES and setting the cache variable VAR
1893# accordingly.
1894ac_fn_c_check_header_mongrel ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  if eval \${$3+:} false; then :
1898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if eval \${$3+:} false; then :
1901  $as_echo_n "(cached) " >&6
1902fi
1903eval ac_res=\$$3
1904	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906else
1907  # Is the header compilable?
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909$as_echo_n "checking $2 usability... " >&6; }
1910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912$4
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916  ac_header_compiler=yes
1917else
1918  ac_header_compiler=no
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922$as_echo "$ac_header_compiler" >&6; }
1923
1924# Is the header present?
1925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926$as_echo_n "checking $2 presence... " >&6; }
1927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929#include <$2>
1930_ACEOF
1931if ac_fn_c_try_cpp "$LINENO"; then :
1932  ac_header_preproc=yes
1933else
1934  ac_header_preproc=no
1935fi
1936rm -f conftest.err conftest.i conftest.$ac_ext
1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938$as_echo "$ac_header_preproc" >&6; }
1939
1940# So?  What about this header?
1941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942  yes:no: )
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947    ;;
1948  no:yes:* )
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1952$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1956$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959( $as_echo "## ---------------------------------------------------------------------- ##
1960## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1961## ---------------------------------------------------------------------- ##"
1962     ) | sed "s/^/$as_me: WARNING:     /" >&2
1963    ;;
1964esac
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  eval "$3=\$ac_header_compiler"
1971fi
1972eval ac_res=\$$3
1973	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975fi
1976  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_c_check_header_mongrel
1979cat >config.log <<_ACEOF
1980This file contains any messages produced by compilers while
1981running configure, to aid debugging if configure makes a mistake.
1982
1983It was created by xf86-input-joystick $as_me 1.6.3, which was
1984generated by GNU Autoconf 2.69.  Invocation command line was
1985
1986  $ $0 $@
1987
1988_ACEOF
1989exec 5>>config.log
1990{
1991cat <<_ASUNAME
1992## --------- ##
1993## Platform. ##
1994## --------- ##
1995
1996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1997uname -m = `(uname -m) 2>/dev/null || echo unknown`
1998uname -r = `(uname -r) 2>/dev/null || echo unknown`
1999uname -s = `(uname -s) 2>/dev/null || echo unknown`
2000uname -v = `(uname -v) 2>/dev/null || echo unknown`
2001
2002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2003/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2004
2005/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2006/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2008/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2009/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2010/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2011/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2012
2013_ASUNAME
2014
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020    $as_echo "PATH: $as_dir"
2021  done
2022IFS=$as_save_IFS
2023
2024} >&5
2025
2026cat >&5 <<_ACEOF
2027
2028
2029## ----------- ##
2030## Core tests. ##
2031## ----------- ##
2032
2033_ACEOF
2034
2035
2036# Keep a trace of the command line.
2037# Strip out --no-create and --no-recursion so they do not pile up.
2038# Strip out --silent because we don't want to record it for future runs.
2039# Also quote any args containing shell meta-characters.
2040# Make two passes to allow for proper duplicate-argument suppression.
2041ac_configure_args=
2042ac_configure_args0=
2043ac_configure_args1=
2044ac_must_keep_next=false
2045for ac_pass in 1 2
2046do
2047  for ac_arg
2048  do
2049    case $ac_arg in
2050    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2051    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2052    | -silent | --silent | --silen | --sile | --sil)
2053      continue ;;
2054    *\'*)
2055      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    esac
2057    case $ac_pass in
2058    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2059    2)
2060      as_fn_append ac_configure_args1 " '$ac_arg'"
2061      if test $ac_must_keep_next = true; then
2062	ac_must_keep_next=false # Got value, back to normal.
2063      else
2064	case $ac_arg in
2065	  *=* | --config-cache | -C | -disable-* | --disable-* \
2066	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2067	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2068	  | -with-* | --with-* | -without-* | --without-* | --x)
2069	    case "$ac_configure_args0 " in
2070	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071	    esac
2072	    ;;
2073	  -* ) ac_must_keep_next=true ;;
2074	esac
2075      fi
2076      as_fn_append ac_configure_args " '$ac_arg'"
2077      ;;
2078    esac
2079  done
2080done
2081{ ac_configure_args0=; unset ac_configure_args0;}
2082{ ac_configure_args1=; unset ac_configure_args1;}
2083
2084# When interrupted or exit'd, cleanup temporary files, and complete
2085# config.log.  We remove comments because anyway the quotes in there
2086# would cause problems or look ugly.
2087# WARNING: Use '\'' to represent an apostrophe within the trap.
2088# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2089trap 'exit_status=$?
2090  # Save into config.log some information that might help in debugging.
2091  {
2092    echo
2093
2094    $as_echo "## ---------------- ##
2095## Cache variables. ##
2096## ---------------- ##"
2097    echo
2098    # The following way of writing the cache mishandles newlines in values,
2099(
2100  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101    eval ac_val=\$$ac_var
2102    case $ac_val in #(
2103    *${as_nl}*)
2104      case $ac_var in #(
2105      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107      esac
2108      case $ac_var in #(
2109      _ | IFS | as_nl) ;; #(
2110      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111      *) { eval $ac_var=; unset $ac_var;} ;;
2112      esac ;;
2113    esac
2114  done
2115  (set) 2>&1 |
2116    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117    *${as_nl}ac_space=\ *)
2118      sed -n \
2119	"s/'\''/'\''\\\\'\'''\''/g;
2120	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121      ;; #(
2122    *)
2123      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2124      ;;
2125    esac |
2126    sort
2127)
2128    echo
2129
2130    $as_echo "## ----------------- ##
2131## Output variables. ##
2132## ----------------- ##"
2133    echo
2134    for ac_var in $ac_subst_vars
2135    do
2136      eval ac_val=\$$ac_var
2137      case $ac_val in
2138      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139      esac
2140      $as_echo "$ac_var='\''$ac_val'\''"
2141    done | sort
2142    echo
2143
2144    if test -n "$ac_subst_files"; then
2145      $as_echo "## ------------------- ##
2146## File substitutions. ##
2147## ------------------- ##"
2148      echo
2149      for ac_var in $ac_subst_files
2150      do
2151	eval ac_val=\$$ac_var
2152	case $ac_val in
2153	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154	esac
2155	$as_echo "$ac_var='\''$ac_val'\''"
2156      done | sort
2157      echo
2158    fi
2159
2160    if test -s confdefs.h; then
2161      $as_echo "## ----------- ##
2162## confdefs.h. ##
2163## ----------- ##"
2164      echo
2165      cat confdefs.h
2166      echo
2167    fi
2168    test "$ac_signal" != 0 &&
2169      $as_echo "$as_me: caught signal $ac_signal"
2170    $as_echo "$as_me: exit $exit_status"
2171  } >&5
2172  rm -f core *.core core.conftest.* &&
2173    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2174    exit $exit_status
2175' 0
2176for ac_signal in 1 2 13 15; do
2177  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2178done
2179ac_signal=0
2180
2181# confdefs.h avoids OS command line length limits that DEFS can exceed.
2182rm -f -r conftest* confdefs.h
2183
2184$as_echo "/* confdefs.h */" > confdefs.h
2185
2186# Predefined preprocessor variables.
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_NAME "$PACKAGE_NAME"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_VERSION "$PACKAGE_VERSION"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_STRING "$PACKAGE_STRING"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_URL "$PACKAGE_URL"
2210_ACEOF
2211
2212
2213# Let the site file select an alternate cache file if it wants to.
2214# Prefer an explicitly selected file to automatically selected ones.
2215ac_site_file1=NONE
2216ac_site_file2=NONE
2217if test -n "$CONFIG_SITE"; then
2218  # We do not want a PATH search for config.site.
2219  case $CONFIG_SITE in #((
2220    -*)  ac_site_file1=./$CONFIG_SITE;;
2221    */*) ac_site_file1=$CONFIG_SITE;;
2222    *)   ac_site_file1=./$CONFIG_SITE;;
2223  esac
2224elif test "x$prefix" != xNONE; then
2225  ac_site_file1=$prefix/share/config.site
2226  ac_site_file2=$prefix/etc/config.site
2227else
2228  ac_site_file1=$ac_default_prefix/share/config.site
2229  ac_site_file2=$ac_default_prefix/etc/config.site
2230fi
2231for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232do
2233  test "x$ac_site_file" = xNONE && continue
2234  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2237    sed 's/^/| /' "$ac_site_file" >&5
2238    . "$ac_site_file" \
2239      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241as_fn_error $? "failed to load site script $ac_site_file
2242See \`config.log' for more details" "$LINENO" 5; }
2243  fi
2244done
2245
2246if test -r "$cache_file"; then
2247  # Some versions of bash will fail to source /dev/null (special files
2248  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2249  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2250    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2251$as_echo "$as_me: loading cache $cache_file" >&6;}
2252    case $cache_file in
2253      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2254      *)                      . "./$cache_file";;
2255    esac
2256  fi
2257else
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2259$as_echo "$as_me: creating cache $cache_file" >&6;}
2260  >$cache_file
2261fi
2262
2263# Check that the precious variables saved in the cache have kept the same
2264# value.
2265ac_cache_corrupted=false
2266for ac_var in $ac_precious_vars; do
2267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2268  eval ac_new_set=\$ac_env_${ac_var}_set
2269  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2270  eval ac_new_val=\$ac_env_${ac_var}_value
2271  case $ac_old_set,$ac_new_set in
2272    set,)
2273      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2274$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2275      ac_cache_corrupted=: ;;
2276    ,set)
2277      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2278$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2279      ac_cache_corrupted=: ;;
2280    ,);;
2281    *)
2282      if test "x$ac_old_val" != "x$ac_new_val"; then
2283	# differences in whitespace do not lead to failure.
2284	ac_old_val_w=`echo x $ac_old_val`
2285	ac_new_val_w=`echo x $ac_new_val`
2286	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2287	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2288$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2289	  ac_cache_corrupted=:
2290	else
2291	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2292$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2293	  eval $ac_var=\$ac_old_val
2294	fi
2295	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2296$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2297	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2298$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2299      fi;;
2300  esac
2301  # Pass precious variables to config.status.
2302  if test "$ac_new_set" = set; then
2303    case $ac_new_val in
2304    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2305    *) ac_arg=$ac_var=$ac_new_val ;;
2306    esac
2307    case " $ac_configure_args " in
2308      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2309      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310    esac
2311  fi
2312done
2313if $ac_cache_corrupted; then
2314  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2317$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2318  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2319fi
2320## -------------------- ##
2321## Main body of script. ##
2322## -------------------- ##
2323
2324ac_ext=c
2325ac_cpp='$CPP $CPPFLAGS'
2326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329
2330
2331
2332ac_config_headers="$ac_config_headers config.h"
2333
2334ac_aux_dir=
2335for ac_dir in . "$srcdir"/.; do
2336  if test -f "$ac_dir/install-sh"; then
2337    ac_aux_dir=$ac_dir
2338    ac_install_sh="$ac_aux_dir/install-sh -c"
2339    break
2340  elif test -f "$ac_dir/install.sh"; then
2341    ac_aux_dir=$ac_dir
2342    ac_install_sh="$ac_aux_dir/install.sh -c"
2343    break
2344  elif test -f "$ac_dir/shtool"; then
2345    ac_aux_dir=$ac_dir
2346    ac_install_sh="$ac_aux_dir/shtool install -c"
2347    break
2348  fi
2349done
2350if test -z "$ac_aux_dir"; then
2351  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2352fi
2353
2354# These three variables are undocumented and unsupported,
2355# and are intended to be withdrawn in a future Autoconf release.
2356# They can cause serious problems if a builder's source tree is in a directory
2357# whose full name contains unusual characters.
2358ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2359ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2360ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2361
2362
2363
2364# Initialize Automake
2365am__api_version='1.15'
2366
2367# Find a good install program.  We prefer a C program (faster),
2368# so one script is as good as another.  But avoid the broken or
2369# incompatible versions:
2370# SysV /etc/install, /usr/sbin/install
2371# SunOS /usr/etc/install
2372# IRIX /sbin/install
2373# AIX /bin/install
2374# AmigaOS /C/install, which installs bootblocks on floppy discs
2375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378# OS/2's system install, which has a completely different semantic
2379# ./install, which can be erroneously created by make from ./install.sh.
2380# Reject install programs that cannot install multiple files.
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2382$as_echo_n "checking for a BSD-compatible install... " >&6; }
2383if test -z "$INSTALL"; then
2384if ${ac_cv_path_install+:} false; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390  IFS=$as_save_IFS
2391  test -z "$as_dir" && as_dir=.
2392    # Account for people who put trailing slashes in PATH elements.
2393case $as_dir/ in #((
2394  ./ | .// | /[cC]/* | \
2395  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2397  /usr/ucb/* ) ;;
2398  *)
2399    # OSF1 and SCO ODT 3.0 have their own names for install.
2400    # Don't use installbsd from OSF since it installs stuff as root
2401    # by default.
2402    for ac_prog in ginstall scoinst install; do
2403      for ac_exec_ext in '' $ac_executable_extensions; do
2404	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2405	  if test $ac_prog = install &&
2406	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407	    # AIX install.  It has an incompatible calling convention.
2408	    :
2409	  elif test $ac_prog = install &&
2410	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411	    # program-specific install script used by HP pwplus--don't use.
2412	    :
2413	  else
2414	    rm -rf conftest.one conftest.two conftest.dir
2415	    echo one > conftest.one
2416	    echo two > conftest.two
2417	    mkdir conftest.dir
2418	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419	      test -s conftest.one && test -s conftest.two &&
2420	      test -s conftest.dir/conftest.one &&
2421	      test -s conftest.dir/conftest.two
2422	    then
2423	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2424	      break 3
2425	    fi
2426	  fi
2427	fi
2428      done
2429    done
2430    ;;
2431esac
2432
2433  done
2434IFS=$as_save_IFS
2435
2436rm -rf conftest.one conftest.two conftest.dir
2437
2438fi
2439  if test "${ac_cv_path_install+set}" = set; then
2440    INSTALL=$ac_cv_path_install
2441  else
2442    # As a last resort, use the slow shell script.  Don't cache a
2443    # value for INSTALL within a source directory, because that will
2444    # break other packages using the cache if that directory is
2445    # removed, or if the value is a relative name.
2446    INSTALL=$ac_install_sh
2447  fi
2448fi
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2450$as_echo "$INSTALL" >&6; }
2451
2452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453# It thinks the first close brace ends the variable substitution.
2454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455
2456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457
2458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2461$as_echo_n "checking whether build environment is sane... " >&6; }
2462# Reject unsafe characters in $srcdir or the absolute working directory
2463# name.  Accept space and tab only in the latter.
2464am_lf='
2465'
2466case `pwd` in
2467  *[\\\"\#\$\&\'\`$am_lf]*)
2468    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2469esac
2470case $srcdir in
2471  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2472    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2473esac
2474
2475# Do 'set' in a subshell so we don't clobber the current shell's
2476# arguments.  Must try -L first in case configure is actually a
2477# symlink; some systems play weird games with the mod time of symlinks
2478# (eg FreeBSD returns the mod time of the symlink's containing
2479# directory).
2480if (
2481   am_has_slept=no
2482   for am_try in 1 2; do
2483     echo "timestamp, slept: $am_has_slept" > conftest.file
2484     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2485     if test "$*" = "X"; then
2486	# -L didn't work.
2487	set X `ls -t "$srcdir/configure" conftest.file`
2488     fi
2489     if test "$*" != "X $srcdir/configure conftest.file" \
2490	&& test "$*" != "X conftest.file $srcdir/configure"; then
2491
2492	# If neither matched, then we have a broken ls.  This can happen
2493	# if, for instance, CONFIG_SHELL is bash and it inherits a
2494	# broken ls alias from the environment.  This has actually
2495	# happened.  Such a system could not be considered "sane".
2496	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2497  alias in your environment" "$LINENO" 5
2498     fi
2499     if test "$2" = conftest.file || test $am_try -eq 2; then
2500       break
2501     fi
2502     # Just in case.
2503     sleep 1
2504     am_has_slept=yes
2505   done
2506   test "$2" = conftest.file
2507   )
2508then
2509   # Ok.
2510   :
2511else
2512   as_fn_error $? "newly created file is older than distributed files!
2513Check your system clock" "$LINENO" 5
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2516$as_echo "yes" >&6; }
2517# If we didn't sleep, we still need to ensure time stamps of config.status and
2518# generated files are strictly newer.
2519am_sleep_pid=
2520if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2521  ( sleep 1 ) &
2522  am_sleep_pid=$!
2523fi
2524
2525rm -f conftest.file
2526
2527test "$program_prefix" != NONE &&
2528  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529# Use a double $ so make ignores it.
2530test "$program_suffix" != NONE &&
2531  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532# Double any \ or $.
2533# By default was `s,x,x', remove it if useless.
2534ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2536
2537# Expand $ac_aux_dir to an absolute path.
2538am_aux_dir=`cd "$ac_aux_dir" && pwd`
2539
2540if test x"${MISSING+set}" != xset; then
2541  case $am_aux_dir in
2542  *\ * | *\	*)
2543    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2544  *)
2545    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2546  esac
2547fi
2548# Use eval to expand $SHELL
2549if eval "$MISSING --is-lightweight"; then
2550  am_missing_run="$MISSING "
2551else
2552  am_missing_run=
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2554$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2555fi
2556
2557if test x"${install_sh+set}" != xset; then
2558  case $am_aux_dir in
2559  *\ * | *\	*)
2560    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2561  *)
2562    install_sh="\${SHELL} $am_aux_dir/install-sh"
2563  esac
2564fi
2565
2566# Installed binaries are usually stripped using 'strip' when the user
2567# run "make install-strip".  However 'strip' might not be the right
2568# tool to use in cross-compilation environments, therefore Automake
2569# will honor the 'STRIP' environment variable to overrule this program.
2570if test "$cross_compiling" != no; then
2571  if test -n "$ac_tool_prefix"; then
2572  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2573set dummy ${ac_tool_prefix}strip; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if ${ac_cv_prog_STRIP+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test -n "$STRIP"; then
2580  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_exec_ext in '' $ac_executable_extensions; do
2588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599STRIP=$ac_cv_prog_STRIP
2600if test -n "$STRIP"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2602$as_echo "$STRIP" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609fi
2610if test -z "$ac_cv_prog_STRIP"; then
2611  ac_ct_STRIP=$STRIP
2612  # Extract the first word of "strip", so it can be a program name with args.
2613set dummy strip; ac_word=$2
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2617  $as_echo_n "(cached) " >&6
2618else
2619  if test -n "$ac_ct_STRIP"; then
2620  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625  IFS=$as_save_IFS
2626  test -z "$as_dir" && as_dir=.
2627    for ac_exec_ext in '' $ac_executable_extensions; do
2628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629    ac_cv_prog_ac_ct_STRIP="strip"
2630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631    break 2
2632  fi
2633done
2634  done
2635IFS=$as_save_IFS
2636
2637fi
2638fi
2639ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2640if test -n "$ac_ct_STRIP"; then
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2642$as_echo "$ac_ct_STRIP" >&6; }
2643else
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
2646fi
2647
2648  if test "x$ac_ct_STRIP" = x; then
2649    STRIP=":"
2650  else
2651    case $cross_compiling:$ac_tool_warned in
2652yes:)
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655ac_tool_warned=yes ;;
2656esac
2657    STRIP=$ac_ct_STRIP
2658  fi
2659else
2660  STRIP="$ac_cv_prog_STRIP"
2661fi
2662
2663fi
2664INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2665
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2667$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2668if test -z "$MKDIR_P"; then
2669  if ${ac_cv_path_mkdir+:} false; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    for ac_prog in mkdir gmkdir; do
2678	 for ac_exec_ext in '' $ac_executable_extensions; do
2679	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2680	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2681	     'mkdir (GNU coreutils) '* | \
2682	     'mkdir (coreutils) '* | \
2683	     'mkdir (fileutils) '4.1*)
2684	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2685	       break 3;;
2686	   esac
2687	 done
2688       done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693
2694  test -d ./--version && rmdir ./--version
2695  if test "${ac_cv_path_mkdir+set}" = set; then
2696    MKDIR_P="$ac_cv_path_mkdir -p"
2697  else
2698    # As a last resort, use the slow shell script.  Don't cache a
2699    # value for MKDIR_P within a source directory, because that will
2700    # break other packages using the cache if that directory is
2701    # removed, or if the value is a relative name.
2702    MKDIR_P="$ac_install_sh -d"
2703  fi
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2706$as_echo "$MKDIR_P" >&6; }
2707
2708for ac_prog in gawk mawk nawk awk
2709do
2710  # Extract the first word of "$ac_prog", so it can be a program name with args.
2711set dummy $ac_prog; ac_word=$2
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713$as_echo_n "checking for $ac_word... " >&6; }
2714if ${ac_cv_prog_AWK+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  if test -n "$AWK"; then
2718  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725    for ac_exec_ext in '' $ac_executable_extensions; do
2726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727    ac_cv_prog_AWK="$ac_prog"
2728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729    break 2
2730  fi
2731done
2732  done
2733IFS=$as_save_IFS
2734
2735fi
2736fi
2737AWK=$ac_cv_prog_AWK
2738if test -n "$AWK"; then
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740$as_echo "$AWK" >&6; }
2741else
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
2745
2746
2747  test -n "$AWK" && break
2748done
2749
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752set x ${MAKE-make}
2753ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2755  $as_echo_n "(cached) " >&6
2756else
2757  cat >conftest.make <<\_ACEOF
2758SHELL = /bin/sh
2759all:
2760	@echo '@@@%%%=$(MAKE)=@@@%%%'
2761_ACEOF
2762# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2763case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764  *@@@%%%=?*=@@@%%%*)
2765    eval ac_cv_prog_make_${ac_make}_set=yes;;
2766  *)
2767    eval ac_cv_prog_make_${ac_make}_set=no;;
2768esac
2769rm -f conftest.make
2770fi
2771if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773$as_echo "yes" >&6; }
2774  SET_MAKE=
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778  SET_MAKE="MAKE=${MAKE-make}"
2779fi
2780
2781rm -rf .tst 2>/dev/null
2782mkdir .tst 2>/dev/null
2783if test -d .tst; then
2784  am__leading_dot=.
2785else
2786  am__leading_dot=_
2787fi
2788rmdir .tst 2>/dev/null
2789
2790# Check whether --enable-silent-rules was given.
2791if test "${enable_silent_rules+set}" = set; then :
2792  enableval=$enable_silent_rules;
2793fi
2794
2795case $enable_silent_rules in # (((
2796  yes) AM_DEFAULT_VERBOSITY=0;;
2797   no) AM_DEFAULT_VERBOSITY=1;;
2798    *) AM_DEFAULT_VERBOSITY=1;;
2799esac
2800am_make=${MAKE-make}
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2802$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2803if ${am_cv_make_support_nested_variables+:} false; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  if $as_echo 'TRUE=$(BAR$(V))
2807BAR0=false
2808BAR1=true
2809V=1
2810am__doit:
2811	@$(TRUE)
2812.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2813  am_cv_make_support_nested_variables=yes
2814else
2815  am_cv_make_support_nested_variables=no
2816fi
2817fi
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2819$as_echo "$am_cv_make_support_nested_variables" >&6; }
2820if test $am_cv_make_support_nested_variables = yes; then
2821    AM_V='$(V)'
2822  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2823else
2824  AM_V=$AM_DEFAULT_VERBOSITY
2825  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2826fi
2827AM_BACKSLASH='\'
2828
2829if test "`cd $srcdir && pwd`" != "`pwd`"; then
2830  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2831  # is not polluted with repeated "-I."
2832  am__isrc=' -I$(srcdir)'
2833  # test to see if srcdir already configured
2834  if test -f $srcdir/config.status; then
2835    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2836  fi
2837fi
2838
2839# test whether we have cygpath
2840if test -z "$CYGPATH_W"; then
2841  if (cygpath --version) >/dev/null 2>/dev/null; then
2842    CYGPATH_W='cygpath -w'
2843  else
2844    CYGPATH_W=echo
2845  fi
2846fi
2847
2848
2849# Define the identity of the package.
2850 PACKAGE='xf86-input-joystick'
2851 VERSION='1.6.3'
2852
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE "$PACKAGE"
2856_ACEOF
2857
2858
2859cat >>confdefs.h <<_ACEOF
2860#define VERSION "$VERSION"
2861_ACEOF
2862
2863# Some tools Automake needs.
2864
2865ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2866
2867
2868AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2869
2870
2871AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2872
2873
2874AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2875
2876
2877MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2878
2879# For better backward compatibility.  To be removed once Automake 1.9.x
2880# dies out for good.  For more background, see:
2881# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2882# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2883mkdir_p='$(MKDIR_P)'
2884
2885# We need awk for the "check" target (and possibly the TAP driver).  The
2886# system "awk" is bad on some platforms.
2887# Always define AMTAR for backward compatibility.  Yes, it's still used
2888# in the wild :-(  We should find a proper way to deprecate it ...
2889AMTAR='$${TAR-tar}'
2890
2891
2892# We'll loop over all known methods to create a tar archive until one works.
2893_am_tools='gnutar  pax cpio none'
2894
2895am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2896
2897
2898
2899
2900
2901
2902# POSIX will say in a future version that running "rm -f" with no argument
2903# is OK; and we want to be able to make that assumption in our Makefile
2904# recipes.  So use an aggressive probe to check that the usage we want is
2905# actually supported "in the wild" to an acceptable degree.
2906# See automake bug#10828.
2907# To make any issue more visible, cause the running configure to be aborted
2908# by default if the 'rm' program in use doesn't match our expectations; the
2909# user can still override this though.
2910if rm -f && rm -fr && rm -rf; then : OK; else
2911  cat >&2 <<'END'
2912Oops!
2913
2914Your 'rm' program seems unable to run without file operands specified
2915on the command line, even when the '-f' option is present.  This is contrary
2916to the behaviour of most rm programs out there, and not conforming with
2917the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2918
2919Please tell bug-automake@gnu.org about your system, including the value
2920of your $PATH and any error possibly output before this message.  This
2921can help us improve future automake versions.
2922
2923END
2924  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2925    echo 'Configuration will proceed anyway, since you have set the' >&2
2926    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2927    echo >&2
2928  else
2929    cat >&2 <<'END'
2930Aborting the configuration process, to ensure you take notice of the issue.
2931
2932You can download and install GNU coreutils to get an 'rm' implementation
2933that behaves properly: <http://www.gnu.org/software/coreutils/>.
2934
2935If you want to complete the configuration process using your problematic
2936'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2937to "yes", and re-run configure.
2938
2939END
2940    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2941  fi
2942fi
2943
2944
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2946$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2947    # Check whether --enable-maintainer-mode was given.
2948if test "${enable_maintainer_mode+set}" = set; then :
2949  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2950else
2951  USE_MAINTAINER_MODE=no
2952fi
2953
2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2955$as_echo "$USE_MAINTAINER_MODE" >&6; }
2956   if test $USE_MAINTAINER_MODE = yes; then
2957  MAINTAINER_MODE_TRUE=
2958  MAINTAINER_MODE_FALSE='#'
2959else
2960  MAINTAINER_MODE_TRUE='#'
2961  MAINTAINER_MODE_FALSE=
2962fi
2963
2964  MAINT=$MAINTAINER_MODE_TRUE
2965
2966
2967
2968# Initialize libtool
2969# Check whether --enable-static was given.
2970if test "${enable_static+set}" = set; then :
2971  enableval=$enable_static; p=${PACKAGE-default}
2972    case $enableval in
2973    yes) enable_static=yes ;;
2974    no) enable_static=no ;;
2975    *)
2976     enable_static=no
2977      # Look at the argument we got.  We use all the common list separators.
2978      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2979      for pkg in $enableval; do
2980	IFS=$lt_save_ifs
2981	if test "X$pkg" = "X$p"; then
2982	  enable_static=yes
2983	fi
2984      done
2985      IFS=$lt_save_ifs
2986      ;;
2987    esac
2988else
2989  enable_static=no
2990fi
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000case `pwd` in
3001  *\ * | *\	*)
3002    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3003$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3004esac
3005
3006
3007
3008macro_version='2.4.6'
3009macro_revision='2.4.6'
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023ltmain=$ac_aux_dir/ltmain.sh
3024
3025# Make sure we can run config.sub.
3026$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3027  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3028
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3030$as_echo_n "checking build system type... " >&6; }
3031if ${ac_cv_build+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  ac_build_alias=$build_alias
3035test "x$ac_build_alias" = x &&
3036  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3037test "x$ac_build_alias" = x &&
3038  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3039ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3040  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3041
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3044$as_echo "$ac_cv_build" >&6; }
3045case $ac_cv_build in
3046*-*-*) ;;
3047*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3048esac
3049build=$ac_cv_build
3050ac_save_IFS=$IFS; IFS='-'
3051set x $ac_cv_build
3052shift
3053build_cpu=$1
3054build_vendor=$2
3055shift; shift
3056# Remember, the first character of IFS is used to create $*,
3057# except with old shells:
3058build_os=$*
3059IFS=$ac_save_IFS
3060case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3061
3062
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3064$as_echo_n "checking host system type... " >&6; }
3065if ${ac_cv_host+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test "x$host_alias" = x; then
3069  ac_cv_host=$ac_cv_build
3070else
3071  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3072    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3073fi
3074
3075fi
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3077$as_echo "$ac_cv_host" >&6; }
3078case $ac_cv_host in
3079*-*-*) ;;
3080*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3081esac
3082host=$ac_cv_host
3083ac_save_IFS=$IFS; IFS='-'
3084set x $ac_cv_host
3085shift
3086host_cpu=$1
3087host_vendor=$2
3088shift; shift
3089# Remember, the first character of IFS is used to create $*,
3090# except with old shells:
3091host_os=$*
3092IFS=$ac_save_IFS
3093case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3094
3095
3096# Backslashify metacharacters that are still active within
3097# double-quoted strings.
3098sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3099
3100# Same as above, but do not quote variable references.
3101double_quote_subst='s/\(["`\\]\)/\\\1/g'
3102
3103# Sed substitution to delay expansion of an escaped shell variable in a
3104# double_quote_subst'ed string.
3105delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3106
3107# Sed substitution to delay expansion of an escaped single quote.
3108delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3109
3110# Sed substitution to avoid accidental globbing in evaled expressions
3111no_glob_subst='s/\*/\\\*/g'
3112
3113ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3114ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3116
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3118$as_echo_n "checking how to print strings... " >&6; }
3119# Test print first, because it will be a builtin if present.
3120if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3121   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3122  ECHO='print -r --'
3123elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3124  ECHO='printf %s\n'
3125else
3126  # Use this function as a fallback that always works.
3127  func_fallback_echo ()
3128  {
3129    eval 'cat <<_LTECHO_EOF
3130$1
3131_LTECHO_EOF'
3132  }
3133  ECHO='func_fallback_echo'
3134fi
3135
3136# func_echo_all arg...
3137# Invoke $ECHO with all args, space-separated.
3138func_echo_all ()
3139{
3140    $ECHO ""
3141}
3142
3143case $ECHO in
3144  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3145$as_echo "printf" >&6; } ;;
3146  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3147$as_echo "print -r" >&6; } ;;
3148  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3149$as_echo "cat" >&6; } ;;
3150esac
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165DEPDIR="${am__leading_dot}deps"
3166
3167ac_config_commands="$ac_config_commands depfiles"
3168
3169
3170am_make=${MAKE-make}
3171cat > confinc << 'END'
3172am__doit:
3173	@echo this is the am__doit target
3174.PHONY: am__doit
3175END
3176# If we don't find an include directive, just comment out the code.
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3178$as_echo_n "checking for style of include used by $am_make... " >&6; }
3179am__include="#"
3180am__quote=
3181_am_result=none
3182# First try GNU make style include.
3183echo "include confinc" > confmf
3184# Ignore all kinds of additional output from 'make'.
3185case `$am_make -s -f confmf 2> /dev/null` in #(
3186*the\ am__doit\ target*)
3187  am__include=include
3188  am__quote=
3189  _am_result=GNU
3190  ;;
3191esac
3192# Now try BSD make style include.
3193if test "$am__include" = "#"; then
3194   echo '.include "confinc"' > confmf
3195   case `$am_make -s -f confmf 2> /dev/null` in #(
3196   *the\ am__doit\ target*)
3197     am__include=.include
3198     am__quote="\""
3199     _am_result=BSD
3200     ;;
3201   esac
3202fi
3203
3204
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3206$as_echo "$_am_result" >&6; }
3207rm -f confinc confmf
3208
3209# Check whether --enable-dependency-tracking was given.
3210if test "${enable_dependency_tracking+set}" = set; then :
3211  enableval=$enable_dependency_tracking;
3212fi
3213
3214if test "x$enable_dependency_tracking" != xno; then
3215  am_depcomp="$ac_aux_dir/depcomp"
3216  AMDEPBACKSLASH='\'
3217  am__nodep='_no'
3218fi
3219 if test "x$enable_dependency_tracking" != xno; then
3220  AMDEP_TRUE=
3221  AMDEP_FALSE='#'
3222else
3223  AMDEP_TRUE='#'
3224  AMDEP_FALSE=
3225fi
3226
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233if test -n "$ac_tool_prefix"; then
3234  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237$as_echo_n "checking for $ac_word... " >&6; }
3238if ${ac_cv_prog_CC+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  if test -n "$CC"; then
3242  ac_cv_prog_CC="$CC" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249    for ac_exec_ext in '' $ac_executable_extensions; do
3250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256  done
3257IFS=$as_save_IFS
3258
3259fi
3260fi
3261CC=$ac_cv_prog_CC
3262if test -n "$CC"; then
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264$as_echo "$CC" >&6; }
3265else
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267$as_echo "no" >&6; }
3268fi
3269
3270
3271fi
3272if test -z "$ac_cv_prog_CC"; then
3273  ac_ct_CC=$CC
3274  # Extract the first word of "gcc", so it can be a program name with args.
3275set dummy gcc; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$ac_ct_CC"; then
3282  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291    ac_cv_prog_ac_ct_CC="gcc"
3292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296  done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302if test -n "$ac_ct_CC"; then
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304$as_echo "$ac_ct_CC" >&6; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310  if test "x$ac_ct_CC" = x; then
3311    CC=""
3312  else
3313    case $cross_compiling:$ac_tool_warned in
3314yes:)
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317ac_tool_warned=yes ;;
3318esac
3319    CC=$ac_ct_CC
3320  fi
3321else
3322  CC="$ac_cv_prog_CC"
3323fi
3324
3325if test -z "$CC"; then
3326          if test -n "$ac_tool_prefix"; then
3327    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328set dummy ${ac_tool_prefix}cc; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_CC+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  if test -n "$CC"; then
3335  ac_cv_prog_CC="$CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_CC="${ac_tool_prefix}cc"
3345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357$as_echo "$CC" >&6; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364  fi
3365fi
3366if test -z "$CC"; then
3367  # Extract the first word of "cc", so it can be a program name with args.
3368set dummy cc; ac_word=$2
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370$as_echo_n "checking for $ac_word... " >&6; }
3371if ${ac_cv_prog_CC+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  if test -n "$CC"; then
3375  ac_cv_prog_CC="$CC" # Let the user override the test.
3376else
3377  ac_prog_rejected=no
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  test -z "$as_dir" && as_dir=.
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386       ac_prog_rejected=yes
3387       continue
3388     fi
3389    ac_cv_prog_CC="cc"
3390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397if test $ac_prog_rejected = yes; then
3398  # We found a bogon in the path, so make sure we never use it.
3399  set dummy $ac_cv_prog_CC
3400  shift
3401  if test $# != 0; then
3402    # We chose a different compiler from the bogus one.
3403    # However, it has the same basename, so the bogon will be chosen
3404    # first if we set CC to just the basename; use the full file name.
3405    shift
3406    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3407  fi
3408fi
3409fi
3410fi
3411CC=$ac_cv_prog_CC
3412if test -n "$CC"; then
3413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414$as_echo "$CC" >&6; }
3415else
3416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418fi
3419
3420
3421fi
3422if test -z "$CC"; then
3423  if test -n "$ac_tool_prefix"; then
3424  for ac_prog in cl.exe
3425  do
3426    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if ${ac_cv_prog_CC+:} false; then :
3431  $as_echo_n "(cached) " >&6
3432else
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439  IFS=$as_save_IFS
3440  test -z "$as_dir" && as_dir=.
3441    for ac_exec_ext in '' $ac_executable_extensions; do
3442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445    break 2
3446  fi
3447done
3448  done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453CC=$ac_cv_prog_CC
3454if test -n "$CC"; then
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456$as_echo "$CC" >&6; }
3457else
3458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460fi
3461
3462
3463    test -n "$CC" && break
3464  done
3465fi
3466if test -z "$CC"; then
3467  ac_ct_CC=$CC
3468  for ac_prog in cl.exe
3469do
3470  # Extract the first word of "$ac_prog", so it can be a program name with args.
3471set dummy $ac_prog; ac_word=$2
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473$as_echo_n "checking for $ac_word... " >&6; }
3474if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  if test -n "$ac_ct_CC"; then
3478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479else
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483  IFS=$as_save_IFS
3484  test -z "$as_dir" && as_dir=.
3485    for ac_exec_ext in '' $ac_executable_extensions; do
3486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487    ac_cv_prog_ac_ct_CC="$ac_prog"
3488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489    break 2
3490  fi
3491done
3492  done
3493IFS=$as_save_IFS
3494
3495fi
3496fi
3497ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498if test -n "$ac_ct_CC"; then
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500$as_echo "$ac_ct_CC" >&6; }
3501else
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503$as_echo "no" >&6; }
3504fi
3505
3506
3507  test -n "$ac_ct_CC" && break
3508done
3509
3510  if test "x$ac_ct_CC" = x; then
3511    CC=""
3512  else
3513    case $cross_compiling:$ac_tool_warned in
3514yes:)
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517ac_tool_warned=yes ;;
3518esac
3519    CC=$ac_ct_CC
3520  fi
3521fi
3522
3523fi
3524
3525
3526test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error $? "no acceptable C compiler found in \$PATH
3529See \`config.log' for more details" "$LINENO" 5; }
3530
3531# Provide some information about the compiler.
3532$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3533set X $ac_compile
3534ac_compiler=$2
3535for ac_option in --version -v -V -qversion; do
3536  { { ac_try="$ac_compiler $ac_option >&5"
3537case "(($ac_try" in
3538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539  *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542$as_echo "$ac_try_echo"; } >&5
3543  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544  ac_status=$?
3545  if test -s conftest.err; then
3546    sed '10a\
3547... rest of stderr output deleted ...
3548         10q' conftest.err >conftest.er1
3549    cat conftest.er1 >&5
3550  fi
3551  rm -f conftest.er1 conftest.err
3552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553  test $ac_status = 0; }
3554done
3555
3556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567ac_clean_files_save=$ac_clean_files
3568ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569# Try to create an executable without -o first, disregard a.out.
3570# It will help us diagnose broken compilers, and finding out an intuition
3571# of exeext.
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573$as_echo_n "checking whether the C compiler works... " >&6; }
3574ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575
3576# The possible output files:
3577ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3578
3579ac_rmfiles=
3580for ac_file in $ac_files
3581do
3582  case $ac_file in
3583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585  esac
3586done
3587rm -f $ac_rmfiles
3588
3589if { { ac_try="$ac_link_default"
3590case "(($ac_try" in
3591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592  *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595$as_echo "$ac_try_echo"; } >&5
3596  (eval "$ac_link_default") 2>&5
3597  ac_status=$?
3598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599  test $ac_status = 0; }; then :
3600  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3603# so that the user can short-circuit this test for compilers unknown to
3604# Autoconf.
3605for ac_file in $ac_files ''
3606do
3607  test -f "$ac_file" || continue
3608  case $ac_file in
3609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3610	;;
3611    [ab].out )
3612	# We found the default executable, but exeext='' is most
3613	# certainly right.
3614	break;;
3615    *.* )
3616	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617	then :; else
3618	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619	fi
3620	# We set ac_cv_exeext here because the later test for it is not
3621	# safe: cross compilers may not add the suffix if given an `-o'
3622	# argument, so we may need to know it at that point already.
3623	# Even if this section looks crufty: it has the advantage of
3624	# actually working.
3625	break;;
3626    * )
3627	break;;
3628  esac
3629done
3630test "$ac_cv_exeext" = no && ac_cv_exeext=
3631
3632else
3633  ac_file=''
3634fi
3635if test -z "$ac_file"; then :
3636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637$as_echo "no" >&6; }
3638$as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error 77 "C compiler cannot create executables
3644See \`config.log' for more details" "$LINENO" 5; }
3645else
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647$as_echo "yes" >&6; }
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650$as_echo_n "checking for C compiler default output file name... " >&6; }
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652$as_echo "$ac_file" >&6; }
3653ac_exeext=$ac_cv_exeext
3654
3655rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656ac_clean_files=$ac_clean_files_save
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658$as_echo_n "checking for suffix of executables... " >&6; }
3659if { { ac_try="$ac_link"
3660case "(($ac_try" in
3661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662  *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665$as_echo "$ac_try_echo"; } >&5
3666  (eval "$ac_link") 2>&5
3667  ac_status=$?
3668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669  test $ac_status = 0; }; then :
3670  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3672# work properly (i.e., refer to `conftest.exe'), while it won't with
3673# `rm'.
3674for ac_file in conftest.exe conftest conftest.*; do
3675  test -f "$ac_file" || continue
3676  case $ac_file in
3677    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679	  break;;
3680    * ) break;;
3681  esac
3682done
3683else
3684  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3687See \`config.log' for more details" "$LINENO" 5; }
3688fi
3689rm -f conftest conftest$ac_cv_exeext
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691$as_echo "$ac_cv_exeext" >&6; }
3692
3693rm -f conftest.$ac_ext
3694EXEEXT=$ac_cv_exeext
3695ac_exeext=$EXEEXT
3696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698#include <stdio.h>
3699int
3700main ()
3701{
3702FILE *f = fopen ("conftest.out", "w");
3703 return ferror (f) || fclose (f) != 0;
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709ac_clean_files="$ac_clean_files conftest.out"
3710# Check that the compiler produces executables we can run.  If not, either
3711# the compiler is broken, or we cross compile.
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713$as_echo_n "checking whether we are cross compiling... " >&6; }
3714if test "$cross_compiling" != yes; then
3715  { { ac_try="$ac_link"
3716case "(($ac_try" in
3717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718  *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722  (eval "$ac_link") 2>&5
3723  ac_status=$?
3724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725  test $ac_status = 0; }
3726  if { ac_try='./conftest$ac_cv_exeext'
3727  { { case "(($ac_try" in
3728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729  *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733  (eval "$ac_try") 2>&5
3734  ac_status=$?
3735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736  test $ac_status = 0; }; }; then
3737    cross_compiling=no
3738  else
3739    if test "$cross_compiling" = maybe; then
3740	cross_compiling=yes
3741    else
3742	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744as_fn_error $? "cannot run C compiled programs.
3745If you meant to cross compile, use \`--host'.
3746See \`config.log' for more details" "$LINENO" 5; }
3747    fi
3748  fi
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751$as_echo "$cross_compiling" >&6; }
3752
3753rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754ac_clean_files=$ac_clean_files_save
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756$as_echo_n "checking for suffix of object files... " >&6; }
3757if ${ac_cv_objext+:} false; then :
3758  $as_echo_n "(cached) " >&6
3759else
3760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762
3763int
3764main ()
3765{
3766
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771rm -f conftest.o conftest.obj
3772if { { ac_try="$ac_compile"
3773case "(($ac_try" in
3774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775  *) ac_try_echo=$ac_try;;
3776esac
3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778$as_echo "$ac_try_echo"; } >&5
3779  (eval "$ac_compile") 2>&5
3780  ac_status=$?
3781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782  test $ac_status = 0; }; then :
3783  for ac_file in conftest.o conftest.obj conftest.*; do
3784  test -f "$ac_file" || continue;
3785  case $ac_file in
3786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3788       break;;
3789  esac
3790done
3791else
3792  $as_echo "$as_me: failed program was:" >&5
3793sed 's/^/| /' conftest.$ac_ext >&5
3794
3795{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error $? "cannot compute suffix of object files: cannot compile
3798See \`config.log' for more details" "$LINENO" 5; }
3799fi
3800rm -f conftest.$ac_cv_objext conftest.$ac_ext
3801fi
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803$as_echo "$ac_cv_objext" >&6; }
3804OBJEXT=$ac_cv_objext
3805ac_objext=$OBJEXT
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808if ${ac_cv_c_compiler_gnu+:} false; then :
3809  $as_echo_n "(cached) " >&6
3810else
3811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h.  */
3813
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818       choke me
3819#endif
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826  ac_compiler_gnu=yes
3827else
3828  ac_compiler_gnu=no
3829fi
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836if test $ac_compiler_gnu = yes; then
3837  GCC=yes
3838else
3839  GCC=
3840fi
3841ac_test_CFLAGS=${CFLAGS+set}
3842ac_save_CFLAGS=$CFLAGS
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844$as_echo_n "checking whether $CC accepts -g... " >&6; }
3845if ${ac_cv_prog_cc_g+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  ac_save_c_werror_flag=$ac_c_werror_flag
3849   ac_c_werror_flag=yes
3850   ac_cv_prog_cc_g=no
3851   CFLAGS="-g"
3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_cv_prog_cc_g=yes
3865else
3866  CFLAGS=""
3867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869
3870int
3871main ()
3872{
3873
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878if ac_fn_c_try_compile "$LINENO"; then :
3879
3880else
3881  ac_c_werror_flag=$ac_save_c_werror_flag
3882	 CFLAGS="-g"
3883	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_compile "$LINENO"; then :
3895  ac_cv_prog_cc_g=yes
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898fi
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900fi
3901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902   ac_c_werror_flag=$ac_save_c_werror_flag
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905$as_echo "$ac_cv_prog_cc_g" >&6; }
3906if test "$ac_test_CFLAGS" = set; then
3907  CFLAGS=$ac_save_CFLAGS
3908elif test $ac_cv_prog_cc_g = yes; then
3909  if test "$GCC" = yes; then
3910    CFLAGS="-g -O2"
3911  else
3912    CFLAGS="-g"
3913  fi
3914else
3915  if test "$GCC" = yes; then
3916    CFLAGS="-O2"
3917  else
3918    CFLAGS=
3919  fi
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923if ${ac_cv_prog_cc_c89+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  ac_cv_prog_cc_c89=no
3927ac_save_CC=$CC
3928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h.  */
3930#include <stdarg.h>
3931#include <stdio.h>
3932struct stat;
3933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3934struct buf { int x; };
3935FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936static char *e (p, i)
3937     char **p;
3938     int i;
3939{
3940  return p[i];
3941}
3942static char *f (char * (*g) (char **, int), char **p, ...)
3943{
3944  char *s;
3945  va_list v;
3946  va_start (v,p);
3947  s = g (p, va_arg (v,int));
3948  va_end (v);
3949  return s;
3950}
3951
3952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3953   function prototypes and stuff, but not '\xHH' hex character constants.
3954   These don't provoke an error unfortunately, instead are silently treated
3955   as 'x'.  The following induces an error, until -std is added to get
3956   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3957   array size at least.  It's necessary to write '\x00'==0 to get something
3958   that's true only with -std.  */
3959int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
3961/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962   inside strings and character constants.  */
3963#define FOO(x) 'x'
3964int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965
3966int test (int i, double x);
3967struct s1 {int (*f) (int a);};
3968struct s2 {int (*f) (double a);};
3969int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970int argc;
3971char **argv;
3972int
3973main ()
3974{
3975return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982do
3983  CC="$ac_save_CC $ac_arg"
3984  if ac_fn_c_try_compile "$LINENO"; then :
3985  ac_cv_prog_cc_c89=$ac_arg
3986fi
3987rm -f core conftest.err conftest.$ac_objext
3988  test "x$ac_cv_prog_cc_c89" != "xno" && break
3989done
3990rm -f conftest.$ac_ext
3991CC=$ac_save_CC
3992
3993fi
3994# AC_CACHE_VAL
3995case "x$ac_cv_prog_cc_c89" in
3996  x)
3997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998$as_echo "none needed" >&6; } ;;
3999  xno)
4000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001$as_echo "unsupported" >&6; } ;;
4002  *)
4003    CC="$CC $ac_cv_prog_cc_c89"
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006esac
4007if test "x$ac_cv_prog_cc_c89" != xno; then :
4008
4009fi
4010
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4023$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4024if ${am_cv_prog_cc_c_o+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029
4030int
4031main ()
4032{
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038  # Make sure it works both with $CC and with simple cc.
4039  # Following AC_PROG_CC_C_O, we do the test twice because some
4040  # compilers refuse to overwrite an existing .o file with -o,
4041  # though they will create one.
4042  am_cv_prog_cc_c_o=yes
4043  for am_i in 1 2; do
4044    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4045   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } \
4049         && test -f conftest2.$ac_objext; then
4050      : OK
4051    else
4052      am_cv_prog_cc_c_o=no
4053      break
4054    fi
4055  done
4056  rm -f core conftest*
4057  unset am_i
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4060$as_echo "$am_cv_prog_cc_c_o" >&6; }
4061if test "$am_cv_prog_cc_c_o" != yes; then
4062   # Losing compiler, so override with the script.
4063   # FIXME: It is wrong to rewrite CC.
4064   # But if we don't then we get into trouble of one sort or another.
4065   # A longer-term fix would be to have automake use am__CC in this case,
4066   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4067   CC="$am_aux_dir/compile $CC"
4068fi
4069ac_ext=c
4070ac_cpp='$CPP $CPPFLAGS'
4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075
4076depcc="$CC"   am_compiler_list=
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4079$as_echo_n "checking dependency style of $depcc... " >&6; }
4080if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084  # We make a subdir and do the tests there.  Otherwise we can end up
4085  # making bogus files that we don't know about and never remove.  For
4086  # instance it was reported that on HP-UX the gcc test will end up
4087  # making a dummy file named 'D' -- because '-MD' means "put the output
4088  # in D".
4089  rm -rf conftest.dir
4090  mkdir conftest.dir
4091  # Copy depcomp to subdir because otherwise we won't find it if we're
4092  # using a relative directory.
4093  cp "$am_depcomp" conftest.dir
4094  cd conftest.dir
4095  # We will build objects and dependencies in a subdirectory because
4096  # it helps to detect inapplicable dependency modes.  For instance
4097  # both Tru64's cc and ICC support -MD to output dependencies as a
4098  # side effect of compilation, but ICC will put the dependencies in
4099  # the current directory while Tru64 will put them in the object
4100  # directory.
4101  mkdir sub
4102
4103  am_cv_CC_dependencies_compiler_type=none
4104  if test "$am_compiler_list" = ""; then
4105     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106  fi
4107  am__universal=false
4108  case " $depcc " in #(
4109     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4110     esac
4111
4112  for depmode in $am_compiler_list; do
4113    # Setup a source with many dependencies, because some compilers
4114    # like to wrap large dependency lists on column 80 (with \), and
4115    # we should not choose a depcomp mode which is confused by this.
4116    #
4117    # We need to recreate these files for each test, as the compiler may
4118    # overwrite some of them when testing with obscure command lines.
4119    # This happens at least with the AIX C compiler.
4120    : > sub/conftest.c
4121    for i in 1 2 3 4 5 6; do
4122      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4124      # Solaris 10 /bin/sh.
4125      echo '/* dummy */' > sub/conftst$i.h
4126    done
4127    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4128
4129    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4130    # mode.  It turns out that the SunPro C++ compiler does not properly
4131    # handle '-M -o', and we need to detect this.  Also, some Intel
4132    # versions had trouble with output in subdirs.
4133    am__obj=sub/conftest.${OBJEXT-o}
4134    am__minus_obj="-o $am__obj"
4135    case $depmode in
4136    gcc)
4137      # This depmode causes a compiler race in universal mode.
4138      test "$am__universal" = false || continue
4139      ;;
4140    nosideeffect)
4141      # After this tag, mechanisms are not by side-effect, so they'll
4142      # only be used when explicitly requested.
4143      if test "x$enable_dependency_tracking" = xyes; then
4144	continue
4145      else
4146	break
4147      fi
4148      ;;
4149    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4150      # This compiler won't grok '-c -o', but also, the minuso test has
4151      # not run yet.  These depmodes are late enough in the game, and
4152      # so weak that their functioning should not be impacted.
4153      am__obj=conftest.${OBJEXT-o}
4154      am__minus_obj=
4155      ;;
4156    none) break ;;
4157    esac
4158    if depmode=$depmode \
4159       source=sub/conftest.c object=$am__obj \
4160       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162         >/dev/null 2>conftest.err &&
4163       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167      # icc doesn't choke on unknown options, it will just issue warnings
4168      # or remarks (even with -Werror).  So we grep stderr for any message
4169      # that says an option was ignored or not supported.
4170      # When given -MP, icc 7.0 and 7.1 complain thusly:
4171      #   icc: Command line warning: ignoring option '-M'; no argument required
4172      # The diagnosis changed in icc 8.0:
4173      #   icc: Command line remark: option '-MP' not supported
4174      if (grep 'ignoring option' conftest.err ||
4175          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176        am_cv_CC_dependencies_compiler_type=$depmode
4177        break
4178      fi
4179    fi
4180  done
4181
4182  cd ..
4183  rm -rf conftest.dir
4184else
4185  am_cv_CC_dependencies_compiler_type=none
4186fi
4187
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4190$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192
4193 if
4194  test "x$enable_dependency_tracking" != xno \
4195  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196  am__fastdepCC_TRUE=
4197  am__fastdepCC_FALSE='#'
4198else
4199  am__fastdepCC_TRUE='#'
4200  am__fastdepCC_FALSE=
4201fi
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4205$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4206if ${ac_cv_path_SED+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4210     for ac_i in 1 2 3 4 5 6 7; do
4211       ac_script="$ac_script$as_nl$ac_script"
4212     done
4213     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4214     { ac_script=; unset ac_script;}
4215     if test -z "$SED"; then
4216  ac_path_SED_found=false
4217  # Loop through the user's path and test for each of PROGNAME-LIST
4218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221  IFS=$as_save_IFS
4222  test -z "$as_dir" && as_dir=.
4223    for ac_prog in sed gsed; do
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4226      as_fn_executable_p "$ac_path_SED" || continue
4227# Check for GNU ac_path_SED and select it if it is found.
4228  # Check for GNU $ac_path_SED
4229case `"$ac_path_SED" --version 2>&1` in
4230*GNU*)
4231  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4232*)
4233  ac_count=0
4234  $as_echo_n 0123456789 >"conftest.in"
4235  while :
4236  do
4237    cat "conftest.in" "conftest.in" >"conftest.tmp"
4238    mv "conftest.tmp" "conftest.in"
4239    cp "conftest.in" "conftest.nl"
4240    $as_echo '' >> "conftest.nl"
4241    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243    as_fn_arith $ac_count + 1 && ac_count=$as_val
4244    if test $ac_count -gt ${ac_path_SED_max-0}; then
4245      # Best one so far, save it but keep looking for a better one
4246      ac_cv_path_SED="$ac_path_SED"
4247      ac_path_SED_max=$ac_count
4248    fi
4249    # 10*(2^10) chars as input seems more than enough
4250    test $ac_count -gt 10 && break
4251  done
4252  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253esac
4254
4255      $ac_path_SED_found && break 3
4256    done
4257  done
4258  done
4259IFS=$as_save_IFS
4260  if test -z "$ac_cv_path_SED"; then
4261    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4262  fi
4263else
4264  ac_cv_path_SED=$SED
4265fi
4266
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4269$as_echo "$ac_cv_path_SED" >&6; }
4270 SED="$ac_cv_path_SED"
4271  rm -f conftest.sed
4272
4273test -z "$SED" && SED=sed
4274Xsed="$SED -e 1s/^X//"
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4287$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4288if ${ac_cv_path_GREP+:} false; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291  if test -z "$GREP"; then
4292  ac_path_GREP_found=false
4293  # Loop through the user's path and test for each of PROGNAME-LIST
4294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299    for ac_prog in grep ggrep; do
4300    for ac_exec_ext in '' $ac_executable_extensions; do
4301      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4302      as_fn_executable_p "$ac_path_GREP" || continue
4303# Check for GNU ac_path_GREP and select it if it is found.
4304  # Check for GNU $ac_path_GREP
4305case `"$ac_path_GREP" --version 2>&1` in
4306*GNU*)
4307  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4308*)
4309  ac_count=0
4310  $as_echo_n 0123456789 >"conftest.in"
4311  while :
4312  do
4313    cat "conftest.in" "conftest.in" >"conftest.tmp"
4314    mv "conftest.tmp" "conftest.in"
4315    cp "conftest.in" "conftest.nl"
4316    $as_echo 'GREP' >> "conftest.nl"
4317    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4318    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4319    as_fn_arith $ac_count + 1 && ac_count=$as_val
4320    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4321      # Best one so far, save it but keep looking for a better one
4322      ac_cv_path_GREP="$ac_path_GREP"
4323      ac_path_GREP_max=$ac_count
4324    fi
4325    # 10*(2^10) chars as input seems more than enough
4326    test $ac_count -gt 10 && break
4327  done
4328  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4329esac
4330
4331      $ac_path_GREP_found && break 3
4332    done
4333  done
4334  done
4335IFS=$as_save_IFS
4336  if test -z "$ac_cv_path_GREP"; then
4337    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4338  fi
4339else
4340  ac_cv_path_GREP=$GREP
4341fi
4342
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4345$as_echo "$ac_cv_path_GREP" >&6; }
4346 GREP="$ac_cv_path_GREP"
4347
4348
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4350$as_echo_n "checking for egrep... " >&6; }
4351if ${ac_cv_path_EGREP+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4355   then ac_cv_path_EGREP="$GREP -E"
4356   else
4357     if test -z "$EGREP"; then
4358  ac_path_EGREP_found=false
4359  # Loop through the user's path and test for each of PROGNAME-LIST
4360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362do
4363  IFS=$as_save_IFS
4364  test -z "$as_dir" && as_dir=.
4365    for ac_prog in egrep; do
4366    for ac_exec_ext in '' $ac_executable_extensions; do
4367      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4368      as_fn_executable_p "$ac_path_EGREP" || continue
4369# Check for GNU ac_path_EGREP and select it if it is found.
4370  # Check for GNU $ac_path_EGREP
4371case `"$ac_path_EGREP" --version 2>&1` in
4372*GNU*)
4373  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4374*)
4375  ac_count=0
4376  $as_echo_n 0123456789 >"conftest.in"
4377  while :
4378  do
4379    cat "conftest.in" "conftest.in" >"conftest.tmp"
4380    mv "conftest.tmp" "conftest.in"
4381    cp "conftest.in" "conftest.nl"
4382    $as_echo 'EGREP' >> "conftest.nl"
4383    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4384    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4385    as_fn_arith $ac_count + 1 && ac_count=$as_val
4386    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4387      # Best one so far, save it but keep looking for a better one
4388      ac_cv_path_EGREP="$ac_path_EGREP"
4389      ac_path_EGREP_max=$ac_count
4390    fi
4391    # 10*(2^10) chars as input seems more than enough
4392    test $ac_count -gt 10 && break
4393  done
4394  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4395esac
4396
4397      $ac_path_EGREP_found && break 3
4398    done
4399  done
4400  done
4401IFS=$as_save_IFS
4402  if test -z "$ac_cv_path_EGREP"; then
4403    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404  fi
4405else
4406  ac_cv_path_EGREP=$EGREP
4407fi
4408
4409   fi
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4412$as_echo "$ac_cv_path_EGREP" >&6; }
4413 EGREP="$ac_cv_path_EGREP"
4414
4415
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4417$as_echo_n "checking for fgrep... " >&6; }
4418if ${ac_cv_path_FGREP+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4422   then ac_cv_path_FGREP="$GREP -F"
4423   else
4424     if test -z "$FGREP"; then
4425  ac_path_FGREP_found=false
4426  # Loop through the user's path and test for each of PROGNAME-LIST
4427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432    for ac_prog in fgrep; do
4433    for ac_exec_ext in '' $ac_executable_extensions; do
4434      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4435      as_fn_executable_p "$ac_path_FGREP" || continue
4436# Check for GNU ac_path_FGREP and select it if it is found.
4437  # Check for GNU $ac_path_FGREP
4438case `"$ac_path_FGREP" --version 2>&1` in
4439*GNU*)
4440  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4441*)
4442  ac_count=0
4443  $as_echo_n 0123456789 >"conftest.in"
4444  while :
4445  do
4446    cat "conftest.in" "conftest.in" >"conftest.tmp"
4447    mv "conftest.tmp" "conftest.in"
4448    cp "conftest.in" "conftest.nl"
4449    $as_echo 'FGREP' >> "conftest.nl"
4450    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452    as_fn_arith $ac_count + 1 && ac_count=$as_val
4453    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4454      # Best one so far, save it but keep looking for a better one
4455      ac_cv_path_FGREP="$ac_path_FGREP"
4456      ac_path_FGREP_max=$ac_count
4457    fi
4458    # 10*(2^10) chars as input seems more than enough
4459    test $ac_count -gt 10 && break
4460  done
4461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462esac
4463
4464      $ac_path_FGREP_found && break 3
4465    done
4466  done
4467  done
4468IFS=$as_save_IFS
4469  if test -z "$ac_cv_path_FGREP"; then
4470    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4471  fi
4472else
4473  ac_cv_path_FGREP=$FGREP
4474fi
4475
4476   fi
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4479$as_echo "$ac_cv_path_FGREP" >&6; }
4480 FGREP="$ac_cv_path_FGREP"
4481
4482
4483test -z "$GREP" && GREP=grep
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503# Check whether --with-gnu-ld was given.
4504if test "${with_gnu_ld+set}" = set; then :
4505  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4506else
4507  with_gnu_ld=no
4508fi
4509
4510ac_prog=ld
4511if test yes = "$GCC"; then
4512  # Check if gcc -print-prog-name=ld gives a path.
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4514$as_echo_n "checking for ld used by $CC... " >&6; }
4515  case $host in
4516  *-*-mingw*)
4517    # gcc leaves a trailing carriage return, which upsets mingw
4518    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4519  *)
4520    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4521  esac
4522  case $ac_prog in
4523    # Accept absolute paths.
4524    [\\/]* | ?:[\\/]*)
4525      re_direlt='/[^/][^/]*/\.\./'
4526      # Canonicalize the pathname of ld
4527      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4528      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4529	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4530      done
4531      test -z "$LD" && LD=$ac_prog
4532      ;;
4533  "")
4534    # If it fails, then pretend we aren't using GCC.
4535    ac_prog=ld
4536    ;;
4537  *)
4538    # If it is relative, then search for the first ld in PATH.
4539    with_gnu_ld=unknown
4540    ;;
4541  esac
4542elif test yes = "$with_gnu_ld"; then
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4544$as_echo_n "checking for GNU ld... " >&6; }
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4547$as_echo_n "checking for non-GNU ld... " >&6; }
4548fi
4549if ${lt_cv_path_LD+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -z "$LD"; then
4553  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4554  for ac_dir in $PATH; do
4555    IFS=$lt_save_ifs
4556    test -z "$ac_dir" && ac_dir=.
4557    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4558      lt_cv_path_LD=$ac_dir/$ac_prog
4559      # Check to see if the program is GNU ld.  I'd rather use --version,
4560      # but apparently some variants of GNU ld only accept -v.
4561      # Break only if it was the GNU/non-GNU ld that we prefer.
4562      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4563      *GNU* | *'with BFD'*)
4564	test no != "$with_gnu_ld" && break
4565	;;
4566      *)
4567	test yes != "$with_gnu_ld" && break
4568	;;
4569      esac
4570    fi
4571  done
4572  IFS=$lt_save_ifs
4573else
4574  lt_cv_path_LD=$LD # Let the user override the test with a path.
4575fi
4576fi
4577
4578LD=$lt_cv_path_LD
4579if test -n "$LD"; then
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4581$as_echo "$LD" >&6; }
4582else
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4588$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4589if ${lt_cv_prog_gnu_ld+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4593case `$LD -v 2>&1 </dev/null` in
4594*GNU* | *'with BFD'*)
4595  lt_cv_prog_gnu_ld=yes
4596  ;;
4597*)
4598  lt_cv_prog_gnu_ld=no
4599  ;;
4600esac
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4603$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4604with_gnu_ld=$lt_cv_prog_gnu_ld
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4615$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4616if ${lt_cv_path_NM+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test -n "$NM"; then
4620  # Let the user override the test.
4621  lt_cv_path_NM=$NM
4622else
4623  lt_nm_to_check=${ac_tool_prefix}nm
4624  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4625    lt_nm_to_check="$lt_nm_to_check nm"
4626  fi
4627  for lt_tmp_nm in $lt_nm_to_check; do
4628    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4629    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4630      IFS=$lt_save_ifs
4631      test -z "$ac_dir" && ac_dir=.
4632      tmp_nm=$ac_dir/$lt_tmp_nm
4633      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4634	# Check to see if the nm accepts a BSD-compat flag.
4635	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4636	#   nm: unknown option "B" ignored
4637	# Tru64's nm complains that /dev/null is an invalid object file
4638	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4639	case $build_os in
4640	mingw*) lt_bad_file=conftest.nm/nofile ;;
4641	*) lt_bad_file=/dev/null ;;
4642	esac
4643	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4644	*$lt_bad_file* | *'Invalid file or object type'*)
4645	  lt_cv_path_NM="$tmp_nm -B"
4646	  break 2
4647	  ;;
4648	*)
4649	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4650	  */dev/null*)
4651	    lt_cv_path_NM="$tmp_nm -p"
4652	    break 2
4653	    ;;
4654	  *)
4655	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4656	    continue # so that we can try to find one that supports BSD flags
4657	    ;;
4658	  esac
4659	  ;;
4660	esac
4661      fi
4662    done
4663    IFS=$lt_save_ifs
4664  done
4665  : ${lt_cv_path_NM=no}
4666fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4669$as_echo "$lt_cv_path_NM" >&6; }
4670if test no != "$lt_cv_path_NM"; then
4671  NM=$lt_cv_path_NM
4672else
4673  # Didn't find any BSD compatible name lister, look for dumpbin.
4674  if test -n "$DUMPBIN"; then :
4675    # Let the user override the test.
4676  else
4677    if test -n "$ac_tool_prefix"; then
4678  for ac_prog in dumpbin "link -dump"
4679  do
4680    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
4684if ${ac_cv_prog_DUMPBIN+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  if test -n "$DUMPBIN"; then
4688  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693  IFS=$as_save_IFS
4694  test -z "$as_dir" && as_dir=.
4695    for ac_exec_ext in '' $ac_executable_extensions; do
4696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699    break 2
4700  fi
4701done
4702  done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707DUMPBIN=$ac_cv_prog_DUMPBIN
4708if test -n "$DUMPBIN"; then
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4710$as_echo "$DUMPBIN" >&6; }
4711else
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716
4717    test -n "$DUMPBIN" && break
4718  done
4719fi
4720if test -z "$DUMPBIN"; then
4721  ac_ct_DUMPBIN=$DUMPBIN
4722  for ac_prog in dumpbin "link -dump"
4723do
4724  # Extract the first word of "$ac_prog", so it can be a program name with args.
4725set dummy $ac_prog; ac_word=$2
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727$as_echo_n "checking for $ac_word... " >&6; }
4728if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  if test -n "$ac_ct_DUMPBIN"; then
4732  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  test -z "$as_dir" && as_dir=.
4739    for ac_exec_ext in '' $ac_executable_extensions; do
4740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743    break 2
4744  fi
4745done
4746  done
4747IFS=$as_save_IFS
4748
4749fi
4750fi
4751ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4752if test -n "$ac_ct_DUMPBIN"; then
4753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4754$as_echo "$ac_ct_DUMPBIN" >&6; }
4755else
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757$as_echo "no" >&6; }
4758fi
4759
4760
4761  test -n "$ac_ct_DUMPBIN" && break
4762done
4763
4764  if test "x$ac_ct_DUMPBIN" = x; then
4765    DUMPBIN=":"
4766  else
4767    case $cross_compiling:$ac_tool_warned in
4768yes:)
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771ac_tool_warned=yes ;;
4772esac
4773    DUMPBIN=$ac_ct_DUMPBIN
4774  fi
4775fi
4776
4777    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4778    *COFF*)
4779      DUMPBIN="$DUMPBIN -symbols -headers"
4780      ;;
4781    *)
4782      DUMPBIN=:
4783      ;;
4784    esac
4785  fi
4786
4787  if test : != "$DUMPBIN"; then
4788    NM=$DUMPBIN
4789  fi
4790fi
4791test -z "$NM" && NM=nm
4792
4793
4794
4795
4796
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4799$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4800if ${lt_cv_nm_interface+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  lt_cv_nm_interface="BSD nm"
4804  echo "int some_variable = 0;" > conftest.$ac_ext
4805  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4806  (eval "$ac_compile" 2>conftest.err)
4807  cat conftest.err >&5
4808  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4809  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4810  cat conftest.err >&5
4811  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4812  cat conftest.out >&5
4813  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4814    lt_cv_nm_interface="MS dumpbin"
4815  fi
4816  rm -f conftest*
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4819$as_echo "$lt_cv_nm_interface" >&6; }
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4822$as_echo_n "checking whether ln -s works... " >&6; }
4823LN_S=$as_ln_s
4824if test "$LN_S" = "ln -s"; then
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826$as_echo "yes" >&6; }
4827else
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4829$as_echo "no, using $LN_S" >&6; }
4830fi
4831
4832# find the maximum length of command line arguments
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4834$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4835if ${lt_cv_sys_max_cmd_len+:} false; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838    i=0
4839  teststring=ABCD
4840
4841  case $build_os in
4842  msdosdjgpp*)
4843    # On DJGPP, this test can blow up pretty badly due to problems in libc
4844    # (any single argument exceeding 2000 bytes causes a buffer overrun
4845    # during glob expansion).  Even if it were fixed, the result of this
4846    # check would be larger than it should be.
4847    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4848    ;;
4849
4850  gnu*)
4851    # Under GNU Hurd, this test is not required because there is
4852    # no limit to the length of command line arguments.
4853    # Libtool will interpret -1 as no limit whatsoever
4854    lt_cv_sys_max_cmd_len=-1;
4855    ;;
4856
4857  cygwin* | mingw* | cegcc*)
4858    # On Win9x/ME, this test blows up -- it succeeds, but takes
4859    # about 5 minutes as the teststring grows exponentially.
4860    # Worse, since 9x/ME are not pre-emptively multitasking,
4861    # you end up with a "frozen" computer, even though with patience
4862    # the test eventually succeeds (with a max line length of 256k).
4863    # Instead, let's just punt: use the minimum linelength reported by
4864    # all of the supported platforms: 8192 (on NT/2K/XP).
4865    lt_cv_sys_max_cmd_len=8192;
4866    ;;
4867
4868  mint*)
4869    # On MiNT this can take a long time and run out of memory.
4870    lt_cv_sys_max_cmd_len=8192;
4871    ;;
4872
4873  amigaos*)
4874    # On AmigaOS with pdksh, this test takes hours, literally.
4875    # So we just punt and use a minimum line length of 8192.
4876    lt_cv_sys_max_cmd_len=8192;
4877    ;;
4878
4879  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4880    # This has been around since 386BSD, at least.  Likely further.
4881    if test -x /sbin/sysctl; then
4882      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4883    elif test -x /usr/sbin/sysctl; then
4884      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4885    else
4886      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4887    fi
4888    # And add a safety zone
4889    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4890    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4891    ;;
4892
4893  interix*)
4894    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4895    lt_cv_sys_max_cmd_len=196608
4896    ;;
4897
4898  os2*)
4899    # The test takes a long time on OS/2.
4900    lt_cv_sys_max_cmd_len=8192
4901    ;;
4902
4903  osf*)
4904    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4905    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4906    # nice to cause kernel panics so lets avoid the loop below.
4907    # First set a reasonable default.
4908    lt_cv_sys_max_cmd_len=16384
4909    #
4910    if test -x /sbin/sysconfig; then
4911      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4912        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4913      esac
4914    fi
4915    ;;
4916  sco3.2v5*)
4917    lt_cv_sys_max_cmd_len=102400
4918    ;;
4919  sysv5* | sco5v6* | sysv4.2uw2*)
4920    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4921    if test -n "$kargmax"; then
4922      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4923    else
4924      lt_cv_sys_max_cmd_len=32768
4925    fi
4926    ;;
4927  *)
4928    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4929    if test -n "$lt_cv_sys_max_cmd_len" && \
4930       test undefined != "$lt_cv_sys_max_cmd_len"; then
4931      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4933    else
4934      # Make teststring a little bigger before we do anything with it.
4935      # a 1K string should be a reasonable start.
4936      for i in 1 2 3 4 5 6 7 8; do
4937        teststring=$teststring$teststring
4938      done
4939      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4940      # If test is not a shell built-in, we'll probably end up computing a
4941      # maximum length that is only half of the actual maximum length, but
4942      # we can't tell.
4943      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4944	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4945	      test 17 != "$i" # 1/2 MB should be enough
4946      do
4947        i=`expr $i + 1`
4948        teststring=$teststring$teststring
4949      done
4950      # Only check the string length outside the loop.
4951      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4952      teststring=
4953      # Add a significant safety factor because C++ compilers can tack on
4954      # massive amounts of additional arguments before passing them to the
4955      # linker.  It appears as though 1/2 is a usable value.
4956      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4957    fi
4958    ;;
4959  esac
4960
4961fi
4962
4963if test -n "$lt_cv_sys_max_cmd_len"; then
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4965$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4966else
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4968$as_echo "none" >&6; }
4969fi
4970max_cmd_len=$lt_cv_sys_max_cmd_len
4971
4972
4973
4974
4975
4976
4977: ${CP="cp -f"}
4978: ${MV="mv -f"}
4979: ${RM="rm -f"}
4980
4981if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4982  lt_unset=unset
4983else
4984  lt_unset=false
4985fi
4986
4987
4988
4989
4990
4991# test EBCDIC or ASCII
4992case `echo X|tr X '\101'` in
4993 A) # ASCII based system
4994    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4995  lt_SP2NL='tr \040 \012'
4996  lt_NL2SP='tr \015\012 \040\040'
4997  ;;
4998 *) # EBCDIC based system
4999  lt_SP2NL='tr \100 \n'
5000  lt_NL2SP='tr \r\n \100\100'
5001  ;;
5002esac
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5013$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5014if ${lt_cv_to_host_file_cmd+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  case $host in
5018  *-*-mingw* )
5019    case $build in
5020      *-*-mingw* ) # actually msys
5021        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5022        ;;
5023      *-*-cygwin* )
5024        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5025        ;;
5026      * ) # otherwise, assume *nix
5027        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5028        ;;
5029    esac
5030    ;;
5031  *-*-cygwin* )
5032    case $build in
5033      *-*-mingw* ) # actually msys
5034        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5035        ;;
5036      *-*-cygwin* )
5037        lt_cv_to_host_file_cmd=func_convert_file_noop
5038        ;;
5039      * ) # otherwise, assume *nix
5040        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5041        ;;
5042    esac
5043    ;;
5044  * ) # unhandled hosts (and "normal" native builds)
5045    lt_cv_to_host_file_cmd=func_convert_file_noop
5046    ;;
5047esac
5048
5049fi
5050
5051to_host_file_cmd=$lt_cv_to_host_file_cmd
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5053$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5054
5055
5056
5057
5058
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5060$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5061if ${lt_cv_to_tool_file_cmd+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  #assume ordinary cross tools, or native build.
5065lt_cv_to_tool_file_cmd=func_convert_file_noop
5066case $host in
5067  *-*-mingw* )
5068    case $build in
5069      *-*-mingw* ) # actually msys
5070        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5071        ;;
5072    esac
5073    ;;
5074esac
5075
5076fi
5077
5078to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5080$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5081
5082
5083
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5087$as_echo_n "checking for $LD option to reload object files... " >&6; }
5088if ${lt_cv_ld_reload_flag+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  lt_cv_ld_reload_flag='-r'
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5094$as_echo "$lt_cv_ld_reload_flag" >&6; }
5095reload_flag=$lt_cv_ld_reload_flag
5096case $reload_flag in
5097"" | " "*) ;;
5098*) reload_flag=" $reload_flag" ;;
5099esac
5100reload_cmds='$LD$reload_flag -o $output$reload_objs'
5101case $host_os in
5102  cygwin* | mingw* | pw32* | cegcc*)
5103    if test yes != "$GCC"; then
5104      reload_cmds=false
5105    fi
5106    ;;
5107  darwin*)
5108    if test yes = "$GCC"; then
5109      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5110    else
5111      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5112    fi
5113    ;;
5114esac
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124if test -n "$ac_tool_prefix"; then
5125  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5126set dummy ${ac_tool_prefix}objdump; ac_word=$2
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128$as_echo_n "checking for $ac_word... " >&6; }
5129if ${ac_cv_prog_OBJDUMP+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  if test -n "$OBJDUMP"; then
5133  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140    for ac_exec_ext in '' $ac_executable_extensions; do
5141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147  done
5148IFS=$as_save_IFS
5149
5150fi
5151fi
5152OBJDUMP=$ac_cv_prog_OBJDUMP
5153if test -n "$OBJDUMP"; then
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5155$as_echo "$OBJDUMP" >&6; }
5156else
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158$as_echo "no" >&6; }
5159fi
5160
5161
5162fi
5163if test -z "$ac_cv_prog_OBJDUMP"; then
5164  ac_ct_OBJDUMP=$OBJDUMP
5165  # Extract the first word of "objdump", so it can be a program name with args.
5166set dummy objdump; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
5169if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  if test -n "$ac_ct_OBJDUMP"; then
5173  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180    for ac_exec_ext in '' $ac_executable_extensions; do
5181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187  done
5188IFS=$as_save_IFS
5189
5190fi
5191fi
5192ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5193if test -n "$ac_ct_OBJDUMP"; then
5194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5195$as_echo "$ac_ct_OBJDUMP" >&6; }
5196else
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
5199fi
5200
5201  if test "x$ac_ct_OBJDUMP" = x; then
5202    OBJDUMP="false"
5203  else
5204    case $cross_compiling:$ac_tool_warned in
5205yes:)
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208ac_tool_warned=yes ;;
5209esac
5210    OBJDUMP=$ac_ct_OBJDUMP
5211  fi
5212else
5213  OBJDUMP="$ac_cv_prog_OBJDUMP"
5214fi
5215
5216test -z "$OBJDUMP" && OBJDUMP=objdump
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5227$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5228if ${lt_cv_deplibs_check_method+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  lt_cv_file_magic_cmd='$MAGIC_CMD'
5232lt_cv_file_magic_test_file=
5233lt_cv_deplibs_check_method='unknown'
5234# Need to set the preceding variable on all platforms that support
5235# interlibrary dependencies.
5236# 'none' -- dependencies not supported.
5237# 'unknown' -- same as none, but documents that we really don't know.
5238# 'pass_all' -- all dependencies passed with no checks.
5239# 'test_compile' -- check by making test program.
5240# 'file_magic [[regex]]' -- check by looking for files in library path
5241# that responds to the $file_magic_cmd with a given extended regex.
5242# If you have 'file' or equivalent on your system and you're not sure
5243# whether 'pass_all' will *always* work, you probably want this one.
5244
5245case $host_os in
5246aix[4-9]*)
5247  lt_cv_deplibs_check_method=pass_all
5248  ;;
5249
5250beos*)
5251  lt_cv_deplibs_check_method=pass_all
5252  ;;
5253
5254bsdi[45]*)
5255  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5256  lt_cv_file_magic_cmd='/usr/bin/file -L'
5257  lt_cv_file_magic_test_file=/shlib/libc.so
5258  ;;
5259
5260cygwin*)
5261  # func_win32_libid is a shell function defined in ltmain.sh
5262  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5263  lt_cv_file_magic_cmd='func_win32_libid'
5264  ;;
5265
5266mingw* | pw32*)
5267  # Base MSYS/MinGW do not provide the 'file' command needed by
5268  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5269  # unless we find 'file', for example because we are cross-compiling.
5270  if ( file / ) >/dev/null 2>&1; then
5271    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5272    lt_cv_file_magic_cmd='func_win32_libid'
5273  else
5274    # Keep this pattern in sync with the one in func_win32_libid.
5275    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5276    lt_cv_file_magic_cmd='$OBJDUMP -f'
5277  fi
5278  ;;
5279
5280cegcc*)
5281  # use the weaker test based on 'objdump'. See mingw*.
5282  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5283  lt_cv_file_magic_cmd='$OBJDUMP -f'
5284  ;;
5285
5286darwin* | rhapsody*)
5287  lt_cv_deplibs_check_method=pass_all
5288  ;;
5289
5290freebsd* | dragonfly*)
5291  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5292    case $host_cpu in
5293    i*86 )
5294      # Not sure whether the presence of OpenBSD here was a mistake.
5295      # Let's accept both of them until this is cleared up.
5296      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5297      lt_cv_file_magic_cmd=/usr/bin/file
5298      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5299      ;;
5300    esac
5301  else
5302    lt_cv_deplibs_check_method=pass_all
5303  fi
5304  ;;
5305
5306haiku*)
5307  lt_cv_deplibs_check_method=pass_all
5308  ;;
5309
5310hpux10.20* | hpux11*)
5311  lt_cv_file_magic_cmd=/usr/bin/file
5312  case $host_cpu in
5313  ia64*)
5314    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5316    ;;
5317  hppa*64*)
5318    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]'
5319    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5320    ;;
5321  *)
5322    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5323    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5324    ;;
5325  esac
5326  ;;
5327
5328interix[3-9]*)
5329  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5331  ;;
5332
5333irix5* | irix6* | nonstopux*)
5334  case $LD in
5335  *-32|*"-32 ") libmagic=32-bit;;
5336  *-n32|*"-n32 ") libmagic=N32;;
5337  *-64|*"-64 ") libmagic=64-bit;;
5338  *) libmagic=never-match;;
5339  esac
5340  lt_cv_deplibs_check_method=pass_all
5341  ;;
5342
5343# This must be glibc/ELF.
5344linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5345  lt_cv_deplibs_check_method=pass_all
5346  ;;
5347
5348netbsd*)
5349  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5351  else
5352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5353  fi
5354  ;;
5355
5356newos6*)
5357  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358  lt_cv_file_magic_cmd=/usr/bin/file
5359  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5360  ;;
5361
5362*nto* | *qnx*)
5363  lt_cv_deplibs_check_method=pass_all
5364  ;;
5365
5366openbsd* | bitrig*)
5367  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5369  else
5370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5371  fi
5372  ;;
5373
5374osf3* | osf4* | osf5*)
5375  lt_cv_deplibs_check_method=pass_all
5376  ;;
5377
5378rdos*)
5379  lt_cv_deplibs_check_method=pass_all
5380  ;;
5381
5382solaris*)
5383  lt_cv_deplibs_check_method=pass_all
5384  ;;
5385
5386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5387  lt_cv_deplibs_check_method=pass_all
5388  ;;
5389
5390sysv4 | sysv4.3*)
5391  case $host_vendor in
5392  motorola)
5393    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]'
5394    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5395    ;;
5396  ncr)
5397    lt_cv_deplibs_check_method=pass_all
5398    ;;
5399  sequent)
5400    lt_cv_file_magic_cmd='/bin/file'
5401    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5402    ;;
5403  sni)
5404    lt_cv_file_magic_cmd='/bin/file'
5405    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5406    lt_cv_file_magic_test_file=/lib/libc.so
5407    ;;
5408  siemens)
5409    lt_cv_deplibs_check_method=pass_all
5410    ;;
5411  pc)
5412    lt_cv_deplibs_check_method=pass_all
5413    ;;
5414  esac
5415  ;;
5416
5417tpf*)
5418  lt_cv_deplibs_check_method=pass_all
5419  ;;
5420os2*)
5421  lt_cv_deplibs_check_method=pass_all
5422  ;;
5423esac
5424
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5427$as_echo "$lt_cv_deplibs_check_method" >&6; }
5428
5429file_magic_glob=
5430want_nocaseglob=no
5431if test "$build" = "$host"; then
5432  case $host_os in
5433  mingw* | pw32*)
5434    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5435      want_nocaseglob=yes
5436    else
5437      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5438    fi
5439    ;;
5440  esac
5441fi
5442
5443file_magic_cmd=$lt_cv_file_magic_cmd
5444deplibs_check_method=$lt_cv_deplibs_check_method
5445test -z "$deplibs_check_method" && deplibs_check_method=unknown
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468if test -n "$ac_tool_prefix"; then
5469  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5470set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if ${ac_cv_prog_DLLTOOL+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$DLLTOOL"; then
5477  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496DLLTOOL=$ac_cv_prog_DLLTOOL
5497if test -n "$DLLTOOL"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5499$as_echo "$DLLTOOL" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506fi
5507if test -z "$ac_cv_prog_DLLTOOL"; then
5508  ac_ct_DLLTOOL=$DLLTOOL
5509  # Extract the first word of "dlltool", so it can be a program name with args.
5510set dummy dlltool; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  if test -n "$ac_ct_DLLTOOL"; then
5517  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531  done
5532IFS=$as_save_IFS
5533
5534fi
5535fi
5536ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5537if test -n "$ac_ct_DLLTOOL"; then
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5539$as_echo "$ac_ct_DLLTOOL" >&6; }
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545  if test "x$ac_ct_DLLTOOL" = x; then
5546    DLLTOOL="false"
5547  else
5548    case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554    DLLTOOL=$ac_ct_DLLTOOL
5555  fi
5556else
5557  DLLTOOL="$ac_cv_prog_DLLTOOL"
5558fi
5559
5560test -z "$DLLTOOL" && DLLTOOL=dlltool
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5572$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5573if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  lt_cv_sharedlib_from_linklib_cmd='unknown'
5577
5578case $host_os in
5579cygwin* | mingw* | pw32* | cegcc*)
5580  # two different shell functions defined in ltmain.sh;
5581  # decide which one to use based on capabilities of $DLLTOOL
5582  case `$DLLTOOL --help 2>&1` in
5583  *--identify-strict*)
5584    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5585    ;;
5586  *)
5587    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5588    ;;
5589  esac
5590  ;;
5591*)
5592  # fallback: assume linklib IS sharedlib
5593  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5594  ;;
5595esac
5596
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5599$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5600sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5601test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5602
5603
5604
5605
5606
5607
5608
5609
5610if test -n "$ac_tool_prefix"; then
5611  for ac_prog in ar
5612  do
5613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if ${ac_cv_prog_AR+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$AR"; then
5621  ac_cv_prog_AR="$AR" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626  IFS=$as_save_IFS
5627  test -z "$as_dir" && as_dir=.
5628    for ac_exec_ext in '' $ac_executable_extensions; do
5629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632    break 2
5633  fi
5634done
5635  done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640AR=$ac_cv_prog_AR
5641if test -n "$AR"; then
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643$as_echo "$AR" >&6; }
5644else
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649
5650    test -n "$AR" && break
5651  done
5652fi
5653if test -z "$AR"; then
5654  ac_ct_AR=$AR
5655  for ac_prog in ar
5656do
5657  # Extract the first word of "$ac_prog", so it can be a program name with args.
5658set dummy $ac_prog; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_prog_ac_ct_AR+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -n "$ac_ct_AR"; then
5665  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674    ac_cv_prog_ac_ct_AR="$ac_prog"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684ac_ct_AR=$ac_cv_prog_ac_ct_AR
5685if test -n "$ac_ct_AR"; then
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5687$as_echo "$ac_ct_AR" >&6; }
5688else
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693
5694  test -n "$ac_ct_AR" && break
5695done
5696
5697  if test "x$ac_ct_AR" = x; then
5698    AR="false"
5699  else
5700    case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
5705esac
5706    AR=$ac_ct_AR
5707  fi
5708fi
5709
5710: ${AR=ar}
5711: ${AR_FLAGS=cru}
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5724$as_echo_n "checking for archiver @FILE support... " >&6; }
5725if ${lt_cv_ar_at_file+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  lt_cv_ar_at_file=no
5729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731
5732int
5733main ()
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
5741  echo conftest.$ac_objext > conftest.lst
5742      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5743      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5744  (eval $lt_ar_try) 2>&5
5745  ac_status=$?
5746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747  test $ac_status = 0; }
5748      if test 0 -eq "$ac_status"; then
5749	# Ensure the archiver fails upon bogus file names.
5750	rm -f conftest.$ac_objext libconftest.a
5751	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5752  (eval $lt_ar_try) 2>&5
5753  ac_status=$?
5754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755  test $ac_status = 0; }
5756	if test 0 -ne "$ac_status"; then
5757          lt_cv_ar_at_file=@
5758        fi
5759      fi
5760      rm -f conftest.* libconftest.a
5761
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5767$as_echo "$lt_cv_ar_at_file" >&6; }
5768
5769if test no = "$lt_cv_ar_at_file"; then
5770  archiver_list_spec=
5771else
5772  archiver_list_spec=$lt_cv_ar_at_file
5773fi
5774
5775
5776
5777
5778
5779
5780
5781if test -n "$ac_tool_prefix"; then
5782  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5783set dummy ${ac_tool_prefix}strip; ac_word=$2
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785$as_echo_n "checking for $ac_word... " >&6; }
5786if ${ac_cv_prog_STRIP+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  if test -n "$STRIP"; then
5790  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795  IFS=$as_save_IFS
5796  test -z "$as_dir" && as_dir=.
5797    for ac_exec_ext in '' $ac_executable_extensions; do
5798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801    break 2
5802  fi
5803done
5804  done
5805IFS=$as_save_IFS
5806
5807fi
5808fi
5809STRIP=$ac_cv_prog_STRIP
5810if test -n "$STRIP"; then
5811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5812$as_echo "$STRIP" >&6; }
5813else
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816fi
5817
5818
5819fi
5820if test -z "$ac_cv_prog_STRIP"; then
5821  ac_ct_STRIP=$STRIP
5822  # Extract the first word of "strip", so it can be a program name with args.
5823set dummy strip; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  if test -n "$ac_ct_STRIP"; then
5830  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839    ac_cv_prog_ac_ct_STRIP="strip"
5840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844  done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5850if test -n "$ac_ct_STRIP"; then
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5852$as_echo "$ac_ct_STRIP" >&6; }
5853else
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858  if test "x$ac_ct_STRIP" = x; then
5859    STRIP=":"
5860  else
5861    case $cross_compiling:$ac_tool_warned in
5862yes:)
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865ac_tool_warned=yes ;;
5866esac
5867    STRIP=$ac_ct_STRIP
5868  fi
5869else
5870  STRIP="$ac_cv_prog_STRIP"
5871fi
5872
5873test -z "$STRIP" && STRIP=:
5874
5875
5876
5877
5878
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_RANLIB+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$RANLIB"; then
5889  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908RANLIB=$ac_cv_prog_RANLIB
5909if test -n "$RANLIB"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5911$as_echo "$RANLIB" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917
5918fi
5919if test -z "$ac_cv_prog_RANLIB"; then
5920  ac_ct_RANLIB=$RANLIB
5921  # Extract the first word of "ranlib", so it can be a program name with args.
5922set dummy ranlib; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  if test -n "$ac_ct_RANLIB"; then
5929  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938    ac_cv_prog_ac_ct_RANLIB="ranlib"
5939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943  done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5949if test -n "$ac_ct_RANLIB"; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5951$as_echo "$ac_ct_RANLIB" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957  if test "x$ac_ct_RANLIB" = x; then
5958    RANLIB=":"
5959  else
5960    case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966    RANLIB=$ac_ct_RANLIB
5967  fi
5968else
5969  RANLIB="$ac_cv_prog_RANLIB"
5970fi
5971
5972test -z "$RANLIB" && RANLIB=:
5973
5974
5975
5976
5977
5978
5979# Determine commands to create old-style static archives.
5980old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5981old_postinstall_cmds='chmod 644 $oldlib'
5982old_postuninstall_cmds=
5983
5984if test -n "$RANLIB"; then
5985  case $host_os in
5986  bitrig* | openbsd*)
5987    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5988    ;;
5989  *)
5990    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5991    ;;
5992  esac
5993  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5994fi
5995
5996case $host_os in
5997  darwin*)
5998    lock_old_archive_extraction=yes ;;
5999  *)
6000    lock_old_archive_extraction=no ;;
6001esac
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041# If no C compiler was specified, use CC.
6042LTCC=${LTCC-"$CC"}
6043
6044# If no C compiler flags were specified, use CFLAGS.
6045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6046
6047# Allow CC to be a program name with arguments.
6048compiler=$CC
6049
6050
6051# Check for command to grab the raw symbol name followed by C symbol from nm.
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6053$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6054if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057
6058# These are sane defaults that work on at least a few old systems.
6059# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6060
6061# Character class describing NM global symbol codes.
6062symcode='[BCDEGRST]'
6063
6064# Regexp to match symbols that can be accessed directly from C.
6065sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6066
6067# Define system-specific variables.
6068case $host_os in
6069aix*)
6070  symcode='[BCDT]'
6071  ;;
6072cygwin* | mingw* | pw32* | cegcc*)
6073  symcode='[ABCDGISTW]'
6074  ;;
6075hpux*)
6076  if test ia64 = "$host_cpu"; then
6077    symcode='[ABCDEGRST]'
6078  fi
6079  ;;
6080irix* | nonstopux*)
6081  symcode='[BCDEGRST]'
6082  ;;
6083osf*)
6084  symcode='[BCDEGQRST]'
6085  ;;
6086solaris*)
6087  symcode='[BDRT]'
6088  ;;
6089sco3.2v5*)
6090  symcode='[DT]'
6091  ;;
6092sysv4.2uw2*)
6093  symcode='[DT]'
6094  ;;
6095sysv5* | sco5v6* | unixware* | OpenUNIX*)
6096  symcode='[ABDT]'
6097  ;;
6098sysv4)
6099  symcode='[DFNSTU]'
6100  ;;
6101esac
6102
6103# If we're using GNU nm, then use its standard symbol codes.
6104case `$NM -V 2>&1` in
6105*GNU* | *'with BFD'*)
6106  symcode='[ABCDGIRSTW]' ;;
6107esac
6108
6109if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6110  # Gets list of data symbols to import.
6111  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6112  # Adjust the below global symbol transforms to fixup imported variables.
6113  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6114  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6115  lt_c_name_lib_hook="\
6116  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6117  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6118else
6119  # Disable hooks by default.
6120  lt_cv_sys_global_symbol_to_import=
6121  lt_cdecl_hook=
6122  lt_c_name_hook=
6123  lt_c_name_lib_hook=
6124fi
6125
6126# Transform an extracted symbol line into a proper C declaration.
6127# Some systems (esp. on ia64) link data and code symbols differently,
6128# so use this general approach.
6129lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6130$lt_cdecl_hook\
6131" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6132" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6133
6134# Transform an extracted symbol line into symbol name and symbol address
6135lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6136$lt_c_name_hook\
6137" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6138" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6139
6140# Transform an extracted symbol line into symbol name with lib prefix and
6141# symbol address.
6142lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6143$lt_c_name_lib_hook\
6144" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6145" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6146" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6147
6148# Handle CRLF in mingw tool chain
6149opt_cr=
6150case $build_os in
6151mingw*)
6152  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6153  ;;
6154esac
6155
6156# Try without a prefix underscore, then with it.
6157for ac_symprfx in "" "_"; do
6158
6159  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6160  symxfrm="\\1 $ac_symprfx\\2 \\2"
6161
6162  # Write the raw and C identifiers.
6163  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6164    # Fake it for dumpbin and say T for any non-static function,
6165    # D for any global variable and I for any imported variable.
6166    # Also find C++ and __fastcall symbols from MSVC++,
6167    # which start with @ or ?.
6168    lt_cv_sys_global_symbol_pipe="$AWK '"\
6169"     {last_section=section; section=\$ 3};"\
6170"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6171"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6172"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6173"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6174"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6175"     \$ 0!~/External *\|/{next};"\
6176"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6177"     {if(hide[section]) next};"\
6178"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6179"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6180"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6181"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6182"     ' prfx=^$ac_symprfx"
6183  else
6184    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6185  fi
6186  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6187
6188  # Check to see that the pipe works correctly.
6189  pipe_works=no
6190
6191  rm -f conftest*
6192  cat > conftest.$ac_ext <<_LT_EOF
6193#ifdef __cplusplus
6194extern "C" {
6195#endif
6196char nm_test_var;
6197void nm_test_func(void);
6198void nm_test_func(void){}
6199#ifdef __cplusplus
6200}
6201#endif
6202int main(){nm_test_var='a';nm_test_func();return(0);}
6203_LT_EOF
6204
6205  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6206  (eval $ac_compile) 2>&5
6207  ac_status=$?
6208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209  test $ac_status = 0; }; then
6210    # Now try to grab the symbols.
6211    nlist=conftest.nm
6212    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6213  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6214  ac_status=$?
6215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216  test $ac_status = 0; } && test -s "$nlist"; then
6217      # Try sorting and uniquifying the output.
6218      if sort "$nlist" | uniq > "$nlist"T; then
6219	mv -f "$nlist"T "$nlist"
6220      else
6221	rm -f "$nlist"T
6222      fi
6223
6224      # Make sure that we snagged all the symbols we need.
6225      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6226	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6227	  cat <<_LT_EOF > conftest.$ac_ext
6228/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6229#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6230/* DATA imports from DLLs on WIN32 can't be const, because runtime
6231   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6232# define LT_DLSYM_CONST
6233#elif defined __osf__
6234/* This system does not cope well with relocations in const data.  */
6235# define LT_DLSYM_CONST
6236#else
6237# define LT_DLSYM_CONST const
6238#endif
6239
6240#ifdef __cplusplus
6241extern "C" {
6242#endif
6243
6244_LT_EOF
6245	  # Now generate the symbol file.
6246	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6247
6248	  cat <<_LT_EOF >> conftest.$ac_ext
6249
6250/* The mapping between symbol names and symbols.  */
6251LT_DLSYM_CONST struct {
6252  const char *name;
6253  void       *address;
6254}
6255lt__PROGRAM__LTX_preloaded_symbols[] =
6256{
6257  { "@PROGRAM@", (void *) 0 },
6258_LT_EOF
6259	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6260	  cat <<\_LT_EOF >> conftest.$ac_ext
6261  {0, (void *) 0}
6262};
6263
6264/* This works around a problem in FreeBSD linker */
6265#ifdef FREEBSD_WORKAROUND
6266static const void *lt_preloaded_setup() {
6267  return lt__PROGRAM__LTX_preloaded_symbols;
6268}
6269#endif
6270
6271#ifdef __cplusplus
6272}
6273#endif
6274_LT_EOF
6275	  # Now try linking the two files.
6276	  mv conftest.$ac_objext conftstm.$ac_objext
6277	  lt_globsym_save_LIBS=$LIBS
6278	  lt_globsym_save_CFLAGS=$CFLAGS
6279	  LIBS=conftstm.$ac_objext
6280	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6281	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6282  (eval $ac_link) 2>&5
6283  ac_status=$?
6284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6286	    pipe_works=yes
6287	  fi
6288	  LIBS=$lt_globsym_save_LIBS
6289	  CFLAGS=$lt_globsym_save_CFLAGS
6290	else
6291	  echo "cannot find nm_test_func in $nlist" >&5
6292	fi
6293      else
6294	echo "cannot find nm_test_var in $nlist" >&5
6295      fi
6296    else
6297      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6298    fi
6299  else
6300    echo "$progname: failed program was:" >&5
6301    cat conftest.$ac_ext >&5
6302  fi
6303  rm -rf conftest* conftst*
6304
6305  # Do not use the global_symbol_pipe unless it works.
6306  if test yes = "$pipe_works"; then
6307    break
6308  else
6309    lt_cv_sys_global_symbol_pipe=
6310  fi
6311done
6312
6313fi
6314
6315if test -z "$lt_cv_sys_global_symbol_pipe"; then
6316  lt_cv_sys_global_symbol_to_cdecl=
6317fi
6318if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6320$as_echo "failed" >&6; }
6321else
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6323$as_echo "ok" >&6; }
6324fi
6325
6326# Response file support.
6327if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6328  nm_file_list_spec='@'
6329elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6330  nm_file_list_spec='@'
6331fi
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6370$as_echo_n "checking for sysroot... " >&6; }
6371
6372# Check whether --with-sysroot was given.
6373if test "${with_sysroot+set}" = set; then :
6374  withval=$with_sysroot;
6375else
6376  with_sysroot=no
6377fi
6378
6379
6380lt_sysroot=
6381case $with_sysroot in #(
6382 yes)
6383   if test yes = "$GCC"; then
6384     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6385   fi
6386   ;; #(
6387 /*)
6388   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6389   ;; #(
6390 no|'')
6391   ;; #(
6392 *)
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6394$as_echo "$with_sysroot" >&6; }
6395   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6396   ;;
6397esac
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6400$as_echo "${lt_sysroot:-no}" >&6; }
6401
6402
6403
6404
6405
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6407$as_echo_n "checking for a working dd... " >&6; }
6408if ${ac_cv_path_lt_DD+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  printf 0123456789abcdef0123456789abcdef >conftest.i
6412cat conftest.i conftest.i >conftest2.i
6413: ${lt_DD:=$DD}
6414if test -z "$lt_DD"; then
6415  ac_path_lt_DD_found=false
6416  # Loop through the user's path and test for each of PROGNAME-LIST
6417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420  IFS=$as_save_IFS
6421  test -z "$as_dir" && as_dir=.
6422    for ac_prog in dd; do
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6425      as_fn_executable_p "$ac_path_lt_DD" || continue
6426if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6427  cmp -s conftest.i conftest.out \
6428  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6429fi
6430      $ac_path_lt_DD_found && break 3
6431    done
6432  done
6433  done
6434IFS=$as_save_IFS
6435  if test -z "$ac_cv_path_lt_DD"; then
6436    :
6437  fi
6438else
6439  ac_cv_path_lt_DD=$lt_DD
6440fi
6441
6442rm -f conftest.i conftest2.i conftest.out
6443fi
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6445$as_echo "$ac_cv_path_lt_DD" >&6; }
6446
6447
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6449$as_echo_n "checking how to truncate binary pipes... " >&6; }
6450if ${lt_cv_truncate_bin+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  printf 0123456789abcdef0123456789abcdef >conftest.i
6454cat conftest.i conftest.i >conftest2.i
6455lt_cv_truncate_bin=
6456if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6457  cmp -s conftest.i conftest.out \
6458  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6459fi
6460rm -f conftest.i conftest2.i conftest.out
6461test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6462fi
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6464$as_echo "$lt_cv_truncate_bin" >&6; }
6465
6466
6467
6468
6469
6470
6471
6472# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6473func_cc_basename ()
6474{
6475    for cc_temp in $*""; do
6476      case $cc_temp in
6477        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6478        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6479        \-*) ;;
6480        *) break;;
6481      esac
6482    done
6483    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6484}
6485
6486# Check whether --enable-libtool-lock was given.
6487if test "${enable_libtool_lock+set}" = set; then :
6488  enableval=$enable_libtool_lock;
6489fi
6490
6491test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6492
6493# Some flags need to be propagated to the compiler or linker for good
6494# libtool support.
6495case $host in
6496ia64-*-hpux*)
6497  # Find out what ABI is being produced by ac_compile, and set mode
6498  # options accordingly.
6499  echo 'int i;' > conftest.$ac_ext
6500  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501  (eval $ac_compile) 2>&5
6502  ac_status=$?
6503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504  test $ac_status = 0; }; then
6505    case `/usr/bin/file conftest.$ac_objext` in
6506      *ELF-32*)
6507	HPUX_IA64_MODE=32
6508	;;
6509      *ELF-64*)
6510	HPUX_IA64_MODE=64
6511	;;
6512    esac
6513  fi
6514  rm -rf conftest*
6515  ;;
6516*-*-irix6*)
6517  # Find out what ABI is being produced by ac_compile, and set linker
6518  # options accordingly.
6519  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521  (eval $ac_compile) 2>&5
6522  ac_status=$?
6523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524  test $ac_status = 0; }; then
6525    if test yes = "$lt_cv_prog_gnu_ld"; then
6526      case `/usr/bin/file conftest.$ac_objext` in
6527	*32-bit*)
6528	  LD="${LD-ld} -melf32bsmip"
6529	  ;;
6530	*N32*)
6531	  LD="${LD-ld} -melf32bmipn32"
6532	  ;;
6533	*64-bit*)
6534	  LD="${LD-ld} -melf64bmip"
6535	;;
6536      esac
6537    else
6538      case `/usr/bin/file conftest.$ac_objext` in
6539	*32-bit*)
6540	  LD="${LD-ld} -32"
6541	  ;;
6542	*N32*)
6543	  LD="${LD-ld} -n32"
6544	  ;;
6545	*64-bit*)
6546	  LD="${LD-ld} -64"
6547	  ;;
6548      esac
6549    fi
6550  fi
6551  rm -rf conftest*
6552  ;;
6553
6554mips64*-*linux*)
6555  # Find out what ABI is being produced by ac_compile, and set linker
6556  # options accordingly.
6557  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6559  (eval $ac_compile) 2>&5
6560  ac_status=$?
6561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562  test $ac_status = 0; }; then
6563    emul=elf
6564    case `/usr/bin/file conftest.$ac_objext` in
6565      *32-bit*)
6566	emul="${emul}32"
6567	;;
6568      *64-bit*)
6569	emul="${emul}64"
6570	;;
6571    esac
6572    case `/usr/bin/file conftest.$ac_objext` in
6573      *MSB*)
6574	emul="${emul}btsmip"
6575	;;
6576      *LSB*)
6577	emul="${emul}ltsmip"
6578	;;
6579    esac
6580    case `/usr/bin/file conftest.$ac_objext` in
6581      *N32*)
6582	emul="${emul}n32"
6583	;;
6584    esac
6585    LD="${LD-ld} -m $emul"
6586  fi
6587  rm -rf conftest*
6588  ;;
6589
6590x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6591s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6592  # Find out what ABI is being produced by ac_compile, and set linker
6593  # options accordingly.  Note that the listed cases only cover the
6594  # situations where additional linker options are needed (such as when
6595  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6596  # vice versa); the common cases where no linker options are needed do
6597  # not appear in the list.
6598  echo 'int i;' > conftest.$ac_ext
6599  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600  (eval $ac_compile) 2>&5
6601  ac_status=$?
6602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603  test $ac_status = 0; }; then
6604    case `/usr/bin/file conftest.o` in
6605      *32-bit*)
6606	case $host in
6607	  x86_64-*kfreebsd*-gnu)
6608	    LD="${LD-ld} -m elf_i386_fbsd"
6609	    ;;
6610	  x86_64-*linux*)
6611	    case `/usr/bin/file conftest.o` in
6612	      *x86-64*)
6613		LD="${LD-ld} -m elf32_x86_64"
6614		;;
6615	      *)
6616		LD="${LD-ld} -m elf_i386"
6617		;;
6618	    esac
6619	    ;;
6620	  powerpc64le-*linux*)
6621	    LD="${LD-ld} -m elf32lppclinux"
6622	    ;;
6623	  powerpc64-*linux*)
6624	    LD="${LD-ld} -m elf32ppclinux"
6625	    ;;
6626	  s390x-*linux*)
6627	    LD="${LD-ld} -m elf_s390"
6628	    ;;
6629	  sparc64-*linux*)
6630	    LD="${LD-ld} -m elf32_sparc"
6631	    ;;
6632	esac
6633	;;
6634      *64-bit*)
6635	case $host in
6636	  x86_64-*kfreebsd*-gnu)
6637	    LD="${LD-ld} -m elf_x86_64_fbsd"
6638	    ;;
6639	  x86_64-*linux*)
6640	    LD="${LD-ld} -m elf_x86_64"
6641	    ;;
6642	  powerpcle-*linux*)
6643	    LD="${LD-ld} -m elf64lppc"
6644	    ;;
6645	  powerpc-*linux*)
6646	    LD="${LD-ld} -m elf64ppc"
6647	    ;;
6648	  s390*-*linux*|s390*-*tpf*)
6649	    LD="${LD-ld} -m elf64_s390"
6650	    ;;
6651	  sparc*-*linux*)
6652	    LD="${LD-ld} -m elf64_sparc"
6653	    ;;
6654	esac
6655	;;
6656    esac
6657  fi
6658  rm -rf conftest*
6659  ;;
6660
6661*-*-sco3.2v5*)
6662  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6663  SAVE_CFLAGS=$CFLAGS
6664  CFLAGS="$CFLAGS -belf"
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6666$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6667if ${lt_cv_cc_needs_belf+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670  ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678
6679int
6680main ()
6681{
6682
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687if ac_fn_c_try_link "$LINENO"; then :
6688  lt_cv_cc_needs_belf=yes
6689else
6690  lt_cv_cc_needs_belf=no
6691fi
6692rm -f core conftest.err conftest.$ac_objext \
6693    conftest$ac_exeext conftest.$ac_ext
6694     ac_ext=c
6695ac_cpp='$CPP $CPPFLAGS'
6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6702$as_echo "$lt_cv_cc_needs_belf" >&6; }
6703  if test yes != "$lt_cv_cc_needs_belf"; then
6704    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6705    CFLAGS=$SAVE_CFLAGS
6706  fi
6707  ;;
6708*-*solaris*)
6709  # Find out what ABI is being produced by ac_compile, and set linker
6710  # options accordingly.
6711  echo 'int i;' > conftest.$ac_ext
6712  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6713  (eval $ac_compile) 2>&5
6714  ac_status=$?
6715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716  test $ac_status = 0; }; then
6717    case `/usr/bin/file conftest.o` in
6718    *64-bit*)
6719      case $lt_cv_prog_gnu_ld in
6720      yes*)
6721        case $host in
6722        i?86-*-solaris*|x86_64-*-solaris*)
6723          LD="${LD-ld} -m elf_x86_64"
6724          ;;
6725        sparc*-*-solaris*)
6726          LD="${LD-ld} -m elf64_sparc"
6727          ;;
6728        esac
6729        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6730        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6731          LD=${LD-ld}_sol2
6732        fi
6733        ;;
6734      *)
6735	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6736	  LD="${LD-ld} -64"
6737	fi
6738	;;
6739      esac
6740      ;;
6741    esac
6742  fi
6743  rm -rf conftest*
6744  ;;
6745esac
6746
6747need_locks=$enable_libtool_lock
6748
6749if test -n "$ac_tool_prefix"; then
6750  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}mt; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  if test -n "$MANIFEST_TOOL"; then
6758  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765    for ac_exec_ext in '' $ac_executable_extensions; do
6766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772  done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6778if test -n "$MANIFEST_TOOL"; then
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6780$as_echo "$MANIFEST_TOOL" >&6; }
6781else
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6789  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6790  # Extract the first word of "mt", so it can be a program name with args.
6791set dummy mt; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$ac_ct_MANIFEST_TOOL"; then
6798  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6818if test -n "$ac_ct_MANIFEST_TOOL"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6820$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6827    MANIFEST_TOOL=":"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6836  fi
6837else
6838  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6839fi
6840
6841test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6843$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6844if ${lt_cv_path_mainfest_tool+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  lt_cv_path_mainfest_tool=no
6848  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6849  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6850  cat conftest.err >&5
6851  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6852    lt_cv_path_mainfest_tool=yes
6853  fi
6854  rm -f conftest*
6855fi
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6857$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6858if test yes != "$lt_cv_path_mainfest_tool"; then
6859  MANIFEST_TOOL=:
6860fi
6861
6862
6863
6864
6865
6866
6867  case $host_os in
6868    rhapsody* | darwin*)
6869    if test -n "$ac_tool_prefix"; then
6870  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if ${ac_cv_prog_DSYMUTIL+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  if test -n "$DSYMUTIL"; then
6878  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889    break 2
6890  fi
6891done
6892  done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897DSYMUTIL=$ac_cv_prog_DSYMUTIL
6898if test -n "$DSYMUTIL"; then
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6900$as_echo "$DSYMUTIL" >&6; }
6901else
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_DSYMUTIL"; then
6909  ac_ct_DSYMUTIL=$DSYMUTIL
6910  # Extract the first word of "dsymutil", so it can be a program name with args.
6911set dummy dsymutil; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$ac_ct_DSYMUTIL"; then
6918  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6938if test -n "$ac_ct_DSYMUTIL"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6940$as_echo "$ac_ct_DSYMUTIL" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946  if test "x$ac_ct_DSYMUTIL" = x; then
6947    DSYMUTIL=":"
6948  else
6949    case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955    DSYMUTIL=$ac_ct_DSYMUTIL
6956  fi
6957else
6958  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6959fi
6960
6961    if test -n "$ac_tool_prefix"; then
6962  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965$as_echo_n "checking for $ac_word... " >&6; }
6966if ${ac_cv_prog_NMEDIT+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  if test -n "$NMEDIT"; then
6970  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975  IFS=$as_save_IFS
6976  test -z "$as_dir" && as_dir=.
6977    for ac_exec_ext in '' $ac_executable_extensions; do
6978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981    break 2
6982  fi
6983done
6984  done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989NMEDIT=$ac_cv_prog_NMEDIT
6990if test -n "$NMEDIT"; then
6991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6992$as_echo "$NMEDIT" >&6; }
6993else
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995$as_echo "no" >&6; }
6996fi
6997
6998
6999fi
7000if test -z "$ac_cv_prog_NMEDIT"; then
7001  ac_ct_NMEDIT=$NMEDIT
7002  # Extract the first word of "nmedit", so it can be a program name with args.
7003set dummy nmedit; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  if test -n "$ac_ct_NMEDIT"; then
7010  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017    for ac_exec_ext in '' $ac_executable_extensions; do
7018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021    break 2
7022  fi
7023done
7024  done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7030if test -n "$ac_ct_NMEDIT"; then
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7032$as_echo "$ac_ct_NMEDIT" >&6; }
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037
7038  if test "x$ac_ct_NMEDIT" = x; then
7039    NMEDIT=":"
7040  else
7041    case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045ac_tool_warned=yes ;;
7046esac
7047    NMEDIT=$ac_ct_NMEDIT
7048  fi
7049else
7050  NMEDIT="$ac_cv_prog_NMEDIT"
7051fi
7052
7053    if test -n "$ac_tool_prefix"; then
7054  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}lipo; ac_word=$2
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if ${ac_cv_prog_LIPO+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  if test -n "$LIPO"; then
7062  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067  IFS=$as_save_IFS
7068  test -z "$as_dir" && as_dir=.
7069    for ac_exec_ext in '' $ac_executable_extensions; do
7070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073    break 2
7074  fi
7075done
7076  done
7077IFS=$as_save_IFS
7078
7079fi
7080fi
7081LIPO=$ac_cv_prog_LIPO
7082if test -n "$LIPO"; then
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7084$as_echo "$LIPO" >&6; }
7085else
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
7088fi
7089
7090
7091fi
7092if test -z "$ac_cv_prog_LIPO"; then
7093  ac_ct_LIPO=$LIPO
7094  # Extract the first word of "lipo", so it can be a program name with args.
7095set dummy lipo; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  if test -n "$ac_ct_LIPO"; then
7102  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107  IFS=$as_save_IFS
7108  test -z "$as_dir" && as_dir=.
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111    ac_cv_prog_ac_ct_LIPO="lipo"
7112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7122if test -n "$ac_ct_LIPO"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7124$as_echo "$ac_ct_LIPO" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130  if test "x$ac_ct_LIPO" = x; then
7131    LIPO=":"
7132  else
7133    case $cross_compiling:$ac_tool_warned in
7134yes:)
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137ac_tool_warned=yes ;;
7138esac
7139    LIPO=$ac_ct_LIPO
7140  fi
7141else
7142  LIPO="$ac_cv_prog_LIPO"
7143fi
7144
7145    if test -n "$ac_tool_prefix"; then
7146  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7147set dummy ${ac_tool_prefix}otool; ac_word=$2
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
7150if ${ac_cv_prog_OTOOL+:} false; then :
7151  $as_echo_n "(cached) " >&6
7152else
7153  if test -n "$OTOOL"; then
7154  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161    for ac_exec_ext in '' $ac_executable_extensions; do
7162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168  done
7169IFS=$as_save_IFS
7170
7171fi
7172fi
7173OTOOL=$ac_cv_prog_OTOOL
7174if test -n "$OTOOL"; then
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7176$as_echo "$OTOOL" >&6; }
7177else
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
7180fi
7181
7182
7183fi
7184if test -z "$ac_cv_prog_OTOOL"; then
7185  ac_ct_OTOOL=$OTOOL
7186  # Extract the first word of "otool", so it can be a program name with args.
7187set dummy otool; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  if test -n "$ac_ct_OTOOL"; then
7194  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201    for ac_exec_ext in '' $ac_executable_extensions; do
7202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_ac_ct_OTOOL="otool"
7204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208  done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7214if test -n "$ac_ct_OTOOL"; then
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7216$as_echo "$ac_ct_OTOOL" >&6; }
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222  if test "x$ac_ct_OTOOL" = x; then
7223    OTOOL=":"
7224  else
7225    case $cross_compiling:$ac_tool_warned in
7226yes:)
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229ac_tool_warned=yes ;;
7230esac
7231    OTOOL=$ac_ct_OTOOL
7232  fi
7233else
7234  OTOOL="$ac_cv_prog_OTOOL"
7235fi
7236
7237    if test -n "$ac_tool_prefix"; then
7238  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7239set dummy ${ac_tool_prefix}otool64; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_OTOOL64+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  if test -n "$OTOOL64"; then
7246  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  test -z "$as_dir" && as_dir=.
7253    for ac_exec_ext in '' $ac_executable_extensions; do
7254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257    break 2
7258  fi
7259done
7260  done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265OTOOL64=$ac_cv_prog_OTOOL64
7266if test -n "$OTOOL64"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7268$as_echo "$OTOOL64" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274
7275fi
7276if test -z "$ac_cv_prog_OTOOL64"; then
7277  ac_ct_OTOOL64=$OTOOL64
7278  # Extract the first word of "otool64", so it can be a program name with args.
7279set dummy otool64; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$ac_ct_OTOOL64"; then
7286  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_ac_ct_OTOOL64="otool64"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7306if test -n "$ac_ct_OTOOL64"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7308$as_echo "$ac_ct_OTOOL64" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314  if test "x$ac_ct_OTOOL64" = x; then
7315    OTOOL64=":"
7316  else
7317    case $cross_compiling:$ac_tool_warned in
7318yes:)
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321ac_tool_warned=yes ;;
7322esac
7323    OTOOL64=$ac_ct_OTOOL64
7324  fi
7325else
7326  OTOOL64="$ac_cv_prog_OTOOL64"
7327fi
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7356$as_echo_n "checking for -single_module linker flag... " >&6; }
7357if ${lt_cv_apple_cc_single_mod+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  lt_cv_apple_cc_single_mod=no
7361      if test -z "$LT_MULTI_MODULE"; then
7362	# By default we will add the -single_module flag. You can override
7363	# by either setting the environment variable LT_MULTI_MODULE
7364	# non-empty at configure time, or by adding -multi_module to the
7365	# link flags.
7366	rm -rf libconftest.dylib*
7367	echo "int foo(void){return 1;}" > conftest.c
7368	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369-dynamiclib -Wl,-single_module conftest.c" >&5
7370	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7372        _lt_result=$?
7373	# If there is a non-empty error log, and "single_module"
7374	# appears in it, assume the flag caused a linker warning
7375        if test -s conftest.err && $GREP single_module conftest.err; then
7376	  cat conftest.err >&5
7377	# Otherwise, if the output was created with a 0 exit code from
7378	# the compiler, it worked.
7379	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7380	  lt_cv_apple_cc_single_mod=yes
7381	else
7382	  cat conftest.err >&5
7383	fi
7384	rm -rf libconftest.dylib*
7385	rm -f conftest.*
7386      fi
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7389$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7390
7391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7392$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7393if ${lt_cv_ld_exported_symbols_list+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  lt_cv_ld_exported_symbols_list=no
7397      save_LDFLAGS=$LDFLAGS
7398      echo "_main" > conftest.sym
7399      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7400      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402
7403int
7404main ()
7405{
7406
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"; then :
7412  lt_cv_ld_exported_symbols_list=yes
7413else
7414  lt_cv_ld_exported_symbols_list=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext \
7417    conftest$ac_exeext conftest.$ac_ext
7418	LDFLAGS=$save_LDFLAGS
7419
7420fi
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7422$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7423
7424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7425$as_echo_n "checking for -force_load linker flag... " >&6; }
7426if ${lt_cv_ld_force_load+:} false; then :
7427  $as_echo_n "(cached) " >&6
7428else
7429  lt_cv_ld_force_load=no
7430      cat > conftest.c << _LT_EOF
7431int forced_loaded() { return 2;}
7432_LT_EOF
7433      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7434      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7435      echo "$AR cru libconftest.a conftest.o" >&5
7436      $AR cru libconftest.a conftest.o 2>&5
7437      echo "$RANLIB libconftest.a" >&5
7438      $RANLIB libconftest.a 2>&5
7439      cat > conftest.c << _LT_EOF
7440int main() { return 0;}
7441_LT_EOF
7442      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7443      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7444      _lt_result=$?
7445      if test -s conftest.err && $GREP force_load conftest.err; then
7446	cat conftest.err >&5
7447      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7448	lt_cv_ld_force_load=yes
7449      else
7450	cat conftest.err >&5
7451      fi
7452        rm -f conftest.err libconftest.a conftest conftest.c
7453        rm -rf conftest.dSYM
7454
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7457$as_echo "$lt_cv_ld_force_load" >&6; }
7458    case $host_os in
7459    rhapsody* | darwin1.[012])
7460      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7461    darwin1.*)
7462      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7463    darwin*) # darwin 5.x on
7464      # if running on 10.5 or later, the deployment target defaults
7465      # to the OS version, if on x86, and 10.4, the deployment
7466      # target defaults to 10.4. Don't you love it?
7467      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7468	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7469	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7470	10.[012][,.]*)
7471	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7472	10.*)
7473	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7474      esac
7475    ;;
7476  esac
7477    if test yes = "$lt_cv_apple_cc_single_mod"; then
7478      _lt_dar_single_mod='$single_module'
7479    fi
7480    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7481      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7482    else
7483      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7484    fi
7485    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7486      _lt_dsymutil='~$DSYMUTIL $lib || :'
7487    else
7488      _lt_dsymutil=
7489    fi
7490    ;;
7491  esac
7492
7493# func_munge_path_list VARIABLE PATH
7494# -----------------------------------
7495# VARIABLE is name of variable containing _space_ separated list of
7496# directories to be munged by the contents of PATH, which is string
7497# having a format:
7498# "DIR[:DIR]:"
7499#       string "DIR[ DIR]" will be prepended to VARIABLE
7500# ":DIR[:DIR]"
7501#       string "DIR[ DIR]" will be appended to VARIABLE
7502# "DIRP[:DIRP]::[DIRA:]DIRA"
7503#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7504#       "DIRA[ DIRA]" will be appended to VARIABLE
7505# "DIR[:DIR]"
7506#       VARIABLE will be replaced by "DIR[ DIR]"
7507func_munge_path_list ()
7508{
7509    case x$2 in
7510    x)
7511        ;;
7512    *:)
7513        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7514        ;;
7515    x:*)
7516        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7517        ;;
7518    *::*)
7519        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7520        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7521        ;;
7522    *)
7523        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7524        ;;
7525    esac
7526}
7527
7528ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7534$as_echo_n "checking how to run the C preprocessor... " >&6; }
7535# On Suns, sometimes $CPP names a directory.
7536if test -n "$CPP" && test -d "$CPP"; then
7537  CPP=
7538fi
7539if test -z "$CPP"; then
7540  if ${ac_cv_prog_CPP+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543      # Double quotes because CPP needs to be expanded
7544    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7545    do
7546      ac_preproc_ok=false
7547for ac_c_preproc_warn_flag in '' yes
7548do
7549  # Use a header file that comes with gcc, so configuring glibc
7550  # with a fresh cross-compiler works.
7551  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7552  # <limits.h> exists even on freestanding compilers.
7553  # On the NeXT, cc -E runs the code through the compiler's parser,
7554  # not just through cpp. "Syntax error" is here to catch this case.
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557#ifdef __STDC__
7558# include <limits.h>
7559#else
7560# include <assert.h>
7561#endif
7562		     Syntax error
7563_ACEOF
7564if ac_fn_c_try_cpp "$LINENO"; then :
7565
7566else
7567  # Broken: fails on valid input.
7568continue
7569fi
7570rm -f conftest.err conftest.i conftest.$ac_ext
7571
7572  # OK, works on sane cases.  Now check whether nonexistent headers
7573  # can be detected and how.
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576#include <ac_nonexistent.h>
7577_ACEOF
7578if ac_fn_c_try_cpp "$LINENO"; then :
7579  # Broken: success on invalid input.
7580continue
7581else
7582  # Passes both tests.
7583ac_preproc_ok=:
7584break
7585fi
7586rm -f conftest.err conftest.i conftest.$ac_ext
7587
7588done
7589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7590rm -f conftest.i conftest.err conftest.$ac_ext
7591if $ac_preproc_ok; then :
7592  break
7593fi
7594
7595    done
7596    ac_cv_prog_CPP=$CPP
7597
7598fi
7599  CPP=$ac_cv_prog_CPP
7600else
7601  ac_cv_prog_CPP=$CPP
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7604$as_echo "$CPP" >&6; }
7605ac_preproc_ok=false
7606for ac_c_preproc_warn_flag in '' yes
7607do
7608  # Use a header file that comes with gcc, so configuring glibc
7609  # with a fresh cross-compiler works.
7610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611  # <limits.h> exists even on freestanding compilers.
7612  # On the NeXT, cc -E runs the code through the compiler's parser,
7613  # not just through cpp. "Syntax error" is here to catch this case.
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616#ifdef __STDC__
7617# include <limits.h>
7618#else
7619# include <assert.h>
7620#endif
7621		     Syntax error
7622_ACEOF
7623if ac_fn_c_try_cpp "$LINENO"; then :
7624
7625else
7626  # Broken: fails on valid input.
7627continue
7628fi
7629rm -f conftest.err conftest.i conftest.$ac_ext
7630
7631  # OK, works on sane cases.  Now check whether nonexistent headers
7632  # can be detected and how.
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635#include <ac_nonexistent.h>
7636_ACEOF
7637if ac_fn_c_try_cpp "$LINENO"; then :
7638  # Broken: success on invalid input.
7639continue
7640else
7641  # Passes both tests.
7642ac_preproc_ok=:
7643break
7644fi
7645rm -f conftest.err conftest.i conftest.$ac_ext
7646
7647done
7648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649rm -f conftest.i conftest.err conftest.$ac_ext
7650if $ac_preproc_ok; then :
7651
7652else
7653  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7655as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7656See \`config.log' for more details" "$LINENO" 5; }
7657fi
7658
7659ac_ext=c
7660ac_cpp='$CPP $CPPFLAGS'
7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7667$as_echo_n "checking for ANSI C header files... " >&6; }
7668if ${ac_cv_header_stdc+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h.  */
7673#include <stdlib.h>
7674#include <stdarg.h>
7675#include <string.h>
7676#include <float.h>
7677
7678int
7679main ()
7680{
7681
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_compile "$LINENO"; then :
7687  ac_cv_header_stdc=yes
7688else
7689  ac_cv_header_stdc=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692
7693if test $ac_cv_header_stdc = yes; then
7694  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697#include <string.h>
7698
7699_ACEOF
7700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701  $EGREP "memchr" >/dev/null 2>&1; then :
7702
7703else
7704  ac_cv_header_stdc=no
7705fi
7706rm -f conftest*
7707
7708fi
7709
7710if test $ac_cv_header_stdc = yes; then
7711  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714#include <stdlib.h>
7715
7716_ACEOF
7717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718  $EGREP "free" >/dev/null 2>&1; then :
7719
7720else
7721  ac_cv_header_stdc=no
7722fi
7723rm -f conftest*
7724
7725fi
7726
7727if test $ac_cv_header_stdc = yes; then
7728  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7729  if test "$cross_compiling" = yes; then :
7730  :
7731else
7732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h.  */
7734#include <ctype.h>
7735#include <stdlib.h>
7736#if ((' ' & 0x0FF) == 0x020)
7737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7739#else
7740# define ISLOWER(c) \
7741		   (('a' <= (c) && (c) <= 'i') \
7742		     || ('j' <= (c) && (c) <= 'r') \
7743		     || ('s' <= (c) && (c) <= 'z'))
7744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7745#endif
7746
7747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7748int
7749main ()
7750{
7751  int i;
7752  for (i = 0; i < 256; i++)
7753    if (XOR (islower (i), ISLOWER (i))
7754	|| toupper (i) != TOUPPER (i))
7755      return 2;
7756  return 0;
7757}
7758_ACEOF
7759if ac_fn_c_try_run "$LINENO"; then :
7760
7761else
7762  ac_cv_header_stdc=no
7763fi
7764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7765  conftest.$ac_objext conftest.beam conftest.$ac_ext
7766fi
7767
7768fi
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7771$as_echo "$ac_cv_header_stdc" >&6; }
7772if test $ac_cv_header_stdc = yes; then
7773
7774$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7775
7776fi
7777
7778# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7779for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7780		  inttypes.h stdint.h unistd.h
7781do :
7782  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7784"
7785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7786  cat >>confdefs.h <<_ACEOF
7787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7788_ACEOF
7789
7790fi
7791
7792done
7793
7794
7795for ac_header in dlfcn.h
7796do :
7797  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7798"
7799if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7800  cat >>confdefs.h <<_ACEOF
7801#define HAVE_DLFCN_H 1
7802_ACEOF
7803
7804fi
7805
7806done
7807
7808
7809
7810
7811
7812# Set options
7813
7814
7815
7816        enable_dlopen=no
7817
7818
7819  enable_win32_dll=no
7820
7821
7822            # Check whether --enable-shared was given.
7823if test "${enable_shared+set}" = set; then :
7824  enableval=$enable_shared; p=${PACKAGE-default}
7825    case $enableval in
7826    yes) enable_shared=yes ;;
7827    no) enable_shared=no ;;
7828    *)
7829      enable_shared=no
7830      # Look at the argument we got.  We use all the common list separators.
7831      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7832      for pkg in $enableval; do
7833	IFS=$lt_save_ifs
7834	if test "X$pkg" = "X$p"; then
7835	  enable_shared=yes
7836	fi
7837      done
7838      IFS=$lt_save_ifs
7839      ;;
7840    esac
7841else
7842  enable_shared=yes
7843fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855# Check whether --with-pic was given.
7856if test "${with_pic+set}" = set; then :
7857  withval=$with_pic; lt_p=${PACKAGE-default}
7858    case $withval in
7859    yes|no) pic_mode=$withval ;;
7860    *)
7861      pic_mode=default
7862      # Look at the argument we got.  We use all the common list separators.
7863      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7864      for lt_pkg in $withval; do
7865	IFS=$lt_save_ifs
7866	if test "X$lt_pkg" = "X$lt_p"; then
7867	  pic_mode=yes
7868	fi
7869      done
7870      IFS=$lt_save_ifs
7871      ;;
7872    esac
7873else
7874  pic_mode=default
7875fi
7876
7877
7878
7879
7880
7881
7882
7883
7884  # Check whether --enable-fast-install was given.
7885if test "${enable_fast_install+set}" = set; then :
7886  enableval=$enable_fast_install; p=${PACKAGE-default}
7887    case $enableval in
7888    yes) enable_fast_install=yes ;;
7889    no) enable_fast_install=no ;;
7890    *)
7891      enable_fast_install=no
7892      # Look at the argument we got.  We use all the common list separators.
7893      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7894      for pkg in $enableval; do
7895	IFS=$lt_save_ifs
7896	if test "X$pkg" = "X$p"; then
7897	  enable_fast_install=yes
7898	fi
7899      done
7900      IFS=$lt_save_ifs
7901      ;;
7902    esac
7903else
7904  enable_fast_install=yes
7905fi
7906
7907
7908
7909
7910
7911
7912
7913
7914  shared_archive_member_spec=
7915case $host,$enable_shared in
7916power*-*-aix[5-9]*,yes)
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7918$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7919
7920# Check whether --with-aix-soname was given.
7921if test "${with_aix_soname+set}" = set; then :
7922  withval=$with_aix_soname; case $withval in
7923    aix|svr4|both)
7924      ;;
7925    *)
7926      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7927      ;;
7928    esac
7929    lt_cv_with_aix_soname=$with_aix_soname
7930else
7931  if ${lt_cv_with_aix_soname+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  lt_cv_with_aix_soname=aix
7935fi
7936
7937    with_aix_soname=$lt_cv_with_aix_soname
7938fi
7939
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7941$as_echo "$with_aix_soname" >&6; }
7942  if test aix != "$with_aix_soname"; then
7943    # For the AIX way of multilib, we name the shared archive member
7944    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7945    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7946    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7947    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7948    if test 64 = "${OBJECT_MODE-32}"; then
7949      shared_archive_member_spec=shr_64
7950    else
7951      shared_archive_member_spec=shr
7952    fi
7953  fi
7954  ;;
7955*)
7956  with_aix_soname=aix
7957  ;;
7958esac
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969# This can be used to rebuild libtool when needed
7970LIBTOOL_DEPS=$ltmain
7971
7972# Always use our own libtool.
7973LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004test -z "$LN_S" && LN_S="ln -s"
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019if test -n "${ZSH_VERSION+set}"; then
8020   setopt NO_GLOB_SUBST
8021fi
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8024$as_echo_n "checking for objdir... " >&6; }
8025if ${lt_cv_objdir+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  rm -f .libs 2>/dev/null
8029mkdir .libs 2>/dev/null
8030if test -d .libs; then
8031  lt_cv_objdir=.libs
8032else
8033  # MS-DOS does not allow filenames that begin with a dot.
8034  lt_cv_objdir=_libs
8035fi
8036rmdir .libs 2>/dev/null
8037fi
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8039$as_echo "$lt_cv_objdir" >&6; }
8040objdir=$lt_cv_objdir
8041
8042
8043
8044
8045
8046cat >>confdefs.h <<_ACEOF
8047#define LT_OBJDIR "$lt_cv_objdir/"
8048_ACEOF
8049
8050
8051
8052
8053case $host_os in
8054aix3*)
8055  # AIX sometimes has problems with the GCC collect2 program.  For some
8056  # reason, if we set the COLLECT_NAMES environment variable, the problems
8057  # vanish in a puff of smoke.
8058  if test set != "${COLLECT_NAMES+set}"; then
8059    COLLECT_NAMES=
8060    export COLLECT_NAMES
8061  fi
8062  ;;
8063esac
8064
8065# Global variables:
8066ofile=libtool
8067can_build_shared=yes
8068
8069# All known linkers require a '.a' archive for static linking (except MSVC,
8070# which needs '.lib').
8071libext=a
8072
8073with_gnu_ld=$lt_cv_prog_gnu_ld
8074
8075old_CC=$CC
8076old_CFLAGS=$CFLAGS
8077
8078# Set sane defaults for various variables
8079test -z "$CC" && CC=cc
8080test -z "$LTCC" && LTCC=$CC
8081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8082test -z "$LD" && LD=ld
8083test -z "$ac_objext" && ac_objext=o
8084
8085func_cc_basename $compiler
8086cc_basename=$func_cc_basename_result
8087
8088
8089# Only perform the check for file, if the check method requires it
8090test -z "$MAGIC_CMD" && MAGIC_CMD=file
8091case $deplibs_check_method in
8092file_magic*)
8093  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8095$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8096if ${lt_cv_path_MAGIC_CMD+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  case $MAGIC_CMD in
8100[\\/*] |  ?:[\\/]*)
8101  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8102  ;;
8103*)
8104  lt_save_MAGIC_CMD=$MAGIC_CMD
8105  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8106  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8107  for ac_dir in $ac_dummy; do
8108    IFS=$lt_save_ifs
8109    test -z "$ac_dir" && ac_dir=.
8110    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8111      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8112      if test -n "$file_magic_test_file"; then
8113	case $deplibs_check_method in
8114	"file_magic "*)
8115	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8116	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8117	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8118	    $EGREP "$file_magic_regex" > /dev/null; then
8119	    :
8120	  else
8121	    cat <<_LT_EOF 1>&2
8122
8123*** Warning: the command libtool uses to detect shared libraries,
8124*** $file_magic_cmd, produces output that libtool cannot recognize.
8125*** The result is that libtool may fail to recognize shared libraries
8126*** as such.  This will affect the creation of libtool libraries that
8127*** depend on shared libraries, but programs linked with such libtool
8128*** libraries will work regardless of this problem.  Nevertheless, you
8129*** may want to report the problem to your system manager and/or to
8130*** bug-libtool@gnu.org
8131
8132_LT_EOF
8133	  fi ;;
8134	esac
8135      fi
8136      break
8137    fi
8138  done
8139  IFS=$lt_save_ifs
8140  MAGIC_CMD=$lt_save_MAGIC_CMD
8141  ;;
8142esac
8143fi
8144
8145MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8146if test -n "$MAGIC_CMD"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8148$as_echo "$MAGIC_CMD" >&6; }
8149else
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154
8155
8156
8157
8158if test -z "$lt_cv_path_MAGIC_CMD"; then
8159  if test -n "$ac_tool_prefix"; then
8160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8161$as_echo_n "checking for file... " >&6; }
8162if ${lt_cv_path_MAGIC_CMD+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  case $MAGIC_CMD in
8166[\\/*] |  ?:[\\/]*)
8167  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8168  ;;
8169*)
8170  lt_save_MAGIC_CMD=$MAGIC_CMD
8171  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8172  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173  for ac_dir in $ac_dummy; do
8174    IFS=$lt_save_ifs
8175    test -z "$ac_dir" && ac_dir=.
8176    if test -f "$ac_dir/file"; then
8177      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8178      if test -n "$file_magic_test_file"; then
8179	case $deplibs_check_method in
8180	"file_magic "*)
8181	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8183	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184	    $EGREP "$file_magic_regex" > /dev/null; then
8185	    :
8186	  else
8187	    cat <<_LT_EOF 1>&2
8188
8189*** Warning: the command libtool uses to detect shared libraries,
8190*** $file_magic_cmd, produces output that libtool cannot recognize.
8191*** The result is that libtool may fail to recognize shared libraries
8192*** as such.  This will affect the creation of libtool libraries that
8193*** depend on shared libraries, but programs linked with such libtool
8194*** libraries will work regardless of this problem.  Nevertheless, you
8195*** may want to report the problem to your system manager and/or to
8196*** bug-libtool@gnu.org
8197
8198_LT_EOF
8199	  fi ;;
8200	esac
8201      fi
8202      break
8203    fi
8204  done
8205  IFS=$lt_save_ifs
8206  MAGIC_CMD=$lt_save_MAGIC_CMD
8207  ;;
8208esac
8209fi
8210
8211MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8212if test -n "$MAGIC_CMD"; then
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214$as_echo "$MAGIC_CMD" >&6; }
8215else
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218fi
8219
8220
8221  else
8222    MAGIC_CMD=:
8223  fi
8224fi
8225
8226  fi
8227  ;;
8228esac
8229
8230# Use C for the default configuration in the libtool script
8231
8232lt_save_CC=$CC
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239
8240# Source file extension for C test sources.
8241ac_ext=c
8242
8243# Object file extension for compiled C test sources.
8244objext=o
8245objext=$objext
8246
8247# Code to be used in simple compile tests
8248lt_simple_compile_test_code="int some_variable = 0;"
8249
8250# Code to be used in simple link tests
8251lt_simple_link_test_code='int main(){return(0);}'
8252
8253
8254
8255
8256
8257
8258
8259# If no C compiler was specified, use CC.
8260LTCC=${LTCC-"$CC"}
8261
8262# If no C compiler flags were specified, use CFLAGS.
8263LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8264
8265# Allow CC to be a program name with arguments.
8266compiler=$CC
8267
8268# Save the default compiler, since it gets overwritten when the other
8269# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8270compiler_DEFAULT=$CC
8271
8272# save warnings/boilerplate of simple test code
8273ac_outfile=conftest.$ac_objext
8274echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8275eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8276_lt_compiler_boilerplate=`cat conftest.err`
8277$RM conftest*
8278
8279ac_outfile=conftest.$ac_objext
8280echo "$lt_simple_link_test_code" >conftest.$ac_ext
8281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282_lt_linker_boilerplate=`cat conftest.err`
8283$RM -r conftest*
8284
8285
8286if test -n "$compiler"; then
8287
8288lt_prog_compiler_no_builtin_flag=
8289
8290if test yes = "$GCC"; then
8291  case $cc_basename in
8292  nvcc*)
8293    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8294  *)
8295    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8296  esac
8297
8298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8299$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8300if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303  lt_cv_prog_compiler_rtti_exceptions=no
8304   ac_outfile=conftest.$ac_objext
8305   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8307   # Insert the option either (1) after the last *FLAGS variable, or
8308   # (2) before a word containing "conftest.", or (3) at the end.
8309   # Note that $ac_compile itself does not contain backslashes and begins
8310   # with a dollar sign (not a hyphen), so the echo should work correctly.
8311   # The option is referenced via a variable to avoid confusing sed.
8312   lt_compile=`echo "$ac_compile" | $SED \
8313   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315   -e 's:$: $lt_compiler_flag:'`
8316   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8317   (eval "$lt_compile" 2>conftest.err)
8318   ac_status=$?
8319   cat conftest.err >&5
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   if (exit $ac_status) && test -s "$ac_outfile"; then
8322     # The compiler can only warn and ignore the option if not recognized
8323     # So say no if there are warnings other than the usual output.
8324     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8325     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8326     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8327       lt_cv_prog_compiler_rtti_exceptions=yes
8328     fi
8329   fi
8330   $RM conftest*
8331
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8334$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8335
8336if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8337    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8338else
8339    :
8340fi
8341
8342fi
8343
8344
8345
8346
8347
8348
8349  lt_prog_compiler_wl=
8350lt_prog_compiler_pic=
8351lt_prog_compiler_static=
8352
8353
8354  if test yes = "$GCC"; then
8355    lt_prog_compiler_wl='-Wl,'
8356    lt_prog_compiler_static='-static'
8357
8358    case $host_os in
8359      aix*)
8360      # All AIX code is PIC.
8361      if test ia64 = "$host_cpu"; then
8362	# AIX 5 now supports IA64 processor
8363	lt_prog_compiler_static='-Bstatic'
8364      fi
8365      lt_prog_compiler_pic='-fPIC'
8366      ;;
8367
8368    amigaos*)
8369      case $host_cpu in
8370      powerpc)
8371            # see comment about AmigaOS4 .so support
8372            lt_prog_compiler_pic='-fPIC'
8373        ;;
8374      m68k)
8375            # FIXME: we need at least 68020 code to build shared libraries, but
8376            # adding the '-m68020' flag to GCC prevents building anything better,
8377            # like '-m68040'.
8378            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8379        ;;
8380      esac
8381      ;;
8382
8383    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8384      # PIC is the default for these OSes.
8385      ;;
8386
8387    mingw* | cygwin* | pw32* | os2* | cegcc*)
8388      # This hack is so that the source file can tell whether it is being
8389      # built for inclusion in a dll (and should export symbols for example).
8390      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8391      # (--disable-auto-import) libraries
8392      lt_prog_compiler_pic='-DDLL_EXPORT'
8393      case $host_os in
8394      os2*)
8395	lt_prog_compiler_static='$wl-static'
8396	;;
8397      esac
8398      ;;
8399
8400    darwin* | rhapsody*)
8401      # PIC is the default on this platform
8402      # Common symbols not allowed in MH_DYLIB files
8403      lt_prog_compiler_pic='-fno-common'
8404      ;;
8405
8406    haiku*)
8407      # PIC is the default for Haiku.
8408      # The "-static" flag exists, but is broken.
8409      lt_prog_compiler_static=
8410      ;;
8411
8412    hpux*)
8413      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8414      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8415      # sets the default TLS model and affects inlining.
8416      case $host_cpu in
8417      hppa*64*)
8418	# +Z the default
8419	;;
8420      *)
8421	lt_prog_compiler_pic='-fPIC'
8422	;;
8423      esac
8424      ;;
8425
8426    interix[3-9]*)
8427      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8428      # Instead, we relocate shared libraries at runtime.
8429      ;;
8430
8431    msdosdjgpp*)
8432      # Just because we use GCC doesn't mean we suddenly get shared libraries
8433      # on systems that don't support them.
8434      lt_prog_compiler_can_build_shared=no
8435      enable_shared=no
8436      ;;
8437
8438    *nto* | *qnx*)
8439      # QNX uses GNU C++, but need to define -shared option too, otherwise
8440      # it will coredump.
8441      lt_prog_compiler_pic='-fPIC -shared'
8442      ;;
8443
8444    sysv4*MP*)
8445      if test -d /usr/nec; then
8446	lt_prog_compiler_pic=-Kconform_pic
8447      fi
8448      ;;
8449
8450    *)
8451      lt_prog_compiler_pic='-fPIC'
8452      ;;
8453    esac
8454
8455    case $cc_basename in
8456    nvcc*) # Cuda Compiler Driver 2.2
8457      lt_prog_compiler_wl='-Xlinker '
8458      if test -n "$lt_prog_compiler_pic"; then
8459        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8460      fi
8461      ;;
8462    esac
8463  else
8464    # PORTME Check for flag to pass linker flags through the system compiler.
8465    case $host_os in
8466    aix*)
8467      lt_prog_compiler_wl='-Wl,'
8468      if test ia64 = "$host_cpu"; then
8469	# AIX 5 now supports IA64 processor
8470	lt_prog_compiler_static='-Bstatic'
8471      else
8472	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8473      fi
8474      ;;
8475
8476    darwin* | rhapsody*)
8477      # PIC is the default on this platform
8478      # Common symbols not allowed in MH_DYLIB files
8479      lt_prog_compiler_pic='-fno-common'
8480      case $cc_basename in
8481      nagfor*)
8482        # NAG Fortran compiler
8483        lt_prog_compiler_wl='-Wl,-Wl,,'
8484        lt_prog_compiler_pic='-PIC'
8485        lt_prog_compiler_static='-Bstatic'
8486        ;;
8487      esac
8488      ;;
8489
8490    mingw* | cygwin* | pw32* | os2* | cegcc*)
8491      # This hack is so that the source file can tell whether it is being
8492      # built for inclusion in a dll (and should export symbols for example).
8493      lt_prog_compiler_pic='-DDLL_EXPORT'
8494      case $host_os in
8495      os2*)
8496	lt_prog_compiler_static='$wl-static'
8497	;;
8498      esac
8499      ;;
8500
8501    hpux9* | hpux10* | hpux11*)
8502      lt_prog_compiler_wl='-Wl,'
8503      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8504      # not for PA HP-UX.
8505      case $host_cpu in
8506      hppa*64*|ia64*)
8507	# +Z the default
8508	;;
8509      *)
8510	lt_prog_compiler_pic='+Z'
8511	;;
8512      esac
8513      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8514      lt_prog_compiler_static='$wl-a ${wl}archive'
8515      ;;
8516
8517    irix5* | irix6* | nonstopux*)
8518      lt_prog_compiler_wl='-Wl,'
8519      # PIC (with -KPIC) is the default.
8520      lt_prog_compiler_static='-non_shared'
8521      ;;
8522
8523    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8524      case $cc_basename in
8525      # old Intel for x86_64, which still supported -KPIC.
8526      ecc*)
8527	lt_prog_compiler_wl='-Wl,'
8528	lt_prog_compiler_pic='-KPIC'
8529	lt_prog_compiler_static='-static'
8530        ;;
8531      # icc used to be incompatible with GCC.
8532      # ICC 10 doesn't accept -KPIC any more.
8533      icc* | ifort*)
8534	lt_prog_compiler_wl='-Wl,'
8535	lt_prog_compiler_pic='-fPIC'
8536	lt_prog_compiler_static='-static'
8537        ;;
8538      # Lahey Fortran 8.1.
8539      lf95*)
8540	lt_prog_compiler_wl='-Wl,'
8541	lt_prog_compiler_pic='--shared'
8542	lt_prog_compiler_static='--static'
8543	;;
8544      nagfor*)
8545	# NAG Fortran compiler
8546	lt_prog_compiler_wl='-Wl,-Wl,,'
8547	lt_prog_compiler_pic='-PIC'
8548	lt_prog_compiler_static='-Bstatic'
8549	;;
8550      tcc*)
8551	# Fabrice Bellard et al's Tiny C Compiler
8552	lt_prog_compiler_wl='-Wl,'
8553	lt_prog_compiler_pic='-fPIC'
8554	lt_prog_compiler_static='-static'
8555	;;
8556      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8557        # Portland Group compilers (*not* the Pentium gcc compiler,
8558	# which looks to be a dead project)
8559	lt_prog_compiler_wl='-Wl,'
8560	lt_prog_compiler_pic='-fpic'
8561	lt_prog_compiler_static='-Bstatic'
8562        ;;
8563      ccc*)
8564        lt_prog_compiler_wl='-Wl,'
8565        # All Alpha code is PIC.
8566        lt_prog_compiler_static='-non_shared'
8567        ;;
8568      xl* | bgxl* | bgf* | mpixl*)
8569	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8570	lt_prog_compiler_wl='-Wl,'
8571	lt_prog_compiler_pic='-qpic'
8572	lt_prog_compiler_static='-qstaticlink'
8573	;;
8574      *)
8575	case `$CC -V 2>&1 | sed 5q` in
8576	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8577	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578	  lt_prog_compiler_pic='-KPIC'
8579	  lt_prog_compiler_static='-Bstatic'
8580	  lt_prog_compiler_wl=''
8581	  ;;
8582	*Sun\ F* | *Sun*Fortran*)
8583	  lt_prog_compiler_pic='-KPIC'
8584	  lt_prog_compiler_static='-Bstatic'
8585	  lt_prog_compiler_wl='-Qoption ld '
8586	  ;;
8587	*Sun\ C*)
8588	  # Sun C 5.9
8589	  lt_prog_compiler_pic='-KPIC'
8590	  lt_prog_compiler_static='-Bstatic'
8591	  lt_prog_compiler_wl='-Wl,'
8592	  ;;
8593        *Intel*\ [CF]*Compiler*)
8594	  lt_prog_compiler_wl='-Wl,'
8595	  lt_prog_compiler_pic='-fPIC'
8596	  lt_prog_compiler_static='-static'
8597	  ;;
8598	*Portland\ Group*)
8599	  lt_prog_compiler_wl='-Wl,'
8600	  lt_prog_compiler_pic='-fpic'
8601	  lt_prog_compiler_static='-Bstatic'
8602	  ;;
8603	esac
8604	;;
8605      esac
8606      ;;
8607
8608    newsos6)
8609      lt_prog_compiler_pic='-KPIC'
8610      lt_prog_compiler_static='-Bstatic'
8611      ;;
8612
8613    *nto* | *qnx*)
8614      # QNX uses GNU C++, but need to define -shared option too, otherwise
8615      # it will coredump.
8616      lt_prog_compiler_pic='-fPIC -shared'
8617      ;;
8618
8619    osf3* | osf4* | osf5*)
8620      lt_prog_compiler_wl='-Wl,'
8621      # All OSF/1 code is PIC.
8622      lt_prog_compiler_static='-non_shared'
8623      ;;
8624
8625    rdos*)
8626      lt_prog_compiler_static='-non_shared'
8627      ;;
8628
8629    solaris*)
8630      lt_prog_compiler_pic='-KPIC'
8631      lt_prog_compiler_static='-Bstatic'
8632      case $cc_basename in
8633      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8634	lt_prog_compiler_wl='-Qoption ld ';;
8635      *)
8636	lt_prog_compiler_wl='-Wl,';;
8637      esac
8638      ;;
8639
8640    sunos4*)
8641      lt_prog_compiler_wl='-Qoption ld '
8642      lt_prog_compiler_pic='-PIC'
8643      lt_prog_compiler_static='-Bstatic'
8644      ;;
8645
8646    sysv4 | sysv4.2uw2* | sysv4.3*)
8647      lt_prog_compiler_wl='-Wl,'
8648      lt_prog_compiler_pic='-KPIC'
8649      lt_prog_compiler_static='-Bstatic'
8650      ;;
8651
8652    sysv4*MP*)
8653      if test -d /usr/nec; then
8654	lt_prog_compiler_pic='-Kconform_pic'
8655	lt_prog_compiler_static='-Bstatic'
8656      fi
8657      ;;
8658
8659    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8660      lt_prog_compiler_wl='-Wl,'
8661      lt_prog_compiler_pic='-KPIC'
8662      lt_prog_compiler_static='-Bstatic'
8663      ;;
8664
8665    unicos*)
8666      lt_prog_compiler_wl='-Wl,'
8667      lt_prog_compiler_can_build_shared=no
8668      ;;
8669
8670    uts4*)
8671      lt_prog_compiler_pic='-pic'
8672      lt_prog_compiler_static='-Bstatic'
8673      ;;
8674
8675    *)
8676      lt_prog_compiler_can_build_shared=no
8677      ;;
8678    esac
8679  fi
8680
8681case $host_os in
8682  # For platforms that do not support PIC, -DPIC is meaningless:
8683  *djgpp*)
8684    lt_prog_compiler_pic=
8685    ;;
8686  *)
8687    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8688    ;;
8689esac
8690
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8692$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693if ${lt_cv_prog_compiler_pic+:} false; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8699$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8700lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8701
8702#
8703# Check to make sure the PIC flag actually works.
8704#
8705if test -n "$lt_prog_compiler_pic"; then
8706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8707$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8708if ${lt_cv_prog_compiler_pic_works+:} false; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  lt_cv_prog_compiler_pic_works=no
8712   ac_outfile=conftest.$ac_objext
8713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8715   # Insert the option either (1) after the last *FLAGS variable, or
8716   # (2) before a word containing "conftest.", or (3) at the end.
8717   # Note that $ac_compile itself does not contain backslashes and begins
8718   # with a dollar sign (not a hyphen), so the echo should work correctly.
8719   # The option is referenced via a variable to avoid confusing sed.
8720   lt_compile=`echo "$ac_compile" | $SED \
8721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723   -e 's:$: $lt_compiler_flag:'`
8724   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725   (eval "$lt_compile" 2>conftest.err)
8726   ac_status=$?
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   if (exit $ac_status) && test -s "$ac_outfile"; then
8730     # The compiler can only warn and ignore the option if not recognized
8731     # So say no if there are warnings other than the usual output.
8732     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8733     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8734     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8735       lt_cv_prog_compiler_pic_works=yes
8736     fi
8737   fi
8738   $RM conftest*
8739
8740fi
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8742$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8743
8744if test yes = "$lt_cv_prog_compiler_pic_works"; then
8745    case $lt_prog_compiler_pic in
8746     "" | " "*) ;;
8747     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8748     esac
8749else
8750    lt_prog_compiler_pic=
8751     lt_prog_compiler_can_build_shared=no
8752fi
8753
8754fi
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766#
8767# Check to make sure the static flag actually works.
8768#
8769wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8771$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8772if ${lt_cv_prog_compiler_static_works+:} false; then :
8773  $as_echo_n "(cached) " >&6
8774else
8775  lt_cv_prog_compiler_static_works=no
8776   save_LDFLAGS=$LDFLAGS
8777   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8778   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8779   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8780     # The linker can only warn and ignore the option if not recognized
8781     # So say no if there are warnings
8782     if test -s conftest.err; then
8783       # Append any errors to the config.log.
8784       cat conftest.err 1>&5
8785       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8786       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8787       if diff conftest.exp conftest.er2 >/dev/null; then
8788         lt_cv_prog_compiler_static_works=yes
8789       fi
8790     else
8791       lt_cv_prog_compiler_static_works=yes
8792     fi
8793   fi
8794   $RM -r conftest*
8795   LDFLAGS=$save_LDFLAGS
8796
8797fi
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8799$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8800
8801if test yes = "$lt_cv_prog_compiler_static_works"; then
8802    :
8803else
8804    lt_prog_compiler_static=
8805fi
8806
8807
8808
8809
8810
8811
8812
8813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8814$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8815if ${lt_cv_prog_compiler_c_o+:} false; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  lt_cv_prog_compiler_c_o=no
8819   $RM -r conftest 2>/dev/null
8820   mkdir conftest
8821   cd conftest
8822   mkdir out
8823   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8824
8825   lt_compiler_flag="-o out/conftest2.$ac_objext"
8826   # Insert the option either (1) after the last *FLAGS variable, or
8827   # (2) before a word containing "conftest.", or (3) at the end.
8828   # Note that $ac_compile itself does not contain backslashes and begins
8829   # with a dollar sign (not a hyphen), so the echo should work correctly.
8830   lt_compile=`echo "$ac_compile" | $SED \
8831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8833   -e 's:$: $lt_compiler_flag:'`
8834   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8835   (eval "$lt_compile" 2>out/conftest.err)
8836   ac_status=$?
8837   cat out/conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8840   then
8841     # The compiler can only warn and ignore the option if not recognized
8842     # So say no if there are warnings
8843     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8844     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8845     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8846       lt_cv_prog_compiler_c_o=yes
8847     fi
8848   fi
8849   chmod u+w . 2>&5
8850   $RM conftest*
8851   # SGI C++ compiler will create directory out/ii_files/ for
8852   # template instantiation
8853   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8854   $RM out/* && rmdir out
8855   cd ..
8856   $RM -r conftest
8857   $RM conftest*
8858
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8861$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8862
8863
8864
8865
8866
8867
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8869$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8870if ${lt_cv_prog_compiler_c_o+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  lt_cv_prog_compiler_c_o=no
8874   $RM -r conftest 2>/dev/null
8875   mkdir conftest
8876   cd conftest
8877   mkdir out
8878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879
8880   lt_compiler_flag="-o out/conftest2.$ac_objext"
8881   # Insert the option either (1) after the last *FLAGS variable, or
8882   # (2) before a word containing "conftest.", or (3) at the end.
8883   # Note that $ac_compile itself does not contain backslashes and begins
8884   # with a dollar sign (not a hyphen), so the echo should work correctly.
8885   lt_compile=`echo "$ac_compile" | $SED \
8886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888   -e 's:$: $lt_compiler_flag:'`
8889   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890   (eval "$lt_compile" 2>out/conftest.err)
8891   ac_status=$?
8892   cat out/conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8895   then
8896     # The compiler can only warn and ignore the option if not recognized
8897     # So say no if there are warnings
8898     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8899     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8900     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8901       lt_cv_prog_compiler_c_o=yes
8902     fi
8903   fi
8904   chmod u+w . 2>&5
8905   $RM conftest*
8906   # SGI C++ compiler will create directory out/ii_files/ for
8907   # template instantiation
8908   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8909   $RM out/* && rmdir out
8910   cd ..
8911   $RM -r conftest
8912   $RM conftest*
8913
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8916$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8917
8918
8919
8920
8921hard_links=nottested
8922if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8923  # do not overwrite the value of need_locks provided by the user
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8925$as_echo_n "checking if we can lock with hard links... " >&6; }
8926  hard_links=yes
8927  $RM conftest*
8928  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8929  touch conftest.a
8930  ln conftest.a conftest.b 2>&5 || hard_links=no
8931  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8933$as_echo "$hard_links" >&6; }
8934  if test no = "$hard_links"; then
8935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8936$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8937    need_locks=warn
8938  fi
8939else
8940  need_locks=no
8941fi
8942
8943
8944
8945
8946
8947
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8949$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8950
8951  runpath_var=
8952  allow_undefined_flag=
8953  always_export_symbols=no
8954  archive_cmds=
8955  archive_expsym_cmds=
8956  compiler_needs_object=no
8957  enable_shared_with_static_runtimes=no
8958  export_dynamic_flag_spec=
8959  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8960  hardcode_automatic=no
8961  hardcode_direct=no
8962  hardcode_direct_absolute=no
8963  hardcode_libdir_flag_spec=
8964  hardcode_libdir_separator=
8965  hardcode_minus_L=no
8966  hardcode_shlibpath_var=unsupported
8967  inherit_rpath=no
8968  link_all_deplibs=unknown
8969  module_cmds=
8970  module_expsym_cmds=
8971  old_archive_from_new_cmds=
8972  old_archive_from_expsyms_cmds=
8973  thread_safe_flag_spec=
8974  whole_archive_flag_spec=
8975  # include_expsyms should be a list of space-separated symbols to be *always*
8976  # included in the symbol list
8977  include_expsyms=
8978  # exclude_expsyms can be an extended regexp of symbols to exclude
8979  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8980  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8981  # as well as any symbol that contains 'd'.
8982  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8983  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8984  # platforms (ab)use it in PIC code, but their linkers get confused if
8985  # the symbol is explicitly referenced.  Since portable code cannot
8986  # rely on this symbol name, it's probably fine to never include it in
8987  # preloaded symbol tables.
8988  # Exclude shared library initialization/finalization symbols.
8989  extract_expsyms_cmds=
8990
8991  case $host_os in
8992  cygwin* | mingw* | pw32* | cegcc*)
8993    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8994    # When not using gcc, we currently assume that we are using
8995    # Microsoft Visual C++.
8996    if test yes != "$GCC"; then
8997      with_gnu_ld=no
8998    fi
8999    ;;
9000  interix*)
9001    # we just hope/assume this is gcc and not c89 (= MSVC++)
9002    with_gnu_ld=yes
9003    ;;
9004  openbsd* | bitrig*)
9005    with_gnu_ld=no
9006    ;;
9007  esac
9008
9009  ld_shlibs=yes
9010
9011  # On some targets, GNU ld is compatible enough with the native linker
9012  # that we're better off using the native interface for both.
9013  lt_use_gnu_ld_interface=no
9014  if test yes = "$with_gnu_ld"; then
9015    case $host_os in
9016      aix*)
9017	# The AIX port of GNU ld has always aspired to compatibility
9018	# with the native linker.  However, as the warning in the GNU ld
9019	# block says, versions before 2.19.5* couldn't really create working
9020	# shared libraries, regardless of the interface used.
9021	case `$LD -v 2>&1` in
9022	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9023	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9024	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9025	  *)
9026	    lt_use_gnu_ld_interface=yes
9027	    ;;
9028	esac
9029	;;
9030      *)
9031	lt_use_gnu_ld_interface=yes
9032	;;
9033    esac
9034  fi
9035
9036  if test yes = "$lt_use_gnu_ld_interface"; then
9037    # If archive_cmds runs LD, not CC, wlarc should be empty
9038    wlarc='$wl'
9039
9040    # Set some defaults for GNU ld with shared library support. These
9041    # are reset later if shared libraries are not supported. Putting them
9042    # here allows them to be overridden if necessary.
9043    runpath_var=LD_RUN_PATH
9044    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9045    export_dynamic_flag_spec='$wl--export-dynamic'
9046    # ancient GNU ld didn't support --whole-archive et. al.
9047    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9048      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9049    else
9050      whole_archive_flag_spec=
9051    fi
9052    supports_anon_versioning=no
9053    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9054      *GNU\ gold*) supports_anon_versioning=yes ;;
9055      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9056      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9057      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9058      *\ 2.11.*) ;; # other 2.11 versions
9059      *) supports_anon_versioning=yes ;;
9060    esac
9061
9062    # See if GNU ld supports shared libraries.
9063    case $host_os in
9064    aix[3-9]*)
9065      # On AIX/PPC, the GNU linker is very broken
9066      if test ia64 != "$host_cpu"; then
9067	ld_shlibs=no
9068	cat <<_LT_EOF 1>&2
9069
9070*** Warning: the GNU linker, at least up to release 2.19, is reported
9071*** to be unable to reliably create shared libraries on AIX.
9072*** Therefore, libtool is disabling shared libraries support.  If you
9073*** really care for shared libraries, you may want to install binutils
9074*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9075*** You will then need to restart the configuration process.
9076
9077_LT_EOF
9078      fi
9079      ;;
9080
9081    amigaos*)
9082      case $host_cpu in
9083      powerpc)
9084            # see comment about AmigaOS4 .so support
9085            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9086            archive_expsym_cmds=''
9087        ;;
9088      m68k)
9089            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)'
9090            hardcode_libdir_flag_spec='-L$libdir'
9091            hardcode_minus_L=yes
9092        ;;
9093      esac
9094      ;;
9095
9096    beos*)
9097      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9098	allow_undefined_flag=unsupported
9099	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9100	# support --undefined.  This deserves some investigation.  FIXME
9101	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9102      else
9103	ld_shlibs=no
9104      fi
9105      ;;
9106
9107    cygwin* | mingw* | pw32* | cegcc*)
9108      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9109      # as there is no search path for DLLs.
9110      hardcode_libdir_flag_spec='-L$libdir'
9111      export_dynamic_flag_spec='$wl--export-all-symbols'
9112      allow_undefined_flag=unsupported
9113      always_export_symbols=no
9114      enable_shared_with_static_runtimes=yes
9115      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'
9116      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9117
9118      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9119        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9120	# If the export-symbols file already is a .def file, use it as
9121	# is; otherwise, prepend EXPORTS...
9122	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9123          cp $export_symbols $output_objdir/$soname.def;
9124        else
9125          echo EXPORTS > $output_objdir/$soname.def;
9126          cat $export_symbols >> $output_objdir/$soname.def;
9127        fi~
9128        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9129      else
9130	ld_shlibs=no
9131      fi
9132      ;;
9133
9134    haiku*)
9135      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9136      link_all_deplibs=yes
9137      ;;
9138
9139    os2*)
9140      hardcode_libdir_flag_spec='-L$libdir'
9141      hardcode_minus_L=yes
9142      allow_undefined_flag=unsupported
9143      shrext_cmds=.dll
9144      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9145	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9146	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9147	$ECHO EXPORTS >> $output_objdir/$libname.def~
9148	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9149	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9150	emximp -o $lib $output_objdir/$libname.def'
9151      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9152	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9153	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9154	$ECHO EXPORTS >> $output_objdir/$libname.def~
9155	prefix_cmds="$SED"~
9156	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9157	  prefix_cmds="$prefix_cmds -e 1d";
9158	fi~
9159	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9160	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9161	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9162	emximp -o $lib $output_objdir/$libname.def'
9163      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9164      enable_shared_with_static_runtimes=yes
9165      ;;
9166
9167    interix[3-9]*)
9168      hardcode_direct=no
9169      hardcode_shlibpath_var=no
9170      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9171      export_dynamic_flag_spec='$wl-E'
9172      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9173      # Instead, shared libraries are loaded at an image base (0x10000000 by
9174      # default) and relocated if they conflict, which is a slow very memory
9175      # consuming and fragmenting process.  To avoid this, we pick a random,
9176      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9177      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9178      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9179      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'
9180      ;;
9181
9182    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9183      tmp_diet=no
9184      if test linux-dietlibc = "$host_os"; then
9185	case $cc_basename in
9186	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9187	esac
9188      fi
9189      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9190	 && test no = "$tmp_diet"
9191      then
9192	tmp_addflag=' $pic_flag'
9193	tmp_sharedflag='-shared'
9194	case $cc_basename,$host_cpu in
9195        pgcc*)				# Portland Group C compiler
9196	  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'
9197	  tmp_addflag=' $pic_flag'
9198	  ;;
9199	pgf77* | pgf90* | pgf95* | pgfortran*)
9200					# Portland Group f77 and f90 compilers
9201	  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'
9202	  tmp_addflag=' $pic_flag -Mnomain' ;;
9203	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9204	  tmp_addflag=' -i_dynamic' ;;
9205	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9206	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9207	ifc* | ifort*)			# Intel Fortran compiler
9208	  tmp_addflag=' -nofor_main' ;;
9209	lf95*)				# Lahey Fortran 8.1
9210	  whole_archive_flag_spec=
9211	  tmp_sharedflag='--shared' ;;
9212        nagfor*)                        # NAGFOR 5.3
9213          tmp_sharedflag='-Wl,-shared' ;;
9214	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9215	  tmp_sharedflag='-qmkshrobj'
9216	  tmp_addflag= ;;
9217	nvcc*)	# Cuda Compiler Driver 2.2
9218	  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'
9219	  compiler_needs_object=yes
9220	  ;;
9221	esac
9222	case `$CC -V 2>&1 | sed 5q` in
9223	*Sun\ C*)			# Sun C 5.9
9224	  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'
9225	  compiler_needs_object=yes
9226	  tmp_sharedflag='-G' ;;
9227	*Sun\ F*)			# Sun Fortran 8.3
9228	  tmp_sharedflag='-G' ;;
9229	esac
9230	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9231
9232        if test yes = "$supports_anon_versioning"; then
9233          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9234            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9235            echo "local: *; };" >> $output_objdir/$libname.ver~
9236            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9237        fi
9238
9239	case $cc_basename in
9240	tcc*)
9241	  export_dynamic_flag_spec='-rdynamic'
9242	  ;;
9243	xlf* | bgf* | bgxlf* | mpixlf*)
9244	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9245	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9246	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9247	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9248	  if test yes = "$supports_anon_versioning"; then
9249	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9250              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9251              echo "local: *; };" >> $output_objdir/$libname.ver~
9252              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9253	  fi
9254	  ;;
9255	esac
9256      else
9257        ld_shlibs=no
9258      fi
9259      ;;
9260
9261    netbsd*)
9262      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9264	wlarc=
9265      else
9266	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268      fi
9269      ;;
9270
9271    solaris*)
9272      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9273	ld_shlibs=no
9274	cat <<_LT_EOF 1>&2
9275
9276*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9277*** create shared libraries on Solaris systems.  Therefore, libtool
9278*** is disabling shared libraries support.  We urge you to upgrade GNU
9279*** binutils to release 2.9.1 or newer.  Another option is to modify
9280*** your PATH or compiler configuration so that the native linker is
9281*** used, and then restart.
9282
9283_LT_EOF
9284      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9286	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9287      else
9288	ld_shlibs=no
9289      fi
9290      ;;
9291
9292    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9293      case `$LD -v 2>&1` in
9294        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9295	ld_shlibs=no
9296	cat <<_LT_EOF 1>&2
9297
9298*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9299*** reliably create shared libraries on SCO systems.  Therefore, libtool
9300*** is disabling shared libraries support.  We urge you to upgrade GNU
9301*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9302*** your PATH or compiler configuration so that the native linker is
9303*** used, and then restart.
9304
9305_LT_EOF
9306	;;
9307	*)
9308	  # For security reasons, it is highly recommended that you always
9309	  # use absolute paths for naming shared libraries, and exclude the
9310	  # DT_RUNPATH tag from executables and libraries.  But doing so
9311	  # requires that you compile everything twice, which is a pain.
9312	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9314	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9315	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9316	  else
9317	    ld_shlibs=no
9318	  fi
9319	;;
9320      esac
9321      ;;
9322
9323    sunos4*)
9324      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325      wlarc=
9326      hardcode_direct=yes
9327      hardcode_shlibpath_var=no
9328      ;;
9329
9330    *)
9331      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9332	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9333	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9334      else
9335	ld_shlibs=no
9336      fi
9337      ;;
9338    esac
9339
9340    if test no = "$ld_shlibs"; then
9341      runpath_var=
9342      hardcode_libdir_flag_spec=
9343      export_dynamic_flag_spec=
9344      whole_archive_flag_spec=
9345    fi
9346  else
9347    # PORTME fill in a description of your system's linker (not GNU ld)
9348    case $host_os in
9349    aix3*)
9350      allow_undefined_flag=unsupported
9351      always_export_symbols=yes
9352      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'
9353      # Note: this linker hardcodes the directories in LIBPATH if there
9354      # are no directories specified by -L.
9355      hardcode_minus_L=yes
9356      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9357	# Neither direct hardcoding nor static linking is supported with a
9358	# broken collect2.
9359	hardcode_direct=unsupported
9360      fi
9361      ;;
9362
9363    aix[4-9]*)
9364      if test ia64 = "$host_cpu"; then
9365	# On IA64, the linker does run time linking by default, so we don't
9366	# have to do anything special.
9367	aix_use_runtimelinking=no
9368	exp_sym_flag='-Bexport'
9369	no_entry_flag=
9370      else
9371	# If we're using GNU nm, then we don't want the "-C" option.
9372	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9373	# Without the "-l" option, or with the "-B" option, AIX nm treats
9374	# weak defined symbols like other global defined symbols, whereas
9375	# GNU nm marks them as "W".
9376	# While the 'weak' keyword is ignored in the Export File, we need
9377	# it in the Import File for the 'aix-soname' feature, so we have
9378	# to replace the "-B" option with "-P" for AIX nm.
9379	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9380	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9381	else
9382	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9383	fi
9384	aix_use_runtimelinking=no
9385
9386	# Test if we are trying to use run time linking or normal
9387	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9388	# have runtime linking enabled, and use it for executables.
9389	# For shared libraries, we enable/disable runtime linking
9390	# depending on the kind of the shared library created -
9391	# when "with_aix_soname,aix_use_runtimelinking" is:
9392	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9393	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9394	#            lib.a           static archive
9395	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9396	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9397	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9398	#            lib.a(lib.so.V) shared, rtl:no
9399	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9400	#            lib.a           static archive
9401	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9402	  for ld_flag in $LDFLAGS; do
9403	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9404	    aix_use_runtimelinking=yes
9405	    break
9406	  fi
9407	  done
9408	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9409	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9410	    # so we don't have lib.a shared libs to link our executables.
9411	    # We have to force runtime linking in this case.
9412	    aix_use_runtimelinking=yes
9413	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9414	  fi
9415	  ;;
9416	esac
9417
9418	exp_sym_flag='-bexport'
9419	no_entry_flag='-bnoentry'
9420      fi
9421
9422      # When large executables or shared objects are built, AIX ld can
9423      # have problems creating the table of contents.  If linking a library
9424      # or program results in "error TOC overflow" add -mminimal-toc to
9425      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9426      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9427
9428      archive_cmds=''
9429      hardcode_direct=yes
9430      hardcode_direct_absolute=yes
9431      hardcode_libdir_separator=':'
9432      link_all_deplibs=yes
9433      file_list_spec='$wl-f,'
9434      case $with_aix_soname,$aix_use_runtimelinking in
9435      aix,*) ;; # traditional, no import file
9436      svr4,* | *,yes) # use import file
9437	# The Import File defines what to hardcode.
9438	hardcode_direct=no
9439	hardcode_direct_absolute=no
9440	;;
9441      esac
9442
9443      if test yes = "$GCC"; then
9444	case $host_os in aix4.[012]|aix4.[012].*)
9445	# We only want to do this on AIX 4.2 and lower, the check
9446	# below for broken collect2 doesn't work under 4.3+
9447	  collect2name=`$CC -print-prog-name=collect2`
9448	  if test -f "$collect2name" &&
9449	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9450	  then
9451	  # We have reworked collect2
9452	  :
9453	  else
9454	  # We have old collect2
9455	  hardcode_direct=unsupported
9456	  # It fails to find uninstalled libraries when the uninstalled
9457	  # path is not listed in the libpath.  Setting hardcode_minus_L
9458	  # to unsupported forces relinking
9459	  hardcode_minus_L=yes
9460	  hardcode_libdir_flag_spec='-L$libdir'
9461	  hardcode_libdir_separator=
9462	  fi
9463	  ;;
9464	esac
9465	shared_flag='-shared'
9466	if test yes = "$aix_use_runtimelinking"; then
9467	  shared_flag="$shared_flag "'$wl-G'
9468	fi
9469	# Need to ensure runtime linking is disabled for the traditional
9470	# shared library, or the linker may eventually find shared libraries
9471	# /with/ Import File - we do not want to mix them.
9472	shared_flag_aix='-shared'
9473	shared_flag_svr4='-shared $wl-G'
9474      else
9475	# not using gcc
9476	if test ia64 = "$host_cpu"; then
9477	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9478	# chokes on -Wl,-G. The following line is correct:
9479	  shared_flag='-G'
9480	else
9481	  if test yes = "$aix_use_runtimelinking"; then
9482	    shared_flag='$wl-G'
9483	  else
9484	    shared_flag='$wl-bM:SRE'
9485	  fi
9486	  shared_flag_aix='$wl-bM:SRE'
9487	  shared_flag_svr4='$wl-G'
9488	fi
9489      fi
9490
9491      export_dynamic_flag_spec='$wl-bexpall'
9492      # It seems that -bexpall does not export symbols beginning with
9493      # underscore (_), so it is better to generate a list of symbols to export.
9494      always_export_symbols=yes
9495      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9496	# Warning - without using the other runtime loading flags (-brtl),
9497	# -berok will link without error, but may produce a broken library.
9498	allow_undefined_flag='-berok'
9499        # Determine the default libpath from the value encoded in an
9500        # empty executable.
9501        if test set = "${lt_cv_aix_libpath+set}"; then
9502  aix_libpath=$lt_cv_aix_libpath
9503else
9504  if ${lt_cv_aix_libpath_+:} false; then :
9505  $as_echo_n "(cached) " >&6
9506else
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509
9510int
9511main ()
9512{
9513
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519
9520  lt_aix_libpath_sed='
9521      /Import File Strings/,/^$/ {
9522	  /^0/ {
9523	      s/^0  *\([^ ]*\) *$/\1/
9524	      p
9525	  }
9526      }'
9527  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528  # Check for a 64-bit object if we didn't find anything.
9529  if test -z "$lt_cv_aix_libpath_"; then
9530    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531  fi
9532fi
9533rm -f core conftest.err conftest.$ac_objext \
9534    conftest$ac_exeext conftest.$ac_ext
9535  if test -z "$lt_cv_aix_libpath_"; then
9536    lt_cv_aix_libpath_=/usr/lib:/lib
9537  fi
9538
9539fi
9540
9541  aix_libpath=$lt_cv_aix_libpath_
9542fi
9543
9544        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9545        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9546      else
9547	if test ia64 = "$host_cpu"; then
9548	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9549	  allow_undefined_flag="-z nodefs"
9550	  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"
9551	else
9552	 # Determine the default libpath from the value encoded in an
9553	 # empty executable.
9554	 if test set = "${lt_cv_aix_libpath+set}"; then
9555  aix_libpath=$lt_cv_aix_libpath
9556else
9557  if ${lt_cv_aix_libpath_+:} false; then :
9558  $as_echo_n "(cached) " >&6
9559else
9560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h.  */
9562
9563int
9564main ()
9565{
9566
9567  ;
9568  return 0;
9569}
9570_ACEOF
9571if ac_fn_c_try_link "$LINENO"; then :
9572
9573  lt_aix_libpath_sed='
9574      /Import File Strings/,/^$/ {
9575	  /^0/ {
9576	      s/^0  *\([^ ]*\) *$/\1/
9577	      p
9578	  }
9579      }'
9580  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581  # Check for a 64-bit object if we didn't find anything.
9582  if test -z "$lt_cv_aix_libpath_"; then
9583    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584  fi
9585fi
9586rm -f core conftest.err conftest.$ac_objext \
9587    conftest$ac_exeext conftest.$ac_ext
9588  if test -z "$lt_cv_aix_libpath_"; then
9589    lt_cv_aix_libpath_=/usr/lib:/lib
9590  fi
9591
9592fi
9593
9594  aix_libpath=$lt_cv_aix_libpath_
9595fi
9596
9597	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9598	  # Warning - without using the other run time loading flags,
9599	  # -berok will link without error, but may produce a broken library.
9600	  no_undefined_flag=' $wl-bernotok'
9601	  allow_undefined_flag=' $wl-berok'
9602	  if test yes = "$with_gnu_ld"; then
9603	    # We only use this code for GNU lds that support --whole-archive.
9604	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9605	  else
9606	    # Exported symbols can be pulled into shared objects from archives
9607	    whole_archive_flag_spec='$convenience'
9608	  fi
9609	  archive_cmds_need_lc=yes
9610	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9611	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9612	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9613	  if test svr4 != "$with_aix_soname"; then
9614	    # This is similar to how AIX traditionally builds its shared libraries.
9615	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9616	  fi
9617	  if test aix != "$with_aix_soname"; then
9618	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9619	  else
9620	    # used by -dlpreopen to get the symbols
9621	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9622	  fi
9623	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9624	fi
9625      fi
9626      ;;
9627
9628    amigaos*)
9629      case $host_cpu in
9630      powerpc)
9631            # see comment about AmigaOS4 .so support
9632            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9633            archive_expsym_cmds=''
9634        ;;
9635      m68k)
9636            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)'
9637            hardcode_libdir_flag_spec='-L$libdir'
9638            hardcode_minus_L=yes
9639        ;;
9640      esac
9641      ;;
9642
9643    bsdi[45]*)
9644      export_dynamic_flag_spec=-rdynamic
9645      ;;
9646
9647    cygwin* | mingw* | pw32* | cegcc*)
9648      # When not using gcc, we currently assume that we are using
9649      # Microsoft Visual C++.
9650      # hardcode_libdir_flag_spec is actually meaningless, as there is
9651      # no search path for DLLs.
9652      case $cc_basename in
9653      cl*)
9654	# Native MSVC
9655	hardcode_libdir_flag_spec=' '
9656	allow_undefined_flag=unsupported
9657	always_export_symbols=yes
9658	file_list_spec='@'
9659	# Tell ltmain to make .lib files, not .a files.
9660	libext=lib
9661	# Tell ltmain to make .dll files, not .so files.
9662	shrext_cmds=.dll
9663	# FIXME: Setting linknames here is a bad hack.
9664	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9665	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9666            cp "$export_symbols" "$output_objdir/$soname.def";
9667            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9668          else
9669            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9670          fi~
9671          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9672          linknames='
9673	# The linker will not automatically build a static lib if we build a DLL.
9674	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9675	enable_shared_with_static_runtimes=yes
9676	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9677	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9678	# Don't use ranlib
9679	old_postinstall_cmds='chmod 644 $oldlib'
9680	postlink_cmds='lt_outputfile="@OUTPUT@"~
9681          lt_tool_outputfile="@TOOL_OUTPUT@"~
9682          case $lt_outputfile in
9683            *.exe|*.EXE) ;;
9684            *)
9685              lt_outputfile=$lt_outputfile.exe
9686              lt_tool_outputfile=$lt_tool_outputfile.exe
9687              ;;
9688          esac~
9689          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9690            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9691            $RM "$lt_outputfile.manifest";
9692          fi'
9693	;;
9694      *)
9695	# Assume MSVC wrapper
9696	hardcode_libdir_flag_spec=' '
9697	allow_undefined_flag=unsupported
9698	# Tell ltmain to make .lib files, not .a files.
9699	libext=lib
9700	# Tell ltmain to make .dll files, not .so files.
9701	shrext_cmds=.dll
9702	# FIXME: Setting linknames here is a bad hack.
9703	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9704	# The linker will automatically build a .lib file if we build a DLL.
9705	old_archive_from_new_cmds='true'
9706	# FIXME: Should let the user specify the lib program.
9707	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9708	enable_shared_with_static_runtimes=yes
9709	;;
9710      esac
9711      ;;
9712
9713    darwin* | rhapsody*)
9714
9715
9716  archive_cmds_need_lc=no
9717  hardcode_direct=no
9718  hardcode_automatic=yes
9719  hardcode_shlibpath_var=unsupported
9720  if test yes = "$lt_cv_ld_force_load"; then
9721    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\"`'
9722
9723  else
9724    whole_archive_flag_spec=''
9725  fi
9726  link_all_deplibs=yes
9727  allow_undefined_flag=$_lt_dar_allow_undefined
9728  case $cc_basename in
9729     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9730     *) _lt_dar_can_shared=$GCC ;;
9731  esac
9732  if test yes = "$_lt_dar_can_shared"; then
9733    output_verbose_link_cmd=func_echo_all
9734    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9735    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9736    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"
9737    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"
9738
9739  else
9740  ld_shlibs=no
9741  fi
9742
9743      ;;
9744
9745    dgux*)
9746      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747      hardcode_libdir_flag_spec='-L$libdir'
9748      hardcode_shlibpath_var=no
9749      ;;
9750
9751    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9752    # support.  Future versions do this automatically, but an explicit c++rt0.o
9753    # does not break anything, and helps significantly (at the cost of a little
9754    # extra space).
9755    freebsd2.2*)
9756      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9757      hardcode_libdir_flag_spec='-R$libdir'
9758      hardcode_direct=yes
9759      hardcode_shlibpath_var=no
9760      ;;
9761
9762    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9763    freebsd2.*)
9764      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765      hardcode_direct=yes
9766      hardcode_minus_L=yes
9767      hardcode_shlibpath_var=no
9768      ;;
9769
9770    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9771    freebsd* | dragonfly*)
9772      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9773      hardcode_libdir_flag_spec='-R$libdir'
9774      hardcode_direct=yes
9775      hardcode_shlibpath_var=no
9776      ;;
9777
9778    hpux9*)
9779      if test yes = "$GCC"; then
9780	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9781      else
9782	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9783      fi
9784      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9785      hardcode_libdir_separator=:
9786      hardcode_direct=yes
9787
9788      # hardcode_minus_L: Not really in the search PATH,
9789      # but as the default location of the library.
9790      hardcode_minus_L=yes
9791      export_dynamic_flag_spec='$wl-E'
9792      ;;
9793
9794    hpux10*)
9795      if test yes,no = "$GCC,$with_gnu_ld"; then
9796	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797      else
9798	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9799      fi
9800      if test no = "$with_gnu_ld"; then
9801	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9802	hardcode_libdir_separator=:
9803	hardcode_direct=yes
9804	hardcode_direct_absolute=yes
9805	export_dynamic_flag_spec='$wl-E'
9806	# hardcode_minus_L: Not really in the search PATH,
9807	# but as the default location of the library.
9808	hardcode_minus_L=yes
9809      fi
9810      ;;
9811
9812    hpux11*)
9813      if test yes,no = "$GCC,$with_gnu_ld"; then
9814	case $host_cpu in
9815	hppa*64*)
9816	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9817	  ;;
9818	ia64*)
9819	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9820	  ;;
9821	*)
9822	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9823	  ;;
9824	esac
9825      else
9826	case $host_cpu in
9827	hppa*64*)
9828	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9829	  ;;
9830	ia64*)
9831	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9832	  ;;
9833	*)
9834
9835	  # Older versions of the 11.00 compiler do not understand -b yet
9836	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9837	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9838$as_echo_n "checking if $CC understands -b... " >&6; }
9839if ${lt_cv_prog_compiler__b+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  lt_cv_prog_compiler__b=no
9843   save_LDFLAGS=$LDFLAGS
9844   LDFLAGS="$LDFLAGS -b"
9845   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9846   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9847     # The linker can only warn and ignore the option if not recognized
9848     # So say no if there are warnings
9849     if test -s conftest.err; then
9850       # Append any errors to the config.log.
9851       cat conftest.err 1>&5
9852       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9853       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9854       if diff conftest.exp conftest.er2 >/dev/null; then
9855         lt_cv_prog_compiler__b=yes
9856       fi
9857     else
9858       lt_cv_prog_compiler__b=yes
9859     fi
9860   fi
9861   $RM -r conftest*
9862   LDFLAGS=$save_LDFLAGS
9863
9864fi
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9866$as_echo "$lt_cv_prog_compiler__b" >&6; }
9867
9868if test yes = "$lt_cv_prog_compiler__b"; then
9869    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9870else
9871    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872fi
9873
9874	  ;;
9875	esac
9876      fi
9877      if test no = "$with_gnu_ld"; then
9878	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9879	hardcode_libdir_separator=:
9880
9881	case $host_cpu in
9882	hppa*64*|ia64*)
9883	  hardcode_direct=no
9884	  hardcode_shlibpath_var=no
9885	  ;;
9886	*)
9887	  hardcode_direct=yes
9888	  hardcode_direct_absolute=yes
9889	  export_dynamic_flag_spec='$wl-E'
9890
9891	  # hardcode_minus_L: Not really in the search PATH,
9892	  # but as the default location of the library.
9893	  hardcode_minus_L=yes
9894	  ;;
9895	esac
9896      fi
9897      ;;
9898
9899    irix5* | irix6* | nonstopux*)
9900      if test yes = "$GCC"; then
9901	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'
9902	# Try to use the -exported_symbol ld option, if it does not
9903	# work, assume that -exports_file does not work either and
9904	# implicitly export all symbols.
9905	# This should be the same for all languages, so no per-tag cache variable.
9906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9907$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9908if ${lt_cv_irix_exported_symbol+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  save_LDFLAGS=$LDFLAGS
9912	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9913	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int foo (void) { return 0; }
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"; then :
9918  lt_cv_irix_exported_symbol=yes
9919else
9920  lt_cv_irix_exported_symbol=no
9921fi
9922rm -f core conftest.err conftest.$ac_objext \
9923    conftest$ac_exeext conftest.$ac_ext
9924           LDFLAGS=$save_LDFLAGS
9925fi
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9927$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9928	if test yes = "$lt_cv_irix_exported_symbol"; then
9929          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'
9930	fi
9931      else
9932	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'
9933	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'
9934      fi
9935      archive_cmds_need_lc='no'
9936      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9937      hardcode_libdir_separator=:
9938      inherit_rpath=yes
9939      link_all_deplibs=yes
9940      ;;
9941
9942    linux*)
9943      case $cc_basename in
9944      tcc*)
9945	# Fabrice Bellard et al's Tiny C Compiler
9946	ld_shlibs=yes
9947	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9948	;;
9949      esac
9950      ;;
9951
9952    netbsd*)
9953      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9954	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9955      else
9956	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9957      fi
9958      hardcode_libdir_flag_spec='-R$libdir'
9959      hardcode_direct=yes
9960      hardcode_shlibpath_var=no
9961      ;;
9962
9963    newsos6)
9964      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965      hardcode_direct=yes
9966      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9967      hardcode_libdir_separator=:
9968      hardcode_shlibpath_var=no
9969      ;;
9970
9971    *nto* | *qnx*)
9972      ;;
9973
9974    openbsd* | bitrig*)
9975      if test -f /usr/libexec/ld.so; then
9976	hardcode_direct=yes
9977	hardcode_shlibpath_var=no
9978	hardcode_direct_absolute=yes
9979	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9980	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9981	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9982	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9983	  export_dynamic_flag_spec='$wl-E'
9984	else
9985	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9987	fi
9988      else
9989	ld_shlibs=no
9990      fi
9991      ;;
9992
9993    os2*)
9994      hardcode_libdir_flag_spec='-L$libdir'
9995      hardcode_minus_L=yes
9996      allow_undefined_flag=unsupported
9997      shrext_cmds=.dll
9998      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9999	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10000	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10001	$ECHO EXPORTS >> $output_objdir/$libname.def~
10002	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10003	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10004	emximp -o $lib $output_objdir/$libname.def'
10005      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10006	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10007	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10008	$ECHO EXPORTS >> $output_objdir/$libname.def~
10009	prefix_cmds="$SED"~
10010	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10011	  prefix_cmds="$prefix_cmds -e 1d";
10012	fi~
10013	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10014	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10015	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10016	emximp -o $lib $output_objdir/$libname.def'
10017      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10018      enable_shared_with_static_runtimes=yes
10019      ;;
10020
10021    osf3*)
10022      if test yes = "$GCC"; then
10023	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10024	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'
10025      else
10026	allow_undefined_flag=' -expect_unresolved \*'
10027	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'
10028      fi
10029      archive_cmds_need_lc='no'
10030      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10031      hardcode_libdir_separator=:
10032      ;;
10033
10034    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10035      if test yes = "$GCC"; then
10036	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10037	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'
10038	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10039      else
10040	allow_undefined_flag=' -expect_unresolved \*'
10041	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'
10042	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~
10043          $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'
10044
10045	# Both c and cxx compiler support -rpath directly
10046	hardcode_libdir_flag_spec='-rpath $libdir'
10047      fi
10048      archive_cmds_need_lc='no'
10049      hardcode_libdir_separator=:
10050      ;;
10051
10052    solaris*)
10053      no_undefined_flag=' -z defs'
10054      if test yes = "$GCC"; then
10055	wlarc='$wl'
10056	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10057	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058          $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'
10059      else
10060	case `$CC -V 2>&1` in
10061	*"Compilers 5.0"*)
10062	  wlarc=''
10063	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10066	  ;;
10067	*)
10068	  wlarc='$wl'
10069	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10070	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072	  ;;
10073	esac
10074      fi
10075      hardcode_libdir_flag_spec='-R$libdir'
10076      hardcode_shlibpath_var=no
10077      case $host_os in
10078      solaris2.[0-5] | solaris2.[0-5].*) ;;
10079      *)
10080	# The compiler driver will combine and reorder linker options,
10081	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10082	# but is careful enough not to reorder.
10083	# Supported since Solaris 2.6 (maybe 2.5.1?)
10084	if test yes = "$GCC"; then
10085	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10086	else
10087	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10088	fi
10089	;;
10090      esac
10091      link_all_deplibs=yes
10092      ;;
10093
10094    sunos4*)
10095      if test sequent = "$host_vendor"; then
10096	# Use $CC to link under sequent, because it throws in some extra .o
10097	# files that make .init and .fini sections work.
10098	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099      else
10100	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101      fi
10102      hardcode_libdir_flag_spec='-L$libdir'
10103      hardcode_direct=yes
10104      hardcode_minus_L=yes
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    sysv4)
10109      case $host_vendor in
10110	sni)
10111	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112	  hardcode_direct=yes # is this really true???
10113	;;
10114	siemens)
10115	  ## LD is ld it makes a PLAMLIB
10116	  ## CC just makes a GrossModule.
10117	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10118	  reload_cmds='$CC -r -o $output$reload_objs'
10119	  hardcode_direct=no
10120        ;;
10121	motorola)
10122	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124	;;
10125      esac
10126      runpath_var='LD_RUN_PATH'
10127      hardcode_shlibpath_var=no
10128      ;;
10129
10130    sysv4.3*)
10131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132      hardcode_shlibpath_var=no
10133      export_dynamic_flag_spec='-Bexport'
10134      ;;
10135
10136    sysv4*MP*)
10137      if test -d /usr/nec; then
10138	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139	hardcode_shlibpath_var=no
10140	runpath_var=LD_RUN_PATH
10141	hardcode_runpath_var=yes
10142	ld_shlibs=yes
10143      fi
10144      ;;
10145
10146    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10147      no_undefined_flag='$wl-z,text'
10148      archive_cmds_need_lc=no
10149      hardcode_shlibpath_var=no
10150      runpath_var='LD_RUN_PATH'
10151
10152      if test yes = "$GCC"; then
10153	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155      else
10156	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158      fi
10159      ;;
10160
10161    sysv5* | sco3.2v5* | sco5v6*)
10162      # Note: We CANNOT use -z defs as we might desire, because we do not
10163      # link with -lc, and that would cause any symbols used from libc to
10164      # always be unresolved, which means just about no library would
10165      # ever link correctly.  If we're not using GNU ld we use -z text
10166      # though, which does catch some bad symbols but isn't as heavy-handed
10167      # as -z defs.
10168      no_undefined_flag='$wl-z,text'
10169      allow_undefined_flag='$wl-z,nodefs'
10170      archive_cmds_need_lc=no
10171      hardcode_shlibpath_var=no
10172      hardcode_libdir_flag_spec='$wl-R,$libdir'
10173      hardcode_libdir_separator=':'
10174      link_all_deplibs=yes
10175      export_dynamic_flag_spec='$wl-Bexport'
10176      runpath_var='LD_RUN_PATH'
10177
10178      if test yes = "$GCC"; then
10179	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181      else
10182	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184      fi
10185      ;;
10186
10187    uts4*)
10188      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189      hardcode_libdir_flag_spec='-L$libdir'
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    *)
10194      ld_shlibs=no
10195      ;;
10196    esac
10197
10198    if test sni = "$host_vendor"; then
10199      case $host in
10200      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201	export_dynamic_flag_spec='$wl-Blargedynsym'
10202	;;
10203      esac
10204    fi
10205  fi
10206
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10208$as_echo "$ld_shlibs" >&6; }
10209test no = "$ld_shlibs" && can_build_shared=no
10210
10211with_gnu_ld=$with_gnu_ld
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227#
10228# Do we need to explicitly link libc?
10229#
10230case "x$archive_cmds_need_lc" in
10231x|xyes)
10232  # Assume -lc should be added
10233  archive_cmds_need_lc=yes
10234
10235  if test yes,yes = "$GCC,$enable_shared"; then
10236    case $archive_cmds in
10237    *'~'*)
10238      # FIXME: we may have to deal with multi-command sequences.
10239      ;;
10240    '$CC '*)
10241      # Test whether the compiler implicitly links with -lc since on some
10242      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10243      # to ld, don't add -lc before -lgcc.
10244      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10246if ${lt_cv_archive_cmds_need_lc+:} false; then :
10247  $as_echo_n "(cached) " >&6
10248else
10249  $RM conftest*
10250	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251
10252	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10253  (eval $ac_compile) 2>&5
10254  ac_status=$?
10255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256  test $ac_status = 0; } 2>conftest.err; then
10257	  soname=conftest
10258	  lib=conftest
10259	  libobjs=conftest.$ac_objext
10260	  deplibs=
10261	  wl=$lt_prog_compiler_wl
10262	  pic_flag=$lt_prog_compiler_pic
10263	  compiler_flags=-v
10264	  linker_flags=-v
10265	  verstring=
10266	  output_objdir=.
10267	  libname=conftest
10268	  lt_save_allow_undefined_flag=$allow_undefined_flag
10269	  allow_undefined_flag=
10270	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10271  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10272  ac_status=$?
10273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274  test $ac_status = 0; }
10275	  then
10276	    lt_cv_archive_cmds_need_lc=no
10277	  else
10278	    lt_cv_archive_cmds_need_lc=yes
10279	  fi
10280	  allow_undefined_flag=$lt_save_allow_undefined_flag
10281	else
10282	  cat conftest.err 1>&5
10283	fi
10284	$RM conftest*
10285
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10288$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10289      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290      ;;
10291    esac
10292  fi
10293  ;;
10294esac
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10448$as_echo_n "checking dynamic linker characteristics... " >&6; }
10449
10450if test yes = "$GCC"; then
10451  case $host_os in
10452    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10453    *) lt_awk_arg='/^libraries:/' ;;
10454  esac
10455  case $host_os in
10456    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10457    *) lt_sed_strip_eq='s|=/|/|g' ;;
10458  esac
10459  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10460  case $lt_search_path_spec in
10461  *\;*)
10462    # if the path contains ";" then we assume it to be the separator
10463    # otherwise default to the standard path separator (i.e. ":") - it is
10464    # assumed that no part of a normal pathname contains ";" but that should
10465    # okay in the real world where ";" in dirpaths is itself problematic.
10466    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10467    ;;
10468  *)
10469    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10470    ;;
10471  esac
10472  # Ok, now we have the path, separated by spaces, we can step through it
10473  # and add multilib dir if necessary...
10474  lt_tmp_lt_search_path_spec=
10475  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10476  # ...but if some path component already ends with the multilib dir we assume
10477  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10478  case "$lt_multi_os_dir; $lt_search_path_spec " in
10479  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10480    lt_multi_os_dir=
10481    ;;
10482  esac
10483  for lt_sys_path in $lt_search_path_spec; do
10484    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10485      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10486    elif test -n "$lt_multi_os_dir"; then
10487      test -d "$lt_sys_path" && \
10488	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10489    fi
10490  done
10491  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10492BEGIN {RS = " "; FS = "/|\n";} {
10493  lt_foo = "";
10494  lt_count = 0;
10495  for (lt_i = NF; lt_i > 0; lt_i--) {
10496    if ($lt_i != "" && $lt_i != ".") {
10497      if ($lt_i == "..") {
10498        lt_count++;
10499      } else {
10500        if (lt_count == 0) {
10501          lt_foo = "/" $lt_i lt_foo;
10502        } else {
10503          lt_count--;
10504        }
10505      }
10506    }
10507  }
10508  if (lt_foo != "") { lt_freq[lt_foo]++; }
10509  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10510}'`
10511  # AWK program above erroneously prepends '/' to C:/dos/paths
10512  # for these hosts.
10513  case $host_os in
10514    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10515      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10516  esac
10517  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10518else
10519  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10520fi
10521library_names_spec=
10522libname_spec='lib$name'
10523soname_spec=
10524shrext_cmds=.so
10525postinstall_cmds=
10526postuninstall_cmds=
10527finish_cmds=
10528finish_eval=
10529shlibpath_var=
10530shlibpath_overrides_runpath=unknown
10531version_type=none
10532dynamic_linker="$host_os ld.so"
10533sys_lib_dlsearch_path_spec="/lib /usr/lib"
10534need_lib_prefix=unknown
10535hardcode_into_libs=no
10536
10537# when you set need_version to no, make sure it does not cause -set_version
10538# flags to be left without arguments
10539need_version=unknown
10540
10541
10542
10543case $host_os in
10544aix3*)
10545  version_type=linux # correct to gnu/linux during the next big refactor
10546  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10547  shlibpath_var=LIBPATH
10548
10549  # AIX 3 has no versioning support, so we append a major version to the name.
10550  soname_spec='$libname$release$shared_ext$major'
10551  ;;
10552
10553aix[4-9]*)
10554  version_type=linux # correct to gnu/linux during the next big refactor
10555  need_lib_prefix=no
10556  need_version=no
10557  hardcode_into_libs=yes
10558  if test ia64 = "$host_cpu"; then
10559    # AIX 5 supports IA64
10560    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10561    shlibpath_var=LD_LIBRARY_PATH
10562  else
10563    # With GCC up to 2.95.x, collect2 would create an import file
10564    # for dependence libraries.  The import file would start with
10565    # the line '#! .'.  This would cause the generated library to
10566    # depend on '.', always an invalid library.  This was fixed in
10567    # development snapshots of GCC prior to 3.0.
10568    case $host_os in
10569      aix4 | aix4.[01] | aix4.[01].*)
10570      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10571	   echo ' yes '
10572	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10573	:
10574      else
10575	can_build_shared=no
10576      fi
10577      ;;
10578    esac
10579    # Using Import Files as archive members, it is possible to support
10580    # filename-based versioning of shared library archives on AIX. While
10581    # this would work for both with and without runtime linking, it will
10582    # prevent static linking of such archives. So we do filename-based
10583    # shared library versioning with .so extension only, which is used
10584    # when both runtime linking and shared linking is enabled.
10585    # Unfortunately, runtime linking may impact performance, so we do
10586    # not want this to be the default eventually. Also, we use the
10587    # versioned .so libs for executables only if there is the -brtl
10588    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10589    # To allow for filename-based versioning support, we need to create
10590    # libNAME.so.V as an archive file, containing:
10591    # *) an Import File, referring to the versioned filename of the
10592    #    archive as well as the shared archive member, telling the
10593    #    bitwidth (32 or 64) of that shared object, and providing the
10594    #    list of exported symbols of that shared object, eventually
10595    #    decorated with the 'weak' keyword
10596    # *) the shared object with the F_LOADONLY flag set, to really avoid
10597    #    it being seen by the linker.
10598    # At run time we better use the real file rather than another symlink,
10599    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10600
10601    case $with_aix_soname,$aix_use_runtimelinking in
10602    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10603    # soname into executable. Probably we can add versioning support to
10604    # collect2, so additional links can be useful in future.
10605    aix,yes) # traditional libtool
10606      dynamic_linker='AIX unversionable lib.so'
10607      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10608      # instead of lib<name>.a to let people know that these are not
10609      # typical AIX shared libraries.
10610      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10611      ;;
10612    aix,no) # traditional AIX only
10613      dynamic_linker='AIX lib.a(lib.so.V)'
10614      # We preserve .a as extension for shared libraries through AIX4.2
10615      # and later when we are not doing run time linking.
10616      library_names_spec='$libname$release.a $libname.a'
10617      soname_spec='$libname$release$shared_ext$major'
10618      ;;
10619    svr4,*) # full svr4 only
10620      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10621      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10622      # We do not specify a path in Import Files, so LIBPATH fires.
10623      shlibpath_overrides_runpath=yes
10624      ;;
10625    *,yes) # both, prefer svr4
10626      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10627      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10628      # unpreferred sharedlib libNAME.a needs extra handling
10629      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10630      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10631      # We do not specify a path in Import Files, so LIBPATH fires.
10632      shlibpath_overrides_runpath=yes
10633      ;;
10634    *,no) # both, prefer aix
10635      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10636      library_names_spec='$libname$release.a $libname.a'
10637      soname_spec='$libname$release$shared_ext$major'
10638      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10639      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10640      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10641      ;;
10642    esac
10643    shlibpath_var=LIBPATH
10644  fi
10645  ;;
10646
10647amigaos*)
10648  case $host_cpu in
10649  powerpc)
10650    # Since July 2007 AmigaOS4 officially supports .so libraries.
10651    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10652    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653    ;;
10654  m68k)
10655    library_names_spec='$libname.ixlibrary $libname.a'
10656    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10657    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10658    ;;
10659  esac
10660  ;;
10661
10662beos*)
10663  library_names_spec='$libname$shared_ext'
10664  dynamic_linker="$host_os ld.so"
10665  shlibpath_var=LIBRARY_PATH
10666  ;;
10667
10668bsdi[45]*)
10669  version_type=linux # correct to gnu/linux during the next big refactor
10670  need_version=no
10671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10672  soname_spec='$libname$release$shared_ext$major'
10673  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10676  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10677  # the default ld.so.conf also contains /usr/contrib/lib and
10678  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10679  # libtool to hard-code these into programs
10680  ;;
10681
10682cygwin* | mingw* | pw32* | cegcc*)
10683  version_type=windows
10684  shrext_cmds=.dll
10685  need_version=no
10686  need_lib_prefix=no
10687
10688  case $GCC,$cc_basename in
10689  yes,*)
10690    # gcc
10691    library_names_spec='$libname.dll.a'
10692    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10693    postinstall_cmds='base_file=`basename \$file`~
10694      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10695      dldir=$destdir/`dirname \$dlpath`~
10696      test -d \$dldir || mkdir -p \$dldir~
10697      $install_prog $dir/$dlname \$dldir/$dlname~
10698      chmod a+x \$dldir/$dlname~
10699      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10700        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10701      fi'
10702    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10703      dlpath=$dir/\$dldll~
10704       $RM \$dlpath'
10705    shlibpath_overrides_runpath=yes
10706
10707    case $host_os in
10708    cygwin*)
10709      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10710      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711
10712      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10713      ;;
10714    mingw* | cegcc*)
10715      # MinGW DLLs use traditional 'lib' prefix
10716      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10717      ;;
10718    pw32*)
10719      # pw32 DLLs use 'pw' prefix rather than 'lib'
10720      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10721      ;;
10722    esac
10723    dynamic_linker='Win32 ld.exe'
10724    ;;
10725
10726  *,cl*)
10727    # Native MSVC
10728    libname_spec='$name'
10729    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10730    library_names_spec='$libname.dll.lib'
10731
10732    case $build_os in
10733    mingw*)
10734      sys_lib_search_path_spec=
10735      lt_save_ifs=$IFS
10736      IFS=';'
10737      for lt_path in $LIB
10738      do
10739        IFS=$lt_save_ifs
10740        # Let DOS variable expansion print the short 8.3 style file name.
10741        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10742        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10743      done
10744      IFS=$lt_save_ifs
10745      # Convert to MSYS style.
10746      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10747      ;;
10748    cygwin*)
10749      # Convert to unix form, then to dos form, then back to unix form
10750      # but this time dos style (no spaces!) so that the unix form looks
10751      # like /cygdrive/c/PROGRA~1:/cygdr...
10752      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10753      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10754      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755      ;;
10756    *)
10757      sys_lib_search_path_spec=$LIB
10758      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10759        # It is most probably a Windows format PATH.
10760        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10761      else
10762        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10763      fi
10764      # FIXME: find the short name or the path components, as spaces are
10765      # common. (e.g. "Program Files" -> "PROGRA~1")
10766      ;;
10767    esac
10768
10769    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10770    postinstall_cmds='base_file=`basename \$file`~
10771      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10772      dldir=$destdir/`dirname \$dlpath`~
10773      test -d \$dldir || mkdir -p \$dldir~
10774      $install_prog $dir/$dlname \$dldir/$dlname'
10775    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776      dlpath=$dir/\$dldll~
10777       $RM \$dlpath'
10778    shlibpath_overrides_runpath=yes
10779    dynamic_linker='Win32 link.exe'
10780    ;;
10781
10782  *)
10783    # Assume MSVC wrapper
10784    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10785    dynamic_linker='Win32 ld.exe'
10786    ;;
10787  esac
10788  # FIXME: first we should search . and the directory the executable is in
10789  shlibpath_var=PATH
10790  ;;
10791
10792darwin* | rhapsody*)
10793  dynamic_linker="$host_os dyld"
10794  version_type=darwin
10795  need_lib_prefix=no
10796  need_version=no
10797  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10798  soname_spec='$libname$release$major$shared_ext'
10799  shlibpath_overrides_runpath=yes
10800  shlibpath_var=DYLD_LIBRARY_PATH
10801  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10802
10803  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10804  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10805  ;;
10806
10807dgux*)
10808  version_type=linux # correct to gnu/linux during the next big refactor
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812  soname_spec='$libname$release$shared_ext$major'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  ;;
10815
10816freebsd* | dragonfly*)
10817  # DragonFly does not have aout.  When/if they implement a new
10818  # versioning mechanism, adjust this.
10819  if test -x /usr/bin/objformat; then
10820    objformat=`/usr/bin/objformat`
10821  else
10822    case $host_os in
10823    freebsd[23].*) objformat=aout ;;
10824    *) objformat=elf ;;
10825    esac
10826  fi
10827  version_type=freebsd-$objformat
10828  case $version_type in
10829    freebsd-elf*)
10830      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10831      soname_spec='$libname$release$shared_ext$major'
10832      need_version=no
10833      need_lib_prefix=no
10834      ;;
10835    freebsd-*)
10836      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10837      need_version=yes
10838      ;;
10839  esac
10840  shlibpath_var=LD_LIBRARY_PATH
10841  case $host_os in
10842  freebsd2.*)
10843    shlibpath_overrides_runpath=yes
10844    ;;
10845  freebsd3.[01]* | freebsdelf3.[01]*)
10846    shlibpath_overrides_runpath=yes
10847    hardcode_into_libs=yes
10848    ;;
10849  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10850  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10851    shlibpath_overrides_runpath=no
10852    hardcode_into_libs=yes
10853    ;;
10854  *) # from 4.6 on, and DragonFly
10855    shlibpath_overrides_runpath=yes
10856    hardcode_into_libs=yes
10857    ;;
10858  esac
10859  ;;
10860
10861haiku*)
10862  version_type=linux # correct to gnu/linux during the next big refactor
10863  need_lib_prefix=no
10864  need_version=no
10865  dynamic_linker="$host_os runtime_loader"
10866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867  soname_spec='$libname$release$shared_ext$major'
10868  shlibpath_var=LIBRARY_PATH
10869  shlibpath_overrides_runpath=no
10870  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10871  hardcode_into_libs=yes
10872  ;;
10873
10874hpux9* | hpux10* | hpux11*)
10875  # Give a soname corresponding to the major version so that dld.sl refuses to
10876  # link against other versions.
10877  version_type=sunos
10878  need_lib_prefix=no
10879  need_version=no
10880  case $host_cpu in
10881  ia64*)
10882    shrext_cmds='.so'
10883    hardcode_into_libs=yes
10884    dynamic_linker="$host_os dld.so"
10885    shlibpath_var=LD_LIBRARY_PATH
10886    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888    soname_spec='$libname$release$shared_ext$major'
10889    if test 32 = "$HPUX_IA64_MODE"; then
10890      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10891      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10892    else
10893      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10894      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10895    fi
10896    ;;
10897  hppa*64*)
10898    shrext_cmds='.sl'
10899    hardcode_into_libs=yes
10900    dynamic_linker="$host_os dld.sl"
10901    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904    soname_spec='$libname$release$shared_ext$major'
10905    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10907    ;;
10908  *)
10909    shrext_cmds='.sl'
10910    dynamic_linker="$host_os dld.sl"
10911    shlibpath_var=SHLIB_PATH
10912    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914    soname_spec='$libname$release$shared_ext$major'
10915    ;;
10916  esac
10917  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918  postinstall_cmds='chmod 555 $lib'
10919  # or fails outright, so override atomically:
10920  install_override_mode=555
10921  ;;
10922
10923interix[3-9]*)
10924  version_type=linux # correct to gnu/linux during the next big refactor
10925  need_lib_prefix=no
10926  need_version=no
10927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928  soname_spec='$libname$release$shared_ext$major'
10929  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930  shlibpath_var=LD_LIBRARY_PATH
10931  shlibpath_overrides_runpath=no
10932  hardcode_into_libs=yes
10933  ;;
10934
10935irix5* | irix6* | nonstopux*)
10936  case $host_os in
10937    nonstopux*) version_type=nonstopux ;;
10938    *)
10939	if test yes = "$lt_cv_prog_gnu_ld"; then
10940		version_type=linux # correct to gnu/linux during the next big refactor
10941	else
10942		version_type=irix
10943	fi ;;
10944  esac
10945  need_lib_prefix=no
10946  need_version=no
10947  soname_spec='$libname$release$shared_ext$major'
10948  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10949  case $host_os in
10950  irix5* | nonstopux*)
10951    libsuff= shlibsuff=
10952    ;;
10953  *)
10954    case $LD in # libtool.m4 will add one of these switches to LD
10955    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956      libsuff= shlibsuff= libmagic=32-bit;;
10957    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958      libsuff=32 shlibsuff=N32 libmagic=N32;;
10959    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961    *) libsuff= shlibsuff= libmagic=never-match;;
10962    esac
10963    ;;
10964  esac
10965  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966  shlibpath_overrides_runpath=no
10967  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10968  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10969  hardcode_into_libs=yes
10970  ;;
10971
10972# No shared lib support for Linux oldld, aout, or coff.
10973linux*oldld* | linux*aout* | linux*coff*)
10974  dynamic_linker=no
10975  ;;
10976
10977linux*android*)
10978  version_type=none # Android doesn't support versioned libraries.
10979  need_lib_prefix=no
10980  need_version=no
10981  library_names_spec='$libname$release$shared_ext'
10982  soname_spec='$libname$release$shared_ext'
10983  finish_cmds=
10984  shlibpath_var=LD_LIBRARY_PATH
10985  shlibpath_overrides_runpath=yes
10986
10987  # This implies no fast_install, which is unacceptable.
10988  # Some rework will be needed to allow for fast_install
10989  # before this can be enabled.
10990  hardcode_into_libs=yes
10991
10992  dynamic_linker='Android linker'
10993  # Don't embed -rpath directories since the linker doesn't support them.
10994  hardcode_libdir_flag_spec='-L$libdir'
10995  ;;
10996
10997# This must be glibc/ELF.
10998linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10999  version_type=linux # correct to gnu/linux during the next big refactor
11000  need_lib_prefix=no
11001  need_version=no
11002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11003  soname_spec='$libname$release$shared_ext$major'
11004  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11005  shlibpath_var=LD_LIBRARY_PATH
11006  shlibpath_overrides_runpath=no
11007
11008  # Some binutils ld are patched to set DT_RUNPATH
11009  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  lt_cv_shlibpath_overrides_runpath=no
11013    save_LDFLAGS=$LDFLAGS
11014    save_libdir=$libdir
11015    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11016	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018/* end confdefs.h.  */
11019
11020int
11021main ()
11022{
11023
11024  ;
11025  return 0;
11026}
11027_ACEOF
11028if ac_fn_c_try_link "$LINENO"; then :
11029  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11030  lt_cv_shlibpath_overrides_runpath=yes
11031fi
11032fi
11033rm -f core conftest.err conftest.$ac_objext \
11034    conftest$ac_exeext conftest.$ac_ext
11035    LDFLAGS=$save_LDFLAGS
11036    libdir=$save_libdir
11037
11038fi
11039
11040  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11041
11042  # This implies no fast_install, which is unacceptable.
11043  # Some rework will be needed to allow for fast_install
11044  # before this can be enabled.
11045  hardcode_into_libs=yes
11046
11047  # Add ABI-specific directories to the system library path.
11048  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11049
11050  # Ideally, we could use ldconfig to report *all* directores which are
11051  # searched for libraries, however this is still not possible.  Aside from not
11052  # being certain /sbin/ldconfig is available, command
11053  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11054  # even though it is searched at run-time.  Try to do the best guess by
11055  # appending ld.so.conf contents (and includes) to the search path.
11056  if test -f /etc/ld.so.conf; then
11057    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' ' '`
11058    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11059  fi
11060
11061  # We used to test for /lib/ld.so.1 and disable shared libraries on
11062  # powerpc, because MkLinux only supported shared libraries with the
11063  # GNU dynamic linker.  Since this was broken with cross compilers,
11064  # most powerpc-linux boxes support dynamic linking these days and
11065  # people can always --disable-shared, the test was removed, and we
11066  # assume the GNU/Linux dynamic linker is in use.
11067  dynamic_linker='GNU/Linux ld.so'
11068  ;;
11069
11070netbsd*)
11071  version_type=sunos
11072  need_lib_prefix=no
11073  need_version=no
11074  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11075    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11076    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11077    dynamic_linker='NetBSD (a.out) ld.so'
11078  else
11079    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080    soname_spec='$libname$release$shared_ext$major'
11081    dynamic_linker='NetBSD ld.elf_so'
11082  fi
11083  shlibpath_var=LD_LIBRARY_PATH
11084  shlibpath_overrides_runpath=yes
11085  hardcode_into_libs=yes
11086  ;;
11087
11088newsos6)
11089  version_type=linux # correct to gnu/linux during the next big refactor
11090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091  shlibpath_var=LD_LIBRARY_PATH
11092  shlibpath_overrides_runpath=yes
11093  ;;
11094
11095*nto* | *qnx*)
11096  version_type=qnx
11097  need_lib_prefix=no
11098  need_version=no
11099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100  soname_spec='$libname$release$shared_ext$major'
11101  shlibpath_var=LD_LIBRARY_PATH
11102  shlibpath_overrides_runpath=no
11103  hardcode_into_libs=yes
11104  dynamic_linker='ldqnx.so'
11105  ;;
11106
11107openbsd* | bitrig*)
11108  version_type=sunos
11109  sys_lib_dlsearch_path_spec=/usr/lib
11110  need_lib_prefix=no
11111  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11112    need_version=no
11113  else
11114    need_version=yes
11115  fi
11116  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118  shlibpath_var=LD_LIBRARY_PATH
11119  shlibpath_overrides_runpath=yes
11120  ;;
11121
11122os2*)
11123  libname_spec='$name'
11124  version_type=windows
11125  shrext_cmds=.dll
11126  need_version=no
11127  need_lib_prefix=no
11128  # OS/2 can only load a DLL with a base name of 8 characters or less.
11129  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11130    v=$($ECHO $release$versuffix | tr -d .-);
11131    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11132    $ECHO $n$v`$shared_ext'
11133  library_names_spec='${libname}_dll.$libext'
11134  dynamic_linker='OS/2 ld.exe'
11135  shlibpath_var=BEGINLIBPATH
11136  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11138  postinstall_cmds='base_file=`basename \$file`~
11139    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11140    dldir=$destdir/`dirname \$dlpath`~
11141    test -d \$dldir || mkdir -p \$dldir~
11142    $install_prog $dir/$dlname \$dldir/$dlname~
11143    chmod a+x \$dldir/$dlname~
11144    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11145      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11146    fi'
11147  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11148    dlpath=$dir/\$dldll~
11149    $RM \$dlpath'
11150  ;;
11151
11152osf3* | osf4* | osf5*)
11153  version_type=osf
11154  need_lib_prefix=no
11155  need_version=no
11156  soname_spec='$libname$release$shared_ext$major'
11157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11160  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11161  ;;
11162
11163rdos*)
11164  dynamic_linker=no
11165  ;;
11166
11167solaris*)
11168  version_type=linux # correct to gnu/linux during the next big refactor
11169  need_lib_prefix=no
11170  need_version=no
11171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172  soname_spec='$libname$release$shared_ext$major'
11173  shlibpath_var=LD_LIBRARY_PATH
11174  shlibpath_overrides_runpath=yes
11175  hardcode_into_libs=yes
11176  # ldd complains unless libraries are executable
11177  postinstall_cmds='chmod +x $lib'
11178  ;;
11179
11180sunos4*)
11181  version_type=sunos
11182  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11183  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11184  shlibpath_var=LD_LIBRARY_PATH
11185  shlibpath_overrides_runpath=yes
11186  if test yes = "$with_gnu_ld"; then
11187    need_lib_prefix=no
11188  fi
11189  need_version=yes
11190  ;;
11191
11192sysv4 | sysv4.3*)
11193  version_type=linux # correct to gnu/linux during the next big refactor
11194  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195  soname_spec='$libname$release$shared_ext$major'
11196  shlibpath_var=LD_LIBRARY_PATH
11197  case $host_vendor in
11198    sni)
11199      shlibpath_overrides_runpath=no
11200      need_lib_prefix=no
11201      runpath_var=LD_RUN_PATH
11202      ;;
11203    siemens)
11204      need_lib_prefix=no
11205      ;;
11206    motorola)
11207      need_lib_prefix=no
11208      need_version=no
11209      shlibpath_overrides_runpath=no
11210      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11211      ;;
11212  esac
11213  ;;
11214
11215sysv4*MP*)
11216  if test -d /usr/nec; then
11217    version_type=linux # correct to gnu/linux during the next big refactor
11218    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11219    soname_spec='$libname$shared_ext.$major'
11220    shlibpath_var=LD_LIBRARY_PATH
11221  fi
11222  ;;
11223
11224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11225  version_type=sco
11226  need_lib_prefix=no
11227  need_version=no
11228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11229  soname_spec='$libname$release$shared_ext$major'
11230  shlibpath_var=LD_LIBRARY_PATH
11231  shlibpath_overrides_runpath=yes
11232  hardcode_into_libs=yes
11233  if test yes = "$with_gnu_ld"; then
11234    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11235  else
11236    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11237    case $host_os in
11238      sco3.2v5*)
11239        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240	;;
11241    esac
11242  fi
11243  sys_lib_dlsearch_path_spec='/usr/lib'
11244  ;;
11245
11246tpf*)
11247  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  need_lib_prefix=no
11250  need_version=no
11251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252  shlibpath_var=LD_LIBRARY_PATH
11253  shlibpath_overrides_runpath=no
11254  hardcode_into_libs=yes
11255  ;;
11256
11257uts4*)
11258  version_type=linux # correct to gnu/linux during the next big refactor
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  ;;
11263
11264*)
11265  dynamic_linker=no
11266  ;;
11267esac
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11269$as_echo "$dynamic_linker" >&6; }
11270test no = "$dynamic_linker" && can_build_shared=no
11271
11272variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11273if test yes = "$GCC"; then
11274  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11275fi
11276
11277if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11278  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11279fi
11280
11281if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11282  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11283fi
11284
11285# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11286configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11287
11288# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11289func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11290
11291# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11292configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392hardcode_action=
11393if test -n "$hardcode_libdir_flag_spec" ||
11394   test -n "$runpath_var" ||
11395   test yes = "$hardcode_automatic"; then
11396
11397  # We can hardcode non-existent directories.
11398  if test no != "$hardcode_direct" &&
11399     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400     # have to relink, otherwise we might link with an installed library
11401     # when we should be linking with a yet-to-be-installed one
11402     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11403     test no != "$hardcode_minus_L"; then
11404    # Linking always hardcodes the temporary library directory.
11405    hardcode_action=relink
11406  else
11407    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408    hardcode_action=immediate
11409  fi
11410else
11411  # We cannot hardcode anything, or else we can only hardcode existing
11412  # directories.
11413  hardcode_action=unsupported
11414fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416$as_echo "$hardcode_action" >&6; }
11417
11418if test relink = "$hardcode_action" ||
11419   test yes = "$inherit_rpath"; then
11420  # Fast installation is not supported
11421  enable_fast_install=no
11422elif test yes = "$shlibpath_overrides_runpath" ||
11423     test no = "$enable_shared"; then
11424  # Fast installation is not necessary
11425  enable_fast_install=needless
11426fi
11427
11428
11429
11430
11431
11432
11433  if test yes != "$enable_dlopen"; then
11434  enable_dlopen=unknown
11435  enable_dlopen_self=unknown
11436  enable_dlopen_self_static=unknown
11437else
11438  lt_cv_dlopen=no
11439  lt_cv_dlopen_libs=
11440
11441  case $host_os in
11442  beos*)
11443    lt_cv_dlopen=load_add_on
11444    lt_cv_dlopen_libs=
11445    lt_cv_dlopen_self=yes
11446    ;;
11447
11448  mingw* | pw32* | cegcc*)
11449    lt_cv_dlopen=LoadLibrary
11450    lt_cv_dlopen_libs=
11451    ;;
11452
11453  cygwin*)
11454    lt_cv_dlopen=dlopen
11455    lt_cv_dlopen_libs=
11456    ;;
11457
11458  darwin*)
11459    # if libdl is installed we need to link against it
11460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461$as_echo_n "checking for dlopen in -ldl... " >&6; }
11462if ${ac_cv_lib_dl_dlopen+:} false; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465  ac_check_lib_save_LIBS=$LIBS
11466LIBS="-ldl  $LIBS"
11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h.  */
11469
11470/* Override any GCC internal prototype to avoid an error.
11471   Use char because int might match the return type of a GCC
11472   builtin and then its argument prototype would still apply.  */
11473#ifdef __cplusplus
11474extern "C"
11475#endif
11476char dlopen ();
11477int
11478main ()
11479{
11480return dlopen ();
11481  ;
11482  return 0;
11483}
11484_ACEOF
11485if ac_fn_c_try_link "$LINENO"; then :
11486  ac_cv_lib_dl_dlopen=yes
11487else
11488  ac_cv_lib_dl_dlopen=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext \
11491    conftest$ac_exeext conftest.$ac_ext
11492LIBS=$ac_check_lib_save_LIBS
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11497  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11498else
11499
11500    lt_cv_dlopen=dyld
11501    lt_cv_dlopen_libs=
11502    lt_cv_dlopen_self=yes
11503
11504fi
11505
11506    ;;
11507
11508  tpf*)
11509    # Don't try to run any link tests for TPF.  We know it's impossible
11510    # because TPF is a cross-compiler, and we know how we open DSOs.
11511    lt_cv_dlopen=dlopen
11512    lt_cv_dlopen_libs=
11513    lt_cv_dlopen_self=no
11514    ;;
11515
11516  *)
11517    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11518if test "x$ac_cv_func_shl_load" = xyes; then :
11519  lt_cv_dlopen=shl_load
11520else
11521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11522$as_echo_n "checking for shl_load in -ldld... " >&6; }
11523if ${ac_cv_lib_dld_shl_load+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  ac_check_lib_save_LIBS=$LIBS
11527LIBS="-ldld  $LIBS"
11528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529/* end confdefs.h.  */
11530
11531/* Override any GCC internal prototype to avoid an error.
11532   Use char because int might match the return type of a GCC
11533   builtin and then its argument prototype would still apply.  */
11534#ifdef __cplusplus
11535extern "C"
11536#endif
11537char shl_load ();
11538int
11539main ()
11540{
11541return shl_load ();
11542  ;
11543  return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547  ac_cv_lib_dld_shl_load=yes
11548else
11549  ac_cv_lib_dld_shl_load=no
11550fi
11551rm -f core conftest.err conftest.$ac_objext \
11552    conftest$ac_exeext conftest.$ac_ext
11553LIBS=$ac_check_lib_save_LIBS
11554fi
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11556$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11557if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11558  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11559else
11560  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11561if test "x$ac_cv_func_dlopen" = xyes; then :
11562  lt_cv_dlopen=dlopen
11563else
11564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11565$as_echo_n "checking for dlopen in -ldl... " >&6; }
11566if ${ac_cv_lib_dl_dlopen+:} false; then :
11567  $as_echo_n "(cached) " >&6
11568else
11569  ac_check_lib_save_LIBS=$LIBS
11570LIBS="-ldl  $LIBS"
11571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h.  */
11573
11574/* Override any GCC internal prototype to avoid an error.
11575   Use char because int might match the return type of a GCC
11576   builtin and then its argument prototype would still apply.  */
11577#ifdef __cplusplus
11578extern "C"
11579#endif
11580char dlopen ();
11581int
11582main ()
11583{
11584return dlopen ();
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_link "$LINENO"; then :
11590  ac_cv_lib_dl_dlopen=yes
11591else
11592  ac_cv_lib_dl_dlopen=no
11593fi
11594rm -f core conftest.err conftest.$ac_objext \
11595    conftest$ac_exeext conftest.$ac_ext
11596LIBS=$ac_check_lib_save_LIBS
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11599$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11600if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11601  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11602else
11603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11604$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11605if ${ac_cv_lib_svld_dlopen+:} false; then :
11606  $as_echo_n "(cached) " >&6
11607else
11608  ac_check_lib_save_LIBS=$LIBS
11609LIBS="-lsvld  $LIBS"
11610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h.  */
11612
11613/* Override any GCC internal prototype to avoid an error.
11614   Use char because int might match the return type of a GCC
11615   builtin and then its argument prototype would still apply.  */
11616#ifdef __cplusplus
11617extern "C"
11618#endif
11619char dlopen ();
11620int
11621main ()
11622{
11623return dlopen ();
11624  ;
11625  return 0;
11626}
11627_ACEOF
11628if ac_fn_c_try_link "$LINENO"; then :
11629  ac_cv_lib_svld_dlopen=yes
11630else
11631  ac_cv_lib_svld_dlopen=no
11632fi
11633rm -f core conftest.err conftest.$ac_objext \
11634    conftest$ac_exeext conftest.$ac_ext
11635LIBS=$ac_check_lib_save_LIBS
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11638$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11639if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11640  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11641else
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11643$as_echo_n "checking for dld_link in -ldld... " >&6; }
11644if ${ac_cv_lib_dld_dld_link+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  ac_check_lib_save_LIBS=$LIBS
11648LIBS="-ldld  $LIBS"
11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651
11652/* Override any GCC internal prototype to avoid an error.
11653   Use char because int might match the return type of a GCC
11654   builtin and then its argument prototype would still apply.  */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658char dld_link ();
11659int
11660main ()
11661{
11662return dld_link ();
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668  ac_cv_lib_dld_dld_link=yes
11669else
11670  ac_cv_lib_dld_dld_link=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673    conftest$ac_exeext conftest.$ac_ext
11674LIBS=$ac_check_lib_save_LIBS
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11677$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11678if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11679  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11680fi
11681
11682
11683fi
11684
11685
11686fi
11687
11688
11689fi
11690
11691
11692fi
11693
11694
11695fi
11696
11697    ;;
11698  esac
11699
11700  if test no = "$lt_cv_dlopen"; then
11701    enable_dlopen=no
11702  else
11703    enable_dlopen=yes
11704  fi
11705
11706  case $lt_cv_dlopen in
11707  dlopen)
11708    save_CPPFLAGS=$CPPFLAGS
11709    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11710
11711    save_LDFLAGS=$LDFLAGS
11712    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11713
11714    save_LIBS=$LIBS
11715    LIBS="$lt_cv_dlopen_libs $LIBS"
11716
11717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11718$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11719if ${lt_cv_dlopen_self+:} false; then :
11720  $as_echo_n "(cached) " >&6
11721else
11722  	  if test yes = "$cross_compiling"; then :
11723  lt_cv_dlopen_self=cross
11724else
11725  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726  lt_status=$lt_dlunknown
11727  cat > conftest.$ac_ext <<_LT_EOF
11728#line $LINENO "configure"
11729#include "confdefs.h"
11730
11731#if HAVE_DLFCN_H
11732#include <dlfcn.h>
11733#endif
11734
11735#include <stdio.h>
11736
11737#ifdef RTLD_GLOBAL
11738#  define LT_DLGLOBAL		RTLD_GLOBAL
11739#else
11740#  ifdef DL_GLOBAL
11741#    define LT_DLGLOBAL		DL_GLOBAL
11742#  else
11743#    define LT_DLGLOBAL		0
11744#  endif
11745#endif
11746
11747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748   find out it does not work in some platform. */
11749#ifndef LT_DLLAZY_OR_NOW
11750#  ifdef RTLD_LAZY
11751#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11752#  else
11753#    ifdef DL_LAZY
11754#      define LT_DLLAZY_OR_NOW		DL_LAZY
11755#    else
11756#      ifdef RTLD_NOW
11757#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11758#      else
11759#        ifdef DL_NOW
11760#          define LT_DLLAZY_OR_NOW	DL_NOW
11761#        else
11762#          define LT_DLLAZY_OR_NOW	0
11763#        endif
11764#      endif
11765#    endif
11766#  endif
11767#endif
11768
11769/* When -fvisibility=hidden is used, assume the code has been annotated
11770   correspondingly for the symbols needed.  */
11771#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772int fnord () __attribute__((visibility("default")));
11773#endif
11774
11775int fnord () { return 42; }
11776int main ()
11777{
11778  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779  int status = $lt_dlunknown;
11780
11781  if (self)
11782    {
11783      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11784      else
11785        {
11786	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11787          else puts (dlerror ());
11788	}
11789      /* dlclose (self); */
11790    }
11791  else
11792    puts (dlerror ());
11793
11794  return status;
11795}
11796_LT_EOF
11797  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798  (eval $ac_link) 2>&5
11799  ac_status=$?
11800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11802    (./conftest; exit; ) >&5 2>/dev/null
11803    lt_status=$?
11804    case x$lt_status in
11805      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11808    esac
11809  else :
11810    # compilation failed
11811    lt_cv_dlopen_self=no
11812  fi
11813fi
11814rm -fr conftest*
11815
11816
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11819$as_echo "$lt_cv_dlopen_self" >&6; }
11820
11821    if test yes = "$lt_cv_dlopen_self"; then
11822      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11824$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11825if ${lt_cv_dlopen_self_static+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  	  if test yes = "$cross_compiling"; then :
11829  lt_cv_dlopen_self_static=cross
11830else
11831  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832  lt_status=$lt_dlunknown
11833  cat > conftest.$ac_ext <<_LT_EOF
11834#line $LINENO "configure"
11835#include "confdefs.h"
11836
11837#if HAVE_DLFCN_H
11838#include <dlfcn.h>
11839#endif
11840
11841#include <stdio.h>
11842
11843#ifdef RTLD_GLOBAL
11844#  define LT_DLGLOBAL		RTLD_GLOBAL
11845#else
11846#  ifdef DL_GLOBAL
11847#    define LT_DLGLOBAL		DL_GLOBAL
11848#  else
11849#    define LT_DLGLOBAL		0
11850#  endif
11851#endif
11852
11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854   find out it does not work in some platform. */
11855#ifndef LT_DLLAZY_OR_NOW
11856#  ifdef RTLD_LAZY
11857#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11858#  else
11859#    ifdef DL_LAZY
11860#      define LT_DLLAZY_OR_NOW		DL_LAZY
11861#    else
11862#      ifdef RTLD_NOW
11863#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11864#      else
11865#        ifdef DL_NOW
11866#          define LT_DLLAZY_OR_NOW	DL_NOW
11867#        else
11868#          define LT_DLLAZY_OR_NOW	0
11869#        endif
11870#      endif
11871#    endif
11872#  endif
11873#endif
11874
11875/* When -fvisibility=hidden is used, assume the code has been annotated
11876   correspondingly for the symbols needed.  */
11877#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878int fnord () __attribute__((visibility("default")));
11879#endif
11880
11881int fnord () { return 42; }
11882int main ()
11883{
11884  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885  int status = $lt_dlunknown;
11886
11887  if (self)
11888    {
11889      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11890      else
11891        {
11892	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11893          else puts (dlerror ());
11894	}
11895      /* dlclose (self); */
11896    }
11897  else
11898    puts (dlerror ());
11899
11900  return status;
11901}
11902_LT_EOF
11903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11908    (./conftest; exit; ) >&5 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self_static=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11925$as_echo "$lt_cv_dlopen_self_static" >&6; }
11926    fi
11927
11928    CPPFLAGS=$save_CPPFLAGS
11929    LDFLAGS=$save_LDFLAGS
11930    LIBS=$save_LIBS
11931    ;;
11932  esac
11933
11934  case $lt_cv_dlopen_self in
11935  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936  *) enable_dlopen_self=unknown ;;
11937  esac
11938
11939  case $lt_cv_dlopen_self_static in
11940  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941  *) enable_dlopen_self_static=unknown ;;
11942  esac
11943fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961striplib=
11962old_striplib=
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11964$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11965if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11966  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11967  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969$as_echo "yes" >&6; }
11970else
11971# FIXME - insert some real tests, host_os isn't really good enough
11972  case $host_os in
11973  darwin*)
11974    if test -n "$STRIP"; then
11975      striplib="$STRIP -x"
11976      old_striplib="$STRIP -S"
11977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978$as_echo "yes" >&6; }
11979    else
11980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982    fi
11983    ;;
11984  *)
11985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987    ;;
11988  esac
11989fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002  # Report what library types will actually be built
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12004$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12006$as_echo "$can_build_shared" >&6; }
12007
12008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12009$as_echo_n "checking whether to build shared libraries... " >&6; }
12010  test no = "$can_build_shared" && enable_shared=no
12011
12012  # On AIX, shared libraries and static libraries use the same namespace, and
12013  # are all built from PIC.
12014  case $host_os in
12015  aix3*)
12016    test yes = "$enable_shared" && enable_static=no
12017    if test -n "$RANLIB"; then
12018      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12019      postinstall_cmds='$RANLIB $lib'
12020    fi
12021    ;;
12022
12023  aix[4-9]*)
12024    if test ia64 != "$host_cpu"; then
12025      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12026      yes,aix,yes) ;;			# shared object as lib.so file only
12027      yes,svr4,*) ;;			# shared object as lib.so archive member only
12028      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12029      esac
12030    fi
12031    ;;
12032  esac
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12034$as_echo "$enable_shared" >&6; }
12035
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12037$as_echo_n "checking whether to build static libraries... " >&6; }
12038  # Make sure either enable_shared or enable_static is yes.
12039  test yes = "$enable_shared" || enable_static=yes
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12041$as_echo "$enable_static" >&6; }
12042
12043
12044
12045
12046fi
12047ac_ext=c
12048ac_cpp='$CPP $CPPFLAGS'
12049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053CC=$lt_save_CC
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069        ac_config_commands="$ac_config_commands libtool"
12070
12071
12072
12073
12074# Only expand once:
12075
12076
12077
12078# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12091$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12092if ${ac_cv_prog_cc_c99+:} false; then :
12093  $as_echo_n "(cached) " >&6
12094else
12095  ac_cv_prog_cc_c99=no
12096ac_save_CC=$CC
12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099#include <stdarg.h>
12100#include <stdbool.h>
12101#include <stdlib.h>
12102#include <wchar.h>
12103#include <stdio.h>
12104
12105// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12106#define debug(...) fprintf (stderr, __VA_ARGS__)
12107#define showlist(...) puts (#__VA_ARGS__)
12108#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12109static void
12110test_varargs_macros (void)
12111{
12112  int x = 1234;
12113  int y = 5678;
12114  debug ("Flag");
12115  debug ("X = %d\n", x);
12116  showlist (The first, second, and third items.);
12117  report (x>y, "x is %d but y is %d", x, y);
12118}
12119
12120// Check long long types.
12121#define BIG64 18446744073709551615ull
12122#define BIG32 4294967295ul
12123#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12124#if !BIG_OK
12125  your preprocessor is broken;
12126#endif
12127#if BIG_OK
12128#else
12129  your preprocessor is broken;
12130#endif
12131static long long int bignum = -9223372036854775807LL;
12132static unsigned long long int ubignum = BIG64;
12133
12134struct incomplete_array
12135{
12136  int datasize;
12137  double data[];
12138};
12139
12140struct named_init {
12141  int number;
12142  const wchar_t *name;
12143  double average;
12144};
12145
12146typedef const char *ccp;
12147
12148static inline int
12149test_restrict (ccp restrict text)
12150{
12151  // See if C++-style comments work.
12152  // Iterate through items via the restricted pointer.
12153  // Also check for declarations in for loops.
12154  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12155    continue;
12156  return 0;
12157}
12158
12159// Check varargs and va_copy.
12160static void
12161test_varargs (const char *format, ...)
12162{
12163  va_list args;
12164  va_start (args, format);
12165  va_list args_copy;
12166  va_copy (args_copy, args);
12167
12168  const char *str;
12169  int number;
12170  float fnumber;
12171
12172  while (*format)
12173    {
12174      switch (*format++)
12175	{
12176	case 's': // string
12177	  str = va_arg (args_copy, const char *);
12178	  break;
12179	case 'd': // int
12180	  number = va_arg (args_copy, int);
12181	  break;
12182	case 'f': // float
12183	  fnumber = va_arg (args_copy, double);
12184	  break;
12185	default:
12186	  break;
12187	}
12188    }
12189  va_end (args_copy);
12190  va_end (args);
12191}
12192
12193int
12194main ()
12195{
12196
12197  // Check bool.
12198  _Bool success = false;
12199
12200  // Check restrict.
12201  if (test_restrict ("String literal") == 0)
12202    success = true;
12203  char *restrict newvar = "Another string";
12204
12205  // Check varargs.
12206  test_varargs ("s, d' f .", "string", 65, 34.234);
12207  test_varargs_macros ();
12208
12209  // Check flexible array members.
12210  struct incomplete_array *ia =
12211    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12212  ia->datasize = 10;
12213  for (int i = 0; i < ia->datasize; ++i)
12214    ia->data[i] = i * 1.234;
12215
12216  // Check named initializers.
12217  struct named_init ni = {
12218    .number = 34,
12219    .name = L"Test wide string",
12220    .average = 543.34343,
12221  };
12222
12223  ni.number = 58;
12224
12225  int dynamic_array[ni.number];
12226  dynamic_array[ni.number - 1] = 543;
12227
12228  // work around unused variable warnings
12229  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12230	  || dynamic_array[ni.number - 1] != 543);
12231
12232  ;
12233  return 0;
12234}
12235_ACEOF
12236for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12237do
12238  CC="$ac_save_CC $ac_arg"
12239  if ac_fn_c_try_compile "$LINENO"; then :
12240  ac_cv_prog_cc_c99=$ac_arg
12241fi
12242rm -f core conftest.err conftest.$ac_objext
12243  test "x$ac_cv_prog_cc_c99" != "xno" && break
12244done
12245rm -f conftest.$ac_ext
12246CC=$ac_save_CC
12247
12248fi
12249# AC_CACHE_VAL
12250case "x$ac_cv_prog_cc_c99" in
12251  x)
12252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12253$as_echo "none needed" >&6; } ;;
12254  xno)
12255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12256$as_echo "unsupported" >&6; } ;;
12257  *)
12258    CC="$CC $ac_cv_prog_cc_c99"
12259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12260$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12261esac
12262if test "x$ac_cv_prog_cc_c99" != xno; then :
12263
12264fi
12265
12266
12267
12268
12269
12270
12271ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12272if test "x$ac_cv_have_decl___clang__" = xyes; then :
12273  CLANGCC="yes"
12274else
12275  CLANGCC="no"
12276fi
12277
12278ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12279if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12280  INTELCC="yes"
12281else
12282  INTELCC="no"
12283fi
12284
12285ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12286if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12287  SUNCC="yes"
12288else
12289  SUNCC="no"
12290fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12301	if test -n "$ac_tool_prefix"; then
12302  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12303set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
12306if ${ac_cv_path_PKG_CONFIG+:} false; then :
12307  $as_echo_n "(cached) " >&6
12308else
12309  case $PKG_CONFIG in
12310  [\\/]* | ?:[\\/]*)
12311  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12312  ;;
12313  *)
12314  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317  IFS=$as_save_IFS
12318  test -z "$as_dir" && as_dir=.
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329  ;;
12330esac
12331fi
12332PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12333if test -n "$PKG_CONFIG"; then
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12335$as_echo "$PKG_CONFIG" >&6; }
12336else
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
12339fi
12340
12341
12342fi
12343if test -z "$ac_cv_path_PKG_CONFIG"; then
12344  ac_pt_PKG_CONFIG=$PKG_CONFIG
12345  # Extract the first word of "pkg-config", so it can be a program name with args.
12346set dummy pkg-config; ac_word=$2
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348$as_echo_n "checking for $ac_word... " >&6; }
12349if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12350  $as_echo_n "(cached) " >&6
12351else
12352  case $ac_pt_PKG_CONFIG in
12353  [\\/]* | ?:[\\/]*)
12354  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12355  ;;
12356  *)
12357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360  IFS=$as_save_IFS
12361  test -z "$as_dir" && as_dir=.
12362    for ac_exec_ext in '' $ac_executable_extensions; do
12363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12364    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366    break 2
12367  fi
12368done
12369  done
12370IFS=$as_save_IFS
12371
12372  ;;
12373esac
12374fi
12375ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12376if test -n "$ac_pt_PKG_CONFIG"; then
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12378$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12379else
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
12382fi
12383
12384  if test "x$ac_pt_PKG_CONFIG" = x; then
12385    PKG_CONFIG=""
12386  else
12387    case $cross_compiling:$ac_tool_warned in
12388yes:)
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12391ac_tool_warned=yes ;;
12392esac
12393    PKG_CONFIG=$ac_pt_PKG_CONFIG
12394  fi
12395else
12396  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12397fi
12398
12399fi
12400if test -n "$PKG_CONFIG"; then
12401	_pkg_min_version=0.9.0
12402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12403$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12404	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12406$as_echo "yes" >&6; }
12407	else
12408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410		PKG_CONFIG=""
12411	fi
12412fi
12413
12414
12415
12416
12417
12418# Check whether --enable-selective-werror was given.
12419if test "${enable_selective_werror+set}" = set; then :
12420  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12421else
12422  SELECTIVE_WERROR=yes
12423fi
12424
12425
12426
12427
12428
12429# -v is too short to test reliably with XORG_TESTSET_CFLAG
12430if test "x$SUNCC" = "xyes"; then
12431    BASE_CFLAGS="-v"
12432else
12433    BASE_CFLAGS=""
12434fi
12435
12436# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450xorg_testset_save_CFLAGS="$CFLAGS"
12451
12452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12457  $as_echo_n "(cached) " >&6
12458else
12459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460/* end confdefs.h.  */
12461int i;
12462_ACEOF
12463if ac_fn_c_try_compile "$LINENO"; then :
12464  xorg_cv_cc_flag_unknown_warning_option=yes
12465else
12466  xorg_cv_cc_flag_unknown_warning_option=no
12467fi
12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469fi
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12473	CFLAGS="$xorg_testset_save_CFLAGS"
12474fi
12475
12476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12479	fi
12480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12484  $as_echo_n "(cached) " >&6
12485else
12486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h.  */
12488int i;
12489_ACEOF
12490if ac_fn_c_try_compile "$LINENO"; then :
12491  xorg_cv_cc_flag_unused_command_line_argument=yes
12492else
12493  xorg_cv_cc_flag_unused_command_line_argument=no
12494fi
12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12500	CFLAGS="$xorg_testset_save_CFLAGS"
12501fi
12502
12503found="no"
12504
12505	if test $found = "no" ; then
12506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12508		fi
12509
12510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12512		fi
12513
12514		CFLAGS="$CFLAGS -Wall"
12515
12516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12517$as_echo_n "checking if $CC supports -Wall... " >&6; }
12518		cacheid=xorg_cv_cc_flag__Wall
12519		if eval \${$cacheid+:} false; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h.  */
12524int i;
12525int
12526main ()
12527{
12528
12529  ;
12530  return 0;
12531}
12532_ACEOF
12533if ac_fn_c_try_link "$LINENO"; then :
12534  eval $cacheid=yes
12535else
12536  eval $cacheid=no
12537fi
12538rm -f core conftest.err conftest.$ac_objext \
12539    conftest$ac_exeext conftest.$ac_ext
12540fi
12541
12542
12543		CFLAGS="$xorg_testset_save_CFLAGS"
12544
12545		eval supported=\$$cacheid
12546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12547$as_echo "$supported" >&6; }
12548		if test "$supported" = "yes" ; then
12549			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12550			found="yes"
12551		fi
12552	fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568xorg_testset_save_CFLAGS="$CFLAGS"
12569
12570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12575  $as_echo_n "(cached) " >&6
12576else
12577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578/* end confdefs.h.  */
12579int i;
12580_ACEOF
12581if ac_fn_c_try_compile "$LINENO"; then :
12582  xorg_cv_cc_flag_unknown_warning_option=yes
12583else
12584  xorg_cv_cc_flag_unknown_warning_option=no
12585fi
12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12591	CFLAGS="$xorg_testset_save_CFLAGS"
12592fi
12593
12594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12597	fi
12598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12602  $as_echo_n "(cached) " >&6
12603else
12604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h.  */
12606int i;
12607_ACEOF
12608if ac_fn_c_try_compile "$LINENO"; then :
12609  xorg_cv_cc_flag_unused_command_line_argument=yes
12610else
12611  xorg_cv_cc_flag_unused_command_line_argument=no
12612fi
12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614fi
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12618	CFLAGS="$xorg_testset_save_CFLAGS"
12619fi
12620
12621found="no"
12622
12623	if test $found = "no" ; then
12624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12626		fi
12627
12628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12630		fi
12631
12632		CFLAGS="$CFLAGS -Wpointer-arith"
12633
12634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12635$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12636		cacheid=xorg_cv_cc_flag__Wpointer_arith
12637		if eval \${$cacheid+:} false; then :
12638  $as_echo_n "(cached) " >&6
12639else
12640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h.  */
12642int i;
12643int
12644main ()
12645{
12646
12647  ;
12648  return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_link "$LINENO"; then :
12652  eval $cacheid=yes
12653else
12654  eval $cacheid=no
12655fi
12656rm -f core conftest.err conftest.$ac_objext \
12657    conftest$ac_exeext conftest.$ac_ext
12658fi
12659
12660
12661		CFLAGS="$xorg_testset_save_CFLAGS"
12662
12663		eval supported=\$$cacheid
12664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12665$as_echo "$supported" >&6; }
12666		if test "$supported" = "yes" ; then
12667			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12668			found="yes"
12669		fi
12670	fi
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686xorg_testset_save_CFLAGS="$CFLAGS"
12687
12688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12693  $as_echo_n "(cached) " >&6
12694else
12695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696/* end confdefs.h.  */
12697int i;
12698_ACEOF
12699if ac_fn_c_try_compile "$LINENO"; then :
12700  xorg_cv_cc_flag_unknown_warning_option=yes
12701else
12702  xorg_cv_cc_flag_unknown_warning_option=no
12703fi
12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12709	CFLAGS="$xorg_testset_save_CFLAGS"
12710fi
12711
12712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12715	fi
12716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12720  $as_echo_n "(cached) " >&6
12721else
12722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723/* end confdefs.h.  */
12724int i;
12725_ACEOF
12726if ac_fn_c_try_compile "$LINENO"; then :
12727  xorg_cv_cc_flag_unused_command_line_argument=yes
12728else
12729  xorg_cv_cc_flag_unused_command_line_argument=no
12730fi
12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12736	CFLAGS="$xorg_testset_save_CFLAGS"
12737fi
12738
12739found="no"
12740
12741	if test $found = "no" ; then
12742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12744		fi
12745
12746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12748		fi
12749
12750		CFLAGS="$CFLAGS -Wmissing-declarations"
12751
12752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12753$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12754		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12755		if eval \${$cacheid+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759/* end confdefs.h.  */
12760int i;
12761int
12762main ()
12763{
12764
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"; then :
12770  eval $cacheid=yes
12771else
12772  eval $cacheid=no
12773fi
12774rm -f core conftest.err conftest.$ac_objext \
12775    conftest$ac_exeext conftest.$ac_ext
12776fi
12777
12778
12779		CFLAGS="$xorg_testset_save_CFLAGS"
12780
12781		eval supported=\$$cacheid
12782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12783$as_echo "$supported" >&6; }
12784		if test "$supported" = "yes" ; then
12785			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12786			found="yes"
12787		fi
12788	fi
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804xorg_testset_save_CFLAGS="$CFLAGS"
12805
12806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12811  $as_echo_n "(cached) " >&6
12812else
12813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h.  */
12815int i;
12816_ACEOF
12817if ac_fn_c_try_compile "$LINENO"; then :
12818  xorg_cv_cc_flag_unknown_warning_option=yes
12819else
12820  xorg_cv_cc_flag_unknown_warning_option=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12827	CFLAGS="$xorg_testset_save_CFLAGS"
12828fi
12829
12830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12833	fi
12834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12838  $as_echo_n "(cached) " >&6
12839else
12840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h.  */
12842int i;
12843_ACEOF
12844if ac_fn_c_try_compile "$LINENO"; then :
12845  xorg_cv_cc_flag_unused_command_line_argument=yes
12846else
12847  xorg_cv_cc_flag_unused_command_line_argument=no
12848fi
12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850fi
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12854	CFLAGS="$xorg_testset_save_CFLAGS"
12855fi
12856
12857found="no"
12858
12859	if test $found = "no" ; then
12860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12862		fi
12863
12864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12866		fi
12867
12868		CFLAGS="$CFLAGS -Wformat=2"
12869
12870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12871$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12872		cacheid=xorg_cv_cc_flag__Wformat_2
12873		if eval \${$cacheid+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878int i;
12879int
12880main ()
12881{
12882
12883  ;
12884  return 0;
12885}
12886_ACEOF
12887if ac_fn_c_try_link "$LINENO"; then :
12888  eval $cacheid=yes
12889else
12890  eval $cacheid=no
12891fi
12892rm -f core conftest.err conftest.$ac_objext \
12893    conftest$ac_exeext conftest.$ac_ext
12894fi
12895
12896
12897		CFLAGS="$xorg_testset_save_CFLAGS"
12898
12899		eval supported=\$$cacheid
12900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12901$as_echo "$supported" >&6; }
12902		if test "$supported" = "yes" ; then
12903			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12904			found="yes"
12905		fi
12906	fi
12907
12908	if test $found = "no" ; then
12909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12911		fi
12912
12913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12915		fi
12916
12917		CFLAGS="$CFLAGS -Wformat"
12918
12919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12920$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12921		cacheid=xorg_cv_cc_flag__Wformat
12922		if eval \${$cacheid+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926/* end confdefs.h.  */
12927int i;
12928int
12929main ()
12930{
12931
12932  ;
12933  return 0;
12934}
12935_ACEOF
12936if ac_fn_c_try_link "$LINENO"; then :
12937  eval $cacheid=yes
12938else
12939  eval $cacheid=no
12940fi
12941rm -f core conftest.err conftest.$ac_objext \
12942    conftest$ac_exeext conftest.$ac_ext
12943fi
12944
12945
12946		CFLAGS="$xorg_testset_save_CFLAGS"
12947
12948		eval supported=\$$cacheid
12949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12950$as_echo "$supported" >&6; }
12951		if test "$supported" = "yes" ; then
12952			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12953			found="yes"
12954		fi
12955	fi
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973xorg_testset_save_CFLAGS="$CFLAGS"
12974
12975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12980  $as_echo_n "(cached) " >&6
12981else
12982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h.  */
12984int i;
12985_ACEOF
12986if ac_fn_c_try_compile "$LINENO"; then :
12987  xorg_cv_cc_flag_unknown_warning_option=yes
12988else
12989  xorg_cv_cc_flag_unknown_warning_option=no
12990fi
12991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992fi
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12996	CFLAGS="$xorg_testset_save_CFLAGS"
12997fi
12998
12999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13002	fi
13003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13007  $as_echo_n "(cached) " >&6
13008else
13009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h.  */
13011int i;
13012_ACEOF
13013if ac_fn_c_try_compile "$LINENO"; then :
13014  xorg_cv_cc_flag_unused_command_line_argument=yes
13015else
13016  xorg_cv_cc_flag_unused_command_line_argument=no
13017fi
13018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019fi
13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13023	CFLAGS="$xorg_testset_save_CFLAGS"
13024fi
13025
13026found="no"
13027
13028	if test $found = "no" ; then
13029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13031		fi
13032
13033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13035		fi
13036
13037		CFLAGS="$CFLAGS -Wstrict-prototypes"
13038
13039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13040$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13041		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13042		if eval \${$cacheid+:} false; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046/* end confdefs.h.  */
13047int i;
13048int
13049main ()
13050{
13051
13052  ;
13053  return 0;
13054}
13055_ACEOF
13056if ac_fn_c_try_link "$LINENO"; then :
13057  eval $cacheid=yes
13058else
13059  eval $cacheid=no
13060fi
13061rm -f core conftest.err conftest.$ac_objext \
13062    conftest$ac_exeext conftest.$ac_ext
13063fi
13064
13065
13066		CFLAGS="$xorg_testset_save_CFLAGS"
13067
13068		eval supported=\$$cacheid
13069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13070$as_echo "$supported" >&6; }
13071		if test "$supported" = "yes" ; then
13072			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13073			found="yes"
13074		fi
13075	fi
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091xorg_testset_save_CFLAGS="$CFLAGS"
13092
13093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13098  $as_echo_n "(cached) " >&6
13099else
13100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h.  */
13102int i;
13103_ACEOF
13104if ac_fn_c_try_compile "$LINENO"; then :
13105  xorg_cv_cc_flag_unknown_warning_option=yes
13106else
13107  xorg_cv_cc_flag_unknown_warning_option=no
13108fi
13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110fi
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13114	CFLAGS="$xorg_testset_save_CFLAGS"
13115fi
13116
13117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120	fi
13121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13125  $as_echo_n "(cached) " >&6
13126else
13127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129int i;
13130_ACEOF
13131if ac_fn_c_try_compile "$LINENO"; then :
13132  xorg_cv_cc_flag_unused_command_line_argument=yes
13133else
13134  xorg_cv_cc_flag_unused_command_line_argument=no
13135fi
13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13141	CFLAGS="$xorg_testset_save_CFLAGS"
13142fi
13143
13144found="no"
13145
13146	if test $found = "no" ; then
13147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149		fi
13150
13151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13153		fi
13154
13155		CFLAGS="$CFLAGS -Wmissing-prototypes"
13156
13157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13158$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13159		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13160		if eval \${$cacheid+:} false; then :
13161  $as_echo_n "(cached) " >&6
13162else
13163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164/* end confdefs.h.  */
13165int i;
13166int
13167main ()
13168{
13169
13170  ;
13171  return 0;
13172}
13173_ACEOF
13174if ac_fn_c_try_link "$LINENO"; then :
13175  eval $cacheid=yes
13176else
13177  eval $cacheid=no
13178fi
13179rm -f core conftest.err conftest.$ac_objext \
13180    conftest$ac_exeext conftest.$ac_ext
13181fi
13182
13183
13184		CFLAGS="$xorg_testset_save_CFLAGS"
13185
13186		eval supported=\$$cacheid
13187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13188$as_echo "$supported" >&6; }
13189		if test "$supported" = "yes" ; then
13190			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13191			found="yes"
13192		fi
13193	fi
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209xorg_testset_save_CFLAGS="$CFLAGS"
13210
13211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219/* end confdefs.h.  */
13220int i;
13221_ACEOF
13222if ac_fn_c_try_compile "$LINENO"; then :
13223  xorg_cv_cc_flag_unknown_warning_option=yes
13224else
13225  xorg_cv_cc_flag_unknown_warning_option=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228fi
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13232	CFLAGS="$xorg_testset_save_CFLAGS"
13233fi
13234
13235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13238	fi
13239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247int i;
13248_ACEOF
13249if ac_fn_c_try_compile "$LINENO"; then :
13250  xorg_cv_cc_flag_unused_command_line_argument=yes
13251else
13252  xorg_cv_cc_flag_unused_command_line_argument=no
13253fi
13254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255fi
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13259	CFLAGS="$xorg_testset_save_CFLAGS"
13260fi
13261
13262found="no"
13263
13264	if test $found = "no" ; then
13265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13267		fi
13268
13269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13271		fi
13272
13273		CFLAGS="$CFLAGS -Wnested-externs"
13274
13275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13276$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13277		cacheid=xorg_cv_cc_flag__Wnested_externs
13278		if eval \${$cacheid+:} false; then :
13279  $as_echo_n "(cached) " >&6
13280else
13281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282/* end confdefs.h.  */
13283int i;
13284int
13285main ()
13286{
13287
13288  ;
13289  return 0;
13290}
13291_ACEOF
13292if ac_fn_c_try_link "$LINENO"; then :
13293  eval $cacheid=yes
13294else
13295  eval $cacheid=no
13296fi
13297rm -f core conftest.err conftest.$ac_objext \
13298    conftest$ac_exeext conftest.$ac_ext
13299fi
13300
13301
13302		CFLAGS="$xorg_testset_save_CFLAGS"
13303
13304		eval supported=\$$cacheid
13305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13306$as_echo "$supported" >&6; }
13307		if test "$supported" = "yes" ; then
13308			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13309			found="yes"
13310		fi
13311	fi
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327xorg_testset_save_CFLAGS="$CFLAGS"
13328
13329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338int i;
13339_ACEOF
13340if ac_fn_c_try_compile "$LINENO"; then :
13341  xorg_cv_cc_flag_unknown_warning_option=yes
13342else
13343  xorg_cv_cc_flag_unknown_warning_option=no
13344fi
13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13350	CFLAGS="$xorg_testset_save_CFLAGS"
13351fi
13352
13353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13356	fi
13357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365int i;
13366_ACEOF
13367if ac_fn_c_try_compile "$LINENO"; then :
13368  xorg_cv_cc_flag_unused_command_line_argument=yes
13369else
13370  xorg_cv_cc_flag_unused_command_line_argument=no
13371fi
13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373fi
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13377	CFLAGS="$xorg_testset_save_CFLAGS"
13378fi
13379
13380found="no"
13381
13382	if test $found = "no" ; then
13383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385		fi
13386
13387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13389		fi
13390
13391		CFLAGS="$CFLAGS -Wbad-function-cast"
13392
13393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13394$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13395		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13396		if eval \${$cacheid+:} false; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401int i;
13402int
13403main ()
13404{
13405
13406  ;
13407  return 0;
13408}
13409_ACEOF
13410if ac_fn_c_try_link "$LINENO"; then :
13411  eval $cacheid=yes
13412else
13413  eval $cacheid=no
13414fi
13415rm -f core conftest.err conftest.$ac_objext \
13416    conftest$ac_exeext conftest.$ac_ext
13417fi
13418
13419
13420		CFLAGS="$xorg_testset_save_CFLAGS"
13421
13422		eval supported=\$$cacheid
13423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13424$as_echo "$supported" >&6; }
13425		if test "$supported" = "yes" ; then
13426			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13427			found="yes"
13428		fi
13429	fi
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445xorg_testset_save_CFLAGS="$CFLAGS"
13446
13447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h.  */
13456int i;
13457_ACEOF
13458if ac_fn_c_try_compile "$LINENO"; then :
13459  xorg_cv_cc_flag_unknown_warning_option=yes
13460else
13461  xorg_cv_cc_flag_unknown_warning_option=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464fi
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13468	CFLAGS="$xorg_testset_save_CFLAGS"
13469fi
13470
13471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13474	fi
13475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h.  */
13483int i;
13484_ACEOF
13485if ac_fn_c_try_compile "$LINENO"; then :
13486  xorg_cv_cc_flag_unused_command_line_argument=yes
13487else
13488  xorg_cv_cc_flag_unused_command_line_argument=no
13489fi
13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13495	CFLAGS="$xorg_testset_save_CFLAGS"
13496fi
13497
13498found="no"
13499
13500	if test $found = "no" ; then
13501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503		fi
13504
13505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13507		fi
13508
13509		CFLAGS="$CFLAGS -Wold-style-definition"
13510
13511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13512$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13513		cacheid=xorg_cv_cc_flag__Wold_style_definition
13514		if eval \${$cacheid+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h.  */
13519int i;
13520int
13521main ()
13522{
13523
13524  ;
13525  return 0;
13526}
13527_ACEOF
13528if ac_fn_c_try_link "$LINENO"; then :
13529  eval $cacheid=yes
13530else
13531  eval $cacheid=no
13532fi
13533rm -f core conftest.err conftest.$ac_objext \
13534    conftest$ac_exeext conftest.$ac_ext
13535fi
13536
13537
13538		CFLAGS="$xorg_testset_save_CFLAGS"
13539
13540		eval supported=\$$cacheid
13541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13542$as_echo "$supported" >&6; }
13543		if test "$supported" = "yes" ; then
13544			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13545			found="yes"
13546		fi
13547	fi
13548
13549	if test $found = "no" ; then
13550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13552		fi
13553
13554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13556		fi
13557
13558		CFLAGS="$CFLAGS -fd"
13559
13560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13561$as_echo_n "checking if $CC supports -fd... " >&6; }
13562		cacheid=xorg_cv_cc_flag__fd
13563		if eval \${$cacheid+:} false; then :
13564  $as_echo_n "(cached) " >&6
13565else
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568int i;
13569int
13570main ()
13571{
13572
13573  ;
13574  return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_link "$LINENO"; then :
13578  eval $cacheid=yes
13579else
13580  eval $cacheid=no
13581fi
13582rm -f core conftest.err conftest.$ac_objext \
13583    conftest$ac_exeext conftest.$ac_ext
13584fi
13585
13586
13587		CFLAGS="$xorg_testset_save_CFLAGS"
13588
13589		eval supported=\$$cacheid
13590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13591$as_echo "$supported" >&6; }
13592		if test "$supported" = "yes" ; then
13593			BASE_CFLAGS="$BASE_CFLAGS -fd"
13594			found="yes"
13595		fi
13596	fi
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612xorg_testset_save_CFLAGS="$CFLAGS"
13613
13614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13619  $as_echo_n "(cached) " >&6
13620else
13621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623int i;
13624_ACEOF
13625if ac_fn_c_try_compile "$LINENO"; then :
13626  xorg_cv_cc_flag_unknown_warning_option=yes
13627else
13628  xorg_cv_cc_flag_unknown_warning_option=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631fi
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13635	CFLAGS="$xorg_testset_save_CFLAGS"
13636fi
13637
13638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13641	fi
13642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650int i;
13651_ACEOF
13652if ac_fn_c_try_compile "$LINENO"; then :
13653  xorg_cv_cc_flag_unused_command_line_argument=yes
13654else
13655  xorg_cv_cc_flag_unused_command_line_argument=no
13656fi
13657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13662	CFLAGS="$xorg_testset_save_CFLAGS"
13663fi
13664
13665found="no"
13666
13667	if test $found = "no" ; then
13668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13670		fi
13671
13672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13674		fi
13675
13676		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13677
13678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13679$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13680		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13681		if eval \${$cacheid+:} false; then :
13682  $as_echo_n "(cached) " >&6
13683else
13684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685/* end confdefs.h.  */
13686int i;
13687int
13688main ()
13689{
13690
13691  ;
13692  return 0;
13693}
13694_ACEOF
13695if ac_fn_c_try_link "$LINENO"; then :
13696  eval $cacheid=yes
13697else
13698  eval $cacheid=no
13699fi
13700rm -f core conftest.err conftest.$ac_objext \
13701    conftest$ac_exeext conftest.$ac_ext
13702fi
13703
13704
13705		CFLAGS="$xorg_testset_save_CFLAGS"
13706
13707		eval supported=\$$cacheid
13708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13709$as_echo "$supported" >&6; }
13710		if test "$supported" = "yes" ; then
13711			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13712			found="yes"
13713		fi
13714	fi
13715
13716
13717
13718
13719
13720# This chunk adds additional warnings that could catch undesired effects.
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734xorg_testset_save_CFLAGS="$CFLAGS"
13735
13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745int i;
13746_ACEOF
13747if ac_fn_c_try_compile "$LINENO"; then :
13748  xorg_cv_cc_flag_unknown_warning_option=yes
13749else
13750  xorg_cv_cc_flag_unknown_warning_option=no
13751fi
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753fi
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13757	CFLAGS="$xorg_testset_save_CFLAGS"
13758fi
13759
13760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763	fi
13764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772int i;
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"; then :
13775  xorg_cv_cc_flag_unused_command_line_argument=yes
13776else
13777  xorg_cv_cc_flag_unused_command_line_argument=no
13778fi
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13784	CFLAGS="$xorg_testset_save_CFLAGS"
13785fi
13786
13787found="no"
13788
13789	if test $found = "no" ; then
13790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13792		fi
13793
13794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796		fi
13797
13798		CFLAGS="$CFLAGS -Wunused"
13799
13800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13801$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13802		cacheid=xorg_cv_cc_flag__Wunused
13803		if eval \${$cacheid+:} false; then :
13804  $as_echo_n "(cached) " >&6
13805else
13806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h.  */
13808int i;
13809int
13810main ()
13811{
13812
13813  ;
13814  return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_link "$LINENO"; then :
13818  eval $cacheid=yes
13819else
13820  eval $cacheid=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext \
13823    conftest$ac_exeext conftest.$ac_ext
13824fi
13825
13826
13827		CFLAGS="$xorg_testset_save_CFLAGS"
13828
13829		eval supported=\$$cacheid
13830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13831$as_echo "$supported" >&6; }
13832		if test "$supported" = "yes" ; then
13833			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13834			found="yes"
13835		fi
13836	fi
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852xorg_testset_save_CFLAGS="$CFLAGS"
13853
13854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863int i;
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"; then :
13866  xorg_cv_cc_flag_unknown_warning_option=yes
13867else
13868  xorg_cv_cc_flag_unknown_warning_option=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875	CFLAGS="$xorg_testset_save_CFLAGS"
13876fi
13877
13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881	fi
13882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13886  $as_echo_n "(cached) " >&6
13887else
13888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889/* end confdefs.h.  */
13890int i;
13891_ACEOF
13892if ac_fn_c_try_compile "$LINENO"; then :
13893  xorg_cv_cc_flag_unused_command_line_argument=yes
13894else
13895  xorg_cv_cc_flag_unused_command_line_argument=no
13896fi
13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898fi
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13902	CFLAGS="$xorg_testset_save_CFLAGS"
13903fi
13904
13905found="no"
13906
13907	if test $found = "no" ; then
13908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910		fi
13911
13912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13914		fi
13915
13916		CFLAGS="$CFLAGS -Wuninitialized"
13917
13918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13919$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13920		cacheid=xorg_cv_cc_flag__Wuninitialized
13921		if eval \${$cacheid+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926int i;
13927int
13928main ()
13929{
13930
13931  ;
13932  return 0;
13933}
13934_ACEOF
13935if ac_fn_c_try_link "$LINENO"; then :
13936  eval $cacheid=yes
13937else
13938  eval $cacheid=no
13939fi
13940rm -f core conftest.err conftest.$ac_objext \
13941    conftest$ac_exeext conftest.$ac_ext
13942fi
13943
13944
13945		CFLAGS="$xorg_testset_save_CFLAGS"
13946
13947		eval supported=\$$cacheid
13948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13949$as_echo "$supported" >&6; }
13950		if test "$supported" = "yes" ; then
13951			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13952			found="yes"
13953		fi
13954	fi
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970xorg_testset_save_CFLAGS="$CFLAGS"
13971
13972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980/* end confdefs.h.  */
13981int i;
13982_ACEOF
13983if ac_fn_c_try_compile "$LINENO"; then :
13984  xorg_cv_cc_flag_unknown_warning_option=yes
13985else
13986  xorg_cv_cc_flag_unknown_warning_option=no
13987fi
13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13993	CFLAGS="$xorg_testset_save_CFLAGS"
13994fi
13995
13996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13999	fi
14000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14004  $as_echo_n "(cached) " >&6
14005else
14006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h.  */
14008int i;
14009_ACEOF
14010if ac_fn_c_try_compile "$LINENO"; then :
14011  xorg_cv_cc_flag_unused_command_line_argument=yes
14012else
14013  xorg_cv_cc_flag_unused_command_line_argument=no
14014fi
14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14020	CFLAGS="$xorg_testset_save_CFLAGS"
14021fi
14022
14023found="no"
14024
14025	if test $found = "no" ; then
14026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028		fi
14029
14030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14032		fi
14033
14034		CFLAGS="$CFLAGS -Wshadow"
14035
14036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14037$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14038		cacheid=xorg_cv_cc_flag__Wshadow
14039		if eval \${$cacheid+:} false; then :
14040  $as_echo_n "(cached) " >&6
14041else
14042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h.  */
14044int i;
14045int
14046main ()
14047{
14048
14049  ;
14050  return 0;
14051}
14052_ACEOF
14053if ac_fn_c_try_link "$LINENO"; then :
14054  eval $cacheid=yes
14055else
14056  eval $cacheid=no
14057fi
14058rm -f core conftest.err conftest.$ac_objext \
14059    conftest$ac_exeext conftest.$ac_ext
14060fi
14061
14062
14063		CFLAGS="$xorg_testset_save_CFLAGS"
14064
14065		eval supported=\$$cacheid
14066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14067$as_echo "$supported" >&6; }
14068		if test "$supported" = "yes" ; then
14069			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14070			found="yes"
14071		fi
14072	fi
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088xorg_testset_save_CFLAGS="$CFLAGS"
14089
14090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102  xorg_cv_cc_flag_unknown_warning_option=yes
14103else
14104  xorg_cv_cc_flag_unknown_warning_option=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107fi
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14111	CFLAGS="$xorg_testset_save_CFLAGS"
14112fi
14113
14114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14117	fi
14118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125/* end confdefs.h.  */
14126int i;
14127_ACEOF
14128if ac_fn_c_try_compile "$LINENO"; then :
14129  xorg_cv_cc_flag_unused_command_line_argument=yes
14130else
14131  xorg_cv_cc_flag_unused_command_line_argument=no
14132fi
14133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134fi
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14138	CFLAGS="$xorg_testset_save_CFLAGS"
14139fi
14140
14141found="no"
14142
14143	if test $found = "no" ; then
14144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14146		fi
14147
14148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14150		fi
14151
14152		CFLAGS="$CFLAGS -Wmissing-noreturn"
14153
14154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14155$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14156		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14157		if eval \${$cacheid+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161/* end confdefs.h.  */
14162int i;
14163int
14164main ()
14165{
14166
14167  ;
14168  return 0;
14169}
14170_ACEOF
14171if ac_fn_c_try_link "$LINENO"; then :
14172  eval $cacheid=yes
14173else
14174  eval $cacheid=no
14175fi
14176rm -f core conftest.err conftest.$ac_objext \
14177    conftest$ac_exeext conftest.$ac_ext
14178fi
14179
14180
14181		CFLAGS="$xorg_testset_save_CFLAGS"
14182
14183		eval supported=\$$cacheid
14184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14185$as_echo "$supported" >&6; }
14186		if test "$supported" = "yes" ; then
14187			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14188			found="yes"
14189		fi
14190	fi
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206xorg_testset_save_CFLAGS="$CFLAGS"
14207
14208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14213  $as_echo_n "(cached) " >&6
14214else
14215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217int i;
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220  xorg_cv_cc_flag_unknown_warning_option=yes
14221else
14222  xorg_cv_cc_flag_unknown_warning_option=no
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225fi
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14229	CFLAGS="$xorg_testset_save_CFLAGS"
14230fi
14231
14232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14235	fi
14236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14240  $as_echo_n "(cached) " >&6
14241else
14242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243/* end confdefs.h.  */
14244int i;
14245_ACEOF
14246if ac_fn_c_try_compile "$LINENO"; then :
14247  xorg_cv_cc_flag_unused_command_line_argument=yes
14248else
14249  xorg_cv_cc_flag_unused_command_line_argument=no
14250fi
14251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252fi
14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256	CFLAGS="$xorg_testset_save_CFLAGS"
14257fi
14258
14259found="no"
14260
14261	if test $found = "no" ; then
14262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264		fi
14265
14266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268		fi
14269
14270		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14271
14272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14273$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14274		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14275		if eval \${$cacheid+:} false; then :
14276  $as_echo_n "(cached) " >&6
14277else
14278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279/* end confdefs.h.  */
14280int i;
14281int
14282main ()
14283{
14284
14285  ;
14286  return 0;
14287}
14288_ACEOF
14289if ac_fn_c_try_link "$LINENO"; then :
14290  eval $cacheid=yes
14291else
14292  eval $cacheid=no
14293fi
14294rm -f core conftest.err conftest.$ac_objext \
14295    conftest$ac_exeext conftest.$ac_ext
14296fi
14297
14298
14299		CFLAGS="$xorg_testset_save_CFLAGS"
14300
14301		eval supported=\$$cacheid
14302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14303$as_echo "$supported" >&6; }
14304		if test "$supported" = "yes" ; then
14305			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14306			found="yes"
14307		fi
14308	fi
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324xorg_testset_save_CFLAGS="$CFLAGS"
14325
14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14331  $as_echo_n "(cached) " >&6
14332else
14333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h.  */
14335int i;
14336_ACEOF
14337if ac_fn_c_try_compile "$LINENO"; then :
14338  xorg_cv_cc_flag_unknown_warning_option=yes
14339else
14340  xorg_cv_cc_flag_unknown_warning_option=no
14341fi
14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14347	CFLAGS="$xorg_testset_save_CFLAGS"
14348fi
14349
14350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353	fi
14354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14358  $as_echo_n "(cached) " >&6
14359else
14360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361/* end confdefs.h.  */
14362int i;
14363_ACEOF
14364if ac_fn_c_try_compile "$LINENO"; then :
14365  xorg_cv_cc_flag_unused_command_line_argument=yes
14366else
14367  xorg_cv_cc_flag_unused_command_line_argument=no
14368fi
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370fi
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14374	CFLAGS="$xorg_testset_save_CFLAGS"
14375fi
14376
14377found="no"
14378
14379	if test $found = "no" ; then
14380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14382		fi
14383
14384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14386		fi
14387
14388		CFLAGS="$CFLAGS -Wredundant-decls"
14389
14390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14391$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14392		cacheid=xorg_cv_cc_flag__Wredundant_decls
14393		if eval \${$cacheid+:} false; then :
14394  $as_echo_n "(cached) " >&6
14395else
14396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397/* end confdefs.h.  */
14398int i;
14399int
14400main ()
14401{
14402
14403  ;
14404  return 0;
14405}
14406_ACEOF
14407if ac_fn_c_try_link "$LINENO"; then :
14408  eval $cacheid=yes
14409else
14410  eval $cacheid=no
14411fi
14412rm -f core conftest.err conftest.$ac_objext \
14413    conftest$ac_exeext conftest.$ac_ext
14414fi
14415
14416
14417		CFLAGS="$xorg_testset_save_CFLAGS"
14418
14419		eval supported=\$$cacheid
14420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14421$as_echo "$supported" >&6; }
14422		if test "$supported" = "yes" ; then
14423			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14424			found="yes"
14425		fi
14426	fi
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442xorg_testset_save_CFLAGS="$CFLAGS"
14443
14444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453int i;
14454_ACEOF
14455if ac_fn_c_try_compile "$LINENO"; then :
14456  xorg_cv_cc_flag_unknown_warning_option=yes
14457else
14458  xorg_cv_cc_flag_unknown_warning_option=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461fi
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14465	CFLAGS="$xorg_testset_save_CFLAGS"
14466fi
14467
14468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14471	fi
14472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14476  $as_echo_n "(cached) " >&6
14477else
14478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479/* end confdefs.h.  */
14480int i;
14481_ACEOF
14482if ac_fn_c_try_compile "$LINENO"; then :
14483  xorg_cv_cc_flag_unused_command_line_argument=yes
14484else
14485  xorg_cv_cc_flag_unused_command_line_argument=no
14486fi
14487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488fi
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14492	CFLAGS="$xorg_testset_save_CFLAGS"
14493fi
14494
14495found="no"
14496
14497	if test $found = "no" ; then
14498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14500		fi
14501
14502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14504		fi
14505
14506		CFLAGS="$CFLAGS -Wlogical-op"
14507
14508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14509$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14510		cacheid=xorg_cv_cc_flag__Wlogical_op
14511		if eval \${$cacheid+:} false; then :
14512  $as_echo_n "(cached) " >&6
14513else
14514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h.  */
14516int i;
14517int
14518main ()
14519{
14520
14521  ;
14522  return 0;
14523}
14524_ACEOF
14525if ac_fn_c_try_link "$LINENO"; then :
14526  eval $cacheid=yes
14527else
14528  eval $cacheid=no
14529fi
14530rm -f core conftest.err conftest.$ac_objext \
14531    conftest$ac_exeext conftest.$ac_ext
14532fi
14533
14534
14535		CFLAGS="$xorg_testset_save_CFLAGS"
14536
14537		eval supported=\$$cacheid
14538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14539$as_echo "$supported" >&6; }
14540		if test "$supported" = "yes" ; then
14541			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14542			found="yes"
14543		fi
14544	fi
14545
14546
14547
14548# These are currently disabled because they are noisy.  They will be enabled
14549# in the future once the codebase is sufficiently modernized to silence
14550# them.  For now, I don't want them to drown out the other warnings.
14551# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14552# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14553# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14554
14555# Turn some warnings into errors, so we don't accidently get successful builds
14556# when there are problems that should be fixed.
14557
14558if test "x$SELECTIVE_WERROR" = "xyes" ; then
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14579  $as_echo_n "(cached) " >&6
14580else
14581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582/* end confdefs.h.  */
14583int i;
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586  xorg_cv_cc_flag_unknown_warning_option=yes
14587else
14588  xorg_cv_cc_flag_unknown_warning_option=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14595	CFLAGS="$xorg_testset_save_CFLAGS"
14596fi
14597
14598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601	fi
14602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14606  $as_echo_n "(cached) " >&6
14607else
14608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610int i;
14611_ACEOF
14612if ac_fn_c_try_compile "$LINENO"; then :
14613  xorg_cv_cc_flag_unused_command_line_argument=yes
14614else
14615  xorg_cv_cc_flag_unused_command_line_argument=no
14616fi
14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14622	CFLAGS="$xorg_testset_save_CFLAGS"
14623fi
14624
14625found="no"
14626
14627	if test $found = "no" ; then
14628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14630		fi
14631
14632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634		fi
14635
14636		CFLAGS="$CFLAGS -Werror=implicit"
14637
14638		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14639$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14640		cacheid=xorg_cv_cc_flag__Werror_implicit
14641		if eval \${$cacheid+:} false; then :
14642  $as_echo_n "(cached) " >&6
14643else
14644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645/* end confdefs.h.  */
14646int i;
14647int
14648main ()
14649{
14650
14651  ;
14652  return 0;
14653}
14654_ACEOF
14655if ac_fn_c_try_link "$LINENO"; then :
14656  eval $cacheid=yes
14657else
14658  eval $cacheid=no
14659fi
14660rm -f core conftest.err conftest.$ac_objext \
14661    conftest$ac_exeext conftest.$ac_ext
14662fi
14663
14664
14665		CFLAGS="$xorg_testset_save_CFLAGS"
14666
14667		eval supported=\$$cacheid
14668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14669$as_echo "$supported" >&6; }
14670		if test "$supported" = "yes" ; then
14671			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14672			found="yes"
14673		fi
14674	fi
14675
14676	if test $found = "no" ; then
14677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14679		fi
14680
14681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683		fi
14684
14685		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14686
14687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14688$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14689		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14690		if eval \${$cacheid+:} false; then :
14691  $as_echo_n "(cached) " >&6
14692else
14693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694/* end confdefs.h.  */
14695int i;
14696int
14697main ()
14698{
14699
14700  ;
14701  return 0;
14702}
14703_ACEOF
14704if ac_fn_c_try_link "$LINENO"; then :
14705  eval $cacheid=yes
14706else
14707  eval $cacheid=no
14708fi
14709rm -f core conftest.err conftest.$ac_objext \
14710    conftest$ac_exeext conftest.$ac_ext
14711fi
14712
14713
14714		CFLAGS="$xorg_testset_save_CFLAGS"
14715
14716		eval supported=\$$cacheid
14717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14718$as_echo "$supported" >&6; }
14719		if test "$supported" = "yes" ; then
14720			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14721			found="yes"
14722		fi
14723	fi
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739xorg_testset_save_CFLAGS="$CFLAGS"
14740
14741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14746  $as_echo_n "(cached) " >&6
14747else
14748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749/* end confdefs.h.  */
14750int i;
14751_ACEOF
14752if ac_fn_c_try_compile "$LINENO"; then :
14753  xorg_cv_cc_flag_unknown_warning_option=yes
14754else
14755  xorg_cv_cc_flag_unknown_warning_option=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758fi
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14762	CFLAGS="$xorg_testset_save_CFLAGS"
14763fi
14764
14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768	fi
14769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14773  $as_echo_n "(cached) " >&6
14774else
14775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776/* end confdefs.h.  */
14777int i;
14778_ACEOF
14779if ac_fn_c_try_compile "$LINENO"; then :
14780  xorg_cv_cc_flag_unused_command_line_argument=yes
14781else
14782  xorg_cv_cc_flag_unused_command_line_argument=no
14783fi
14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785fi
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14789	CFLAGS="$xorg_testset_save_CFLAGS"
14790fi
14791
14792found="no"
14793
14794	if test $found = "no" ; then
14795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797		fi
14798
14799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14801		fi
14802
14803		CFLAGS="$CFLAGS -Werror=nonnull"
14804
14805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14806$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14807		cacheid=xorg_cv_cc_flag__Werror_nonnull
14808		if eval \${$cacheid+:} false; then :
14809  $as_echo_n "(cached) " >&6
14810else
14811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812/* end confdefs.h.  */
14813int i;
14814int
14815main ()
14816{
14817
14818  ;
14819  return 0;
14820}
14821_ACEOF
14822if ac_fn_c_try_link "$LINENO"; then :
14823  eval $cacheid=yes
14824else
14825  eval $cacheid=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext \
14828    conftest$ac_exeext conftest.$ac_ext
14829fi
14830
14831
14832		CFLAGS="$xorg_testset_save_CFLAGS"
14833
14834		eval supported=\$$cacheid
14835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14836$as_echo "$supported" >&6; }
14837		if test "$supported" = "yes" ; then
14838			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14839			found="yes"
14840		fi
14841	fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857xorg_testset_save_CFLAGS="$CFLAGS"
14858
14859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14864  $as_echo_n "(cached) " >&6
14865else
14866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h.  */
14868int i;
14869_ACEOF
14870if ac_fn_c_try_compile "$LINENO"; then :
14871  xorg_cv_cc_flag_unknown_warning_option=yes
14872else
14873  xorg_cv_cc_flag_unknown_warning_option=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876fi
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14880	CFLAGS="$xorg_testset_save_CFLAGS"
14881fi
14882
14883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14886	fi
14887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14891  $as_echo_n "(cached) " >&6
14892else
14893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894/* end confdefs.h.  */
14895int i;
14896_ACEOF
14897if ac_fn_c_try_compile "$LINENO"; then :
14898  xorg_cv_cc_flag_unused_command_line_argument=yes
14899else
14900  xorg_cv_cc_flag_unused_command_line_argument=no
14901fi
14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14907	CFLAGS="$xorg_testset_save_CFLAGS"
14908fi
14909
14910found="no"
14911
14912	if test $found = "no" ; then
14913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915		fi
14916
14917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919		fi
14920
14921		CFLAGS="$CFLAGS -Werror=init-self"
14922
14923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14924$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14925		cacheid=xorg_cv_cc_flag__Werror_init_self
14926		if eval \${$cacheid+:} false; then :
14927  $as_echo_n "(cached) " >&6
14928else
14929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930/* end confdefs.h.  */
14931int i;
14932int
14933main ()
14934{
14935
14936  ;
14937  return 0;
14938}
14939_ACEOF
14940if ac_fn_c_try_link "$LINENO"; then :
14941  eval $cacheid=yes
14942else
14943  eval $cacheid=no
14944fi
14945rm -f core conftest.err conftest.$ac_objext \
14946    conftest$ac_exeext conftest.$ac_ext
14947fi
14948
14949
14950		CFLAGS="$xorg_testset_save_CFLAGS"
14951
14952		eval supported=\$$cacheid
14953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14954$as_echo "$supported" >&6; }
14955		if test "$supported" = "yes" ; then
14956			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14957			found="yes"
14958		fi
14959	fi
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975xorg_testset_save_CFLAGS="$CFLAGS"
14976
14977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14982  $as_echo_n "(cached) " >&6
14983else
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"; then :
14989  xorg_cv_cc_flag_unknown_warning_option=yes
14990else
14991  xorg_cv_cc_flag_unknown_warning_option=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14998	CFLAGS="$xorg_testset_save_CFLAGS"
14999fi
15000
15001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004	fi
15005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h.  */
15013int i;
15014_ACEOF
15015if ac_fn_c_try_compile "$LINENO"; then :
15016  xorg_cv_cc_flag_unused_command_line_argument=yes
15017else
15018  xorg_cv_cc_flag_unused_command_line_argument=no
15019fi
15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021fi
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15025	CFLAGS="$xorg_testset_save_CFLAGS"
15026fi
15027
15028found="no"
15029
15030	if test $found = "no" ; then
15031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15033		fi
15034
15035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037		fi
15038
15039		CFLAGS="$CFLAGS -Werror=main"
15040
15041		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15042$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15043		cacheid=xorg_cv_cc_flag__Werror_main
15044		if eval \${$cacheid+:} false; then :
15045  $as_echo_n "(cached) " >&6
15046else
15047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048/* end confdefs.h.  */
15049int i;
15050int
15051main ()
15052{
15053
15054  ;
15055  return 0;
15056}
15057_ACEOF
15058if ac_fn_c_try_link "$LINENO"; then :
15059  eval $cacheid=yes
15060else
15061  eval $cacheid=no
15062fi
15063rm -f core conftest.err conftest.$ac_objext \
15064    conftest$ac_exeext conftest.$ac_ext
15065fi
15066
15067
15068		CFLAGS="$xorg_testset_save_CFLAGS"
15069
15070		eval supported=\$$cacheid
15071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15072$as_echo "$supported" >&6; }
15073		if test "$supported" = "yes" ; then
15074			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15075			found="yes"
15076		fi
15077	fi
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093xorg_testset_save_CFLAGS="$CFLAGS"
15094
15095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15100  $as_echo_n "(cached) " >&6
15101else
15102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h.  */
15104int i;
15105_ACEOF
15106if ac_fn_c_try_compile "$LINENO"; then :
15107  xorg_cv_cc_flag_unknown_warning_option=yes
15108else
15109  xorg_cv_cc_flag_unknown_warning_option=no
15110fi
15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15116	CFLAGS="$xorg_testset_save_CFLAGS"
15117fi
15118
15119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15122	fi
15123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15127  $as_echo_n "(cached) " >&6
15128else
15129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131int i;
15132_ACEOF
15133if ac_fn_c_try_compile "$LINENO"; then :
15134  xorg_cv_cc_flag_unused_command_line_argument=yes
15135else
15136  xorg_cv_cc_flag_unused_command_line_argument=no
15137fi
15138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139fi
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15143	CFLAGS="$xorg_testset_save_CFLAGS"
15144fi
15145
15146found="no"
15147
15148	if test $found = "no" ; then
15149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15151		fi
15152
15153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155		fi
15156
15157		CFLAGS="$CFLAGS -Werror=missing-braces"
15158
15159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15160$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15161		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15162		if eval \${$cacheid+:} false; then :
15163  $as_echo_n "(cached) " >&6
15164else
15165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h.  */
15167int i;
15168int
15169main ()
15170{
15171
15172  ;
15173  return 0;
15174}
15175_ACEOF
15176if ac_fn_c_try_link "$LINENO"; then :
15177  eval $cacheid=yes
15178else
15179  eval $cacheid=no
15180fi
15181rm -f core conftest.err conftest.$ac_objext \
15182    conftest$ac_exeext conftest.$ac_ext
15183fi
15184
15185
15186		CFLAGS="$xorg_testset_save_CFLAGS"
15187
15188		eval supported=\$$cacheid
15189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15190$as_echo "$supported" >&6; }
15191		if test "$supported" = "yes" ; then
15192			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15193			found="yes"
15194		fi
15195	fi
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211xorg_testset_save_CFLAGS="$CFLAGS"
15212
15213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15218  $as_echo_n "(cached) " >&6
15219else
15220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222int i;
15223_ACEOF
15224if ac_fn_c_try_compile "$LINENO"; then :
15225  xorg_cv_cc_flag_unknown_warning_option=yes
15226else
15227  xorg_cv_cc_flag_unknown_warning_option=no
15228fi
15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15234	CFLAGS="$xorg_testset_save_CFLAGS"
15235fi
15236
15237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15240	fi
15241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15245  $as_echo_n "(cached) " >&6
15246else
15247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h.  */
15249int i;
15250_ACEOF
15251if ac_fn_c_try_compile "$LINENO"; then :
15252  xorg_cv_cc_flag_unused_command_line_argument=yes
15253else
15254  xorg_cv_cc_flag_unused_command_line_argument=no
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15261	CFLAGS="$xorg_testset_save_CFLAGS"
15262fi
15263
15264found="no"
15265
15266	if test $found = "no" ; then
15267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15269		fi
15270
15271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273		fi
15274
15275		CFLAGS="$CFLAGS -Werror=sequence-point"
15276
15277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15278$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15279		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15280		if eval \${$cacheid+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284/* end confdefs.h.  */
15285int i;
15286int
15287main ()
15288{
15289
15290  ;
15291  return 0;
15292}
15293_ACEOF
15294if ac_fn_c_try_link "$LINENO"; then :
15295  eval $cacheid=yes
15296else
15297  eval $cacheid=no
15298fi
15299rm -f core conftest.err conftest.$ac_objext \
15300    conftest$ac_exeext conftest.$ac_ext
15301fi
15302
15303
15304		CFLAGS="$xorg_testset_save_CFLAGS"
15305
15306		eval supported=\$$cacheid
15307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15308$as_echo "$supported" >&6; }
15309		if test "$supported" = "yes" ; then
15310			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15311			found="yes"
15312		fi
15313	fi
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329xorg_testset_save_CFLAGS="$CFLAGS"
15330
15331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339/* end confdefs.h.  */
15340int i;
15341_ACEOF
15342if ac_fn_c_try_compile "$LINENO"; then :
15343  xorg_cv_cc_flag_unknown_warning_option=yes
15344else
15345  xorg_cv_cc_flag_unknown_warning_option=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15352	CFLAGS="$xorg_testset_save_CFLAGS"
15353fi
15354
15355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15358	fi
15359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15363  $as_echo_n "(cached) " >&6
15364else
15365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h.  */
15367int i;
15368_ACEOF
15369if ac_fn_c_try_compile "$LINENO"; then :
15370  xorg_cv_cc_flag_unused_command_line_argument=yes
15371else
15372  xorg_cv_cc_flag_unused_command_line_argument=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375fi
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15379	CFLAGS="$xorg_testset_save_CFLAGS"
15380fi
15381
15382found="no"
15383
15384	if test $found = "no" ; then
15385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15387		fi
15388
15389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391		fi
15392
15393		CFLAGS="$CFLAGS -Werror=return-type"
15394
15395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15396$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15397		cacheid=xorg_cv_cc_flag__Werror_return_type
15398		if eval \${$cacheid+:} false; then :
15399  $as_echo_n "(cached) " >&6
15400else
15401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402/* end confdefs.h.  */
15403int i;
15404int
15405main ()
15406{
15407
15408  ;
15409  return 0;
15410}
15411_ACEOF
15412if ac_fn_c_try_link "$LINENO"; then :
15413  eval $cacheid=yes
15414else
15415  eval $cacheid=no
15416fi
15417rm -f core conftest.err conftest.$ac_objext \
15418    conftest$ac_exeext conftest.$ac_ext
15419fi
15420
15421
15422		CFLAGS="$xorg_testset_save_CFLAGS"
15423
15424		eval supported=\$$cacheid
15425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15426$as_echo "$supported" >&6; }
15427		if test "$supported" = "yes" ; then
15428			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15429			found="yes"
15430		fi
15431	fi
15432
15433	if test $found = "no" ; then
15434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15436		fi
15437
15438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15440		fi
15441
15442		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15443
15444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15445$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15446		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15447		if eval \${$cacheid+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452int i;
15453int
15454main ()
15455{
15456
15457  ;
15458  return 0;
15459}
15460_ACEOF
15461if ac_fn_c_try_link "$LINENO"; then :
15462  eval $cacheid=yes
15463else
15464  eval $cacheid=no
15465fi
15466rm -f core conftest.err conftest.$ac_objext \
15467    conftest$ac_exeext conftest.$ac_ext
15468fi
15469
15470
15471		CFLAGS="$xorg_testset_save_CFLAGS"
15472
15473		eval supported=\$$cacheid
15474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15475$as_echo "$supported" >&6; }
15476		if test "$supported" = "yes" ; then
15477			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15478			found="yes"
15479		fi
15480	fi
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496xorg_testset_save_CFLAGS="$CFLAGS"
15497
15498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15503  $as_echo_n "(cached) " >&6
15504else
15505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506/* end confdefs.h.  */
15507int i;
15508_ACEOF
15509if ac_fn_c_try_compile "$LINENO"; then :
15510  xorg_cv_cc_flag_unknown_warning_option=yes
15511else
15512  xorg_cv_cc_flag_unknown_warning_option=no
15513fi
15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515fi
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15519	CFLAGS="$xorg_testset_save_CFLAGS"
15520fi
15521
15522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525	fi
15526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15530  $as_echo_n "(cached) " >&6
15531else
15532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533/* end confdefs.h.  */
15534int i;
15535_ACEOF
15536if ac_fn_c_try_compile "$LINENO"; then :
15537  xorg_cv_cc_flag_unused_command_line_argument=yes
15538else
15539  xorg_cv_cc_flag_unused_command_line_argument=no
15540fi
15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542fi
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15546	CFLAGS="$xorg_testset_save_CFLAGS"
15547fi
15548
15549found="no"
15550
15551	if test $found = "no" ; then
15552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15554		fi
15555
15556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558		fi
15559
15560		CFLAGS="$CFLAGS -Werror=trigraphs"
15561
15562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15563$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15564		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15565		if eval \${$cacheid+:} false; then :
15566  $as_echo_n "(cached) " >&6
15567else
15568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h.  */
15570int i;
15571int
15572main ()
15573{
15574
15575  ;
15576  return 0;
15577}
15578_ACEOF
15579if ac_fn_c_try_link "$LINENO"; then :
15580  eval $cacheid=yes
15581else
15582  eval $cacheid=no
15583fi
15584rm -f core conftest.err conftest.$ac_objext \
15585    conftest$ac_exeext conftest.$ac_ext
15586fi
15587
15588
15589		CFLAGS="$xorg_testset_save_CFLAGS"
15590
15591		eval supported=\$$cacheid
15592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15593$as_echo "$supported" >&6; }
15594		if test "$supported" = "yes" ; then
15595			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15596			found="yes"
15597		fi
15598	fi
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614xorg_testset_save_CFLAGS="$CFLAGS"
15615
15616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15621  $as_echo_n "(cached) " >&6
15622else
15623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h.  */
15625int i;
15626_ACEOF
15627if ac_fn_c_try_compile "$LINENO"; then :
15628  xorg_cv_cc_flag_unknown_warning_option=yes
15629else
15630  xorg_cv_cc_flag_unknown_warning_option=no
15631fi
15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15637	CFLAGS="$xorg_testset_save_CFLAGS"
15638fi
15639
15640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15643	fi
15644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15648  $as_echo_n "(cached) " >&6
15649else
15650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651/* end confdefs.h.  */
15652int i;
15653_ACEOF
15654if ac_fn_c_try_compile "$LINENO"; then :
15655  xorg_cv_cc_flag_unused_command_line_argument=yes
15656else
15657  xorg_cv_cc_flag_unused_command_line_argument=no
15658fi
15659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660fi
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15664	CFLAGS="$xorg_testset_save_CFLAGS"
15665fi
15666
15667found="no"
15668
15669	if test $found = "no" ; then
15670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672		fi
15673
15674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15676		fi
15677
15678		CFLAGS="$CFLAGS -Werror=array-bounds"
15679
15680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15681$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15682		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15683		if eval \${$cacheid+:} false; then :
15684  $as_echo_n "(cached) " >&6
15685else
15686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687/* end confdefs.h.  */
15688int i;
15689int
15690main ()
15691{
15692
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_link "$LINENO"; then :
15698  eval $cacheid=yes
15699else
15700  eval $cacheid=no
15701fi
15702rm -f core conftest.err conftest.$ac_objext \
15703    conftest$ac_exeext conftest.$ac_ext
15704fi
15705
15706
15707		CFLAGS="$xorg_testset_save_CFLAGS"
15708
15709		eval supported=\$$cacheid
15710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15711$as_echo "$supported" >&6; }
15712		if test "$supported" = "yes" ; then
15713			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15714			found="yes"
15715		fi
15716	fi
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732xorg_testset_save_CFLAGS="$CFLAGS"
15733
15734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15739  $as_echo_n "(cached) " >&6
15740else
15741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742/* end confdefs.h.  */
15743int i;
15744_ACEOF
15745if ac_fn_c_try_compile "$LINENO"; then :
15746  xorg_cv_cc_flag_unknown_warning_option=yes
15747else
15748  xorg_cv_cc_flag_unknown_warning_option=no
15749fi
15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15755	CFLAGS="$xorg_testset_save_CFLAGS"
15756fi
15757
15758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15761	fi
15762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769/* end confdefs.h.  */
15770int i;
15771_ACEOF
15772if ac_fn_c_try_compile "$LINENO"; then :
15773  xorg_cv_cc_flag_unused_command_line_argument=yes
15774else
15775  xorg_cv_cc_flag_unused_command_line_argument=no
15776fi
15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778fi
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15782	CFLAGS="$xorg_testset_save_CFLAGS"
15783fi
15784
15785found="no"
15786
15787	if test $found = "no" ; then
15788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15790		fi
15791
15792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15794		fi
15795
15796		CFLAGS="$CFLAGS -Werror=write-strings"
15797
15798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15799$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15800		cacheid=xorg_cv_cc_flag__Werror_write_strings
15801		if eval \${$cacheid+:} false; then :
15802  $as_echo_n "(cached) " >&6
15803else
15804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h.  */
15806int i;
15807int
15808main ()
15809{
15810
15811  ;
15812  return 0;
15813}
15814_ACEOF
15815if ac_fn_c_try_link "$LINENO"; then :
15816  eval $cacheid=yes
15817else
15818  eval $cacheid=no
15819fi
15820rm -f core conftest.err conftest.$ac_objext \
15821    conftest$ac_exeext conftest.$ac_ext
15822fi
15823
15824
15825		CFLAGS="$xorg_testset_save_CFLAGS"
15826
15827		eval supported=\$$cacheid
15828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15829$as_echo "$supported" >&6; }
15830		if test "$supported" = "yes" ; then
15831			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15832			found="yes"
15833		fi
15834	fi
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850xorg_testset_save_CFLAGS="$CFLAGS"
15851
15852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15857  $as_echo_n "(cached) " >&6
15858else
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861int i;
15862_ACEOF
15863if ac_fn_c_try_compile "$LINENO"; then :
15864  xorg_cv_cc_flag_unknown_warning_option=yes
15865else
15866  xorg_cv_cc_flag_unknown_warning_option=no
15867fi
15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15873	CFLAGS="$xorg_testset_save_CFLAGS"
15874fi
15875
15876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879	fi
15880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15884  $as_echo_n "(cached) " >&6
15885else
15886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h.  */
15888int i;
15889_ACEOF
15890if ac_fn_c_try_compile "$LINENO"; then :
15891  xorg_cv_cc_flag_unused_command_line_argument=yes
15892else
15893  xorg_cv_cc_flag_unused_command_line_argument=no
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896fi
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15900	CFLAGS="$xorg_testset_save_CFLAGS"
15901fi
15902
15903found="no"
15904
15905	if test $found = "no" ; then
15906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908		fi
15909
15910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15912		fi
15913
15914		CFLAGS="$CFLAGS -Werror=address"
15915
15916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15917$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15918		cacheid=xorg_cv_cc_flag__Werror_address
15919		if eval \${$cacheid+:} false; then :
15920  $as_echo_n "(cached) " >&6
15921else
15922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923/* end confdefs.h.  */
15924int i;
15925int
15926main ()
15927{
15928
15929  ;
15930  return 0;
15931}
15932_ACEOF
15933if ac_fn_c_try_link "$LINENO"; then :
15934  eval $cacheid=yes
15935else
15936  eval $cacheid=no
15937fi
15938rm -f core conftest.err conftest.$ac_objext \
15939    conftest$ac_exeext conftest.$ac_ext
15940fi
15941
15942
15943		CFLAGS="$xorg_testset_save_CFLAGS"
15944
15945		eval supported=\$$cacheid
15946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15947$as_echo "$supported" >&6; }
15948		if test "$supported" = "yes" ; then
15949			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15950			found="yes"
15951		fi
15952	fi
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968xorg_testset_save_CFLAGS="$CFLAGS"
15969
15970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979int i;
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"; then :
15982  xorg_cv_cc_flag_unknown_warning_option=yes
15983else
15984  xorg_cv_cc_flag_unknown_warning_option=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15991	CFLAGS="$xorg_testset_save_CFLAGS"
15992fi
15993
15994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997	fi
15998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16002  $as_echo_n "(cached) " >&6
16003else
16004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h.  */
16006int i;
16007_ACEOF
16008if ac_fn_c_try_compile "$LINENO"; then :
16009  xorg_cv_cc_flag_unused_command_line_argument=yes
16010else
16011  xorg_cv_cc_flag_unused_command_line_argument=no
16012fi
16013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014fi
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16018	CFLAGS="$xorg_testset_save_CFLAGS"
16019fi
16020
16021found="no"
16022
16023	if test $found = "no" ; then
16024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16026		fi
16027
16028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030		fi
16031
16032		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16033
16034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16035$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16036		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16037		if eval \${$cacheid+:} false; then :
16038  $as_echo_n "(cached) " >&6
16039else
16040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042int i;
16043int
16044main ()
16045{
16046
16047  ;
16048  return 0;
16049}
16050_ACEOF
16051if ac_fn_c_try_link "$LINENO"; then :
16052  eval $cacheid=yes
16053else
16054  eval $cacheid=no
16055fi
16056rm -f core conftest.err conftest.$ac_objext \
16057    conftest$ac_exeext conftest.$ac_ext
16058fi
16059
16060
16061		CFLAGS="$xorg_testset_save_CFLAGS"
16062
16063		eval supported=\$$cacheid
16064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16065$as_echo "$supported" >&6; }
16066		if test "$supported" = "yes" ; then
16067			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16068			found="yes"
16069		fi
16070	fi
16071
16072	if test $found = "no" ; then
16073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16075		fi
16076
16077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16079		fi
16080
16081		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16082
16083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16084$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16085		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16086		if eval \${$cacheid+:} false; then :
16087  $as_echo_n "(cached) " >&6
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092int
16093main ()
16094{
16095
16096  ;
16097  return 0;
16098}
16099_ACEOF
16100if ac_fn_c_try_link "$LINENO"; then :
16101  eval $cacheid=yes
16102else
16103  eval $cacheid=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext \
16106    conftest$ac_exeext conftest.$ac_ext
16107fi
16108
16109
16110		CFLAGS="$xorg_testset_save_CFLAGS"
16111
16112		eval supported=\$$cacheid
16113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16114$as_echo "$supported" >&6; }
16115		if test "$supported" = "yes" ; then
16116			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16117			found="yes"
16118		fi
16119	fi
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135xorg_testset_save_CFLAGS="$CFLAGS"
16136
16137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16142  $as_echo_n "(cached) " >&6
16143else
16144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h.  */
16146int i;
16147_ACEOF
16148if ac_fn_c_try_compile "$LINENO"; then :
16149  xorg_cv_cc_flag_unknown_warning_option=yes
16150else
16151  xorg_cv_cc_flag_unknown_warning_option=no
16152fi
16153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154fi
16155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16158	CFLAGS="$xorg_testset_save_CFLAGS"
16159fi
16160
16161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16164	fi
16165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16169  $as_echo_n "(cached) " >&6
16170else
16171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172/* end confdefs.h.  */
16173int i;
16174_ACEOF
16175if ac_fn_c_try_compile "$LINENO"; then :
16176  xorg_cv_cc_flag_unused_command_line_argument=yes
16177else
16178  xorg_cv_cc_flag_unused_command_line_argument=no
16179fi
16180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181fi
16182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16185	CFLAGS="$xorg_testset_save_CFLAGS"
16186fi
16187
16188found="no"
16189
16190	if test $found = "no" ; then
16191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16193		fi
16194
16195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16197		fi
16198
16199		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16200
16201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16202$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16203		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16204		if eval \${$cacheid+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208/* end confdefs.h.  */
16209int i;
16210int
16211main ()
16212{
16213
16214  ;
16215  return 0;
16216}
16217_ACEOF
16218if ac_fn_c_try_link "$LINENO"; then :
16219  eval $cacheid=yes
16220else
16221  eval $cacheid=no
16222fi
16223rm -f core conftest.err conftest.$ac_objext \
16224    conftest$ac_exeext conftest.$ac_ext
16225fi
16226
16227
16228		CFLAGS="$xorg_testset_save_CFLAGS"
16229
16230		eval supported=\$$cacheid
16231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16232$as_echo "$supported" >&6; }
16233		if test "$supported" = "yes" ; then
16234			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16235			found="yes"
16236		fi
16237	fi
16238
16239 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16240else
16241{ $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
16242$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;}
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256xorg_testset_save_CFLAGS="$CFLAGS"
16257
16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16263  $as_echo_n "(cached) " >&6
16264else
16265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h.  */
16267int i;
16268_ACEOF
16269if ac_fn_c_try_compile "$LINENO"; then :
16270  xorg_cv_cc_flag_unknown_warning_option=yes
16271else
16272  xorg_cv_cc_flag_unknown_warning_option=no
16273fi
16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275fi
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16279	CFLAGS="$xorg_testset_save_CFLAGS"
16280fi
16281
16282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16285	fi
16286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16290  $as_echo_n "(cached) " >&6
16291else
16292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294int i;
16295_ACEOF
16296if ac_fn_c_try_compile "$LINENO"; then :
16297  xorg_cv_cc_flag_unused_command_line_argument=yes
16298else
16299  xorg_cv_cc_flag_unused_command_line_argument=no
16300fi
16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302fi
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16306	CFLAGS="$xorg_testset_save_CFLAGS"
16307fi
16308
16309found="no"
16310
16311	if test $found = "no" ; then
16312		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314		fi
16315
16316		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318		fi
16319
16320		CFLAGS="$CFLAGS -Wimplicit"
16321
16322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16323$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16324		cacheid=xorg_cv_cc_flag__Wimplicit
16325		if eval \${$cacheid+:} false; then :
16326  $as_echo_n "(cached) " >&6
16327else
16328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h.  */
16330int i;
16331int
16332main ()
16333{
16334
16335  ;
16336  return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340  eval $cacheid=yes
16341else
16342  eval $cacheid=no
16343fi
16344rm -f core conftest.err conftest.$ac_objext \
16345    conftest$ac_exeext conftest.$ac_ext
16346fi
16347
16348
16349		CFLAGS="$xorg_testset_save_CFLAGS"
16350
16351		eval supported=\$$cacheid
16352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16353$as_echo "$supported" >&6; }
16354		if test "$supported" = "yes" ; then
16355			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16356			found="yes"
16357		fi
16358	fi
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374xorg_testset_save_CFLAGS="$CFLAGS"
16375
16376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16381  $as_echo_n "(cached) " >&6
16382else
16383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h.  */
16385int i;
16386_ACEOF
16387if ac_fn_c_try_compile "$LINENO"; then :
16388  xorg_cv_cc_flag_unknown_warning_option=yes
16389else
16390  xorg_cv_cc_flag_unknown_warning_option=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16403	fi
16404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16408  $as_echo_n "(cached) " >&6
16409else
16410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412int i;
16413_ACEOF
16414if ac_fn_c_try_compile "$LINENO"; then :
16415  xorg_cv_cc_flag_unused_command_line_argument=yes
16416else
16417  xorg_cv_cc_flag_unused_command_line_argument=no
16418fi
16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420fi
16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16424	CFLAGS="$xorg_testset_save_CFLAGS"
16425fi
16426
16427found="no"
16428
16429	if test $found = "no" ; then
16430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432		fi
16433
16434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16436		fi
16437
16438		CFLAGS="$CFLAGS -Wnonnull"
16439
16440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16441$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16442		cacheid=xorg_cv_cc_flag__Wnonnull
16443		if eval \${$cacheid+:} false; then :
16444  $as_echo_n "(cached) " >&6
16445else
16446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447/* end confdefs.h.  */
16448int i;
16449int
16450main ()
16451{
16452
16453  ;
16454  return 0;
16455}
16456_ACEOF
16457if ac_fn_c_try_link "$LINENO"; then :
16458  eval $cacheid=yes
16459else
16460  eval $cacheid=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext \
16463    conftest$ac_exeext conftest.$ac_ext
16464fi
16465
16466
16467		CFLAGS="$xorg_testset_save_CFLAGS"
16468
16469		eval supported=\$$cacheid
16470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16471$as_echo "$supported" >&6; }
16472		if test "$supported" = "yes" ; then
16473			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16474			found="yes"
16475		fi
16476	fi
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492xorg_testset_save_CFLAGS="$CFLAGS"
16493
16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int i;
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506  xorg_cv_cc_flag_unknown_warning_option=yes
16507else
16508  xorg_cv_cc_flag_unknown_warning_option=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16515	CFLAGS="$xorg_testset_save_CFLAGS"
16516fi
16517
16518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16521	fi
16522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530int i;
16531_ACEOF
16532if ac_fn_c_try_compile "$LINENO"; then :
16533  xorg_cv_cc_flag_unused_command_line_argument=yes
16534else
16535  xorg_cv_cc_flag_unused_command_line_argument=no
16536fi
16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538fi
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16542	CFLAGS="$xorg_testset_save_CFLAGS"
16543fi
16544
16545found="no"
16546
16547	if test $found = "no" ; then
16548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550		fi
16551
16552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554		fi
16555
16556		CFLAGS="$CFLAGS -Winit-self"
16557
16558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16559$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16560		cacheid=xorg_cv_cc_flag__Winit_self
16561		if eval \${$cacheid+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h.  */
16566int i;
16567int
16568main ()
16569{
16570
16571  ;
16572  return 0;
16573}
16574_ACEOF
16575if ac_fn_c_try_link "$LINENO"; then :
16576  eval $cacheid=yes
16577else
16578  eval $cacheid=no
16579fi
16580rm -f core conftest.err conftest.$ac_objext \
16581    conftest$ac_exeext conftest.$ac_ext
16582fi
16583
16584
16585		CFLAGS="$xorg_testset_save_CFLAGS"
16586
16587		eval supported=\$$cacheid
16588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16589$as_echo "$supported" >&6; }
16590		if test "$supported" = "yes" ; then
16591			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16592			found="yes"
16593		fi
16594	fi
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610xorg_testset_save_CFLAGS="$CFLAGS"
16611
16612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621int i;
16622_ACEOF
16623if ac_fn_c_try_compile "$LINENO"; then :
16624  xorg_cv_cc_flag_unknown_warning_option=yes
16625else
16626  xorg_cv_cc_flag_unknown_warning_option=no
16627fi
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16633	CFLAGS="$xorg_testset_save_CFLAGS"
16634fi
16635
16636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639	fi
16640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16644  $as_echo_n "(cached) " >&6
16645else
16646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647/* end confdefs.h.  */
16648int i;
16649_ACEOF
16650if ac_fn_c_try_compile "$LINENO"; then :
16651  xorg_cv_cc_flag_unused_command_line_argument=yes
16652else
16653  xorg_cv_cc_flag_unused_command_line_argument=no
16654fi
16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656fi
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16660	CFLAGS="$xorg_testset_save_CFLAGS"
16661fi
16662
16663found="no"
16664
16665	if test $found = "no" ; then
16666		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668		fi
16669
16670		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16672		fi
16673
16674		CFLAGS="$CFLAGS -Wmain"
16675
16676		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16677$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16678		cacheid=xorg_cv_cc_flag__Wmain
16679		if eval \${$cacheid+:} false; then :
16680  $as_echo_n "(cached) " >&6
16681else
16682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683/* end confdefs.h.  */
16684int i;
16685int
16686main ()
16687{
16688
16689  ;
16690  return 0;
16691}
16692_ACEOF
16693if ac_fn_c_try_link "$LINENO"; then :
16694  eval $cacheid=yes
16695else
16696  eval $cacheid=no
16697fi
16698rm -f core conftest.err conftest.$ac_objext \
16699    conftest$ac_exeext conftest.$ac_ext
16700fi
16701
16702
16703		CFLAGS="$xorg_testset_save_CFLAGS"
16704
16705		eval supported=\$$cacheid
16706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16707$as_echo "$supported" >&6; }
16708		if test "$supported" = "yes" ; then
16709			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16710			found="yes"
16711		fi
16712	fi
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728xorg_testset_save_CFLAGS="$CFLAGS"
16729
16730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h.  */
16739int i;
16740_ACEOF
16741if ac_fn_c_try_compile "$LINENO"; then :
16742  xorg_cv_cc_flag_unknown_warning_option=yes
16743else
16744  xorg_cv_cc_flag_unknown_warning_option=no
16745fi
16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747fi
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16751	CFLAGS="$xorg_testset_save_CFLAGS"
16752fi
16753
16754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16757	fi
16758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16762  $as_echo_n "(cached) " >&6
16763else
16764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h.  */
16766int i;
16767_ACEOF
16768if ac_fn_c_try_compile "$LINENO"; then :
16769  xorg_cv_cc_flag_unused_command_line_argument=yes
16770else
16771  xorg_cv_cc_flag_unused_command_line_argument=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774fi
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16778	CFLAGS="$xorg_testset_save_CFLAGS"
16779fi
16780
16781found="no"
16782
16783	if test $found = "no" ; then
16784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786		fi
16787
16788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790		fi
16791
16792		CFLAGS="$CFLAGS -Wmissing-braces"
16793
16794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16795$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16796		cacheid=xorg_cv_cc_flag__Wmissing_braces
16797		if eval \${$cacheid+:} false; then :
16798  $as_echo_n "(cached) " >&6
16799else
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803int
16804main ()
16805{
16806
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811if ac_fn_c_try_link "$LINENO"; then :
16812  eval $cacheid=yes
16813else
16814  eval $cacheid=no
16815fi
16816rm -f core conftest.err conftest.$ac_objext \
16817    conftest$ac_exeext conftest.$ac_ext
16818fi
16819
16820
16821		CFLAGS="$xorg_testset_save_CFLAGS"
16822
16823		eval supported=\$$cacheid
16824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16825$as_echo "$supported" >&6; }
16826		if test "$supported" = "yes" ; then
16827			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16828			found="yes"
16829		fi
16830	fi
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846xorg_testset_save_CFLAGS="$CFLAGS"
16847
16848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16853  $as_echo_n "(cached) " >&6
16854else
16855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857int i;
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"; then :
16860  xorg_cv_cc_flag_unknown_warning_option=yes
16861else
16862  xorg_cv_cc_flag_unknown_warning_option=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16869	CFLAGS="$xorg_testset_save_CFLAGS"
16870fi
16871
16872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16875	fi
16876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16880  $as_echo_n "(cached) " >&6
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884int i;
16885_ACEOF
16886if ac_fn_c_try_compile "$LINENO"; then :
16887  xorg_cv_cc_flag_unused_command_line_argument=yes
16888else
16889  xorg_cv_cc_flag_unused_command_line_argument=no
16890fi
16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16896	CFLAGS="$xorg_testset_save_CFLAGS"
16897fi
16898
16899found="no"
16900
16901	if test $found = "no" ; then
16902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904		fi
16905
16906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908		fi
16909
16910		CFLAGS="$CFLAGS -Wsequence-point"
16911
16912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16913$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16914		cacheid=xorg_cv_cc_flag__Wsequence_point
16915		if eval \${$cacheid+:} false; then :
16916  $as_echo_n "(cached) " >&6
16917else
16918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h.  */
16920int i;
16921int
16922main ()
16923{
16924
16925  ;
16926  return 0;
16927}
16928_ACEOF
16929if ac_fn_c_try_link "$LINENO"; then :
16930  eval $cacheid=yes
16931else
16932  eval $cacheid=no
16933fi
16934rm -f core conftest.err conftest.$ac_objext \
16935    conftest$ac_exeext conftest.$ac_ext
16936fi
16937
16938
16939		CFLAGS="$xorg_testset_save_CFLAGS"
16940
16941		eval supported=\$$cacheid
16942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16943$as_echo "$supported" >&6; }
16944		if test "$supported" = "yes" ; then
16945			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16946			found="yes"
16947		fi
16948	fi
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964xorg_testset_save_CFLAGS="$CFLAGS"
16965
16966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975int i;
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"; then :
16978  xorg_cv_cc_flag_unknown_warning_option=yes
16979else
16980  xorg_cv_cc_flag_unknown_warning_option=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993	fi
16994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16998  $as_echo_n "(cached) " >&6
16999else
17000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001/* end confdefs.h.  */
17002int i;
17003_ACEOF
17004if ac_fn_c_try_compile "$LINENO"; then :
17005  xorg_cv_cc_flag_unused_command_line_argument=yes
17006else
17007  xorg_cv_cc_flag_unused_command_line_argument=no
17008fi
17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17014	CFLAGS="$xorg_testset_save_CFLAGS"
17015fi
17016
17017found="no"
17018
17019	if test $found = "no" ; then
17020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17022		fi
17023
17024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026		fi
17027
17028		CFLAGS="$CFLAGS -Wreturn-type"
17029
17030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17031$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17032		cacheid=xorg_cv_cc_flag__Wreturn_type
17033		if eval \${$cacheid+:} false; then :
17034  $as_echo_n "(cached) " >&6
17035else
17036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038int i;
17039int
17040main ()
17041{
17042
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_link "$LINENO"; then :
17048  eval $cacheid=yes
17049else
17050  eval $cacheid=no
17051fi
17052rm -f core conftest.err conftest.$ac_objext \
17053    conftest$ac_exeext conftest.$ac_ext
17054fi
17055
17056
17057		CFLAGS="$xorg_testset_save_CFLAGS"
17058
17059		eval supported=\$$cacheid
17060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17061$as_echo "$supported" >&6; }
17062		if test "$supported" = "yes" ; then
17063			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17064			found="yes"
17065		fi
17066	fi
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082xorg_testset_save_CFLAGS="$CFLAGS"
17083
17084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17089  $as_echo_n "(cached) " >&6
17090else
17091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092/* end confdefs.h.  */
17093int i;
17094_ACEOF
17095if ac_fn_c_try_compile "$LINENO"; then :
17096  xorg_cv_cc_flag_unknown_warning_option=yes
17097else
17098  xorg_cv_cc_flag_unknown_warning_option=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17105	CFLAGS="$xorg_testset_save_CFLAGS"
17106fi
17107
17108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111	fi
17112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17116  $as_echo_n "(cached) " >&6
17117else
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120int i;
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"; then :
17123  xorg_cv_cc_flag_unused_command_line_argument=yes
17124else
17125  xorg_cv_cc_flag_unused_command_line_argument=no
17126fi
17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128fi
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17132	CFLAGS="$xorg_testset_save_CFLAGS"
17133fi
17134
17135found="no"
17136
17137	if test $found = "no" ; then
17138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140		fi
17141
17142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144		fi
17145
17146		CFLAGS="$CFLAGS -Wtrigraphs"
17147
17148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17149$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17150		cacheid=xorg_cv_cc_flag__Wtrigraphs
17151		if eval \${$cacheid+:} false; then :
17152  $as_echo_n "(cached) " >&6
17153else
17154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155/* end confdefs.h.  */
17156int i;
17157int
17158main ()
17159{
17160
17161  ;
17162  return 0;
17163}
17164_ACEOF
17165if ac_fn_c_try_link "$LINENO"; then :
17166  eval $cacheid=yes
17167else
17168  eval $cacheid=no
17169fi
17170rm -f core conftest.err conftest.$ac_objext \
17171    conftest$ac_exeext conftest.$ac_ext
17172fi
17173
17174
17175		CFLAGS="$xorg_testset_save_CFLAGS"
17176
17177		eval supported=\$$cacheid
17178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17179$as_echo "$supported" >&6; }
17180		if test "$supported" = "yes" ; then
17181			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17182			found="yes"
17183		fi
17184	fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200xorg_testset_save_CFLAGS="$CFLAGS"
17201
17202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17207  $as_echo_n "(cached) " >&6
17208else
17209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h.  */
17211int i;
17212_ACEOF
17213if ac_fn_c_try_compile "$LINENO"; then :
17214  xorg_cv_cc_flag_unknown_warning_option=yes
17215else
17216  xorg_cv_cc_flag_unknown_warning_option=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219fi
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17223	CFLAGS="$xorg_testset_save_CFLAGS"
17224fi
17225
17226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17229	fi
17230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17234  $as_echo_n "(cached) " >&6
17235else
17236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237/* end confdefs.h.  */
17238int i;
17239_ACEOF
17240if ac_fn_c_try_compile "$LINENO"; then :
17241  xorg_cv_cc_flag_unused_command_line_argument=yes
17242else
17243  xorg_cv_cc_flag_unused_command_line_argument=no
17244fi
17245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246fi
17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17250	CFLAGS="$xorg_testset_save_CFLAGS"
17251fi
17252
17253found="no"
17254
17255	if test $found = "no" ; then
17256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258		fi
17259
17260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17262		fi
17263
17264		CFLAGS="$CFLAGS -Warray-bounds"
17265
17266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17267$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17268		cacheid=xorg_cv_cc_flag__Warray_bounds
17269		if eval \${$cacheid+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h.  */
17274int i;
17275int
17276main ()
17277{
17278
17279  ;
17280  return 0;
17281}
17282_ACEOF
17283if ac_fn_c_try_link "$LINENO"; then :
17284  eval $cacheid=yes
17285else
17286  eval $cacheid=no
17287fi
17288rm -f core conftest.err conftest.$ac_objext \
17289    conftest$ac_exeext conftest.$ac_ext
17290fi
17291
17292
17293		CFLAGS="$xorg_testset_save_CFLAGS"
17294
17295		eval supported=\$$cacheid
17296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17297$as_echo "$supported" >&6; }
17298		if test "$supported" = "yes" ; then
17299			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17300			found="yes"
17301		fi
17302	fi
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318xorg_testset_save_CFLAGS="$CFLAGS"
17319
17320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17325  $as_echo_n "(cached) " >&6
17326else
17327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h.  */
17329int i;
17330_ACEOF
17331if ac_fn_c_try_compile "$LINENO"; then :
17332  xorg_cv_cc_flag_unknown_warning_option=yes
17333else
17334  xorg_cv_cc_flag_unknown_warning_option=no
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337fi
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17341	CFLAGS="$xorg_testset_save_CFLAGS"
17342fi
17343
17344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17347	fi
17348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17352  $as_echo_n "(cached) " >&6
17353else
17354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h.  */
17356int i;
17357_ACEOF
17358if ac_fn_c_try_compile "$LINENO"; then :
17359  xorg_cv_cc_flag_unused_command_line_argument=yes
17360else
17361  xorg_cv_cc_flag_unused_command_line_argument=no
17362fi
17363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364fi
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17368	CFLAGS="$xorg_testset_save_CFLAGS"
17369fi
17370
17371found="no"
17372
17373	if test $found = "no" ; then
17374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376		fi
17377
17378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17380		fi
17381
17382		CFLAGS="$CFLAGS -Wwrite-strings"
17383
17384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17385$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17386		cacheid=xorg_cv_cc_flag__Wwrite_strings
17387		if eval \${$cacheid+:} false; then :
17388  $as_echo_n "(cached) " >&6
17389else
17390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h.  */
17392int i;
17393int
17394main ()
17395{
17396
17397  ;
17398  return 0;
17399}
17400_ACEOF
17401if ac_fn_c_try_link "$LINENO"; then :
17402  eval $cacheid=yes
17403else
17404  eval $cacheid=no
17405fi
17406rm -f core conftest.err conftest.$ac_objext \
17407    conftest$ac_exeext conftest.$ac_ext
17408fi
17409
17410
17411		CFLAGS="$xorg_testset_save_CFLAGS"
17412
17413		eval supported=\$$cacheid
17414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17415$as_echo "$supported" >&6; }
17416		if test "$supported" = "yes" ; then
17417			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17418			found="yes"
17419		fi
17420	fi
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436xorg_testset_save_CFLAGS="$CFLAGS"
17437
17438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17443  $as_echo_n "(cached) " >&6
17444else
17445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447int i;
17448_ACEOF
17449if ac_fn_c_try_compile "$LINENO"; then :
17450  xorg_cv_cc_flag_unknown_warning_option=yes
17451else
17452  xorg_cv_cc_flag_unknown_warning_option=no
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17459	CFLAGS="$xorg_testset_save_CFLAGS"
17460fi
17461
17462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17465	fi
17466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17470  $as_echo_n "(cached) " >&6
17471else
17472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474int i;
17475_ACEOF
17476if ac_fn_c_try_compile "$LINENO"; then :
17477  xorg_cv_cc_flag_unused_command_line_argument=yes
17478else
17479  xorg_cv_cc_flag_unused_command_line_argument=no
17480fi
17481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482fi
17483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17486	CFLAGS="$xorg_testset_save_CFLAGS"
17487fi
17488
17489found="no"
17490
17491	if test $found = "no" ; then
17492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17494		fi
17495
17496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17498		fi
17499
17500		CFLAGS="$CFLAGS -Waddress"
17501
17502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17503$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17504		cacheid=xorg_cv_cc_flag__Waddress
17505		if eval \${$cacheid+:} false; then :
17506  $as_echo_n "(cached) " >&6
17507else
17508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509/* end confdefs.h.  */
17510int i;
17511int
17512main ()
17513{
17514
17515  ;
17516  return 0;
17517}
17518_ACEOF
17519if ac_fn_c_try_link "$LINENO"; then :
17520  eval $cacheid=yes
17521else
17522  eval $cacheid=no
17523fi
17524rm -f core conftest.err conftest.$ac_objext \
17525    conftest$ac_exeext conftest.$ac_ext
17526fi
17527
17528
17529		CFLAGS="$xorg_testset_save_CFLAGS"
17530
17531		eval supported=\$$cacheid
17532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17533$as_echo "$supported" >&6; }
17534		if test "$supported" = "yes" ; then
17535			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17536			found="yes"
17537		fi
17538	fi
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554xorg_testset_save_CFLAGS="$CFLAGS"
17555
17556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17561  $as_echo_n "(cached) " >&6
17562else
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565int i;
17566_ACEOF
17567if ac_fn_c_try_compile "$LINENO"; then :
17568  xorg_cv_cc_flag_unknown_warning_option=yes
17569else
17570  xorg_cv_cc_flag_unknown_warning_option=no
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573fi
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17577	CFLAGS="$xorg_testset_save_CFLAGS"
17578fi
17579
17580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17583	fi
17584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17588  $as_echo_n "(cached) " >&6
17589else
17590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591/* end confdefs.h.  */
17592int i;
17593_ACEOF
17594if ac_fn_c_try_compile "$LINENO"; then :
17595  xorg_cv_cc_flag_unused_command_line_argument=yes
17596else
17597  xorg_cv_cc_flag_unused_command_line_argument=no
17598fi
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600fi
17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17604	CFLAGS="$xorg_testset_save_CFLAGS"
17605fi
17606
17607found="no"
17608
17609	if test $found = "no" ; then
17610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612		fi
17613
17614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616		fi
17617
17618		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17619
17620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17621$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17622		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17623		if eval \${$cacheid+:} false; then :
17624  $as_echo_n "(cached) " >&6
17625else
17626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627/* end confdefs.h.  */
17628int i;
17629int
17630main ()
17631{
17632
17633  ;
17634  return 0;
17635}
17636_ACEOF
17637if ac_fn_c_try_link "$LINENO"; then :
17638  eval $cacheid=yes
17639else
17640  eval $cacheid=no
17641fi
17642rm -f core conftest.err conftest.$ac_objext \
17643    conftest$ac_exeext conftest.$ac_ext
17644fi
17645
17646
17647		CFLAGS="$xorg_testset_save_CFLAGS"
17648
17649		eval supported=\$$cacheid
17650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17651$as_echo "$supported" >&6; }
17652		if test "$supported" = "yes" ; then
17653			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17654			found="yes"
17655		fi
17656	fi
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672xorg_testset_save_CFLAGS="$CFLAGS"
17673
17674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17679  $as_echo_n "(cached) " >&6
17680else
17681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682/* end confdefs.h.  */
17683int i;
17684_ACEOF
17685if ac_fn_c_try_compile "$LINENO"; then :
17686  xorg_cv_cc_flag_unknown_warning_option=yes
17687else
17688  xorg_cv_cc_flag_unknown_warning_option=no
17689fi
17690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17695	CFLAGS="$xorg_testset_save_CFLAGS"
17696fi
17697
17698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701	fi
17702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17706  $as_echo_n "(cached) " >&6
17707else
17708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709/* end confdefs.h.  */
17710int i;
17711_ACEOF
17712if ac_fn_c_try_compile "$LINENO"; then :
17713  xorg_cv_cc_flag_unused_command_line_argument=yes
17714else
17715  xorg_cv_cc_flag_unused_command_line_argument=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718fi
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17722	CFLAGS="$xorg_testset_save_CFLAGS"
17723fi
17724
17725found="no"
17726
17727	if test $found = "no" ; then
17728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17730		fi
17731
17732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17734		fi
17735
17736		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17737
17738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17739$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17740		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17741		if eval \${$cacheid+:} false; then :
17742  $as_echo_n "(cached) " >&6
17743else
17744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745/* end confdefs.h.  */
17746int i;
17747int
17748main ()
17749{
17750
17751  ;
17752  return 0;
17753}
17754_ACEOF
17755if ac_fn_c_try_link "$LINENO"; then :
17756  eval $cacheid=yes
17757else
17758  eval $cacheid=no
17759fi
17760rm -f core conftest.err conftest.$ac_objext \
17761    conftest$ac_exeext conftest.$ac_ext
17762fi
17763
17764
17765		CFLAGS="$xorg_testset_save_CFLAGS"
17766
17767		eval supported=\$$cacheid
17768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17769$as_echo "$supported" >&6; }
17770		if test "$supported" = "yes" ; then
17771			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17772			found="yes"
17773		fi
17774	fi
17775
17776
17777fi
17778
17779
17780
17781
17782
17783
17784
17785		CWARNFLAGS="$BASE_CFLAGS"
17786		if  test "x$GCC" = xyes ; then
17787		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17788		fi
17789
17790
17791
17792
17793
17794
17795
17796
17797# Check whether --enable-strict-compilation was given.
17798if test "${enable_strict_compilation+set}" = set; then :
17799  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17800else
17801  STRICT_COMPILE=no
17802fi
17803
17804
17805
17806
17807
17808
17809STRICT_CFLAGS=""
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823xorg_testset_save_CFLAGS="$CFLAGS"
17824
17825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17830  $as_echo_n "(cached) " >&6
17831else
17832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834int i;
17835_ACEOF
17836if ac_fn_c_try_compile "$LINENO"; then :
17837  xorg_cv_cc_flag_unknown_warning_option=yes
17838else
17839  xorg_cv_cc_flag_unknown_warning_option=no
17840fi
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842fi
17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17846	CFLAGS="$xorg_testset_save_CFLAGS"
17847fi
17848
17849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17852	fi
17853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17857  $as_echo_n "(cached) " >&6
17858else
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861int i;
17862_ACEOF
17863if ac_fn_c_try_compile "$LINENO"; then :
17864  xorg_cv_cc_flag_unused_command_line_argument=yes
17865else
17866  xorg_cv_cc_flag_unused_command_line_argument=no
17867fi
17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869fi
17870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17873	CFLAGS="$xorg_testset_save_CFLAGS"
17874fi
17875
17876found="no"
17877
17878	if test $found = "no" ; then
17879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17881		fi
17882
17883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17885		fi
17886
17887		CFLAGS="$CFLAGS -pedantic"
17888
17889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17890$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17891		cacheid=xorg_cv_cc_flag__pedantic
17892		if eval \${$cacheid+:} false; then :
17893  $as_echo_n "(cached) " >&6
17894else
17895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896/* end confdefs.h.  */
17897int i;
17898int
17899main ()
17900{
17901
17902  ;
17903  return 0;
17904}
17905_ACEOF
17906if ac_fn_c_try_link "$LINENO"; then :
17907  eval $cacheid=yes
17908else
17909  eval $cacheid=no
17910fi
17911rm -f core conftest.err conftest.$ac_objext \
17912    conftest$ac_exeext conftest.$ac_ext
17913fi
17914
17915
17916		CFLAGS="$xorg_testset_save_CFLAGS"
17917
17918		eval supported=\$$cacheid
17919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17920$as_echo "$supported" >&6; }
17921		if test "$supported" = "yes" ; then
17922			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17923			found="yes"
17924		fi
17925	fi
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941xorg_testset_save_CFLAGS="$CFLAGS"
17942
17943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17948  $as_echo_n "(cached) " >&6
17949else
17950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952int i;
17953_ACEOF
17954if ac_fn_c_try_compile "$LINENO"; then :
17955  xorg_cv_cc_flag_unknown_warning_option=yes
17956else
17957  xorg_cv_cc_flag_unknown_warning_option=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17964	CFLAGS="$xorg_testset_save_CFLAGS"
17965fi
17966
17967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17970	fi
17971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17975  $as_echo_n "(cached) " >&6
17976else
17977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979int i;
17980_ACEOF
17981if ac_fn_c_try_compile "$LINENO"; then :
17982  xorg_cv_cc_flag_unused_command_line_argument=yes
17983else
17984  xorg_cv_cc_flag_unused_command_line_argument=no
17985fi
17986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987fi
17988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17991	CFLAGS="$xorg_testset_save_CFLAGS"
17992fi
17993
17994found="no"
17995
17996	if test $found = "no" ; then
17997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17999		fi
18000
18001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003		fi
18004
18005		CFLAGS="$CFLAGS -Werror"
18006
18007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18008$as_echo_n "checking if $CC supports -Werror... " >&6; }
18009		cacheid=xorg_cv_cc_flag__Werror
18010		if eval \${$cacheid+:} false; then :
18011  $as_echo_n "(cached) " >&6
18012else
18013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014/* end confdefs.h.  */
18015int i;
18016int
18017main ()
18018{
18019
18020  ;
18021  return 0;
18022}
18023_ACEOF
18024if ac_fn_c_try_link "$LINENO"; then :
18025  eval $cacheid=yes
18026else
18027  eval $cacheid=no
18028fi
18029rm -f core conftest.err conftest.$ac_objext \
18030    conftest$ac_exeext conftest.$ac_ext
18031fi
18032
18033
18034		CFLAGS="$xorg_testset_save_CFLAGS"
18035
18036		eval supported=\$$cacheid
18037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18038$as_echo "$supported" >&6; }
18039		if test "$supported" = "yes" ; then
18040			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18041			found="yes"
18042		fi
18043	fi
18044
18045	if test $found = "no" ; then
18046		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18048		fi
18049
18050		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18052		fi
18053
18054		CFLAGS="$CFLAGS -errwarn"
18055
18056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18057$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18058		cacheid=xorg_cv_cc_flag__errwarn
18059		if eval \${$cacheid+:} false; then :
18060  $as_echo_n "(cached) " >&6
18061else
18062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063/* end confdefs.h.  */
18064int i;
18065int
18066main ()
18067{
18068
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"; then :
18074  eval $cacheid=yes
18075else
18076  eval $cacheid=no
18077fi
18078rm -f core conftest.err conftest.$ac_objext \
18079    conftest$ac_exeext conftest.$ac_ext
18080fi
18081
18082
18083		CFLAGS="$xorg_testset_save_CFLAGS"
18084
18085		eval supported=\$$cacheid
18086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18087$as_echo "$supported" >&6; }
18088		if test "$supported" = "yes" ; then
18089			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18090			found="yes"
18091		fi
18092	fi
18093
18094
18095
18096# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18097# activate it with -Werror, so we add it here explicitly.
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111xorg_testset_save_CFLAGS="$CFLAGS"
18112
18113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18118  $as_echo_n "(cached) " >&6
18119else
18120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121/* end confdefs.h.  */
18122int i;
18123_ACEOF
18124if ac_fn_c_try_compile "$LINENO"; then :
18125  xorg_cv_cc_flag_unknown_warning_option=yes
18126else
18127  xorg_cv_cc_flag_unknown_warning_option=no
18128fi
18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130fi
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18134	CFLAGS="$xorg_testset_save_CFLAGS"
18135fi
18136
18137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18140	fi
18141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18145  $as_echo_n "(cached) " >&6
18146else
18147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148/* end confdefs.h.  */
18149int i;
18150_ACEOF
18151if ac_fn_c_try_compile "$LINENO"; then :
18152  xorg_cv_cc_flag_unused_command_line_argument=yes
18153else
18154  xorg_cv_cc_flag_unused_command_line_argument=no
18155fi
18156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157fi
18158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18161	CFLAGS="$xorg_testset_save_CFLAGS"
18162fi
18163
18164found="no"
18165
18166	if test $found = "no" ; then
18167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18169		fi
18170
18171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18173		fi
18174
18175		CFLAGS="$CFLAGS -Werror=attributes"
18176
18177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18178$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18179		cacheid=xorg_cv_cc_flag__Werror_attributes
18180		if eval \${$cacheid+:} false; then :
18181  $as_echo_n "(cached) " >&6
18182else
18183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184/* end confdefs.h.  */
18185int i;
18186int
18187main ()
18188{
18189
18190  ;
18191  return 0;
18192}
18193_ACEOF
18194if ac_fn_c_try_link "$LINENO"; then :
18195  eval $cacheid=yes
18196else
18197  eval $cacheid=no
18198fi
18199rm -f core conftest.err conftest.$ac_objext \
18200    conftest$ac_exeext conftest.$ac_ext
18201fi
18202
18203
18204		CFLAGS="$xorg_testset_save_CFLAGS"
18205
18206		eval supported=\$$cacheid
18207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18208$as_echo "$supported" >&6; }
18209		if test "$supported" = "yes" ; then
18210			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18211			found="yes"
18212		fi
18213	fi
18214
18215
18216
18217if test "x$STRICT_COMPILE" = "xyes"; then
18218    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18219    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18220fi
18221
18222
18223
18224
18225
18226
18227cat >>confdefs.h <<_ACEOF
18228#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18229_ACEOF
18230
18231	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18232	if test "x$PVM" = "x"; then
18233		PVM="0"
18234	fi
18235
18236cat >>confdefs.h <<_ACEOF
18237#define PACKAGE_VERSION_MINOR $PVM
18238_ACEOF
18239
18240	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18241	if test "x$PVP" = "x"; then
18242		PVP="0"
18243	fi
18244
18245cat >>confdefs.h <<_ACEOF
18246#define PACKAGE_VERSION_PATCHLEVEL $PVP
18247_ACEOF
18248
18249
18250
18251CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18252mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18253|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18254echo 'git directory not found: installing possibly empty changelog.' >&2)"
18255
18256
18257
18258
18259macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18260INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18261mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18262|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18263echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18264
18265
18266
18267
18268
18269
18270if test x$APP_MAN_SUFFIX = x    ; then
18271    APP_MAN_SUFFIX=1
18272fi
18273if test x$APP_MAN_DIR = x    ; then
18274    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18275fi
18276
18277if test x$LIB_MAN_SUFFIX = x    ; then
18278    LIB_MAN_SUFFIX=3
18279fi
18280if test x$LIB_MAN_DIR = x    ; then
18281    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18282fi
18283
18284if test x$FILE_MAN_SUFFIX = x    ; then
18285    case $host_os in
18286	# Solaris 2.0 - 11 use SysV man page sections
18287	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18288	*)				FILE_MAN_SUFFIX=5  ;;
18289    esac
18290fi
18291if test x$FILE_MAN_DIR = x    ; then
18292    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18293fi
18294
18295if test x$MISC_MAN_SUFFIX = x    ; then
18296    case $host_os in
18297	# Solaris 2.0 - 11 use SysV man page sections
18298	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18299	*)				MISC_MAN_SUFFIX=7  ;;
18300    esac
18301fi
18302if test x$MISC_MAN_DIR = x    ; then
18303    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18304fi
18305
18306if test x$DRIVER_MAN_SUFFIX = x    ; then
18307    case $host_os in
18308	# Solaris 2.0 - 11 use SysV man page sections
18309	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18310	*)				DRIVER_MAN_SUFFIX=4  ;;
18311    esac
18312fi
18313if test x$DRIVER_MAN_DIR = x    ; then
18314    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18315fi
18316
18317if test x$ADMIN_MAN_SUFFIX = x    ; then
18318    case $host_os in
18319	# Solaris 2.0 - 11 use SysV man page sections
18320	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18321	*)				ADMIN_MAN_SUFFIX=8  ;;
18322    esac
18323fi
18324if test x$ADMIN_MAN_DIR = x    ; then
18325    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18326fi
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342XORG_MAN_PAGE="X Version 11"
18343
18344MAN_SUBSTS="\
18345	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18346	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18347	-e 's|__xservername__|Xorg|g' \
18348	-e 's|__xconfigfile__|xorg.conf|g' \
18349	-e 's|__xorgconfdir__|xorg.conf.d|g' \
18350	-e 's|__projectroot__|\$(prefix)|g' \
18351	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18352	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18353	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18354	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18355	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18356	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18357	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18358
18359
18360
18361# Check whether --enable-silent-rules was given.
18362if test "${enable_silent_rules+set}" = set; then :
18363  enableval=$enable_silent_rules;
18364fi
18365
18366case $enable_silent_rules in # (((
18367  yes) AM_DEFAULT_VERBOSITY=0;;
18368   no) AM_DEFAULT_VERBOSITY=1;;
18369    *) AM_DEFAULT_VERBOSITY=0;;
18370esac
18371am_make=${MAKE-make}
18372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18373$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18374if ${am_cv_make_support_nested_variables+:} false; then :
18375  $as_echo_n "(cached) " >&6
18376else
18377  if $as_echo 'TRUE=$(BAR$(V))
18378BAR0=false
18379BAR1=true
18380V=1
18381am__doit:
18382	@$(TRUE)
18383.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18384  am_cv_make_support_nested_variables=yes
18385else
18386  am_cv_make_support_nested_variables=no
18387fi
18388fi
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18390$as_echo "$am_cv_make_support_nested_variables" >&6; }
18391if test $am_cv_make_support_nested_variables = yes; then
18392    AM_V='$(V)'
18393  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18394else
18395  AM_V=$AM_DEFAULT_VERBOSITY
18396  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18397fi
18398AM_BACKSLASH='\'
18399
18400
18401
18402# Checks for extensions
18403
18404
18405	SAVE_CFLAGS="$CFLAGS"
18406	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18407	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h.  */
18409
18410#include "xorg-server.h"
18411#if !defined XINPUT
18412#error XINPUT not defined
18413#endif
18414
18415int
18416main ()
18417{
18418
18419  ;
18420  return 0;
18421}
18422_ACEOF
18423if ac_fn_c_try_compile "$LINENO"; then :
18424  _EXT_CHECK=yes
18425else
18426  _EXT_CHECK=no
18427fi
18428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429	CFLAGS="$SAVE_CFLAGS"
18430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
18431$as_echo_n "checking if XINPUT is defined... " >&6; }
18432	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18433$as_echo "$_EXT_CHECK" >&6; }
18434	if test "$_EXT_CHECK" != no; then
18435		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
18436	fi
18437
18438
18439
18440	SAVE_CFLAGS="$CFLAGS"
18441	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18442	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443/* end confdefs.h.  */
18444
18445#include "xorg-server.h"
18446#if !defined XKB
18447#error XKB not defined
18448#endif
18449
18450int
18451main ()
18452{
18453
18454  ;
18455  return 0;
18456}
18457_ACEOF
18458if ac_fn_c_try_compile "$LINENO"; then :
18459  _EXT_CHECK=yes
18460else
18461  _EXT_CHECK=no
18462fi
18463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464	CFLAGS="$SAVE_CFLAGS"
18465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XKB is defined" >&5
18466$as_echo_n "checking if XKB is defined... " >&6; }
18467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18468$as_echo "$_EXT_CHECK" >&6; }
18469	if test "$_EXT_CHECK" != no; then
18470		REQUIRED_MODULES="$REQUIRED_MODULES kbproto"
18471	fi
18472
18473
18474# Checks for pkg-config packages
18475
18476pkg_failed=no
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18478$as_echo_n "checking for XORG... " >&6; }
18479
18480if test -n "$XORG_CFLAGS"; then
18481    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18482 elif test -n "$PKG_CONFIG"; then
18483    if test -n "$PKG_CONFIG" && \
18484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9.99.2 xproto \$REQUIRED_MODULES\""; } >&5
18485  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES") 2>&5
18486  ac_status=$?
18487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18488  test $ac_status = 0; }; then
18489  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES" 2>/dev/null`
18490		      test "x$?" != "x0" && pkg_failed=yes
18491else
18492  pkg_failed=yes
18493fi
18494 else
18495    pkg_failed=untried
18496fi
18497if test -n "$XORG_LIBS"; then
18498    pkg_cv_XORG_LIBS="$XORG_LIBS"
18499 elif test -n "$PKG_CONFIG"; then
18500    if test -n "$PKG_CONFIG" && \
18501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9.99.2 xproto \$REQUIRED_MODULES\""; } >&5
18502  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES") 2>&5
18503  ac_status=$?
18504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18505  test $ac_status = 0; }; then
18506  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES" 2>/dev/null`
18507		      test "x$?" != "x0" && pkg_failed=yes
18508else
18509  pkg_failed=yes
18510fi
18511 else
18512    pkg_failed=untried
18513fi
18514
18515
18516
18517if test $pkg_failed = yes; then
18518   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18519$as_echo "no" >&6; }
18520
18521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18522        _pkg_short_errors_supported=yes
18523else
18524        _pkg_short_errors_supported=no
18525fi
18526        if test $_pkg_short_errors_supported = yes; then
18527	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES" 2>&1`
18528        else
18529	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES" 2>&1`
18530        fi
18531	# Put the nasty error message in config.log where it belongs
18532	echo "$XORG_PKG_ERRORS" >&5
18533
18534	as_fn_error $? "Package requirements (xorg-server >= 1.9.99.2 xproto $REQUIRED_MODULES) were not met:
18535
18536$XORG_PKG_ERRORS
18537
18538Consider adjusting the PKG_CONFIG_PATH environment variable if you
18539installed software in a non-standard prefix.
18540
18541Alternatively, you may set the environment variables XORG_CFLAGS
18542and XORG_LIBS to avoid the need to call pkg-config.
18543See the pkg-config man page for more details." "$LINENO" 5
18544elif test $pkg_failed = untried; then
18545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18546$as_echo "no" >&6; }
18547	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18549as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18550is in your PATH or set the PKG_CONFIG environment variable to the full
18551path to pkg-config.
18552
18553Alternatively, you may set the environment variables XORG_CFLAGS
18554and XORG_LIBS to avoid the need to call pkg-config.
18555See the pkg-config man page for more details.
18556
18557To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18558See \`config.log' for more details" "$LINENO" 5; }
18559else
18560	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18561	XORG_LIBS=$pkg_cv_XORG_LIBS
18562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18563$as_echo "yes" >&6; }
18564
18565fi
18566
18567DRIVER_NAME=joystick
18568
18569
18570# -----------------------------------------------------------------------------
18571#			Configuration options
18572# -----------------------------------------------------------------------------
18573# Define a configure option for an alternate input module directory
18574
18575# Check whether --with-xorg-module-dir was given.
18576if test "${with_xorg_module_dir+set}" = set; then :
18577  withval=$with_xorg_module_dir; moduledir="$withval"
18578else
18579  moduledir="$libdir/xorg/modules"
18580fi
18581
18582inputdir=${moduledir}/input
18583
18584
18585# Define a configure option for an alternate X Server SDK Headers
18586# X Server SDK location is required to install joystick header files
18587
18588# Check whether --with-sdkdir was given.
18589if test "${with_sdkdir+set}" = set; then :
18590  withval=$with_sdkdir; sdkdir="$withval"
18591else
18592  sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18593fi
18594
18595
18596
18597# Define a configure option to enable code debugging
18598# Check whether --enable-debug was given.
18599if test "${enable_debug+set}" = set; then :
18600  enableval=$enable_debug; DEBUGGING=$enableval
18601else
18602  DEBUGGING=yes
18603fi
18604
18605if test "x$DEBUGGING" = xyes; then
18606
18607$as_echo "#define DEBUG 1" >>confdefs.h
18608
18609fi
18610 if test "x$DEBUGGING" = xyes; then
18611  DEBUG_TRUE=
18612  DEBUG_FALSE='#'
18613else
18614  DEBUG_TRUE='#'
18615  DEBUG_FALSE=
18616fi
18617
18618
18619# -----------------------------------------------------------------------------
18620#		Determine which joystick backend to build
18621# -----------------------------------------------------------------------------
18622linux_backend=yes
18623for ac_header in linux/joystick.h
18624do :
18625  ac_fn_c_check_header_mongrel "$LINENO" "linux/joystick.h" "ac_cv_header_linux_joystick_h" "$ac_includes_default"
18626if test "x$ac_cv_header_linux_joystick_h" = xyes; then :
18627  cat >>confdefs.h <<_ACEOF
18628#define HAVE_LINUX_JOYSTICK_H 1
18629_ACEOF
18630
18631else
18632  linux_backend=no
18633fi
18634
18635done
18636
18637 if test "x$linux_backend" = xyes; then
18638  LINUX_BACKEND_TRUE=
18639  LINUX_BACKEND_FALSE='#'
18640else
18641  LINUX_BACKEND_TRUE='#'
18642  LINUX_BACKEND_FALSE=
18643fi
18644
18645if test "x$linux_backend" = xyes; then
18646
18647$as_echo "#define LINUX_BACKEND 1" >>confdefs.h
18648
18649fi
18650
18651bsd_backend=yes
18652for ac_header in dev/usb/usb.h
18653do :
18654  ac_fn_c_check_header_mongrel "$LINENO" "dev/usb/usb.h" "ac_cv_header_dev_usb_usb_h" "$ac_includes_default"
18655if test "x$ac_cv_header_dev_usb_usb_h" = xyes; then :
18656  cat >>confdefs.h <<_ACEOF
18657#define HAVE_DEV_USB_USB_H 1
18658_ACEOF
18659
18660fi
18661
18662done
18663
18664for ac_header in usbhid.h dev/usb/usbhid.h
18665do :
18666  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18667ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_DEV_USB_USB_H
18668#include <dev/usb/usb.h>
18669#endif
18670
18671"
18672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18673  cat >>confdefs.h <<_ACEOF
18674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18675_ACEOF
18676
18677else
18678  bsd_backend=no
18679fi
18680
18681done
18682
18683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_get_item in -lusbhid" >&5
18684$as_echo_n "checking for hid_get_item in -lusbhid... " >&6; }
18685if ${ac_cv_lib_usbhid_hid_get_item+:} false; then :
18686  $as_echo_n "(cached) " >&6
18687else
18688  ac_check_lib_save_LIBS=$LIBS
18689LIBS="-lusbhid  $LIBS"
18690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691/* end confdefs.h.  */
18692
18693/* Override any GCC internal prototype to avoid an error.
18694   Use char because int might match the return type of a GCC
18695   builtin and then its argument prototype would still apply.  */
18696#ifdef __cplusplus
18697extern "C"
18698#endif
18699char hid_get_item ();
18700int
18701main ()
18702{
18703return hid_get_item ();
18704  ;
18705  return 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_link "$LINENO"; then :
18709  ac_cv_lib_usbhid_hid_get_item=yes
18710else
18711  ac_cv_lib_usbhid_hid_get_item=no
18712fi
18713rm -f core conftest.err conftest.$ac_objext \
18714    conftest$ac_exeext conftest.$ac_ext
18715LIBS=$ac_check_lib_save_LIBS
18716fi
18717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_get_item" >&5
18718$as_echo "$ac_cv_lib_usbhid_hid_get_item" >&6; }
18719if test "x$ac_cv_lib_usbhid_hid_get_item" = xyes; then :
18720  cat >>confdefs.h <<_ACEOF
18721#define HAVE_LIBUSBHID 1
18722_ACEOF
18723
18724  LIBS="-lusbhid $LIBS"
18725
18726else
18727  bsd_backend=no
18728fi
18729
18730 if test "x$bsd_backend" = xyes; then
18731  BSD_BACKEND_TRUE=
18732  BSD_BACKEND_FALSE='#'
18733else
18734  BSD_BACKEND_TRUE='#'
18735  BSD_BACKEND_FALSE=
18736fi
18737
18738if test "x$bsd_backend" = xyes; then
18739    for ac_header in dev/usb/usb_ioctl.h
18740do :
18741  ac_fn_c_check_header_mongrel "$LINENO" "dev/usb/usb_ioctl.h" "ac_cv_header_dev_usb_usb_ioctl_h" "$ac_includes_default"
18742if test "x$ac_cv_header_dev_usb_usb_ioctl_h" = xyes; then :
18743  cat >>confdefs.h <<_ACEOF
18744#define HAVE_DEV_USB_USB_IOCTL_H 1
18745_ACEOF
18746
18747fi
18748
18749done
18750
18751
18752$as_echo "#define BSD_BACKEND 1" >>confdefs.h
18753
18754fi
18755
18756evdev_backend=yes
18757for ac_header in linux/input.h
18758do :
18759  ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
18760if test "x$ac_cv_header_linux_input_h" = xyes; then :
18761  cat >>confdefs.h <<_ACEOF
18762#define HAVE_LINUX_INPUT_H 1
18763_ACEOF
18764
18765else
18766  evdev_backend=no
18767fi
18768
18769done
18770
18771 if test "x$evdev_backend" = xyes; then
18772  EVDEV_BACKEND_TRUE=
18773  EVDEV_BACKEND_FALSE='#'
18774else
18775  EVDEV_BACKEND_TRUE='#'
18776  EVDEV_BACKEND_FALSE=
18777fi
18778
18779if test "x$evdev_backend" = xyes; then
18780
18781$as_echo "#define EVDEV_BACKEND 1" >>confdefs.h
18782
18783fi
18784# -----------------------------------------------------------------------------
18785
18786ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile config/Makefile include/Makefile xorg-joystick.pc"
18787
18788cat >confcache <<\_ACEOF
18789# This file is a shell script that caches the results of configure
18790# tests run on this system so they can be shared between configure
18791# scripts and configure runs, see configure's option --config-cache.
18792# It is not useful on other systems.  If it contains results you don't
18793# want to keep, you may remove or edit it.
18794#
18795# config.status only pays attention to the cache file if you give it
18796# the --recheck option to rerun configure.
18797#
18798# `ac_cv_env_foo' variables (set or unset) will be overridden when
18799# loading this file, other *unset* `ac_cv_foo' will be assigned the
18800# following values.
18801
18802_ACEOF
18803
18804# The following way of writing the cache mishandles newlines in values,
18805# but we know of no workaround that is simple, portable, and efficient.
18806# So, we kill variables containing newlines.
18807# Ultrix sh set writes to stderr and can't be redirected directly,
18808# and sets the high bit in the cache file unless we assign to the vars.
18809(
18810  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18811    eval ac_val=\$$ac_var
18812    case $ac_val in #(
18813    *${as_nl}*)
18814      case $ac_var in #(
18815      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18816$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18817      esac
18818      case $ac_var in #(
18819      _ | IFS | as_nl) ;; #(
18820      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18821      *) { eval $ac_var=; unset $ac_var;} ;;
18822      esac ;;
18823    esac
18824  done
18825
18826  (set) 2>&1 |
18827    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18828    *${as_nl}ac_space=\ *)
18829      # `set' does not quote correctly, so add quotes: double-quote
18830      # substitution turns \\\\ into \\, and sed turns \\ into \.
18831      sed -n \
18832	"s/'/'\\\\''/g;
18833	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18834      ;; #(
18835    *)
18836      # `set' quotes correctly as required by POSIX, so do not add quotes.
18837      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18838      ;;
18839    esac |
18840    sort
18841) |
18842  sed '
18843     /^ac_cv_env_/b end
18844     t clear
18845     :clear
18846     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18847     t end
18848     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18849     :end' >>confcache
18850if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18851  if test -w "$cache_file"; then
18852    if test "x$cache_file" != "x/dev/null"; then
18853      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18854$as_echo "$as_me: updating cache $cache_file" >&6;}
18855      if test ! -f "$cache_file" || test -h "$cache_file"; then
18856	cat confcache >"$cache_file"
18857      else
18858        case $cache_file in #(
18859        */* | ?:*)
18860	  mv -f confcache "$cache_file"$$ &&
18861	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18862        *)
18863	  mv -f confcache "$cache_file" ;;
18864	esac
18865      fi
18866    fi
18867  else
18868    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18869$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18870  fi
18871fi
18872rm -f confcache
18873
18874test "x$prefix" = xNONE && prefix=$ac_default_prefix
18875# Let make expand exec_prefix.
18876test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18877
18878DEFS=-DHAVE_CONFIG_H
18879
18880ac_libobjs=
18881ac_ltlibobjs=
18882U=
18883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18884  # 1. Remove the extension, and $U if already installed.
18885  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18886  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18887  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18888  #    will be set to the directory where LIBOBJS objects are built.
18889  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18890  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18891done
18892LIBOBJS=$ac_libobjs
18893
18894LTLIBOBJS=$ac_ltlibobjs
18895
18896
18897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18898$as_echo_n "checking that generated files are newer than configure... " >&6; }
18899   if test -n "$am_sleep_pid"; then
18900     # Hide warnings about reused PIDs.
18901     wait $am_sleep_pid 2>/dev/null
18902   fi
18903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18904$as_echo "done" >&6; }
18905 if test -n "$EXEEXT"; then
18906  am__EXEEXT_TRUE=
18907  am__EXEEXT_FALSE='#'
18908else
18909  am__EXEEXT_TRUE='#'
18910  am__EXEEXT_FALSE=
18911fi
18912
18913if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18914  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18915Usually this means the macro was only invoked conditionally." "$LINENO" 5
18916fi
18917if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18918  as_fn_error $? "conditional \"AMDEP\" was never defined.
18919Usually this means the macro was only invoked conditionally." "$LINENO" 5
18920fi
18921if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18922  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18923Usually this means the macro was only invoked conditionally." "$LINENO" 5
18924fi
18925if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
18926  as_fn_error $? "conditional \"DEBUG\" was never defined.
18927Usually this means the macro was only invoked conditionally." "$LINENO" 5
18928fi
18929if test -z "${LINUX_BACKEND_TRUE}" && test -z "${LINUX_BACKEND_FALSE}"; then
18930  as_fn_error $? "conditional \"LINUX_BACKEND\" was never defined.
18931Usually this means the macro was only invoked conditionally." "$LINENO" 5
18932fi
18933if test -z "${BSD_BACKEND_TRUE}" && test -z "${BSD_BACKEND_FALSE}"; then
18934  as_fn_error $? "conditional \"BSD_BACKEND\" was never defined.
18935Usually this means the macro was only invoked conditionally." "$LINENO" 5
18936fi
18937if test -z "${EVDEV_BACKEND_TRUE}" && test -z "${EVDEV_BACKEND_FALSE}"; then
18938  as_fn_error $? "conditional \"EVDEV_BACKEND\" was never defined.
18939Usually this means the macro was only invoked conditionally." "$LINENO" 5
18940fi
18941
18942: "${CONFIG_STATUS=./config.status}"
18943ac_write_fail=0
18944ac_clean_files_save=$ac_clean_files
18945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18948as_write_fail=0
18949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18950#! $SHELL
18951# Generated by $as_me.
18952# Run this file to recreate the current configuration.
18953# Compiler output produced by configure, useful for debugging
18954# configure, is in config.log if it exists.
18955
18956debug=false
18957ac_cs_recheck=false
18958ac_cs_silent=false
18959
18960SHELL=\${CONFIG_SHELL-$SHELL}
18961export SHELL
18962_ASEOF
18963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18964## -------------------- ##
18965## M4sh Initialization. ##
18966## -------------------- ##
18967
18968# Be more Bourne compatible
18969DUALCASE=1; export DUALCASE # for MKS sh
18970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18971  emulate sh
18972  NULLCMD=:
18973  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18974  # is contrary to our usage.  Disable this feature.
18975  alias -g '${1+"$@"}'='"$@"'
18976  setopt NO_GLOB_SUBST
18977else
18978  case `(set -o) 2>/dev/null` in #(
18979  *posix*) :
18980    set -o posix ;; #(
18981  *) :
18982     ;;
18983esac
18984fi
18985
18986
18987as_nl='
18988'
18989export as_nl
18990# Printing a long string crashes Solaris 7 /usr/bin/printf.
18991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18994# Prefer a ksh shell builtin over an external printf program on Solaris,
18995# but without wasting forks for bash or zsh.
18996if test -z "$BASH_VERSION$ZSH_VERSION" \
18997    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18998  as_echo='print -r --'
18999  as_echo_n='print -rn --'
19000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19001  as_echo='printf %s\n'
19002  as_echo_n='printf %s'
19003else
19004  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19005    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19006    as_echo_n='/usr/ucb/echo -n'
19007  else
19008    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19009    as_echo_n_body='eval
19010      arg=$1;
19011      case $arg in #(
19012      *"$as_nl"*)
19013	expr "X$arg" : "X\\(.*\\)$as_nl";
19014	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19015      esac;
19016      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19017    '
19018    export as_echo_n_body
19019    as_echo_n='sh -c $as_echo_n_body as_echo'
19020  fi
19021  export as_echo_body
19022  as_echo='sh -c $as_echo_body as_echo'
19023fi
19024
19025# The user is always right.
19026if test "${PATH_SEPARATOR+set}" != set; then
19027  PATH_SEPARATOR=:
19028  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19029    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19030      PATH_SEPARATOR=';'
19031  }
19032fi
19033
19034
19035# IFS
19036# We need space, tab and new line, in precisely that order.  Quoting is
19037# there to prevent editors from complaining about space-tab.
19038# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19039# splitting by setting IFS to empty value.)
19040IFS=" ""	$as_nl"
19041
19042# Find who we are.  Look in the path if we contain no directory separator.
19043as_myself=
19044case $0 in #((
19045  *[\\/]* ) as_myself=$0 ;;
19046  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19047for as_dir in $PATH
19048do
19049  IFS=$as_save_IFS
19050  test -z "$as_dir" && as_dir=.
19051    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19052  done
19053IFS=$as_save_IFS
19054
19055     ;;
19056esac
19057# We did not find ourselves, most probably we were run as `sh COMMAND'
19058# in which case we are not to be found in the path.
19059if test "x$as_myself" = x; then
19060  as_myself=$0
19061fi
19062if test ! -f "$as_myself"; then
19063  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19064  exit 1
19065fi
19066
19067# Unset variables that we do not need and which cause bugs (e.g. in
19068# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19069# suppresses any "Segmentation fault" message there.  '((' could
19070# trigger a bug in pdksh 5.2.14.
19071for as_var in BASH_ENV ENV MAIL MAILPATH
19072do eval test x\${$as_var+set} = xset \
19073  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19074done
19075PS1='$ '
19076PS2='> '
19077PS4='+ '
19078
19079# NLS nuisances.
19080LC_ALL=C
19081export LC_ALL
19082LANGUAGE=C
19083export LANGUAGE
19084
19085# CDPATH.
19086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19087
19088
19089# as_fn_error STATUS ERROR [LINENO LOG_FD]
19090# ----------------------------------------
19091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19093# script with STATUS, using 1 if that was 0.
19094as_fn_error ()
19095{
19096  as_status=$1; test $as_status -eq 0 && as_status=1
19097  if test "$4"; then
19098    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19099    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19100  fi
19101  $as_echo "$as_me: error: $2" >&2
19102  as_fn_exit $as_status
19103} # as_fn_error
19104
19105
19106# as_fn_set_status STATUS
19107# -----------------------
19108# Set $? to STATUS, without forking.
19109as_fn_set_status ()
19110{
19111  return $1
19112} # as_fn_set_status
19113
19114# as_fn_exit STATUS
19115# -----------------
19116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19117as_fn_exit ()
19118{
19119  set +e
19120  as_fn_set_status $1
19121  exit $1
19122} # as_fn_exit
19123
19124# as_fn_unset VAR
19125# ---------------
19126# Portably unset VAR.
19127as_fn_unset ()
19128{
19129  { eval $1=; unset $1;}
19130}
19131as_unset=as_fn_unset
19132# as_fn_append VAR VALUE
19133# ----------------------
19134# Append the text in VALUE to the end of the definition contained in VAR. Take
19135# advantage of any shell optimizations that allow amortized linear growth over
19136# repeated appends, instead of the typical quadratic growth present in naive
19137# implementations.
19138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19139  eval 'as_fn_append ()
19140  {
19141    eval $1+=\$2
19142  }'
19143else
19144  as_fn_append ()
19145  {
19146    eval $1=\$$1\$2
19147  }
19148fi # as_fn_append
19149
19150# as_fn_arith ARG...
19151# ------------------
19152# Perform arithmetic evaluation on the ARGs, and store the result in the
19153# global $as_val. Take advantage of shells that can avoid forks. The arguments
19154# must be portable across $(()) and expr.
19155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19156  eval 'as_fn_arith ()
19157  {
19158    as_val=$(( $* ))
19159  }'
19160else
19161  as_fn_arith ()
19162  {
19163    as_val=`expr "$@" || test $? -eq 1`
19164  }
19165fi # as_fn_arith
19166
19167
19168if expr a : '\(a\)' >/dev/null 2>&1 &&
19169   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19170  as_expr=expr
19171else
19172  as_expr=false
19173fi
19174
19175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19176  as_basename=basename
19177else
19178  as_basename=false
19179fi
19180
19181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19182  as_dirname=dirname
19183else
19184  as_dirname=false
19185fi
19186
19187as_me=`$as_basename -- "$0" ||
19188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19189	 X"$0" : 'X\(//\)$' \| \
19190	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19191$as_echo X/"$0" |
19192    sed '/^.*\/\([^/][^/]*\)\/*$/{
19193	    s//\1/
19194	    q
19195	  }
19196	  /^X\/\(\/\/\)$/{
19197	    s//\1/
19198	    q
19199	  }
19200	  /^X\/\(\/\).*/{
19201	    s//\1/
19202	    q
19203	  }
19204	  s/.*/./; q'`
19205
19206# Avoid depending upon Character Ranges.
19207as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19209as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19210as_cr_digits='0123456789'
19211as_cr_alnum=$as_cr_Letters$as_cr_digits
19212
19213ECHO_C= ECHO_N= ECHO_T=
19214case `echo -n x` in #(((((
19215-n*)
19216  case `echo 'xy\c'` in
19217  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19218  xy)  ECHO_C='\c';;
19219  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19220       ECHO_T='	';;
19221  esac;;
19222*)
19223  ECHO_N='-n';;
19224esac
19225
19226rm -f conf$$ conf$$.exe conf$$.file
19227if test -d conf$$.dir; then
19228  rm -f conf$$.dir/conf$$.file
19229else
19230  rm -f conf$$.dir
19231  mkdir conf$$.dir 2>/dev/null
19232fi
19233if (echo >conf$$.file) 2>/dev/null; then
19234  if ln -s conf$$.file conf$$ 2>/dev/null; then
19235    as_ln_s='ln -s'
19236    # ... but there are two gotchas:
19237    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19238    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19239    # In both cases, we have to default to `cp -pR'.
19240    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19241      as_ln_s='cp -pR'
19242  elif ln conf$$.file conf$$ 2>/dev/null; then
19243    as_ln_s=ln
19244  else
19245    as_ln_s='cp -pR'
19246  fi
19247else
19248  as_ln_s='cp -pR'
19249fi
19250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19251rmdir conf$$.dir 2>/dev/null
19252
19253
19254# as_fn_mkdir_p
19255# -------------
19256# Create "$as_dir" as a directory, including parents if necessary.
19257as_fn_mkdir_p ()
19258{
19259
19260  case $as_dir in #(
19261  -*) as_dir=./$as_dir;;
19262  esac
19263  test -d "$as_dir" || eval $as_mkdir_p || {
19264    as_dirs=
19265    while :; do
19266      case $as_dir in #(
19267      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19268      *) as_qdir=$as_dir;;
19269      esac
19270      as_dirs="'$as_qdir' $as_dirs"
19271      as_dir=`$as_dirname -- "$as_dir" ||
19272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19273	 X"$as_dir" : 'X\(//\)[^/]' \| \
19274	 X"$as_dir" : 'X\(//\)$' \| \
19275	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19276$as_echo X"$as_dir" |
19277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19278	    s//\1/
19279	    q
19280	  }
19281	  /^X\(\/\/\)[^/].*/{
19282	    s//\1/
19283	    q
19284	  }
19285	  /^X\(\/\/\)$/{
19286	    s//\1/
19287	    q
19288	  }
19289	  /^X\(\/\).*/{
19290	    s//\1/
19291	    q
19292	  }
19293	  s/.*/./; q'`
19294      test -d "$as_dir" && break
19295    done
19296    test -z "$as_dirs" || eval "mkdir $as_dirs"
19297  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19298
19299
19300} # as_fn_mkdir_p
19301if mkdir -p . 2>/dev/null; then
19302  as_mkdir_p='mkdir -p "$as_dir"'
19303else
19304  test -d ./-p && rmdir ./-p
19305  as_mkdir_p=false
19306fi
19307
19308
19309# as_fn_executable_p FILE
19310# -----------------------
19311# Test if FILE is an executable regular file.
19312as_fn_executable_p ()
19313{
19314  test -f "$1" && test -x "$1"
19315} # as_fn_executable_p
19316as_test_x='test -x'
19317as_executable_p=as_fn_executable_p
19318
19319# Sed expression to map a string onto a valid CPP name.
19320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19321
19322# Sed expression to map a string onto a valid variable name.
19323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19324
19325
19326exec 6>&1
19327## ----------------------------------- ##
19328## Main body of $CONFIG_STATUS script. ##
19329## ----------------------------------- ##
19330_ASEOF
19331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19332
19333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19334# Save the log message, to keep $0 and so on meaningful, and to
19335# report actual input values of CONFIG_FILES etc. instead of their
19336# values after options handling.
19337ac_log="
19338This file was extended by xf86-input-joystick $as_me 1.6.3, which was
19339generated by GNU Autoconf 2.69.  Invocation command line was
19340
19341  CONFIG_FILES    = $CONFIG_FILES
19342  CONFIG_HEADERS  = $CONFIG_HEADERS
19343  CONFIG_LINKS    = $CONFIG_LINKS
19344  CONFIG_COMMANDS = $CONFIG_COMMANDS
19345  $ $0 $@
19346
19347on `(hostname || uname -n) 2>/dev/null | sed 1q`
19348"
19349
19350_ACEOF
19351
19352case $ac_config_files in *"
19353"*) set x $ac_config_files; shift; ac_config_files=$*;;
19354esac
19355
19356case $ac_config_headers in *"
19357"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19358esac
19359
19360
19361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19362# Files that config.status was made for.
19363config_files="$ac_config_files"
19364config_headers="$ac_config_headers"
19365config_commands="$ac_config_commands"
19366
19367_ACEOF
19368
19369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19370ac_cs_usage="\
19371\`$as_me' instantiates files and other configuration actions
19372from templates according to the current configuration.  Unless the files
19373and actions are specified as TAGs, all are instantiated by default.
19374
19375Usage: $0 [OPTION]... [TAG]...
19376
19377  -h, --help       print this help, then exit
19378  -V, --version    print version number and configuration settings, then exit
19379      --config     print configuration, then exit
19380  -q, --quiet, --silent
19381                   do not print progress messages
19382  -d, --debug      don't remove temporary files
19383      --recheck    update $as_me by reconfiguring in the same conditions
19384      --file=FILE[:TEMPLATE]
19385                   instantiate the configuration file FILE
19386      --header=FILE[:TEMPLATE]
19387                   instantiate the configuration header FILE
19388
19389Configuration files:
19390$config_files
19391
19392Configuration headers:
19393$config_headers
19394
19395Configuration commands:
19396$config_commands
19397
19398Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19399
19400_ACEOF
19401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19403ac_cs_version="\\
19404xf86-input-joystick config.status 1.6.3
19405configured by $0, generated by GNU Autoconf 2.69,
19406  with options \\"\$ac_cs_config\\"
19407
19408Copyright (C) 2012 Free Software Foundation, Inc.
19409This config.status script is free software; the Free Software Foundation
19410gives unlimited permission to copy, distribute and modify it."
19411
19412ac_pwd='$ac_pwd'
19413srcdir='$srcdir'
19414INSTALL='$INSTALL'
19415MKDIR_P='$MKDIR_P'
19416AWK='$AWK'
19417test -n "\$AWK" || AWK=awk
19418_ACEOF
19419
19420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19421# The default lists apply if the user does not specify any file.
19422ac_need_defaults=:
19423while test $# != 0
19424do
19425  case $1 in
19426  --*=?*)
19427    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19428    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19429    ac_shift=:
19430    ;;
19431  --*=)
19432    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19433    ac_optarg=
19434    ac_shift=:
19435    ;;
19436  *)
19437    ac_option=$1
19438    ac_optarg=$2
19439    ac_shift=shift
19440    ;;
19441  esac
19442
19443  case $ac_option in
19444  # Handling of the options.
19445  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19446    ac_cs_recheck=: ;;
19447  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19448    $as_echo "$ac_cs_version"; exit ;;
19449  --config | --confi | --conf | --con | --co | --c )
19450    $as_echo "$ac_cs_config"; exit ;;
19451  --debug | --debu | --deb | --de | --d | -d )
19452    debug=: ;;
19453  --file | --fil | --fi | --f )
19454    $ac_shift
19455    case $ac_optarg in
19456    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19457    '') as_fn_error $? "missing file argument" ;;
19458    esac
19459    as_fn_append CONFIG_FILES " '$ac_optarg'"
19460    ac_need_defaults=false;;
19461  --header | --heade | --head | --hea )
19462    $ac_shift
19463    case $ac_optarg in
19464    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19465    esac
19466    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19467    ac_need_defaults=false;;
19468  --he | --h)
19469    # Conflict between --help and --header
19470    as_fn_error $? "ambiguous option: \`$1'
19471Try \`$0 --help' for more information.";;
19472  --help | --hel | -h )
19473    $as_echo "$ac_cs_usage"; exit ;;
19474  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19475  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19476    ac_cs_silent=: ;;
19477
19478  # This is an error.
19479  -*) as_fn_error $? "unrecognized option: \`$1'
19480Try \`$0 --help' for more information." ;;
19481
19482  *) as_fn_append ac_config_targets " $1"
19483     ac_need_defaults=false ;;
19484
19485  esac
19486  shift
19487done
19488
19489ac_configure_extra_args=
19490
19491if $ac_cs_silent; then
19492  exec 6>/dev/null
19493  ac_configure_extra_args="$ac_configure_extra_args --silent"
19494fi
19495
19496_ACEOF
19497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19498if \$ac_cs_recheck; then
19499  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19500  shift
19501  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19502  CONFIG_SHELL='$SHELL'
19503  export CONFIG_SHELL
19504  exec "\$@"
19505fi
19506
19507_ACEOF
19508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19509exec 5>>config.log
19510{
19511  echo
19512  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19513## Running $as_me. ##
19514_ASBOX
19515  $as_echo "$ac_log"
19516} >&5
19517
19518_ACEOF
19519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520#
19521# INIT-COMMANDS
19522#
19523AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19524
19525
19526# The HP-UX ksh and POSIX shell print the target directory to stdout
19527# if CDPATH is set.
19528(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19529
19530sed_quote_subst='$sed_quote_subst'
19531double_quote_subst='$double_quote_subst'
19532delay_variable_subst='$delay_variable_subst'
19533enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19534macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19535macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19536enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19537pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19538enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19539shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19540SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19541ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19542PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19543host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19544host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19545host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19546build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19547build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19548build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19549SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19550Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19551GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19552EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19553FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19554LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19555NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19556LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19557max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19558ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19559exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19560lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19561lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19562lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19563lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19564lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19565reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19566reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19567OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19568deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19569file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19570file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19571want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19572DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19573sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19574AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19575AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19576archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19577STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19578RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19579old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19580old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19581old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19582lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19583CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19584CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19585compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19586GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19587lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19588lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19589lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19590lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19591lt_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"`'
19592lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19593nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19594lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19595lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19596objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19597MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19598lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19599lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19600lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19601lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19602lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19603need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19604MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19605DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19606NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19607LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19608OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19609OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19610libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19611shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19612extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19613archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19614enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19615export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19616whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19617compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19618old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19619old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19620archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19621archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19622module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19623module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19624with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19625allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19626no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19627hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19628hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19629hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19630hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19631hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19632hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19633hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19634inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19635link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19636always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19637export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19638exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19639include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19640prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19641postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19642file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19643variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19644need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19645need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19646version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19647runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19648shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19649shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19650libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19651library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19652soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19653install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19654postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19655postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19656finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19657finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19658hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19659sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19660configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19661configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19662hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19663enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19664enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19665enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19666old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19667striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19668
19669LTCC='$LTCC'
19670LTCFLAGS='$LTCFLAGS'
19671compiler='$compiler_DEFAULT'
19672
19673# A function that is used when there is no print builtin or printf.
19674func_fallback_echo ()
19675{
19676  eval 'cat <<_LTECHO_EOF
19677\$1
19678_LTECHO_EOF'
19679}
19680
19681# Quote evaled strings.
19682for var in SHELL \
19683ECHO \
19684PATH_SEPARATOR \
19685SED \
19686GREP \
19687EGREP \
19688FGREP \
19689LD \
19690NM \
19691LN_S \
19692lt_SP2NL \
19693lt_NL2SP \
19694reload_flag \
19695OBJDUMP \
19696deplibs_check_method \
19697file_magic_cmd \
19698file_magic_glob \
19699want_nocaseglob \
19700DLLTOOL \
19701sharedlib_from_linklib_cmd \
19702AR \
19703AR_FLAGS \
19704archiver_list_spec \
19705STRIP \
19706RANLIB \
19707CC \
19708CFLAGS \
19709compiler \
19710lt_cv_sys_global_symbol_pipe \
19711lt_cv_sys_global_symbol_to_cdecl \
19712lt_cv_sys_global_symbol_to_import \
19713lt_cv_sys_global_symbol_to_c_name_address \
19714lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19715lt_cv_nm_interface \
19716nm_file_list_spec \
19717lt_cv_truncate_bin \
19718lt_prog_compiler_no_builtin_flag \
19719lt_prog_compiler_pic \
19720lt_prog_compiler_wl \
19721lt_prog_compiler_static \
19722lt_cv_prog_compiler_c_o \
19723need_locks \
19724MANIFEST_TOOL \
19725DSYMUTIL \
19726NMEDIT \
19727LIPO \
19728OTOOL \
19729OTOOL64 \
19730shrext_cmds \
19731export_dynamic_flag_spec \
19732whole_archive_flag_spec \
19733compiler_needs_object \
19734with_gnu_ld \
19735allow_undefined_flag \
19736no_undefined_flag \
19737hardcode_libdir_flag_spec \
19738hardcode_libdir_separator \
19739exclude_expsyms \
19740include_expsyms \
19741file_list_spec \
19742variables_saved_for_relink \
19743libname_spec \
19744library_names_spec \
19745soname_spec \
19746install_override_mode \
19747finish_eval \
19748old_striplib \
19749striplib; do
19750    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19751    *[\\\\\\\`\\"\\\$]*)
19752      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19753      ;;
19754    *)
19755      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19756      ;;
19757    esac
19758done
19759
19760# Double-quote double-evaled strings.
19761for var in reload_cmds \
19762old_postinstall_cmds \
19763old_postuninstall_cmds \
19764old_archive_cmds \
19765extract_expsyms_cmds \
19766old_archive_from_new_cmds \
19767old_archive_from_expsyms_cmds \
19768archive_cmds \
19769archive_expsym_cmds \
19770module_cmds \
19771module_expsym_cmds \
19772export_symbols_cmds \
19773prelink_cmds \
19774postlink_cmds \
19775postinstall_cmds \
19776postuninstall_cmds \
19777finish_cmds \
19778sys_lib_search_path_spec \
19779configure_time_dlsearch_path \
19780configure_time_lt_sys_library_path; do
19781    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19782    *[\\\\\\\`\\"\\\$]*)
19783      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19784      ;;
19785    *)
19786      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19787      ;;
19788    esac
19789done
19790
19791ac_aux_dir='$ac_aux_dir'
19792
19793# See if we are running on zsh, and set the options that allow our
19794# commands through without removal of \ escapes INIT.
19795if test -n "\${ZSH_VERSION+set}"; then
19796   setopt NO_GLOB_SUBST
19797fi
19798
19799
19800    PACKAGE='$PACKAGE'
19801    VERSION='$VERSION'
19802    RM='$RM'
19803    ofile='$ofile'
19804
19805
19806
19807
19808_ACEOF
19809
19810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19811
19812# Handling of arguments.
19813for ac_config_target in $ac_config_targets
19814do
19815  case $ac_config_target in
19816    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19817    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19818    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19819    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19820    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19821    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19822    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
19823    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19824    "xorg-joystick.pc") CONFIG_FILES="$CONFIG_FILES xorg-joystick.pc" ;;
19825
19826  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19827  esac
19828done
19829
19830
19831# If the user did not use the arguments to specify the items to instantiate,
19832# then the envvar interface is used.  Set only those that are not.
19833# We use the long form for the default assignment because of an extremely
19834# bizarre bug on SunOS 4.1.3.
19835if $ac_need_defaults; then
19836  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19837  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19838  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19839fi
19840
19841# Have a temporary directory for convenience.  Make it in the build tree
19842# simply because there is no reason against having it here, and in addition,
19843# creating and moving files from /tmp can sometimes cause problems.
19844# Hook for its removal unless debugging.
19845# Note that there is a small window in which the directory will not be cleaned:
19846# after its creation but before its name has been assigned to `$tmp'.
19847$debug ||
19848{
19849  tmp= ac_tmp=
19850  trap 'exit_status=$?
19851  : "${ac_tmp:=$tmp}"
19852  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19853' 0
19854  trap 'as_fn_exit 1' 1 2 13 15
19855}
19856# Create a (secure) tmp directory for tmp files.
19857
19858{
19859  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19860  test -d "$tmp"
19861}  ||
19862{
19863  tmp=./conf$$-$RANDOM
19864  (umask 077 && mkdir "$tmp")
19865} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19866ac_tmp=$tmp
19867
19868# Set up the scripts for CONFIG_FILES section.
19869# No need to generate them if there are no CONFIG_FILES.
19870# This happens for instance with `./config.status config.h'.
19871if test -n "$CONFIG_FILES"; then
19872
19873
19874ac_cr=`echo X | tr X '\015'`
19875# On cygwin, bash can eat \r inside `` if the user requested igncr.
19876# But we know of no other shell where ac_cr would be empty at this
19877# point, so we can use a bashism as a fallback.
19878if test "x$ac_cr" = x; then
19879  eval ac_cr=\$\'\\r\'
19880fi
19881ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19882if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19883  ac_cs_awk_cr='\\r'
19884else
19885  ac_cs_awk_cr=$ac_cr
19886fi
19887
19888echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19889_ACEOF
19890
19891
19892{
19893  echo "cat >conf$$subs.awk <<_ACEOF" &&
19894  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19895  echo "_ACEOF"
19896} >conf$$subs.sh ||
19897  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19898ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19899ac_delim='%!_!# '
19900for ac_last_try in false false false false false :; do
19901  . ./conf$$subs.sh ||
19902    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19903
19904  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19905  if test $ac_delim_n = $ac_delim_num; then
19906    break
19907  elif $ac_last_try; then
19908    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19909  else
19910    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19911  fi
19912done
19913rm -f conf$$subs.sh
19914
19915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19916cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19917_ACEOF
19918sed -n '
19919h
19920s/^/S["/; s/!.*/"]=/
19921p
19922g
19923s/^[^!]*!//
19924:repl
19925t repl
19926s/'"$ac_delim"'$//
19927t delim
19928:nl
19929h
19930s/\(.\{148\}\)..*/\1/
19931t more1
19932s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19933p
19934n
19935b repl
19936:more1
19937s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19938p
19939g
19940s/.\{148\}//
19941t nl
19942:delim
19943h
19944s/\(.\{148\}\)..*/\1/
19945t more2
19946s/["\\]/\\&/g; s/^/"/; s/$/"/
19947p
19948b
19949:more2
19950s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19951p
19952g
19953s/.\{148\}//
19954t delim
19955' <conf$$subs.awk | sed '
19956/^[^""]/{
19957  N
19958  s/\n//
19959}
19960' >>$CONFIG_STATUS || ac_write_fail=1
19961rm -f conf$$subs.awk
19962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19963_ACAWK
19964cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19965  for (key in S) S_is_set[key] = 1
19966  FS = ""
19967
19968}
19969{
19970  line = $ 0
19971  nfields = split(line, field, "@")
19972  substed = 0
19973  len = length(field[1])
19974  for (i = 2; i < nfields; i++) {
19975    key = field[i]
19976    keylen = length(key)
19977    if (S_is_set[key]) {
19978      value = S[key]
19979      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19980      len += length(value) + length(field[++i])
19981      substed = 1
19982    } else
19983      len += 1 + keylen
19984  }
19985
19986  print line
19987}
19988
19989_ACAWK
19990_ACEOF
19991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19992if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19993  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19994else
19995  cat
19996fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19997  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19998_ACEOF
19999
20000# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20001# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20002# trailing colons and then remove the whole line if VPATH becomes empty
20003# (actually we leave an empty line to preserve line numbers).
20004if test "x$srcdir" = x.; then
20005  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20006h
20007s///
20008s/^/:/
20009s/[	 ]*$/:/
20010s/:\$(srcdir):/:/g
20011s/:\${srcdir}:/:/g
20012s/:@srcdir@:/:/g
20013s/^:*//
20014s/:*$//
20015x
20016s/\(=[	 ]*\).*/\1/
20017G
20018s/\n//
20019s/^[^=]*=[	 ]*$//
20020}'
20021fi
20022
20023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20024fi # test -n "$CONFIG_FILES"
20025
20026# Set up the scripts for CONFIG_HEADERS section.
20027# No need to generate them if there are no CONFIG_HEADERS.
20028# This happens for instance with `./config.status Makefile'.
20029if test -n "$CONFIG_HEADERS"; then
20030cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20031BEGIN {
20032_ACEOF
20033
20034# Transform confdefs.h into an awk script `defines.awk', embedded as
20035# here-document in config.status, that substitutes the proper values into
20036# config.h.in to produce config.h.
20037
20038# Create a delimiter string that does not exist in confdefs.h, to ease
20039# handling of long lines.
20040ac_delim='%!_!# '
20041for ac_last_try in false false :; do
20042  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20043  if test -z "$ac_tt"; then
20044    break
20045  elif $ac_last_try; then
20046    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20047  else
20048    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20049  fi
20050done
20051
20052# For the awk script, D is an array of macro values keyed by name,
20053# likewise P contains macro parameters if any.  Preserve backslash
20054# newline sequences.
20055
20056ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20057sed -n '
20058s/.\{148\}/&'"$ac_delim"'/g
20059t rset
20060:rset
20061s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20062t def
20063d
20064:def
20065s/\\$//
20066t bsnl
20067s/["\\]/\\&/g
20068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20069D["\1"]=" \3"/p
20070s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20071d
20072:bsnl
20073s/["\\]/\\&/g
20074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20075D["\1"]=" \3\\\\\\n"\\/p
20076t cont
20077s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20078t cont
20079d
20080:cont
20081n
20082s/.\{148\}/&'"$ac_delim"'/g
20083t clear
20084:clear
20085s/\\$//
20086t bsnlc
20087s/["\\]/\\&/g; s/^/"/; s/$/"/p
20088d
20089:bsnlc
20090s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20091b cont
20092' <confdefs.h | sed '
20093s/'"$ac_delim"'/"\\\
20094"/g' >>$CONFIG_STATUS || ac_write_fail=1
20095
20096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20097  for (key in D) D_is_set[key] = 1
20098  FS = ""
20099}
20100/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20101  line = \$ 0
20102  split(line, arg, " ")
20103  if (arg[1] == "#") {
20104    defundef = arg[2]
20105    mac1 = arg[3]
20106  } else {
20107    defundef = substr(arg[1], 2)
20108    mac1 = arg[2]
20109  }
20110  split(mac1, mac2, "(") #)
20111  macro = mac2[1]
20112  prefix = substr(line, 1, index(line, defundef) - 1)
20113  if (D_is_set[macro]) {
20114    # Preserve the white space surrounding the "#".
20115    print prefix "define", macro P[macro] D[macro]
20116    next
20117  } else {
20118    # Replace #undef with comments.  This is necessary, for example,
20119    # in the case of _POSIX_SOURCE, which is predefined and required
20120    # on some systems where configure will not decide to define it.
20121    if (defundef == "undef") {
20122      print "/*", prefix defundef, macro, "*/"
20123      next
20124    }
20125  }
20126}
20127{ print }
20128_ACAWK
20129_ACEOF
20130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20131  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20132fi # test -n "$CONFIG_HEADERS"
20133
20134
20135eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20136shift
20137for ac_tag
20138do
20139  case $ac_tag in
20140  :[FHLC]) ac_mode=$ac_tag; continue;;
20141  esac
20142  case $ac_mode$ac_tag in
20143  :[FHL]*:*);;
20144  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20145  :[FH]-) ac_tag=-:-;;
20146  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20147  esac
20148  ac_save_IFS=$IFS
20149  IFS=:
20150  set x $ac_tag
20151  IFS=$ac_save_IFS
20152  shift
20153  ac_file=$1
20154  shift
20155
20156  case $ac_mode in
20157  :L) ac_source=$1;;
20158  :[FH])
20159    ac_file_inputs=
20160    for ac_f
20161    do
20162      case $ac_f in
20163      -) ac_f="$ac_tmp/stdin";;
20164      *) # Look for the file first in the build tree, then in the source tree
20165	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20166	 # because $ac_f cannot contain `:'.
20167	 test -f "$ac_f" ||
20168	   case $ac_f in
20169	   [\\/$]*) false;;
20170	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20171	   esac ||
20172	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20173      esac
20174      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20175      as_fn_append ac_file_inputs " '$ac_f'"
20176    done
20177
20178    # Let's still pretend it is `configure' which instantiates (i.e., don't
20179    # use $as_me), people would be surprised to read:
20180    #    /* config.h.  Generated by config.status.  */
20181    configure_input='Generated from '`
20182	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20183	`' by configure.'
20184    if test x"$ac_file" != x-; then
20185      configure_input="$ac_file.  $configure_input"
20186      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20187$as_echo "$as_me: creating $ac_file" >&6;}
20188    fi
20189    # Neutralize special characters interpreted by sed in replacement strings.
20190    case $configure_input in #(
20191    *\&* | *\|* | *\\* )
20192       ac_sed_conf_input=`$as_echo "$configure_input" |
20193       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20194    *) ac_sed_conf_input=$configure_input;;
20195    esac
20196
20197    case $ac_tag in
20198    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20199      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20200    esac
20201    ;;
20202  esac
20203
20204  ac_dir=`$as_dirname -- "$ac_file" ||
20205$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206	 X"$ac_file" : 'X\(//\)[^/]' \| \
20207	 X"$ac_file" : 'X\(//\)$' \| \
20208	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20209$as_echo X"$ac_file" |
20210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20211	    s//\1/
20212	    q
20213	  }
20214	  /^X\(\/\/\)[^/].*/{
20215	    s//\1/
20216	    q
20217	  }
20218	  /^X\(\/\/\)$/{
20219	    s//\1/
20220	    q
20221	  }
20222	  /^X\(\/\).*/{
20223	    s//\1/
20224	    q
20225	  }
20226	  s/.*/./; q'`
20227  as_dir="$ac_dir"; as_fn_mkdir_p
20228  ac_builddir=.
20229
20230case "$ac_dir" in
20231.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20232*)
20233  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20234  # A ".." for each directory in $ac_dir_suffix.
20235  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20236  case $ac_top_builddir_sub in
20237  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20238  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20239  esac ;;
20240esac
20241ac_abs_top_builddir=$ac_pwd
20242ac_abs_builddir=$ac_pwd$ac_dir_suffix
20243# for backward compatibility:
20244ac_top_builddir=$ac_top_build_prefix
20245
20246case $srcdir in
20247  .)  # We are building in place.
20248    ac_srcdir=.
20249    ac_top_srcdir=$ac_top_builddir_sub
20250    ac_abs_top_srcdir=$ac_pwd ;;
20251  [\\/]* | ?:[\\/]* )  # Absolute name.
20252    ac_srcdir=$srcdir$ac_dir_suffix;
20253    ac_top_srcdir=$srcdir
20254    ac_abs_top_srcdir=$srcdir ;;
20255  *) # Relative name.
20256    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20257    ac_top_srcdir=$ac_top_build_prefix$srcdir
20258    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20259esac
20260ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20261
20262
20263  case $ac_mode in
20264  :F)
20265  #
20266  # CONFIG_FILE
20267  #
20268
20269  case $INSTALL in
20270  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20271  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20272  esac
20273  ac_MKDIR_P=$MKDIR_P
20274  case $MKDIR_P in
20275  [\\/$]* | ?:[\\/]* ) ;;
20276  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20277  esac
20278_ACEOF
20279
20280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281# If the template does not know about datarootdir, expand it.
20282# FIXME: This hack should be removed a few years after 2.60.
20283ac_datarootdir_hack=; ac_datarootdir_seen=
20284ac_sed_dataroot='
20285/datarootdir/ {
20286  p
20287  q
20288}
20289/@datadir@/p
20290/@docdir@/p
20291/@infodir@/p
20292/@localedir@/p
20293/@mandir@/p'
20294case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20295*datarootdir*) ac_datarootdir_seen=yes;;
20296*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20297  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20298$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20299_ACEOF
20300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20301  ac_datarootdir_hack='
20302  s&@datadir@&$datadir&g
20303  s&@docdir@&$docdir&g
20304  s&@infodir@&$infodir&g
20305  s&@localedir@&$localedir&g
20306  s&@mandir@&$mandir&g
20307  s&\\\${datarootdir}&$datarootdir&g' ;;
20308esac
20309_ACEOF
20310
20311# Neutralize VPATH when `$srcdir' = `.'.
20312# Shell code in configure.ac might set extrasub.
20313# FIXME: do we really want to maintain this feature?
20314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315ac_sed_extra="$ac_vpsub
20316$extrasub
20317_ACEOF
20318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20319:t
20320/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20321s|@configure_input@|$ac_sed_conf_input|;t t
20322s&@top_builddir@&$ac_top_builddir_sub&;t t
20323s&@top_build_prefix@&$ac_top_build_prefix&;t t
20324s&@srcdir@&$ac_srcdir&;t t
20325s&@abs_srcdir@&$ac_abs_srcdir&;t t
20326s&@top_srcdir@&$ac_top_srcdir&;t t
20327s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20328s&@builddir@&$ac_builddir&;t t
20329s&@abs_builddir@&$ac_abs_builddir&;t t
20330s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20331s&@INSTALL@&$ac_INSTALL&;t t
20332s&@MKDIR_P@&$ac_MKDIR_P&;t t
20333$ac_datarootdir_hack
20334"
20335eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20336  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20337
20338test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20339  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20340  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20341      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20342  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20343which seems to be undefined.  Please make sure it is defined" >&5
20344$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20345which seems to be undefined.  Please make sure it is defined" >&2;}
20346
20347  rm -f "$ac_tmp/stdin"
20348  case $ac_file in
20349  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20350  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20351  esac \
20352  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20353 ;;
20354  :H)
20355  #
20356  # CONFIG_HEADER
20357  #
20358  if test x"$ac_file" != x-; then
20359    {
20360      $as_echo "/* $configure_input  */" \
20361      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20362    } >"$ac_tmp/config.h" \
20363      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20364    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20365      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20366$as_echo "$as_me: $ac_file is unchanged" >&6;}
20367    else
20368      rm -f "$ac_file"
20369      mv "$ac_tmp/config.h" "$ac_file" \
20370	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20371    fi
20372  else
20373    $as_echo "/* $configure_input  */" \
20374      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20375      || as_fn_error $? "could not create -" "$LINENO" 5
20376  fi
20377# Compute "$ac_file"'s index in $config_headers.
20378_am_arg="$ac_file"
20379_am_stamp_count=1
20380for _am_header in $config_headers :; do
20381  case $_am_header in
20382    $_am_arg | $_am_arg:* )
20383      break ;;
20384    * )
20385      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20386  esac
20387done
20388echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20389$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20390	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20391	 X"$_am_arg" : 'X\(//\)$' \| \
20392	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20393$as_echo X"$_am_arg" |
20394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20395	    s//\1/
20396	    q
20397	  }
20398	  /^X\(\/\/\)[^/].*/{
20399	    s//\1/
20400	    q
20401	  }
20402	  /^X\(\/\/\)$/{
20403	    s//\1/
20404	    q
20405	  }
20406	  /^X\(\/\).*/{
20407	    s//\1/
20408	    q
20409	  }
20410	  s/.*/./; q'`/stamp-h$_am_stamp_count
20411 ;;
20412
20413  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20414$as_echo "$as_me: executing $ac_file commands" >&6;}
20415 ;;
20416  esac
20417
20418
20419  case $ac_file$ac_mode in
20420    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20421  # Older Autoconf quotes --file arguments for eval, but not when files
20422  # are listed without --file.  Let's play safe and only enable the eval
20423  # if we detect the quoting.
20424  case $CONFIG_FILES in
20425  *\'*) eval set x "$CONFIG_FILES" ;;
20426  *)   set x $CONFIG_FILES ;;
20427  esac
20428  shift
20429  for mf
20430  do
20431    # Strip MF so we end up with the name of the file.
20432    mf=`echo "$mf" | sed -e 's/:.*$//'`
20433    # Check whether this is an Automake generated Makefile or not.
20434    # We used to match only the files named 'Makefile.in', but
20435    # some people rename them; so instead we look at the file content.
20436    # Grep'ing the first line is not enough: some people post-process
20437    # each Makefile.in and add a new line on top of each file to say so.
20438    # Grep'ing the whole file is not good either: AIX grep has a line
20439    # limit of 2048, but all sed's we know have understand at least 4000.
20440    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20441      dirpart=`$as_dirname -- "$mf" ||
20442$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20443	 X"$mf" : 'X\(//\)[^/]' \| \
20444	 X"$mf" : 'X\(//\)$' \| \
20445	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20446$as_echo X"$mf" |
20447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20448	    s//\1/
20449	    q
20450	  }
20451	  /^X\(\/\/\)[^/].*/{
20452	    s//\1/
20453	    q
20454	  }
20455	  /^X\(\/\/\)$/{
20456	    s//\1/
20457	    q
20458	  }
20459	  /^X\(\/\).*/{
20460	    s//\1/
20461	    q
20462	  }
20463	  s/.*/./; q'`
20464    else
20465      continue
20466    fi
20467    # Extract the definition of DEPDIR, am__include, and am__quote
20468    # from the Makefile without running 'make'.
20469    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20470    test -z "$DEPDIR" && continue
20471    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20472    test -z "$am__include" && continue
20473    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20474    # Find all dependency output files, they are included files with
20475    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20476    # simplest approach to changing $(DEPDIR) to its actual value in the
20477    # expansion.
20478    for file in `sed -n "
20479      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20480	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20481      # Make sure the directory exists.
20482      test -f "$dirpart/$file" && continue
20483      fdir=`$as_dirname -- "$file" ||
20484$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485	 X"$file" : 'X\(//\)[^/]' \| \
20486	 X"$file" : 'X\(//\)$' \| \
20487	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20488$as_echo X"$file" |
20489    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20490	    s//\1/
20491	    q
20492	  }
20493	  /^X\(\/\/\)[^/].*/{
20494	    s//\1/
20495	    q
20496	  }
20497	  /^X\(\/\/\)$/{
20498	    s//\1/
20499	    q
20500	  }
20501	  /^X\(\/\).*/{
20502	    s//\1/
20503	    q
20504	  }
20505	  s/.*/./; q'`
20506      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20507      # echo "creating $dirpart/$file"
20508      echo '# dummy' > "$dirpart/$file"
20509    done
20510  done
20511}
20512 ;;
20513    "libtool":C)
20514
20515    # See if we are running on zsh, and set the options that allow our
20516    # commands through without removal of \ escapes.
20517    if test -n "${ZSH_VERSION+set}"; then
20518      setopt NO_GLOB_SUBST
20519    fi
20520
20521    cfgfile=${ofile}T
20522    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20523    $RM "$cfgfile"
20524
20525    cat <<_LT_EOF >> "$cfgfile"
20526#! $SHELL
20527# Generated automatically by $as_me ($PACKAGE) $VERSION
20528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20529# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20530
20531# Provide generalized library-building support services.
20532# Written by Gordon Matzigkeit, 1996
20533
20534# Copyright (C) 2014 Free Software Foundation, Inc.
20535# This is free software; see the source for copying conditions.  There is NO
20536# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20537
20538# GNU Libtool is free software; you can redistribute it and/or modify
20539# it under the terms of the GNU General Public License as published by
20540# the Free Software Foundation; either version 2 of of the License, or
20541# (at your option) any later version.
20542#
20543# As a special exception to the GNU General Public License, if you
20544# distribute this file as part of a program or library that is built
20545# using GNU Libtool, you may include this file under the  same
20546# distribution terms that you use for the rest of that program.
20547#
20548# GNU Libtool is distributed in the hope that it will be useful, but
20549# WITHOUT ANY WARRANTY; without even the implied warranty of
20550# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20551# GNU General Public License for more details.
20552#
20553# You should have received a copy of the GNU General Public License
20554# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20555
20556
20557# The names of the tagged configurations supported by this script.
20558available_tags=''
20559
20560# Configured defaults for sys_lib_dlsearch_path munging.
20561: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20562
20563# ### BEGIN LIBTOOL CONFIG
20564
20565# Whether or not to build static libraries.
20566build_old_libs=$enable_static
20567
20568# Which release of libtool.m4 was used?
20569macro_version=$macro_version
20570macro_revision=$macro_revision
20571
20572# Whether or not to build shared libraries.
20573build_libtool_libs=$enable_shared
20574
20575# What type of objects to build.
20576pic_mode=$pic_mode
20577
20578# Whether or not to optimize for fast installation.
20579fast_install=$enable_fast_install
20580
20581# Shared archive member basename,for filename based shared library versioning on AIX.
20582shared_archive_member_spec=$shared_archive_member_spec
20583
20584# Shell to use when invoking shell scripts.
20585SHELL=$lt_SHELL
20586
20587# An echo program that protects backslashes.
20588ECHO=$lt_ECHO
20589
20590# The PATH separator for the build system.
20591PATH_SEPARATOR=$lt_PATH_SEPARATOR
20592
20593# The host system.
20594host_alias=$host_alias
20595host=$host
20596host_os=$host_os
20597
20598# The build system.
20599build_alias=$build_alias
20600build=$build
20601build_os=$build_os
20602
20603# A sed program that does not truncate output.
20604SED=$lt_SED
20605
20606# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20607Xsed="\$SED -e 1s/^X//"
20608
20609# A grep program that handles long lines.
20610GREP=$lt_GREP
20611
20612# An ERE matcher.
20613EGREP=$lt_EGREP
20614
20615# A literal string matcher.
20616FGREP=$lt_FGREP
20617
20618# A BSD- or MS-compatible name lister.
20619NM=$lt_NM
20620
20621# Whether we need soft or hard links.
20622LN_S=$lt_LN_S
20623
20624# What is the maximum length of a command?
20625max_cmd_len=$max_cmd_len
20626
20627# Object file suffix (normally "o").
20628objext=$ac_objext
20629
20630# Executable file suffix (normally "").
20631exeext=$exeext
20632
20633# whether the shell understands "unset".
20634lt_unset=$lt_unset
20635
20636# turn spaces into newlines.
20637SP2NL=$lt_lt_SP2NL
20638
20639# turn newlines into spaces.
20640NL2SP=$lt_lt_NL2SP
20641
20642# convert \$build file names to \$host format.
20643to_host_file_cmd=$lt_cv_to_host_file_cmd
20644
20645# convert \$build files to toolchain format.
20646to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20647
20648# An object symbol dumper.
20649OBJDUMP=$lt_OBJDUMP
20650
20651# Method to check whether dependent libraries are shared objects.
20652deplibs_check_method=$lt_deplibs_check_method
20653
20654# Command to use when deplibs_check_method = "file_magic".
20655file_magic_cmd=$lt_file_magic_cmd
20656
20657# How to find potential files when deplibs_check_method = "file_magic".
20658file_magic_glob=$lt_file_magic_glob
20659
20660# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20661want_nocaseglob=$lt_want_nocaseglob
20662
20663# DLL creation program.
20664DLLTOOL=$lt_DLLTOOL
20665
20666# Command to associate shared and link libraries.
20667sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20668
20669# The archiver.
20670AR=$lt_AR
20671
20672# Flags to create an archive.
20673AR_FLAGS=$lt_AR_FLAGS
20674
20675# How to feed a file listing to the archiver.
20676archiver_list_spec=$lt_archiver_list_spec
20677
20678# A symbol stripping program.
20679STRIP=$lt_STRIP
20680
20681# Commands used to install an old-style archive.
20682RANLIB=$lt_RANLIB
20683old_postinstall_cmds=$lt_old_postinstall_cmds
20684old_postuninstall_cmds=$lt_old_postuninstall_cmds
20685
20686# Whether to use a lock for old archive extraction.
20687lock_old_archive_extraction=$lock_old_archive_extraction
20688
20689# A C compiler.
20690LTCC=$lt_CC
20691
20692# LTCC compiler flags.
20693LTCFLAGS=$lt_CFLAGS
20694
20695# Take the output of nm and produce a listing of raw symbols and C names.
20696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20697
20698# Transform the output of nm in a proper C declaration.
20699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20700
20701# Transform the output of nm into a list of symbols to manually relocate.
20702global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20703
20704# Transform the output of nm in a C name address pair.
20705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20706
20707# Transform the output of nm in a C name address pair when lib prefix is needed.
20708global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20709
20710# The name lister interface.
20711nm_interface=$lt_lt_cv_nm_interface
20712
20713# Specify filename containing input files for \$NM.
20714nm_file_list_spec=$lt_nm_file_list_spec
20715
20716# The root where to search for dependent libraries,and where our libraries should be installed.
20717lt_sysroot=$lt_sysroot
20718
20719# Command to truncate a binary pipe.
20720lt_truncate_bin=$lt_lt_cv_truncate_bin
20721
20722# The name of the directory that contains temporary libtool files.
20723objdir=$objdir
20724
20725# Used to examine libraries when file_magic_cmd begins with "file".
20726MAGIC_CMD=$MAGIC_CMD
20727
20728# Must we lock files when doing compilation?
20729need_locks=$lt_need_locks
20730
20731# Manifest tool.
20732MANIFEST_TOOL=$lt_MANIFEST_TOOL
20733
20734# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20735DSYMUTIL=$lt_DSYMUTIL
20736
20737# Tool to change global to local symbols on Mac OS X.
20738NMEDIT=$lt_NMEDIT
20739
20740# Tool to manipulate fat objects and archives on Mac OS X.
20741LIPO=$lt_LIPO
20742
20743# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20744OTOOL=$lt_OTOOL
20745
20746# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20747OTOOL64=$lt_OTOOL64
20748
20749# Old archive suffix (normally "a").
20750libext=$libext
20751
20752# Shared library suffix (normally ".so").
20753shrext_cmds=$lt_shrext_cmds
20754
20755# The commands to extract the exported symbol list from a shared archive.
20756extract_expsyms_cmds=$lt_extract_expsyms_cmds
20757
20758# Variables whose values should be saved in libtool wrapper scripts and
20759# restored at link time.
20760variables_saved_for_relink=$lt_variables_saved_for_relink
20761
20762# Do we need the "lib" prefix for modules?
20763need_lib_prefix=$need_lib_prefix
20764
20765# Do we need a version for libraries?
20766need_version=$need_version
20767
20768# Library versioning type.
20769version_type=$version_type
20770
20771# Shared library runtime path variable.
20772runpath_var=$runpath_var
20773
20774# Shared library path variable.
20775shlibpath_var=$shlibpath_var
20776
20777# Is shlibpath searched before the hard-coded library search path?
20778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20779
20780# Format of library name prefix.
20781libname_spec=$lt_libname_spec
20782
20783# List of archive names.  First name is the real one, the rest are links.
20784# The last name is the one that the linker finds with -lNAME
20785library_names_spec=$lt_library_names_spec
20786
20787# The coded name of the library, if different from the real name.
20788soname_spec=$lt_soname_spec
20789
20790# Permission mode override for installation of shared libraries.
20791install_override_mode=$lt_install_override_mode
20792
20793# Command to use after installation of a shared archive.
20794postinstall_cmds=$lt_postinstall_cmds
20795
20796# Command to use after uninstallation of a shared archive.
20797postuninstall_cmds=$lt_postuninstall_cmds
20798
20799# Commands used to finish a libtool library installation in a directory.
20800finish_cmds=$lt_finish_cmds
20801
20802# As "finish_cmds", except a single script fragment to be evaled but
20803# not shown.
20804finish_eval=$lt_finish_eval
20805
20806# Whether we should hardcode library paths into libraries.
20807hardcode_into_libs=$hardcode_into_libs
20808
20809# Compile-time system search path for libraries.
20810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20811
20812# Detected run-time system search path for libraries.
20813sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20814
20815# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20816configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20817
20818# Whether dlopen is supported.
20819dlopen_support=$enable_dlopen
20820
20821# Whether dlopen of programs is supported.
20822dlopen_self=$enable_dlopen_self
20823
20824# Whether dlopen of statically linked programs is supported.
20825dlopen_self_static=$enable_dlopen_self_static
20826
20827# Commands to strip libraries.
20828old_striplib=$lt_old_striplib
20829striplib=$lt_striplib
20830
20831
20832# The linker used to build libraries.
20833LD=$lt_LD
20834
20835# How to create reloadable object files.
20836reload_flag=$lt_reload_flag
20837reload_cmds=$lt_reload_cmds
20838
20839# Commands used to build an old-style archive.
20840old_archive_cmds=$lt_old_archive_cmds
20841
20842# A language specific compiler.
20843CC=$lt_compiler
20844
20845# Is the compiler the GNU compiler?
20846with_gcc=$GCC
20847
20848# Compiler flag to turn off builtin functions.
20849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20850
20851# Additional compiler flags for building library objects.
20852pic_flag=$lt_lt_prog_compiler_pic
20853
20854# How to pass a linker flag through the compiler.
20855wl=$lt_lt_prog_compiler_wl
20856
20857# Compiler flag to prevent dynamic linking.
20858link_static_flag=$lt_lt_prog_compiler_static
20859
20860# Does compiler simultaneously support -c and -o options?
20861compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20862
20863# Whether or not to add -lc for building shared libraries.
20864build_libtool_need_lc=$archive_cmds_need_lc
20865
20866# Whether or not to disallow shared libs when runtime libs are static.
20867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20868
20869# Compiler flag to allow reflexive dlopens.
20870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20871
20872# Compiler flag to generate shared objects directly from archives.
20873whole_archive_flag_spec=$lt_whole_archive_flag_spec
20874
20875# Whether the compiler copes with passing no objects directly.
20876compiler_needs_object=$lt_compiler_needs_object
20877
20878# Create an old-style archive from a shared archive.
20879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20880
20881# Create a temporary old-style archive to link instead of a shared archive.
20882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20883
20884# Commands used to build a shared archive.
20885archive_cmds=$lt_archive_cmds
20886archive_expsym_cmds=$lt_archive_expsym_cmds
20887
20888# Commands used to build a loadable module if different from building
20889# a shared archive.
20890module_cmds=$lt_module_cmds
20891module_expsym_cmds=$lt_module_expsym_cmds
20892
20893# Whether we are building with GNU ld or not.
20894with_gnu_ld=$lt_with_gnu_ld
20895
20896# Flag that allows shared libraries with undefined symbols to be built.
20897allow_undefined_flag=$lt_allow_undefined_flag
20898
20899# Flag that enforces no undefined symbols.
20900no_undefined_flag=$lt_no_undefined_flag
20901
20902# Flag to hardcode \$libdir into a binary during linking.
20903# This must work even if \$libdir does not exist
20904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20905
20906# Whether we need a single "-rpath" flag with a separated argument.
20907hardcode_libdir_separator=$lt_hardcode_libdir_separator
20908
20909# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20910# DIR into the resulting binary.
20911hardcode_direct=$hardcode_direct
20912
20913# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20914# DIR into the resulting binary and the resulting library dependency is
20915# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20916# library is relocated.
20917hardcode_direct_absolute=$hardcode_direct_absolute
20918
20919# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20920# into the resulting binary.
20921hardcode_minus_L=$hardcode_minus_L
20922
20923# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20924# into the resulting binary.
20925hardcode_shlibpath_var=$hardcode_shlibpath_var
20926
20927# Set to "yes" if building a shared library automatically hardcodes DIR
20928# into the library and all subsequent libraries and executables linked
20929# against it.
20930hardcode_automatic=$hardcode_automatic
20931
20932# Set to yes if linker adds runtime paths of dependent libraries
20933# to runtime path list.
20934inherit_rpath=$inherit_rpath
20935
20936# Whether libtool must link a program against all its dependency libraries.
20937link_all_deplibs=$link_all_deplibs
20938
20939# Set to "yes" if exported symbols are required.
20940always_export_symbols=$always_export_symbols
20941
20942# The commands to list exported symbols.
20943export_symbols_cmds=$lt_export_symbols_cmds
20944
20945# Symbols that should not be listed in the preloaded symbols.
20946exclude_expsyms=$lt_exclude_expsyms
20947
20948# Symbols that must always be exported.
20949include_expsyms=$lt_include_expsyms
20950
20951# Commands necessary for linking programs (against libraries) with templates.
20952prelink_cmds=$lt_prelink_cmds
20953
20954# Commands necessary for finishing linking programs.
20955postlink_cmds=$lt_postlink_cmds
20956
20957# Specify filename containing input files.
20958file_list_spec=$lt_file_list_spec
20959
20960# How to hardcode a shared library path into an executable.
20961hardcode_action=$hardcode_action
20962
20963# ### END LIBTOOL CONFIG
20964
20965_LT_EOF
20966
20967    cat <<'_LT_EOF' >> "$cfgfile"
20968
20969# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20970
20971# func_munge_path_list VARIABLE PATH
20972# -----------------------------------
20973# VARIABLE is name of variable containing _space_ separated list of
20974# directories to be munged by the contents of PATH, which is string
20975# having a format:
20976# "DIR[:DIR]:"
20977#       string "DIR[ DIR]" will be prepended to VARIABLE
20978# ":DIR[:DIR]"
20979#       string "DIR[ DIR]" will be appended to VARIABLE
20980# "DIRP[:DIRP]::[DIRA:]DIRA"
20981#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20982#       "DIRA[ DIRA]" will be appended to VARIABLE
20983# "DIR[:DIR]"
20984#       VARIABLE will be replaced by "DIR[ DIR]"
20985func_munge_path_list ()
20986{
20987    case x$2 in
20988    x)
20989        ;;
20990    *:)
20991        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20992        ;;
20993    x:*)
20994        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20995        ;;
20996    *::*)
20997        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20998        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20999        ;;
21000    *)
21001        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21002        ;;
21003    esac
21004}
21005
21006
21007# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21008func_cc_basename ()
21009{
21010    for cc_temp in $*""; do
21011      case $cc_temp in
21012        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21013        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21014        \-*) ;;
21015        *) break;;
21016      esac
21017    done
21018    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21019}
21020
21021
21022# ### END FUNCTIONS SHARED WITH CONFIGURE
21023
21024_LT_EOF
21025
21026  case $host_os in
21027  aix3*)
21028    cat <<\_LT_EOF >> "$cfgfile"
21029# AIX sometimes has problems with the GCC collect2 program.  For some
21030# reason, if we set the COLLECT_NAMES environment variable, the problems
21031# vanish in a puff of smoke.
21032if test set != "${COLLECT_NAMES+set}"; then
21033  COLLECT_NAMES=
21034  export COLLECT_NAMES
21035fi
21036_LT_EOF
21037    ;;
21038  esac
21039
21040
21041ltmain=$ac_aux_dir/ltmain.sh
21042
21043
21044  # We use sed instead of cat because bash on DJGPP gets confused if
21045  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21046  # text mode, it properly converts lines to CR/LF.  This bash problem
21047  # is reportedly fixed, but why not run on old versions too?
21048  sed '$q' "$ltmain" >> "$cfgfile" \
21049     || (rm -f "$cfgfile"; exit 1)
21050
21051   mv -f "$cfgfile" "$ofile" ||
21052    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21053  chmod +x "$ofile"
21054
21055 ;;
21056
21057  esac
21058done # for ac_tag
21059
21060
21061as_fn_exit 0
21062_ACEOF
21063ac_clean_files=$ac_clean_files_save
21064
21065test $ac_write_fail = 0 ||
21066  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21067
21068
21069# configure is writing to config.log, and then calls config.status.
21070# config.status does its own redirection, appending to config.log.
21071# Unfortunately, on DOS this fails, as config.log is still kept open
21072# by configure, so config.status won't be able to write to it; its
21073# output is simply discarded.  So we exec the FD to /dev/null,
21074# effectively closing config.log, so it can be properly (re)opened and
21075# appended to by config.status.  When coming back to configure, we
21076# need to make the FD available again.
21077if test "$no_create" != yes; then
21078  ac_cs_success=:
21079  ac_config_status_args=
21080  test "$silent" = yes &&
21081    ac_config_status_args="$ac_config_status_args --quiet"
21082  exec 5>/dev/null
21083  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21084  exec 5>>config.log
21085  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21086  # would make configure fail if this is the last instruction.
21087  $ac_cs_success || as_fn_exit 1
21088fi
21089if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21090  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21091$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21092fi
21093
21094
21095# -----------------------------------------------------------------------------
21096
21097$as_echo
21098$as_echo "Building Linux joystick backend: $linux_backend"
21099$as_echo "Building Linux evdev backend: $evdev_backend"
21100$as_echo "Building BSD usbhid backend: $bsd_backend"
21101
21102if test "x$linux_backend" != "xyes" -a \
21103	"x$bsd_backend" != "xyes" -a \
21104	"x$evdev_backend" != "xyes"; then
21105    as_fn_error $? "No backends were found. Your operating system is not
21106                  supported by the joystick driver. Contact
21107                  xorg@lists.freedesktop.org if you are interested in
21108                  porting it." "$LINENO" 5
21109fi
21110