configure revision 414bd68f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-keyboard 1.8.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-input-keyboard'
593PACKAGE_TARNAME='xf86-input-keyboard'
594PACKAGE_VERSION='1.8.1'
595PACKAGE_STRING='xf86-input-keyboard 1.8.1'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641HURD_FALSE
642HURD_TRUE
643SOLARIS_FALSE
644SOLARIS_TRUE
645BSD_FALSE
646BSD_TRUE
647LINUX_FALSE
648LINUX_TRUE
649OS_FLAGS
650inputdir
651XORG_LIBS
652XORG_CFLAGS
653MAN_SUBSTS
654XORG_MAN_PAGE
655ADMIN_MAN_DIR
656DRIVER_MAN_DIR
657MISC_MAN_DIR
658FILE_MAN_DIR
659LIB_MAN_DIR
660APP_MAN_DIR
661ADMIN_MAN_SUFFIX
662DRIVER_MAN_SUFFIX
663MISC_MAN_SUFFIX
664FILE_MAN_SUFFIX
665LIB_MAN_SUFFIX
666APP_MAN_SUFFIX
667INSTALL_CMD
668PKG_CONFIG_LIBDIR
669PKG_CONFIG_PATH
670PKG_CONFIG
671CHANGELOG_CMD
672STRICT_CFLAGS
673CWARNFLAGS
674BASE_CFLAGS
675CPP
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685DLLTOOL
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693EGREP
694GREP
695SED
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699am__nodep
700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721LIBTOOL
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_silent_rules
791enable_static
792enable_shared
793with_pic
794enable_fast_install
795enable_dependency_tracking
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_selective_werror
800enable_strict_compilation
801with_xorg_module_dir
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812PKG_CONFIG
813PKG_CONFIG_PATH
814PKG_CONFIG_LIBDIR
815XORG_CFLAGS
816XORG_LIBS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures xf86-input-keyboard 1.8.1 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root
1406                          [DATAROOTDIR/doc/xf86-input-keyboard]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of xf86-input-keyboard 1.8.1:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-static[=PKGS]  build static libraries [default=no]
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-fast-install[=PKGS]
1441                          optimize for fast installation [default=yes]
1442  --enable-dependency-tracking
1443                          do not reject slow dependency extractors
1444  --disable-dependency-tracking
1445                          speeds up one-time build
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --disable-selective-werror
1448                          Turn off selective compiler errors. (default:
1449                          enabled)
1450  --enable-strict-compilation
1451                          Enable all warnings from compiler and make them
1452                          errors (default: disabled)
1453
1454Optional Packages:
1455  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1458                          both]
1459  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460  --with-sysroot=DIR Search for dependent libraries within DIR
1461                        (or the compiler's sysroot if not specified).
1462  --with-xorg-module-dir=DIR
1463                          Default xorg module directory
1464                          [[default=$libdir/xorg/modules]]
1465
1466Some influential environment variables:
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CPP         C preprocessor
1475  PKG_CONFIG  path to pkg-config utility
1476  PKG_CONFIG_PATH
1477              directories to add to pkg-config's search path
1478  PKG_CONFIG_LIBDIR
1479              path overriding pkg-config's built-in search path
1480  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1481  XORG_LIBS   linker flags for XORG, overriding pkg-config
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for guested configure.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549xf86-input-keyboard configure 1.8.1
1550generated by GNU Autoconf 2.69
1551
1552Copyright (C) 2012 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556  exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext
1570  if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_compile") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest.$ac_objext; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_link LINENO
1602# -----------------------
1603# Try to link conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_link ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  rm -f conftest.$ac_objext conftest$ac_exeext
1608  if { { ac_try="$ac_link"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615  (eval "$ac_link") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && {
1624	 test -z "$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       } && test -s conftest$ac_exeext && {
1627	 test "$cross_compiling" = yes ||
1628	 test -x conftest$ac_exeext
1629       }; then :
1630  ac_retval=0
1631else
1632  $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639  # interfere with the next link command; also delete a directory that is
1640  # left behind by Apple's compiler.  We do this before executing the actions.
1641  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_link
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665  eval "$3=yes"
1666else
1667  eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_cpp LINENO
1679# ----------------------
1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_cpp ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_cpp conftest.$ac_ext"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } > conftest.i && {
1700	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708    ac_retval=1
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_cpp
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_link") 2>&5
1730  ac_status=$?
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733  { { case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_try") 2>&5
1740  ac_status=$?
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; }; }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: program exited with status $ac_status" >&5
1746       $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749       ac_retval=$ac_status
1750fi
1751  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_func LINENO FUNC VAR
1758# ----------------------------------
1759# Tests whether FUNC exists, setting the cache variable VAR accordingly
1760ac_fn_c_check_func ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772#define $2 innocuous_$2
1773
1774/* System header to define __stub macros and hopefully few prototypes,
1775    which can conflict with char $2 (); below.
1776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777    <limits.h> exists even on freestanding compilers.  */
1778
1779#ifdef __STDC__
1780# include <limits.h>
1781#else
1782# include <assert.h>
1783#endif
1784
1785#undef $2
1786
1787/* Override any GCC internal prototype to avoid an error.
1788   Use char because int might match the return type of a GCC
1789   builtin and then its argument prototype would still apply.  */
1790#ifdef __cplusplus
1791extern "C"
1792#endif
1793char $2 ();
1794/* The GNU C library defines this for functions which it implements
1795    to always fail with ENOSYS.  Some functions are actually named
1796    something starting with __ and the normal name is an alias.  */
1797#if defined __stub_$2 || defined __stub___$2
1798choke me
1799#endif
1800
1801int
1802main ()
1803{
1804return $2 ();
1805  ;
1806  return 0;
1807}
1808_ACEOF
1809if ac_fn_c_try_link "$LINENO"; then :
1810  eval "$3=yes"
1811else
1812  eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext \
1815    conftest$ac_exeext conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822} # ac_fn_c_check_func
1823
1824# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1825# ---------------------------------------------
1826# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1827# accordingly.
1828ac_fn_c_check_decl ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  as_decl_name=`echo $2|sed 's/ *(.*//'`
1832  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1834$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841int
1842main ()
1843{
1844#ifndef $as_decl_name
1845#ifdef __cplusplus
1846  (void) $as_decl_use;
1847#else
1848  (void) $as_decl_name;
1849#endif
1850#endif
1851
1852  ;
1853  return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857  eval "$3=yes"
1858else
1859  eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_decl
1869cat >config.log <<_ACEOF
1870This file contains any messages produced by compilers while
1871running configure, to aid debugging if configure makes a mistake.
1872
1873It was created by xf86-input-keyboard $as_me 1.8.1, which was
1874generated by GNU Autoconf 2.69.  Invocation command line was
1875
1876  $ $0 $@
1877
1878_ACEOF
1879exec 5>>config.log
1880{
1881cat <<_ASUNAME
1882## --------- ##
1883## Platform. ##
1884## --------- ##
1885
1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1894
1895/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1896/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1899/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1900/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1901/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1902
1903_ASUNAME
1904
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910    $as_echo "PATH: $as_dir"
1911  done
1912IFS=$as_save_IFS
1913
1914} >&5
1915
1916cat >&5 <<_ACEOF
1917
1918
1919## ----------- ##
1920## Core tests. ##
1921## ----------- ##
1922
1923_ACEOF
1924
1925
1926# Keep a trace of the command line.
1927# Strip out --no-create and --no-recursion so they do not pile up.
1928# Strip out --silent because we don't want to record it for future runs.
1929# Also quote any args containing shell meta-characters.
1930# Make two passes to allow for proper duplicate-argument suppression.
1931ac_configure_args=
1932ac_configure_args0=
1933ac_configure_args1=
1934ac_must_keep_next=false
1935for ac_pass in 1 2
1936do
1937  for ac_arg
1938  do
1939    case $ac_arg in
1940    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942    | -silent | --silent | --silen | --sile | --sil)
1943      continue ;;
1944    *\'*)
1945      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946    esac
1947    case $ac_pass in
1948    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949    2)
1950      as_fn_append ac_configure_args1 " '$ac_arg'"
1951      if test $ac_must_keep_next = true; then
1952	ac_must_keep_next=false # Got value, back to normal.
1953      else
1954	case $ac_arg in
1955	  *=* | --config-cache | -C | -disable-* | --disable-* \
1956	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958	  | -with-* | --with-* | -without-* | --without-* | --x)
1959	    case "$ac_configure_args0 " in
1960	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961	    esac
1962	    ;;
1963	  -* ) ac_must_keep_next=true ;;
1964	esac
1965      fi
1966      as_fn_append ac_configure_args " '$ac_arg'"
1967      ;;
1968    esac
1969  done
1970done
1971{ ac_configure_args0=; unset ac_configure_args0;}
1972{ ac_configure_args1=; unset ac_configure_args1;}
1973
1974# When interrupted or exit'd, cleanup temporary files, and complete
1975# config.log.  We remove comments because anyway the quotes in there
1976# would cause problems or look ugly.
1977# WARNING: Use '\'' to represent an apostrophe within the trap.
1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979trap 'exit_status=$?
1980  # Save into config.log some information that might help in debugging.
1981  {
1982    echo
1983
1984    $as_echo "## ---------------- ##
1985## Cache variables. ##
1986## ---------------- ##"
1987    echo
1988    # The following way of writing the cache mishandles newlines in values,
1989(
1990  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991    eval ac_val=\$$ac_var
1992    case $ac_val in #(
1993    *${as_nl}*)
1994      case $ac_var in #(
1995      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997      esac
1998      case $ac_var in #(
1999      _ | IFS | as_nl) ;; #(
2000      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001      *) { eval $ac_var=; unset $ac_var;} ;;
2002      esac ;;
2003    esac
2004  done
2005  (set) 2>&1 |
2006    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007    *${as_nl}ac_space=\ *)
2008      sed -n \
2009	"s/'\''/'\''\\\\'\'''\''/g;
2010	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011      ;; #(
2012    *)
2013      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014      ;;
2015    esac |
2016    sort
2017)
2018    echo
2019
2020    $as_echo "## ----------------- ##
2021## Output variables. ##
2022## ----------------- ##"
2023    echo
2024    for ac_var in $ac_subst_vars
2025    do
2026      eval ac_val=\$$ac_var
2027      case $ac_val in
2028      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029      esac
2030      $as_echo "$ac_var='\''$ac_val'\''"
2031    done | sort
2032    echo
2033
2034    if test -n "$ac_subst_files"; then
2035      $as_echo "## ------------------- ##
2036## File substitutions. ##
2037## ------------------- ##"
2038      echo
2039      for ac_var in $ac_subst_files
2040      do
2041	eval ac_val=\$$ac_var
2042	case $ac_val in
2043	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044	esac
2045	$as_echo "$ac_var='\''$ac_val'\''"
2046      done | sort
2047      echo
2048    fi
2049
2050    if test -s confdefs.h; then
2051      $as_echo "## ----------- ##
2052## confdefs.h. ##
2053## ----------- ##"
2054      echo
2055      cat confdefs.h
2056      echo
2057    fi
2058    test "$ac_signal" != 0 &&
2059      $as_echo "$as_me: caught signal $ac_signal"
2060    $as_echo "$as_me: exit $exit_status"
2061  } >&5
2062  rm -f core *.core core.conftest.* &&
2063    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064    exit $exit_status
2065' 0
2066for ac_signal in 1 2 13 15; do
2067  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068done
2069ac_signal=0
2070
2071# confdefs.h avoids OS command line length limits that DEFS can exceed.
2072rm -f -r conftest* confdefs.h
2073
2074$as_echo "/* confdefs.h */" > confdefs.h
2075
2076# Predefined preprocessor variables.
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_NAME "$PACKAGE_NAME"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_VERSION "$PACKAGE_VERSION"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_STRING "$PACKAGE_STRING"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_URL "$PACKAGE_URL"
2100_ACEOF
2101
2102
2103# Let the site file select an alternate cache file if it wants to.
2104# Prefer an explicitly selected file to automatically selected ones.
2105ac_site_file1=NONE
2106ac_site_file2=NONE
2107if test -n "$CONFIG_SITE"; then
2108  # We do not want a PATH search for config.site.
2109  case $CONFIG_SITE in #((
2110    -*)  ac_site_file1=./$CONFIG_SITE;;
2111    */*) ac_site_file1=$CONFIG_SITE;;
2112    *)   ac_site_file1=./$CONFIG_SITE;;
2113  esac
2114elif test "x$prefix" != xNONE; then
2115  ac_site_file1=$prefix/share/config.site
2116  ac_site_file2=$prefix/etc/config.site
2117else
2118  ac_site_file1=$ac_default_prefix/share/config.site
2119  ac_site_file2=$ac_default_prefix/etc/config.site
2120fi
2121for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122do
2123  test "x$ac_site_file" = xNONE && continue
2124  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2127    sed 's/^/| /' "$ac_site_file" >&5
2128    . "$ac_site_file" \
2129      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131as_fn_error $? "failed to load site script $ac_site_file
2132See \`config.log' for more details" "$LINENO" 5; }
2133  fi
2134done
2135
2136if test -r "$cache_file"; then
2137  # Some versions of bash will fail to source /dev/null (special files
2138  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2139  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2140    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141$as_echo "$as_me: loading cache $cache_file" >&6;}
2142    case $cache_file in
2143      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144      *)                      . "./$cache_file";;
2145    esac
2146  fi
2147else
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149$as_echo "$as_me: creating cache $cache_file" >&6;}
2150  >$cache_file
2151fi
2152
2153# Check that the precious variables saved in the cache have kept the same
2154# value.
2155ac_cache_corrupted=false
2156for ac_var in $ac_precious_vars; do
2157  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158  eval ac_new_set=\$ac_env_${ac_var}_set
2159  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160  eval ac_new_val=\$ac_env_${ac_var}_value
2161  case $ac_old_set,$ac_new_set in
2162    set,)
2163      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165      ac_cache_corrupted=: ;;
2166    ,set)
2167      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169      ac_cache_corrupted=: ;;
2170    ,);;
2171    *)
2172      if test "x$ac_old_val" != "x$ac_new_val"; then
2173	# differences in whitespace do not lead to failure.
2174	ac_old_val_w=`echo x $ac_old_val`
2175	ac_new_val_w=`echo x $ac_new_val`
2176	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179	  ac_cache_corrupted=:
2180	else
2181	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183	  eval $ac_var=\$ac_old_val
2184	fi
2185	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2186$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2188$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2189      fi;;
2190  esac
2191  # Pass precious variables to config.status.
2192  if test "$ac_new_set" = set; then
2193    case $ac_new_val in
2194    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195    *) ac_arg=$ac_var=$ac_new_val ;;
2196    esac
2197    case " $ac_configure_args " in
2198      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2199      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200    esac
2201  fi
2202done
2203if $ac_cache_corrupted; then
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209fi
2210## -------------------- ##
2211## Main body of script. ##
2212## -------------------- ##
2213
2214ac_ext=c
2215ac_cpp='$CPP $CPPFLAGS'
2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219
2220
2221
2222ac_config_headers="$ac_config_headers config.h"
2223
2224ac_aux_dir=
2225for ac_dir in . "$srcdir"/.; do
2226  if test -f "$ac_dir/install-sh"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/install-sh -c"
2229    break
2230  elif test -f "$ac_dir/install.sh"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/install.sh -c"
2233    break
2234  elif test -f "$ac_dir/shtool"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/shtool install -c"
2237    break
2238  fi
2239done
2240if test -z "$ac_aux_dir"; then
2241  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2242fi
2243
2244# These three variables are undocumented and unsupported,
2245# and are intended to be withdrawn in a future Autoconf release.
2246# They can cause serious problems if a builder's source tree is in a directory
2247# whose full name contains unusual characters.
2248ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2249ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2250ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2251
2252
2253
2254# Initialize Automake
2255am__api_version='1.15'
2256
2257# Find a good install program.  We prefer a C program (faster),
2258# so one script is as good as another.  But avoid the broken or
2259# incompatible versions:
2260# SysV /etc/install, /usr/sbin/install
2261# SunOS /usr/etc/install
2262# IRIX /sbin/install
2263# AIX /bin/install
2264# AmigaOS /C/install, which installs bootblocks on floppy discs
2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268# OS/2's system install, which has a completely different semantic
2269# ./install, which can be erroneously created by make from ./install.sh.
2270# Reject install programs that cannot install multiple files.
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272$as_echo_n "checking for a BSD-compatible install... " >&6; }
2273if test -z "$INSTALL"; then
2274if ${ac_cv_path_install+:} false; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282    # Account for people who put trailing slashes in PATH elements.
2283case $as_dir/ in #((
2284  ./ | .// | /[cC]/* | \
2285  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287  /usr/ucb/* ) ;;
2288  *)
2289    # OSF1 and SCO ODT 3.0 have their own names for install.
2290    # Don't use installbsd from OSF since it installs stuff as root
2291    # by default.
2292    for ac_prog in ginstall scoinst install; do
2293      for ac_exec_ext in '' $ac_executable_extensions; do
2294	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295	  if test $ac_prog = install &&
2296	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297	    # AIX install.  It has an incompatible calling convention.
2298	    :
2299	  elif test $ac_prog = install &&
2300	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301	    # program-specific install script used by HP pwplus--don't use.
2302	    :
2303	  else
2304	    rm -rf conftest.one conftest.two conftest.dir
2305	    echo one > conftest.one
2306	    echo two > conftest.two
2307	    mkdir conftest.dir
2308	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309	      test -s conftest.one && test -s conftest.two &&
2310	      test -s conftest.dir/conftest.one &&
2311	      test -s conftest.dir/conftest.two
2312	    then
2313	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314	      break 3
2315	    fi
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322
2323  done
2324IFS=$as_save_IFS
2325
2326rm -rf conftest.one conftest.two conftest.dir
2327
2328fi
2329  if test "${ac_cv_path_install+set}" = set; then
2330    INSTALL=$ac_cv_path_install
2331  else
2332    # As a last resort, use the slow shell script.  Don't cache a
2333    # value for INSTALL within a source directory, because that will
2334    # break other packages using the cache if that directory is
2335    # removed, or if the value is a relative name.
2336    INSTALL=$ac_install_sh
2337  fi
2338fi
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340$as_echo "$INSTALL" >&6; }
2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351$as_echo_n "checking whether build environment is sane... " >&6; }
2352# Reject unsafe characters in $srcdir or the absolute working directory
2353# name.  Accept space and tab only in the latter.
2354am_lf='
2355'
2356case `pwd` in
2357  *[\\\"\#\$\&\'\`$am_lf]*)
2358    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359esac
2360case $srcdir in
2361  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2362    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363esac
2364
2365# Do 'set' in a subshell so we don't clobber the current shell's
2366# arguments.  Must try -L first in case configure is actually a
2367# symlink; some systems play weird games with the mod time of symlinks
2368# (eg FreeBSD returns the mod time of the symlink's containing
2369# directory).
2370if (
2371   am_has_slept=no
2372   for am_try in 1 2; do
2373     echo "timestamp, slept: $am_has_slept" > conftest.file
2374     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375     if test "$*" = "X"; then
2376	# -L didn't work.
2377	set X `ls -t "$srcdir/configure" conftest.file`
2378     fi
2379     if test "$*" != "X $srcdir/configure conftest.file" \
2380	&& test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382	# If neither matched, then we have a broken ls.  This can happen
2383	# if, for instance, CONFIG_SHELL is bash and it inherits a
2384	# broken ls alias from the environment.  This has actually
2385	# happened.  Such a system could not be considered "sane".
2386	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2387  alias in your environment" "$LINENO" 5
2388     fi
2389     if test "$2" = conftest.file || test $am_try -eq 2; then
2390       break
2391     fi
2392     # Just in case.
2393     sleep 1
2394     am_has_slept=yes
2395   done
2396   test "$2" = conftest.file
2397   )
2398then
2399   # Ok.
2400   :
2401else
2402   as_fn_error $? "newly created file is older than distributed files!
2403Check your system clock" "$LINENO" 5
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406$as_echo "yes" >&6; }
2407# If we didn't sleep, we still need to ensure time stamps of config.status and
2408# generated files are strictly newer.
2409am_sleep_pid=
2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411  ( sleep 1 ) &
2412  am_sleep_pid=$!
2413fi
2414
2415rm -f conftest.file
2416
2417test "$program_prefix" != NONE &&
2418  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419# Use a double $ so make ignores it.
2420test "$program_suffix" != NONE &&
2421  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422# Double any \ or $.
2423# By default was `s,x,x', remove it if useless.
2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427# Expand $ac_aux_dir to an absolute path.
2428am_aux_dir=`cd "$ac_aux_dir" && pwd`
2429
2430if test x"${MISSING+set}" != xset; then
2431  case $am_aux_dir in
2432  *\ * | *\	*)
2433    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434  *)
2435    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436  esac
2437fi
2438# Use eval to expand $SHELL
2439if eval "$MISSING --is-lightweight"; then
2440  am_missing_run="$MISSING "
2441else
2442  am_missing_run=
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445fi
2446
2447if test x"${install_sh+set}" != xset; then
2448  case $am_aux_dir in
2449  *\ * | *\	*)
2450    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451  *)
2452    install_sh="\${SHELL} $am_aux_dir/install-sh"
2453  esac
2454fi
2455
2456# Installed binaries are usually stripped using 'strip' when the user
2457# run "make install-strip".  However 'strip' might not be the right
2458# tool to use in cross-compilation environments, therefore Automake
2459# will honor the 'STRIP' environment variable to overrule this program.
2460if test "$cross_compiling" != no; then
2461  if test -n "$ac_tool_prefix"; then
2462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}strip; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if ${ac_cv_prog_STRIP+:} false; then :
2467  $as_echo_n "(cached) " >&6
2468else
2469  if test -n "$STRIP"; then
2470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    for ac_exec_ext in '' $ac_executable_extensions; do
2478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489STRIP=$ac_cv_prog_STRIP
2490if test -n "$STRIP"; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492$as_echo "$STRIP" >&6; }
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498
2499fi
2500if test -z "$ac_cv_prog_STRIP"; then
2501  ac_ct_STRIP=$STRIP
2502  # Extract the first word of "strip", so it can be a program name with args.
2503set dummy strip; ac_word=$2
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  if test -n "$ac_ct_STRIP"; then
2510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_exec_ext in '' $ac_executable_extensions; do
2518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519    ac_cv_prog_ac_ct_STRIP="strip"
2520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524  done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530if test -n "$ac_ct_STRIP"; then
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532$as_echo "$ac_ct_STRIP" >&6; }
2533else
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
2536fi
2537
2538  if test "x$ac_ct_STRIP" = x; then
2539    STRIP=":"
2540  else
2541    case $cross_compiling:$ac_tool_warned in
2542yes:)
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547    STRIP=$ac_ct_STRIP
2548  fi
2549else
2550  STRIP="$ac_cv_prog_STRIP"
2551fi
2552
2553fi
2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558if test -z "$MKDIR_P"; then
2559  if ${ac_cv_path_mkdir+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_prog in mkdir gmkdir; do
2568	 for ac_exec_ext in '' $ac_executable_extensions; do
2569	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571	     'mkdir (GNU coreutils) '* | \
2572	     'mkdir (coreutils) '* | \
2573	     'mkdir (fileutils) '4.1*)
2574	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575	       break 3;;
2576	   esac
2577	 done
2578       done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583
2584  test -d ./--version && rmdir ./--version
2585  if test "${ac_cv_path_mkdir+set}" = set; then
2586    MKDIR_P="$ac_cv_path_mkdir -p"
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for MKDIR_P within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    MKDIR_P="$ac_install_sh -d"
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596$as_echo "$MKDIR_P" >&6; }
2597
2598for ac_prog in gawk mawk nawk awk
2599do
2600  # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_AWK+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$AWK"; then
2608  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_AWK="$ac_prog"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627AWK=$ac_cv_prog_AWK
2628if test -n "$AWK"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630$as_echo "$AWK" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637  test -n "$AWK" && break
2638done
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642set x ${MAKE-make}
2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  cat >conftest.make <<\_ACEOF
2648SHELL = /bin/sh
2649all:
2650	@echo '@@@%%%=$(MAKE)=@@@%%%'
2651_ACEOF
2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654  *@@@%%%=?*=@@@%%%*)
2655    eval ac_cv_prog_make_${ac_make}_set=yes;;
2656  *)
2657    eval ac_cv_prog_make_${ac_make}_set=no;;
2658esac
2659rm -f conftest.make
2660fi
2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
2664  SET_MAKE=
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668  SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
2671rm -rf .tst 2>/dev/null
2672mkdir .tst 2>/dev/null
2673if test -d .tst; then
2674  am__leading_dot=.
2675else
2676  am__leading_dot=_
2677fi
2678rmdir .tst 2>/dev/null
2679
2680# Check whether --enable-silent-rules was given.
2681if test "${enable_silent_rules+set}" = set; then :
2682  enableval=$enable_silent_rules;
2683fi
2684
2685case $enable_silent_rules in # (((
2686  yes) AM_DEFAULT_VERBOSITY=0;;
2687   no) AM_DEFAULT_VERBOSITY=1;;
2688    *) AM_DEFAULT_VERBOSITY=1;;
2689esac
2690am_make=${MAKE-make}
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693if ${am_cv_make_support_nested_variables+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if $as_echo 'TRUE=$(BAR$(V))
2697BAR0=false
2698BAR1=true
2699V=1
2700am__doit:
2701	@$(TRUE)
2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703  am_cv_make_support_nested_variables=yes
2704else
2705  am_cv_make_support_nested_variables=no
2706fi
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709$as_echo "$am_cv_make_support_nested_variables" >&6; }
2710if test $am_cv_make_support_nested_variables = yes; then
2711    AM_V='$(V)'
2712  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713else
2714  AM_V=$AM_DEFAULT_VERBOSITY
2715  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716fi
2717AM_BACKSLASH='\'
2718
2719if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721  # is not polluted with repeated "-I."
2722  am__isrc=' -I$(srcdir)'
2723  # test to see if srcdir already configured
2724  if test -f $srcdir/config.status; then
2725    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726  fi
2727fi
2728
2729# test whether we have cygpath
2730if test -z "$CYGPATH_W"; then
2731  if (cygpath --version) >/dev/null 2>/dev/null; then
2732    CYGPATH_W='cygpath -w'
2733  else
2734    CYGPATH_W=echo
2735  fi
2736fi
2737
2738
2739# Define the identity of the package.
2740 PACKAGE='xf86-input-keyboard'
2741 VERSION='1.8.1'
2742
2743
2744cat >>confdefs.h <<_ACEOF
2745#define PACKAGE "$PACKAGE"
2746_ACEOF
2747
2748
2749cat >>confdefs.h <<_ACEOF
2750#define VERSION "$VERSION"
2751_ACEOF
2752
2753# Some tools Automake needs.
2754
2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769# For better backward compatibility.  To be removed once Automake 1.9.x
2770# dies out for good.  For more background, see:
2771# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773mkdir_p='$(MKDIR_P)'
2774
2775# We need awk for the "check" target (and possibly the TAP driver).  The
2776# system "awk" is bad on some platforms.
2777# Always define AMTAR for backward compatibility.  Yes, it's still used
2778# in the wild :-(  We should find a proper way to deprecate it ...
2779AMTAR='$${TAR-tar}'
2780
2781
2782# We'll loop over all known methods to create a tar archive until one works.
2783_am_tools='gnutar  pax cpio none'
2784
2785am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792# POSIX will say in a future version that running "rm -f" with no argument
2793# is OK; and we want to be able to make that assumption in our Makefile
2794# recipes.  So use an aggressive probe to check that the usage we want is
2795# actually supported "in the wild" to an acceptable degree.
2796# See automake bug#10828.
2797# To make any issue more visible, cause the running configure to be aborted
2798# by default if the 'rm' program in use doesn't match our expectations; the
2799# user can still override this though.
2800if rm -f && rm -fr && rm -rf; then : OK; else
2801  cat >&2 <<'END'
2802Oops!
2803
2804Your 'rm' program seems unable to run without file operands specified
2805on the command line, even when the '-f' option is present.  This is contrary
2806to the behaviour of most rm programs out there, and not conforming with
2807the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809Please tell bug-automake@gnu.org about your system, including the value
2810of your $PATH and any error possibly output before this message.  This
2811can help us improve future automake versions.
2812
2813END
2814  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815    echo 'Configuration will proceed anyway, since you have set the' >&2
2816    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817    echo >&2
2818  else
2819    cat >&2 <<'END'
2820Aborting the configuration process, to ensure you take notice of the issue.
2821
2822You can download and install GNU coreutils to get an 'rm' implementation
2823that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825If you want to complete the configuration process using your problematic
2826'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827to "yes", and re-run configure.
2828
2829END
2830    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831  fi
2832fi
2833
2834
2835# Initialize libtool
2836# Check whether --enable-static was given.
2837if test "${enable_static+set}" = set; then :
2838  enableval=$enable_static; p=${PACKAGE-default}
2839    case $enableval in
2840    yes) enable_static=yes ;;
2841    no) enable_static=no ;;
2842    *)
2843     enable_static=no
2844      # Look at the argument we got.  We use all the common list separators.
2845      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2846      for pkg in $enableval; do
2847	IFS="$lt_save_ifs"
2848	if test "X$pkg" = "X$p"; then
2849	  enable_static=yes
2850	fi
2851      done
2852      IFS="$lt_save_ifs"
2853      ;;
2854    esac
2855else
2856  enable_static=no
2857fi
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867case `pwd` in
2868  *\ * | *\	*)
2869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2870$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2871esac
2872
2873
2874
2875macro_version='2.4.2'
2876macro_revision='1.3337'
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890ltmain="$ac_aux_dir/ltmain.sh"
2891
2892# Make sure we can run config.sub.
2893$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2894  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2897$as_echo_n "checking build system type... " >&6; }
2898if ${ac_cv_build+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  ac_build_alias=$build_alias
2902test "x$ac_build_alias" = x &&
2903  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2904test "x$ac_build_alias" = x &&
2905  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2906ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2907  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2908
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2911$as_echo "$ac_cv_build" >&6; }
2912case $ac_cv_build in
2913*-*-*) ;;
2914*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2915esac
2916build=$ac_cv_build
2917ac_save_IFS=$IFS; IFS='-'
2918set x $ac_cv_build
2919shift
2920build_cpu=$1
2921build_vendor=$2
2922shift; shift
2923# Remember, the first character of IFS is used to create $*,
2924# except with old shells:
2925build_os=$*
2926IFS=$ac_save_IFS
2927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2928
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2931$as_echo_n "checking host system type... " >&6; }
2932if ${ac_cv_host+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test "x$host_alias" = x; then
2936  ac_cv_host=$ac_cv_build
2937else
2938  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2939    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2940fi
2941
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2944$as_echo "$ac_cv_host" >&6; }
2945case $ac_cv_host in
2946*-*-*) ;;
2947*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2948esac
2949host=$ac_cv_host
2950ac_save_IFS=$IFS; IFS='-'
2951set x $ac_cv_host
2952shift
2953host_cpu=$1
2954host_vendor=$2
2955shift; shift
2956# Remember, the first character of IFS is used to create $*,
2957# except with old shells:
2958host_os=$*
2959IFS=$ac_save_IFS
2960case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2961
2962
2963# Backslashify metacharacters that are still active within
2964# double-quoted strings.
2965sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2966
2967# Same as above, but do not quote variable references.
2968double_quote_subst='s/\(["`\\]\)/\\\1/g'
2969
2970# Sed substitution to delay expansion of an escaped shell variable in a
2971# double_quote_subst'ed string.
2972delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2973
2974# Sed substitution to delay expansion of an escaped single quote.
2975delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2976
2977# Sed substitution to avoid accidental globbing in evaled expressions
2978no_glob_subst='s/\*/\\\*/g'
2979
2980ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2981ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2982ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2985$as_echo_n "checking how to print strings... " >&6; }
2986# Test print first, because it will be a builtin if present.
2987if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2988   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2989  ECHO='print -r --'
2990elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2991  ECHO='printf %s\n'
2992else
2993  # Use this function as a fallback that always works.
2994  func_fallback_echo ()
2995  {
2996    eval 'cat <<_LTECHO_EOF
2997$1
2998_LTECHO_EOF'
2999  }
3000  ECHO='func_fallback_echo'
3001fi
3002
3003# func_echo_all arg...
3004# Invoke $ECHO with all args, space-separated.
3005func_echo_all ()
3006{
3007    $ECHO ""
3008}
3009
3010case "$ECHO" in
3011  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3012$as_echo "printf" >&6; } ;;
3013  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3014$as_echo "print -r" >&6; } ;;
3015  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3016$as_echo "cat" >&6; } ;;
3017esac
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032DEPDIR="${am__leading_dot}deps"
3033
3034ac_config_commands="$ac_config_commands depfiles"
3035
3036
3037am_make=${MAKE-make}
3038cat > confinc << 'END'
3039am__doit:
3040	@echo this is the am__doit target
3041.PHONY: am__doit
3042END
3043# If we don't find an include directive, just comment out the code.
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3045$as_echo_n "checking for style of include used by $am_make... " >&6; }
3046am__include="#"
3047am__quote=
3048_am_result=none
3049# First try GNU make style include.
3050echo "include confinc" > confmf
3051# Ignore all kinds of additional output from 'make'.
3052case `$am_make -s -f confmf 2> /dev/null` in #(
3053*the\ am__doit\ target*)
3054  am__include=include
3055  am__quote=
3056  _am_result=GNU
3057  ;;
3058esac
3059# Now try BSD make style include.
3060if test "$am__include" = "#"; then
3061   echo '.include "confinc"' > confmf
3062   case `$am_make -s -f confmf 2> /dev/null` in #(
3063   *the\ am__doit\ target*)
3064     am__include=.include
3065     am__quote="\""
3066     _am_result=BSD
3067     ;;
3068   esac
3069fi
3070
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3073$as_echo "$_am_result" >&6; }
3074rm -f confinc confmf
3075
3076# Check whether --enable-dependency-tracking was given.
3077if test "${enable_dependency_tracking+set}" = set; then :
3078  enableval=$enable_dependency_tracking;
3079fi
3080
3081if test "x$enable_dependency_tracking" != xno; then
3082  am_depcomp="$ac_aux_dir/depcomp"
3083  AMDEPBACKSLASH='\'
3084  am__nodep='_no'
3085fi
3086 if test "x$enable_dependency_tracking" != xno; then
3087  AMDEP_TRUE=
3088  AMDEP_FALSE='#'
3089else
3090  AMDEP_TRUE='#'
3091  AMDEP_FALSE=
3092fi
3093
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100if test -n "$ac_tool_prefix"; then
3101  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3102set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114  IFS=$as_save_IFS
3115  test -z "$as_dir" && as_dir=.
3116    for ac_exec_ext in '' $ac_executable_extensions; do
3117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138fi
3139if test -z "$ac_cv_prog_CC"; then
3140  ac_ct_CC=$CC
3141  # Extract the first word of "gcc", so it can be a program name with args.
3142set dummy gcc; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$ac_ct_CC"; then
3149  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_ac_ct_CC="gcc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169if test -n "$ac_ct_CC"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171$as_echo "$ac_ct_CC" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177  if test "x$ac_ct_CC" = x; then
3178    CC=""
3179  else
3180    case $cross_compiling:$ac_tool_warned in
3181yes:)
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184ac_tool_warned=yes ;;
3185esac
3186    CC=$ac_ct_CC
3187  fi
3188else
3189  CC="$ac_cv_prog_CC"
3190fi
3191
3192if test -z "$CC"; then
3193          if test -n "$ac_tool_prefix"; then
3194    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195set dummy ${ac_tool_prefix}cc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$CC"; then
3202  ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_CC="${ac_tool_prefix}cc"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221CC=$ac_cv_prog_CC
3222if test -n "$CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224$as_echo "$CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231  fi
3232fi
3233if test -z "$CC"; then
3234  # Extract the first word of "cc", so it can be a program name with args.
3235set dummy cc; 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
3244  ac_prog_rejected=no
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3253       ac_prog_rejected=yes
3254       continue
3255     fi
3256    ac_cv_prog_CC="cc"
3257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261  done
3262IFS=$as_save_IFS
3263
3264if test $ac_prog_rejected = yes; then
3265  # We found a bogon in the path, so make sure we never use it.
3266  set dummy $ac_cv_prog_CC
3267  shift
3268  if test $# != 0; then
3269    # We chose a different compiler from the bogus one.
3270    # However, it has the same basename, so the bogon will be chosen
3271    # first if we set CC to just the basename; use the full file name.
3272    shift
3273    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3274  fi
3275fi
3276fi
3277fi
3278CC=$ac_cv_prog_CC
3279if test -n "$CC"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281$as_echo "$CC" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
3288fi
3289if test -z "$CC"; then
3290  if test -n "$ac_tool_prefix"; then
3291  for ac_prog in cl.exe
3292  do
3293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_prog_CC+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330    test -n "$CC" && break
3331  done
3332fi
3333if test -z "$CC"; then
3334  ac_ct_CC=$CC
3335  for ac_prog in cl.exe
3336do
3337  # Extract the first word of "$ac_prog", so it can be a program name with args.
3338set dummy $ac_prog; ac_word=$2
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  if test -n "$ac_ct_CC"; then
3345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354    ac_cv_prog_ac_ct_CC="$ac_prog"
3355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365if test -n "$ac_ct_CC"; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367$as_echo "$ac_ct_CC" >&6; }
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373
3374  test -n "$ac_ct_CC" && break
3375done
3376
3377  if test "x$ac_ct_CC" = x; then
3378    CC=""
3379  else
3380    case $cross_compiling:$ac_tool_warned in
3381yes:)
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384ac_tool_warned=yes ;;
3385esac
3386    CC=$ac_ct_CC
3387  fi
3388fi
3389
3390fi
3391
3392
3393test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "no acceptable C compiler found in \$PATH
3396See \`config.log' for more details" "$LINENO" 5; }
3397
3398# Provide some information about the compiler.
3399$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3400set X $ac_compile
3401ac_compiler=$2
3402for ac_option in --version -v -V -qversion; do
3403  { { ac_try="$ac_compiler $ac_option >&5"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3411  ac_status=$?
3412  if test -s conftest.err; then
3413    sed '10a\
3414... rest of stderr output deleted ...
3415         10q' conftest.err >conftest.er1
3416    cat conftest.er1 >&5
3417  fi
3418  rm -f conftest.er1 conftest.err
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }
3421done
3422
3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425
3426int
3427main ()
3428{
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434ac_clean_files_save=$ac_clean_files
3435ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436# Try to create an executable without -o first, disregard a.out.
3437# It will help us diagnose broken compilers, and finding out an intuition
3438# of exeext.
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440$as_echo_n "checking whether the C compiler works... " >&6; }
3441ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3442
3443# The possible output files:
3444ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3445
3446ac_rmfiles=
3447for ac_file in $ac_files
3448do
3449  case $ac_file in
3450    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3452  esac
3453done
3454rm -f $ac_rmfiles
3455
3456if { { ac_try="$ac_link_default"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_link_default") 2>&5
3464  ac_status=$?
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }; then :
3467  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3470# so that the user can short-circuit this test for compilers unknown to
3471# Autoconf.
3472for ac_file in $ac_files ''
3473do
3474  test -f "$ac_file" || continue
3475  case $ac_file in
3476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3477	;;
3478    [ab].out )
3479	# We found the default executable, but exeext='' is most
3480	# certainly right.
3481	break;;
3482    *.* )
3483	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3484	then :; else
3485	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486	fi
3487	# We set ac_cv_exeext here because the later test for it is not
3488	# safe: cross compilers may not add the suffix if given an `-o'
3489	# argument, so we may need to know it at that point already.
3490	# Even if this section looks crufty: it has the advantage of
3491	# actually working.
3492	break;;
3493    * )
3494	break;;
3495  esac
3496done
3497test "$ac_cv_exeext" = no && ac_cv_exeext=
3498
3499else
3500  ac_file=''
3501fi
3502if test -z "$ac_file"; then :
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505$as_echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error 77 "C compiler cannot create executables
3511See \`config.log' for more details" "$LINENO" 5; }
3512else
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514$as_echo "yes" >&6; }
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517$as_echo_n "checking for C compiler default output file name... " >&6; }
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519$as_echo "$ac_file" >&6; }
3520ac_exeext=$ac_cv_exeext
3521
3522rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523ac_clean_files=$ac_clean_files_save
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525$as_echo_n "checking for suffix of executables... " >&6; }
3526if { { ac_try="$ac_link"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533  (eval "$ac_link") 2>&5
3534  ac_status=$?
3535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536  test $ac_status = 0; }; then :
3537  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3539# work properly (i.e., refer to `conftest.exe'), while it won't with
3540# `rm'.
3541for ac_file in conftest.exe conftest conftest.*; do
3542  test -f "$ac_file" || continue
3543  case $ac_file in
3544    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546	  break;;
3547    * ) break;;
3548  esac
3549done
3550else
3551  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3554See \`config.log' for more details" "$LINENO" 5; }
3555fi
3556rm -f conftest conftest$ac_cv_exeext
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558$as_echo "$ac_cv_exeext" >&6; }
3559
3560rm -f conftest.$ac_ext
3561EXEEXT=$ac_cv_exeext
3562ac_exeext=$EXEEXT
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdio.h>
3566int
3567main ()
3568{
3569FILE *f = fopen ("conftest.out", "w");
3570 return ferror (f) || fclose (f) != 0;
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576ac_clean_files="$ac_clean_files conftest.out"
3577# Check that the compiler produces executables we can run.  If not, either
3578# the compiler is broken, or we cross compile.
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580$as_echo_n "checking whether we are cross compiling... " >&6; }
3581if test "$cross_compiling" != yes; then
3582  { { ac_try="$ac_link"
3583case "(($ac_try" in
3584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585  *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589  (eval "$ac_link") 2>&5
3590  ac_status=$?
3591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592  test $ac_status = 0; }
3593  if { ac_try='./conftest$ac_cv_exeext'
3594  { { case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600  (eval "$ac_try") 2>&5
3601  ac_status=$?
3602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603  test $ac_status = 0; }; }; then
3604    cross_compiling=no
3605  else
3606    if test "$cross_compiling" = maybe; then
3607	cross_compiling=yes
3608    else
3609	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611as_fn_error $? "cannot run C compiled programs.
3612If you meant to cross compile, use \`--host'.
3613See \`config.log' for more details" "$LINENO" 5; }
3614    fi
3615  fi
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618$as_echo "$cross_compiling" >&6; }
3619
3620rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3621ac_clean_files=$ac_clean_files_save
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623$as_echo_n "checking for suffix of object files... " >&6; }
3624if ${ac_cv_objext+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629
3630int
3631main ()
3632{
3633
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638rm -f conftest.o conftest.obj
3639if { { ac_try="$ac_compile"
3640case "(($ac_try" in
3641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642  *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645$as_echo "$ac_try_echo"; } >&5
3646  (eval "$ac_compile") 2>&5
3647  ac_status=$?
3648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649  test $ac_status = 0; }; then :
3650  for ac_file in conftest.o conftest.obj conftest.*; do
3651  test -f "$ac_file" || continue;
3652  case $ac_file in
3653    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655       break;;
3656  esac
3657done
3658else
3659  $as_echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664as_fn_error $? "cannot compute suffix of object files: cannot compile
3665See \`config.log' for more details" "$LINENO" 5; }
3666fi
3667rm -f conftest.$ac_cv_objext conftest.$ac_ext
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670$as_echo "$ac_cv_objext" >&6; }
3671OBJEXT=$ac_cv_objext
3672ac_objext=$OBJEXT
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675if ${ac_cv_c_compiler_gnu+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684#ifndef __GNUC__
3685       choke me
3686#endif
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693  ac_compiler_gnu=yes
3694else
3695  ac_compiler_gnu=no
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_cv_c_compiler_gnu=$ac_compiler_gnu
3699
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703if test $ac_compiler_gnu = yes; then
3704  GCC=yes
3705else
3706  GCC=
3707fi
3708ac_test_CFLAGS=${CFLAGS+set}
3709ac_save_CFLAGS=$CFLAGS
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711$as_echo_n "checking whether $CC accepts -g... " >&6; }
3712if ${ac_cv_prog_cc_g+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714else
3715  ac_save_c_werror_flag=$ac_c_werror_flag
3716   ac_c_werror_flag=yes
3717   ac_cv_prog_cc_g=no
3718   CFLAGS="-g"
3719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_compile "$LINENO"; then :
3731  ac_cv_prog_cc_g=yes
3732else
3733  CFLAGS=""
3734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746
3747else
3748  ac_c_werror_flag=$ac_save_c_werror_flag
3749	 CFLAGS="-g"
3750	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756
3757  ;
3758  return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_compile "$LINENO"; then :
3762  ac_cv_prog_cc_g=yes
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769   ac_c_werror_flag=$ac_save_c_werror_flag
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772$as_echo "$ac_cv_prog_cc_g" >&6; }
3773if test "$ac_test_CFLAGS" = set; then
3774  CFLAGS=$ac_save_CFLAGS
3775elif test $ac_cv_prog_cc_g = yes; then
3776  if test "$GCC" = yes; then
3777    CFLAGS="-g -O2"
3778  else
3779    CFLAGS="-g"
3780  fi
3781else
3782  if test "$GCC" = yes; then
3783    CFLAGS="-O2"
3784  else
3785    CFLAGS=
3786  fi
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790if ${ac_cv_prog_cc_c89+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  ac_cv_prog_cc_c89=no
3794ac_save_CC=$CC
3795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797#include <stdarg.h>
3798#include <stdio.h>
3799struct stat;
3800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3801struct buf { int x; };
3802FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803static char *e (p, i)
3804     char **p;
3805     int i;
3806{
3807  return p[i];
3808}
3809static char *f (char * (*g) (char **, int), char **p, ...)
3810{
3811  char *s;
3812  va_list v;
3813  va_start (v,p);
3814  s = g (p, va_arg (v,int));
3815  va_end (v);
3816  return s;
3817}
3818
3819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3820   function prototypes and stuff, but not '\xHH' hex character constants.
3821   These don't provoke an error unfortunately, instead are silently treated
3822   as 'x'.  The following induces an error, until -std is added to get
3823   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3824   array size at least.  It's necessary to write '\x00'==0 to get something
3825   that's true only with -std.  */
3826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827
3828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829   inside strings and character constants.  */
3830#define FOO(x) 'x'
3831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832
3833int test (int i, double x);
3834struct s1 {int (*f) (int a);};
3835struct s2 {int (*f) (double a);};
3836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837int argc;
3838char **argv;
3839int
3840main ()
3841{
3842return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849do
3850  CC="$ac_save_CC $ac_arg"
3851  if ac_fn_c_try_compile "$LINENO"; then :
3852  ac_cv_prog_cc_c89=$ac_arg
3853fi
3854rm -f core conftest.err conftest.$ac_objext
3855  test "x$ac_cv_prog_cc_c89" != "xno" && break
3856done
3857rm -f conftest.$ac_ext
3858CC=$ac_save_CC
3859
3860fi
3861# AC_CACHE_VAL
3862case "x$ac_cv_prog_cc_c89" in
3863  x)
3864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865$as_echo "none needed" >&6; } ;;
3866  xno)
3867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868$as_echo "unsupported" >&6; } ;;
3869  *)
3870    CC="$CC $ac_cv_prog_cc_c89"
3871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873esac
3874if test "x$ac_cv_prog_cc_c89" != xno; then :
3875
3876fi
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884ac_ext=c
3885ac_cpp='$CPP $CPPFLAGS'
3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3890$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3891if ${am_cv_prog_cc_c_o+:} false; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905  # Make sure it works both with $CC and with simple cc.
3906  # Following AC_PROG_CC_C_O, we do the test twice because some
3907  # compilers refuse to overwrite an existing .o file with -o,
3908  # though they will create one.
3909  am_cv_prog_cc_c_o=yes
3910  for am_i in 1 2; do
3911    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3912   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } \
3916         && test -f conftest2.$ac_objext; then
3917      : OK
3918    else
3919      am_cv_prog_cc_c_o=no
3920      break
3921    fi
3922  done
3923  rm -f core conftest*
3924  unset am_i
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3927$as_echo "$am_cv_prog_cc_c_o" >&6; }
3928if test "$am_cv_prog_cc_c_o" != yes; then
3929   # Losing compiler, so override with the script.
3930   # FIXME: It is wrong to rewrite CC.
3931   # But if we don't then we get into trouble of one sort or another.
3932   # A longer-term fix would be to have automake use am__CC in this case,
3933   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3934   CC="$am_aux_dir/compile $CC"
3935fi
3936ac_ext=c
3937ac_cpp='$CPP $CPPFLAGS'
3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942
3943depcc="$CC"   am_compiler_list=
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3946$as_echo_n "checking dependency style of $depcc... " >&6; }
3947if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3951  # We make a subdir and do the tests there.  Otherwise we can end up
3952  # making bogus files that we don't know about and never remove.  For
3953  # instance it was reported that on HP-UX the gcc test will end up
3954  # making a dummy file named 'D' -- because '-MD' means "put the output
3955  # in D".
3956  rm -rf conftest.dir
3957  mkdir conftest.dir
3958  # Copy depcomp to subdir because otherwise we won't find it if we're
3959  # using a relative directory.
3960  cp "$am_depcomp" conftest.dir
3961  cd conftest.dir
3962  # We will build objects and dependencies in a subdirectory because
3963  # it helps to detect inapplicable dependency modes.  For instance
3964  # both Tru64's cc and ICC support -MD to output dependencies as a
3965  # side effect of compilation, but ICC will put the dependencies in
3966  # the current directory while Tru64 will put them in the object
3967  # directory.
3968  mkdir sub
3969
3970  am_cv_CC_dependencies_compiler_type=none
3971  if test "$am_compiler_list" = ""; then
3972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973  fi
3974  am__universal=false
3975  case " $depcc " in #(
3976     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3977     esac
3978
3979  for depmode in $am_compiler_list; do
3980    # Setup a source with many dependencies, because some compilers
3981    # like to wrap large dependency lists on column 80 (with \), and
3982    # we should not choose a depcomp mode which is confused by this.
3983    #
3984    # We need to recreate these files for each test, as the compiler may
3985    # overwrite some of them when testing with obscure command lines.
3986    # This happens at least with the AIX C compiler.
3987    : > sub/conftest.c
3988    for i in 1 2 3 4 5 6; do
3989      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3990      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3991      # Solaris 10 /bin/sh.
3992      echo '/* dummy */' > sub/conftst$i.h
3993    done
3994    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3995
3996    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3997    # mode.  It turns out that the SunPro C++ compiler does not properly
3998    # handle '-M -o', and we need to detect this.  Also, some Intel
3999    # versions had trouble with output in subdirs.
4000    am__obj=sub/conftest.${OBJEXT-o}
4001    am__minus_obj="-o $am__obj"
4002    case $depmode in
4003    gcc)
4004      # This depmode causes a compiler race in universal mode.
4005      test "$am__universal" = false || continue
4006      ;;
4007    nosideeffect)
4008      # After this tag, mechanisms are not by side-effect, so they'll
4009      # only be used when explicitly requested.
4010      if test "x$enable_dependency_tracking" = xyes; then
4011	continue
4012      else
4013	break
4014      fi
4015      ;;
4016    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4017      # This compiler won't grok '-c -o', but also, the minuso test has
4018      # not run yet.  These depmodes are late enough in the game, and
4019      # so weak that their functioning should not be impacted.
4020      am__obj=conftest.${OBJEXT-o}
4021      am__minus_obj=
4022      ;;
4023    none) break ;;
4024    esac
4025    if depmode=$depmode \
4026       source=sub/conftest.c object=$am__obj \
4027       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4028       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4029         >/dev/null 2>conftest.err &&
4030       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4031       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4032       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4033       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4034      # icc doesn't choke on unknown options, it will just issue warnings
4035      # or remarks (even with -Werror).  So we grep stderr for any message
4036      # that says an option was ignored or not supported.
4037      # When given -MP, icc 7.0 and 7.1 complain thusly:
4038      #   icc: Command line warning: ignoring option '-M'; no argument required
4039      # The diagnosis changed in icc 8.0:
4040      #   icc: Command line remark: option '-MP' not supported
4041      if (grep 'ignoring option' conftest.err ||
4042          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4043        am_cv_CC_dependencies_compiler_type=$depmode
4044        break
4045      fi
4046    fi
4047  done
4048
4049  cd ..
4050  rm -rf conftest.dir
4051else
4052  am_cv_CC_dependencies_compiler_type=none
4053fi
4054
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4057$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4059
4060 if
4061  test "x$enable_dependency_tracking" != xno \
4062  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4063  am__fastdepCC_TRUE=
4064  am__fastdepCC_FALSE='#'
4065else
4066  am__fastdepCC_TRUE='#'
4067  am__fastdepCC_FALSE=
4068fi
4069
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4072$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4073if ${ac_cv_path_SED+:} false; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4077     for ac_i in 1 2 3 4 5 6 7; do
4078       ac_script="$ac_script$as_nl$ac_script"
4079     done
4080     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4081     { ac_script=; unset ac_script;}
4082     if test -z "$SED"; then
4083  ac_path_SED_found=false
4084  # Loop through the user's path and test for each of PROGNAME-LIST
4085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090    for ac_prog in sed gsed; do
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4093      as_fn_executable_p "$ac_path_SED" || continue
4094# Check for GNU ac_path_SED and select it if it is found.
4095  # Check for GNU $ac_path_SED
4096case `"$ac_path_SED" --version 2>&1` in
4097*GNU*)
4098  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4099*)
4100  ac_count=0
4101  $as_echo_n 0123456789 >"conftest.in"
4102  while :
4103  do
4104    cat "conftest.in" "conftest.in" >"conftest.tmp"
4105    mv "conftest.tmp" "conftest.in"
4106    cp "conftest.in" "conftest.nl"
4107    $as_echo '' >> "conftest.nl"
4108    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110    as_fn_arith $ac_count + 1 && ac_count=$as_val
4111    if test $ac_count -gt ${ac_path_SED_max-0}; then
4112      # Best one so far, save it but keep looking for a better one
4113      ac_cv_path_SED="$ac_path_SED"
4114      ac_path_SED_max=$ac_count
4115    fi
4116    # 10*(2^10) chars as input seems more than enough
4117    test $ac_count -gt 10 && break
4118  done
4119  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120esac
4121
4122      $ac_path_SED_found && break 3
4123    done
4124  done
4125  done
4126IFS=$as_save_IFS
4127  if test -z "$ac_cv_path_SED"; then
4128    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4129  fi
4130else
4131  ac_cv_path_SED=$SED
4132fi
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4136$as_echo "$ac_cv_path_SED" >&6; }
4137 SED="$ac_cv_path_SED"
4138  rm -f conftest.sed
4139
4140test -z "$SED" && SED=sed
4141Xsed="$SED -e 1s/^X//"
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4154$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4155if ${ac_cv_path_GREP+:} false; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  if test -z "$GREP"; then
4159  ac_path_GREP_found=false
4160  # Loop through the user's path and test for each of PROGNAME-LIST
4161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    for ac_prog in grep ggrep; do
4167    for ac_exec_ext in '' $ac_executable_extensions; do
4168      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4169      as_fn_executable_p "$ac_path_GREP" || continue
4170# Check for GNU ac_path_GREP and select it if it is found.
4171  # Check for GNU $ac_path_GREP
4172case `"$ac_path_GREP" --version 2>&1` in
4173*GNU*)
4174  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4175*)
4176  ac_count=0
4177  $as_echo_n 0123456789 >"conftest.in"
4178  while :
4179  do
4180    cat "conftest.in" "conftest.in" >"conftest.tmp"
4181    mv "conftest.tmp" "conftest.in"
4182    cp "conftest.in" "conftest.nl"
4183    $as_echo 'GREP' >> "conftest.nl"
4184    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186    as_fn_arith $ac_count + 1 && ac_count=$as_val
4187    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4188      # Best one so far, save it but keep looking for a better one
4189      ac_cv_path_GREP="$ac_path_GREP"
4190      ac_path_GREP_max=$ac_count
4191    fi
4192    # 10*(2^10) chars as input seems more than enough
4193    test $ac_count -gt 10 && break
4194  done
4195  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196esac
4197
4198      $ac_path_GREP_found && break 3
4199    done
4200  done
4201  done
4202IFS=$as_save_IFS
4203  if test -z "$ac_cv_path_GREP"; then
4204    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205  fi
4206else
4207  ac_cv_path_GREP=$GREP
4208fi
4209
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4212$as_echo "$ac_cv_path_GREP" >&6; }
4213 GREP="$ac_cv_path_GREP"
4214
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4217$as_echo_n "checking for egrep... " >&6; }
4218if ${ac_cv_path_EGREP+:} false; then :
4219  $as_echo_n "(cached) " >&6
4220else
4221  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4222   then ac_cv_path_EGREP="$GREP -E"
4223   else
4224     if test -z "$EGREP"; then
4225  ac_path_EGREP_found=false
4226  # Loop through the user's path and test for each of PROGNAME-LIST
4227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4229do
4230  IFS=$as_save_IFS
4231  test -z "$as_dir" && as_dir=.
4232    for ac_prog in egrep; do
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4235      as_fn_executable_p "$ac_path_EGREP" || continue
4236# Check for GNU ac_path_EGREP and select it if it is found.
4237  # Check for GNU $ac_path_EGREP
4238case `"$ac_path_EGREP" --version 2>&1` in
4239*GNU*)
4240  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4241*)
4242  ac_count=0
4243  $as_echo_n 0123456789 >"conftest.in"
4244  while :
4245  do
4246    cat "conftest.in" "conftest.in" >"conftest.tmp"
4247    mv "conftest.tmp" "conftest.in"
4248    cp "conftest.in" "conftest.nl"
4249    $as_echo 'EGREP' >> "conftest.nl"
4250    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4251    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4252    as_fn_arith $ac_count + 1 && ac_count=$as_val
4253    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4254      # Best one so far, save it but keep looking for a better one
4255      ac_cv_path_EGREP="$ac_path_EGREP"
4256      ac_path_EGREP_max=$ac_count
4257    fi
4258    # 10*(2^10) chars as input seems more than enough
4259    test $ac_count -gt 10 && break
4260  done
4261  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4262esac
4263
4264      $ac_path_EGREP_found && break 3
4265    done
4266  done
4267  done
4268IFS=$as_save_IFS
4269  if test -z "$ac_cv_path_EGREP"; then
4270    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4271  fi
4272else
4273  ac_cv_path_EGREP=$EGREP
4274fi
4275
4276   fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4279$as_echo "$ac_cv_path_EGREP" >&6; }
4280 EGREP="$ac_cv_path_EGREP"
4281
4282
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4284$as_echo_n "checking for fgrep... " >&6; }
4285if ${ac_cv_path_FGREP+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4289   then ac_cv_path_FGREP="$GREP -F"
4290   else
4291     if test -z "$FGREP"; then
4292  ac_path_FGREP_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 fgrep; do
4300    for ac_exec_ext in '' $ac_executable_extensions; do
4301      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4302      as_fn_executable_p "$ac_path_FGREP" || continue
4303# Check for GNU ac_path_FGREP and select it if it is found.
4304  # Check for GNU $ac_path_FGREP
4305case `"$ac_path_FGREP" --version 2>&1` in
4306*GNU*)
4307  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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 'FGREP' >> "conftest.nl"
4317    "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then
4321      # Best one so far, save it but keep looking for a better one
4322      ac_cv_path_FGREP="$ac_path_FGREP"
4323      ac_path_FGREP_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_FGREP_found && break 3
4332    done
4333  done
4334  done
4335IFS=$as_save_IFS
4336  if test -z "$ac_cv_path_FGREP"; then
4337    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4338  fi
4339else
4340  ac_cv_path_FGREP=$FGREP
4341fi
4342
4343   fi
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4346$as_echo "$ac_cv_path_FGREP" >&6; }
4347 FGREP="$ac_cv_path_FGREP"
4348
4349
4350test -z "$GREP" && GREP=grep
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370# Check whether --with-gnu-ld was given.
4371if test "${with_gnu_ld+set}" = set; then :
4372  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4373else
4374  with_gnu_ld=no
4375fi
4376
4377ac_prog=ld
4378if test "$GCC" = yes; then
4379  # Check if gcc -print-prog-name=ld gives a path.
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4381$as_echo_n "checking for ld used by $CC... " >&6; }
4382  case $host in
4383  *-*-mingw*)
4384    # gcc leaves a trailing carriage return which upsets mingw
4385    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4386  *)
4387    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4388  esac
4389  case $ac_prog in
4390    # Accept absolute paths.
4391    [\\/]* | ?:[\\/]*)
4392      re_direlt='/[^/][^/]*/\.\./'
4393      # Canonicalize the pathname of ld
4394      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4395      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4396	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4397      done
4398      test -z "$LD" && LD="$ac_prog"
4399      ;;
4400  "")
4401    # If it fails, then pretend we aren't using GCC.
4402    ac_prog=ld
4403    ;;
4404  *)
4405    # If it is relative, then search for the first ld in PATH.
4406    with_gnu_ld=unknown
4407    ;;
4408  esac
4409elif test "$with_gnu_ld" = yes; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4411$as_echo_n "checking for GNU ld... " >&6; }
4412else
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4414$as_echo_n "checking for non-GNU ld... " >&6; }
4415fi
4416if ${lt_cv_path_LD+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419  if test -z "$LD"; then
4420  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421  for ac_dir in $PATH; do
4422    IFS="$lt_save_ifs"
4423    test -z "$ac_dir" && ac_dir=.
4424    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4425      lt_cv_path_LD="$ac_dir/$ac_prog"
4426      # Check to see if the program is GNU ld.  I'd rather use --version,
4427      # but apparently some variants of GNU ld only accept -v.
4428      # Break only if it was the GNU/non-GNU ld that we prefer.
4429      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4430      *GNU* | *'with BFD'*)
4431	test "$with_gnu_ld" != no && break
4432	;;
4433      *)
4434	test "$with_gnu_ld" != yes && break
4435	;;
4436      esac
4437    fi
4438  done
4439  IFS="$lt_save_ifs"
4440else
4441  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4442fi
4443fi
4444
4445LD="$lt_cv_path_LD"
4446if test -n "$LD"; then
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4448$as_echo "$LD" >&6; }
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4456if ${lt_cv_prog_gnu_ld+:} false; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4460case `$LD -v 2>&1 </dev/null` in
4461*GNU* | *'with BFD'*)
4462  lt_cv_prog_gnu_ld=yes
4463  ;;
4464*)
4465  lt_cv_prog_gnu_ld=no
4466  ;;
4467esac
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4470$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4471with_gnu_ld=$lt_cv_prog_gnu_ld
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4482$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4483if ${lt_cv_path_NM+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if test -n "$NM"; then
4487  # Let the user override the test.
4488  lt_cv_path_NM="$NM"
4489else
4490  lt_nm_to_check="${ac_tool_prefix}nm"
4491  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4492    lt_nm_to_check="$lt_nm_to_check nm"
4493  fi
4494  for lt_tmp_nm in $lt_nm_to_check; do
4495    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4496    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4497      IFS="$lt_save_ifs"
4498      test -z "$ac_dir" && ac_dir=.
4499      tmp_nm="$ac_dir/$lt_tmp_nm"
4500      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4501	# Check to see if the nm accepts a BSD-compat flag.
4502	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4503	#   nm: unknown option "B" ignored
4504	# Tru64's nm complains that /dev/null is an invalid object file
4505	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4506	*/dev/null* | *'Invalid file or object type'*)
4507	  lt_cv_path_NM="$tmp_nm -B"
4508	  break
4509	  ;;
4510	*)
4511	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4512	  */dev/null*)
4513	    lt_cv_path_NM="$tmp_nm -p"
4514	    break
4515	    ;;
4516	  *)
4517	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4518	    continue # so that we can try to find one that supports BSD flags
4519	    ;;
4520	  esac
4521	  ;;
4522	esac
4523      fi
4524    done
4525    IFS="$lt_save_ifs"
4526  done
4527  : ${lt_cv_path_NM=no}
4528fi
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4531$as_echo "$lt_cv_path_NM" >&6; }
4532if test "$lt_cv_path_NM" != "no"; then
4533  NM="$lt_cv_path_NM"
4534else
4535  # Didn't find any BSD compatible name lister, look for dumpbin.
4536  if test -n "$DUMPBIN"; then :
4537    # Let the user override the test.
4538  else
4539    if test -n "$ac_tool_prefix"; then
4540  for ac_prog in dumpbin "link -dump"
4541  do
4542    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_prog_DUMPBIN+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  if test -n "$DUMPBIN"; then
4550  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564  done
4565IFS=$as_save_IFS
4566
4567fi
4568fi
4569DUMPBIN=$ac_cv_prog_DUMPBIN
4570if test -n "$DUMPBIN"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4572$as_echo "$DUMPBIN" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579    test -n "$DUMPBIN" && break
4580  done
4581fi
4582if test -z "$DUMPBIN"; then
4583  ac_ct_DUMPBIN=$DUMPBIN
4584  for ac_prog in dumpbin "link -dump"
4585do
4586  # Extract the first word of "$ac_prog", so it can be a program name with args.
4587set dummy $ac_prog; ac_word=$2
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if test -n "$ac_ct_DUMPBIN"; then
4594  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_exec_ext in '' $ac_executable_extensions; do
4602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608  done
4609IFS=$as_save_IFS
4610
4611fi
4612fi
4613ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4614if test -n "$ac_ct_DUMPBIN"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4616$as_echo "$ac_ct_DUMPBIN" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620fi
4621
4622
4623  test -n "$ac_ct_DUMPBIN" && break
4624done
4625
4626  if test "x$ac_ct_DUMPBIN" = x; then
4627    DUMPBIN=":"
4628  else
4629    case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635    DUMPBIN=$ac_ct_DUMPBIN
4636  fi
4637fi
4638
4639    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4640    *COFF*)
4641      DUMPBIN="$DUMPBIN -symbols"
4642      ;;
4643    *)
4644      DUMPBIN=:
4645      ;;
4646    esac
4647  fi
4648
4649  if test "$DUMPBIN" != ":"; then
4650    NM="$DUMPBIN"
4651  fi
4652fi
4653test -z "$NM" && NM=nm
4654
4655
4656
4657
4658
4659
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4661$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4662if ${lt_cv_nm_interface+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  lt_cv_nm_interface="BSD nm"
4666  echo "int some_variable = 0;" > conftest.$ac_ext
4667  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4668  (eval "$ac_compile" 2>conftest.err)
4669  cat conftest.err >&5
4670  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4671  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4672  cat conftest.err >&5
4673  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4674  cat conftest.out >&5
4675  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4676    lt_cv_nm_interface="MS dumpbin"
4677  fi
4678  rm -f conftest*
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4681$as_echo "$lt_cv_nm_interface" >&6; }
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4684$as_echo_n "checking whether ln -s works... " >&6; }
4685LN_S=$as_ln_s
4686if test "$LN_S" = "ln -s"; then
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4688$as_echo "yes" >&6; }
4689else
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4691$as_echo "no, using $LN_S" >&6; }
4692fi
4693
4694# find the maximum length of command line arguments
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4696$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4697if ${lt_cv_sys_max_cmd_len+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700    i=0
4701  teststring="ABCD"
4702
4703  case $build_os in
4704  msdosdjgpp*)
4705    # On DJGPP, this test can blow up pretty badly due to problems in libc
4706    # (any single argument exceeding 2000 bytes causes a buffer overrun
4707    # during glob expansion).  Even if it were fixed, the result of this
4708    # check would be larger than it should be.
4709    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4710    ;;
4711
4712  gnu*)
4713    # Under GNU Hurd, this test is not required because there is
4714    # no limit to the length of command line arguments.
4715    # Libtool will interpret -1 as no limit whatsoever
4716    lt_cv_sys_max_cmd_len=-1;
4717    ;;
4718
4719  cygwin* | mingw* | cegcc*)
4720    # On Win9x/ME, this test blows up -- it succeeds, but takes
4721    # about 5 minutes as the teststring grows exponentially.
4722    # Worse, since 9x/ME are not pre-emptively multitasking,
4723    # you end up with a "frozen" computer, even though with patience
4724    # the test eventually succeeds (with a max line length of 256k).
4725    # Instead, let's just punt: use the minimum linelength reported by
4726    # all of the supported platforms: 8192 (on NT/2K/XP).
4727    lt_cv_sys_max_cmd_len=8192;
4728    ;;
4729
4730  mint*)
4731    # On MiNT this can take a long time and run out of memory.
4732    lt_cv_sys_max_cmd_len=8192;
4733    ;;
4734
4735  amigaos*)
4736    # On AmigaOS with pdksh, this test takes hours, literally.
4737    # So we just punt and use a minimum line length of 8192.
4738    lt_cv_sys_max_cmd_len=8192;
4739    ;;
4740
4741  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4742    # This has been around since 386BSD, at least.  Likely further.
4743    if test -x /sbin/sysctl; then
4744      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4745    elif test -x /usr/sbin/sysctl; then
4746      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4747    else
4748      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4749    fi
4750    # And add a safety zone
4751    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4752    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4753    ;;
4754
4755  interix*)
4756    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4757    lt_cv_sys_max_cmd_len=196608
4758    ;;
4759
4760  os2*)
4761    # The test takes a long time on OS/2.
4762    lt_cv_sys_max_cmd_len=8192
4763    ;;
4764
4765  osf*)
4766    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4767    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4768    # nice to cause kernel panics so lets avoid the loop below.
4769    # First set a reasonable default.
4770    lt_cv_sys_max_cmd_len=16384
4771    #
4772    if test -x /sbin/sysconfig; then
4773      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4774        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4775      esac
4776    fi
4777    ;;
4778  sco3.2v5*)
4779    lt_cv_sys_max_cmd_len=102400
4780    ;;
4781  sysv5* | sco5v6* | sysv4.2uw2*)
4782    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4783    if test -n "$kargmax"; then
4784      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4785    else
4786      lt_cv_sys_max_cmd_len=32768
4787    fi
4788    ;;
4789  *)
4790    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4791    if test -n "$lt_cv_sys_max_cmd_len"; then
4792      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4793      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4794    else
4795      # Make teststring a little bigger before we do anything with it.
4796      # a 1K string should be a reasonable start.
4797      for i in 1 2 3 4 5 6 7 8 ; do
4798        teststring=$teststring$teststring
4799      done
4800      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4801      # If test is not a shell built-in, we'll probably end up computing a
4802      # maximum length that is only half of the actual maximum length, but
4803      # we can't tell.
4804      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4805	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4806	      test $i != 17 # 1/2 MB should be enough
4807      do
4808        i=`expr $i + 1`
4809        teststring=$teststring$teststring
4810      done
4811      # Only check the string length outside the loop.
4812      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4813      teststring=
4814      # Add a significant safety factor because C++ compilers can tack on
4815      # massive amounts of additional arguments before passing them to the
4816      # linker.  It appears as though 1/2 is a usable value.
4817      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4818    fi
4819    ;;
4820  esac
4821
4822fi
4823
4824if test -n $lt_cv_sys_max_cmd_len ; then
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4826$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4827else
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4829$as_echo "none" >&6; }
4830fi
4831max_cmd_len=$lt_cv_sys_max_cmd_len
4832
4833
4834
4835
4836
4837
4838: ${CP="cp -f"}
4839: ${MV="mv -f"}
4840: ${RM="rm -f"}
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4843$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4844# Try some XSI features
4845xsi_shell=no
4846( _lt_dummy="a/b/c"
4847  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4848      = c,a/b,b/c, \
4849    && eval 'test $(( 1 + 1 )) -eq 2 \
4850    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4851  && xsi_shell=yes
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4853$as_echo "$xsi_shell" >&6; }
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4857$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4858lt_shell_append=no
4859( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4860    >/dev/null 2>&1 \
4861  && lt_shell_append=yes
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4863$as_echo "$lt_shell_append" >&6; }
4864
4865
4866if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4867  lt_unset=unset
4868else
4869  lt_unset=false
4870fi
4871
4872
4873
4874
4875
4876# test EBCDIC or ASCII
4877case `echo X|tr X '\101'` in
4878 A) # ASCII based system
4879    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4880  lt_SP2NL='tr \040 \012'
4881  lt_NL2SP='tr \015\012 \040\040'
4882  ;;
4883 *) # EBCDIC based system
4884  lt_SP2NL='tr \100 \n'
4885  lt_NL2SP='tr \r\n \100\100'
4886  ;;
4887esac
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4898$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4899if ${lt_cv_to_host_file_cmd+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  case $host in
4903  *-*-mingw* )
4904    case $build in
4905      *-*-mingw* ) # actually msys
4906        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4907        ;;
4908      *-*-cygwin* )
4909        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4910        ;;
4911      * ) # otherwise, assume *nix
4912        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4913        ;;
4914    esac
4915    ;;
4916  *-*-cygwin* )
4917    case $build in
4918      *-*-mingw* ) # actually msys
4919        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4920        ;;
4921      *-*-cygwin* )
4922        lt_cv_to_host_file_cmd=func_convert_file_noop
4923        ;;
4924      * ) # otherwise, assume *nix
4925        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4926        ;;
4927    esac
4928    ;;
4929  * ) # unhandled hosts (and "normal" native builds)
4930    lt_cv_to_host_file_cmd=func_convert_file_noop
4931    ;;
4932esac
4933
4934fi
4935
4936to_host_file_cmd=$lt_cv_to_host_file_cmd
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4938$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4939
4940
4941
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4945$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4946if ${lt_cv_to_tool_file_cmd+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  #assume ordinary cross tools, or native build.
4950lt_cv_to_tool_file_cmd=func_convert_file_noop
4951case $host in
4952  *-*-mingw* )
4953    case $build in
4954      *-*-mingw* ) # actually msys
4955        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4956        ;;
4957    esac
4958    ;;
4959esac
4960
4961fi
4962
4963to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4965$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4966
4967
4968
4969
4970
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4972$as_echo_n "checking for $LD option to reload object files... " >&6; }
4973if ${lt_cv_ld_reload_flag+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  lt_cv_ld_reload_flag='-r'
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4979$as_echo "$lt_cv_ld_reload_flag" >&6; }
4980reload_flag=$lt_cv_ld_reload_flag
4981case $reload_flag in
4982"" | " "*) ;;
4983*) reload_flag=" $reload_flag" ;;
4984esac
4985reload_cmds='$LD$reload_flag -o $output$reload_objs'
4986case $host_os in
4987  cygwin* | mingw* | pw32* | cegcc*)
4988    if test "$GCC" != yes; then
4989      reload_cmds=false
4990    fi
4991    ;;
4992  darwin*)
4993    if test "$GCC" = yes; then
4994      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4995    else
4996      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4997    fi
4998    ;;
4999esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009if test -n "$ac_tool_prefix"; then
5010  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5011set dummy ${ac_tool_prefix}objdump; ac_word=$2
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if ${ac_cv_prog_OBJDUMP+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  if test -n "$OBJDUMP"; then
5018  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  test -z "$as_dir" && as_dir=.
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029    break 2
5030  fi
5031done
5032  done
5033IFS=$as_save_IFS
5034
5035fi
5036fi
5037OBJDUMP=$ac_cv_prog_OBJDUMP
5038if test -n "$OBJDUMP"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5040$as_echo "$OBJDUMP" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047fi
5048if test -z "$ac_cv_prog_OBJDUMP"; then
5049  ac_ct_OBJDUMP=$OBJDUMP
5050  # Extract the first word of "objdump", so it can be a program name with args.
5051set dummy objdump; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  if test -n "$ac_ct_OBJDUMP"; then
5058  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065    for ac_exec_ext in '' $ac_executable_extensions; do
5066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072  done
5073IFS=$as_save_IFS
5074
5075fi
5076fi
5077ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5078if test -n "$ac_ct_OBJDUMP"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5080$as_echo "$ac_ct_OBJDUMP" >&6; }
5081else
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086  if test "x$ac_ct_OBJDUMP" = x; then
5087    OBJDUMP="false"
5088  else
5089    case $cross_compiling:$ac_tool_warned in
5090yes:)
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093ac_tool_warned=yes ;;
5094esac
5095    OBJDUMP=$ac_ct_OBJDUMP
5096  fi
5097else
5098  OBJDUMP="$ac_cv_prog_OBJDUMP"
5099fi
5100
5101test -z "$OBJDUMP" && OBJDUMP=objdump
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5112$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5113if ${lt_cv_deplibs_check_method+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  lt_cv_file_magic_cmd='$MAGIC_CMD'
5117lt_cv_file_magic_test_file=
5118lt_cv_deplibs_check_method='unknown'
5119# Need to set the preceding variable on all platforms that support
5120# interlibrary dependencies.
5121# 'none' -- dependencies not supported.
5122# `unknown' -- same as none, but documents that we really don't know.
5123# 'pass_all' -- all dependencies passed with no checks.
5124# 'test_compile' -- check by making test program.
5125# 'file_magic [[regex]]' -- check by looking for files in library path
5126# which responds to the $file_magic_cmd with a given extended regex.
5127# If you have `file' or equivalent on your system and you're not sure
5128# whether `pass_all' will *always* work, you probably want this one.
5129
5130case $host_os in
5131aix[4-9]*)
5132  lt_cv_deplibs_check_method=pass_all
5133  ;;
5134
5135beos*)
5136  lt_cv_deplibs_check_method=pass_all
5137  ;;
5138
5139bsdi[45]*)
5140  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5141  lt_cv_file_magic_cmd='/usr/bin/file -L'
5142  lt_cv_file_magic_test_file=/shlib/libc.so
5143  ;;
5144
5145cygwin*)
5146  # func_win32_libid is a shell function defined in ltmain.sh
5147  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5148  lt_cv_file_magic_cmd='func_win32_libid'
5149  ;;
5150
5151mingw* | pw32*)
5152  # Base MSYS/MinGW do not provide the 'file' command needed by
5153  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5154  # unless we find 'file', for example because we are cross-compiling.
5155  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5156  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5157    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5158    lt_cv_file_magic_cmd='func_win32_libid'
5159  else
5160    # Keep this pattern in sync with the one in func_win32_libid.
5161    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5162    lt_cv_file_magic_cmd='$OBJDUMP -f'
5163  fi
5164  ;;
5165
5166cegcc*)
5167  # use the weaker test based on 'objdump'. See mingw*.
5168  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5169  lt_cv_file_magic_cmd='$OBJDUMP -f'
5170  ;;
5171
5172darwin* | rhapsody*)
5173  lt_cv_deplibs_check_method=pass_all
5174  ;;
5175
5176freebsd* | dragonfly*)
5177  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178    case $host_cpu in
5179    i*86 )
5180      # Not sure whether the presence of OpenBSD here was a mistake.
5181      # Let's accept both of them until this is cleared up.
5182      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5183      lt_cv_file_magic_cmd=/usr/bin/file
5184      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5185      ;;
5186    esac
5187  else
5188    lt_cv_deplibs_check_method=pass_all
5189  fi
5190  ;;
5191
5192gnu*)
5193  lt_cv_deplibs_check_method=pass_all
5194  ;;
5195
5196haiku*)
5197  lt_cv_deplibs_check_method=pass_all
5198  ;;
5199
5200hpux10.20* | hpux11*)
5201  lt_cv_file_magic_cmd=/usr/bin/file
5202  case $host_cpu in
5203  ia64*)
5204    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5205    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5206    ;;
5207  hppa*64*)
5208    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]'
5209    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5210    ;;
5211  *)
5212    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5213    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5214    ;;
5215  esac
5216  ;;
5217
5218interix[3-9]*)
5219  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5220  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5221  ;;
5222
5223irix5* | irix6* | nonstopux*)
5224  case $LD in
5225  *-32|*"-32 ") libmagic=32-bit;;
5226  *-n32|*"-n32 ") libmagic=N32;;
5227  *-64|*"-64 ") libmagic=64-bit;;
5228  *) libmagic=never-match;;
5229  esac
5230  lt_cv_deplibs_check_method=pass_all
5231  ;;
5232
5233# This must be glibc/ELF.
5234linux* | k*bsd*-gnu | kopensolaris*-gnu)
5235  lt_cv_deplibs_check_method=pass_all
5236  ;;
5237
5238netbsd*)
5239  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5240    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5241  else
5242    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5243  fi
5244  ;;
5245
5246newos6*)
5247  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5248  lt_cv_file_magic_cmd=/usr/bin/file
5249  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5250  ;;
5251
5252*nto* | *qnx*)
5253  lt_cv_deplibs_check_method=pass_all
5254  ;;
5255
5256openbsd*)
5257  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5259  else
5260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261  fi
5262  ;;
5263
5264osf3* | osf4* | osf5*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267
5268rdos*)
5269  lt_cv_deplibs_check_method=pass_all
5270  ;;
5271
5272solaris*)
5273  lt_cv_deplibs_check_method=pass_all
5274  ;;
5275
5276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5277  lt_cv_deplibs_check_method=pass_all
5278  ;;
5279
5280sysv4 | sysv4.3*)
5281  case $host_vendor in
5282  motorola)
5283    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]'
5284    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5285    ;;
5286  ncr)
5287    lt_cv_deplibs_check_method=pass_all
5288    ;;
5289  sequent)
5290    lt_cv_file_magic_cmd='/bin/file'
5291    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5292    ;;
5293  sni)
5294    lt_cv_file_magic_cmd='/bin/file'
5295    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5296    lt_cv_file_magic_test_file=/lib/libc.so
5297    ;;
5298  siemens)
5299    lt_cv_deplibs_check_method=pass_all
5300    ;;
5301  pc)
5302    lt_cv_deplibs_check_method=pass_all
5303    ;;
5304  esac
5305  ;;
5306
5307tpf*)
5308  lt_cv_deplibs_check_method=pass_all
5309  ;;
5310esac
5311
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5314$as_echo "$lt_cv_deplibs_check_method" >&6; }
5315
5316file_magic_glob=
5317want_nocaseglob=no
5318if test "$build" = "$host"; then
5319  case $host_os in
5320  mingw* | pw32*)
5321    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5322      want_nocaseglob=yes
5323    else
5324      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5325    fi
5326    ;;
5327  esac
5328fi
5329
5330file_magic_cmd=$lt_cv_file_magic_cmd
5331deplibs_check_method=$lt_cv_deplibs_check_method
5332test -z "$deplibs_check_method" && deplibs_check_method=unknown
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355if test -n "$ac_tool_prefix"; then
5356  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5357set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if ${ac_cv_prog_DLLTOOL+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$DLLTOOL"; then
5364  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378  done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383DLLTOOL=$ac_cv_prog_DLLTOOL
5384if test -n "$DLLTOOL"; then
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5386$as_echo "$DLLTOOL" >&6; }
5387else
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393fi
5394if test -z "$ac_cv_prog_DLLTOOL"; then
5395  ac_ct_DLLTOOL=$DLLTOOL
5396  # Extract the first word of "dlltool", so it can be a program name with args.
5397set dummy dlltool; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$ac_ct_DLLTOOL"; then
5404  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5424if test -n "$ac_ct_DLLTOOL"; then
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5426$as_echo "$ac_ct_DLLTOOL" >&6; }
5427else
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432  if test "x$ac_ct_DLLTOOL" = x; then
5433    DLLTOOL="false"
5434  else
5435    case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439ac_tool_warned=yes ;;
5440esac
5441    DLLTOOL=$ac_ct_DLLTOOL
5442  fi
5443else
5444  DLLTOOL="$ac_cv_prog_DLLTOOL"
5445fi
5446
5447test -z "$DLLTOOL" && DLLTOOL=dlltool
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5459$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5460if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462else
5463  lt_cv_sharedlib_from_linklib_cmd='unknown'
5464
5465case $host_os in
5466cygwin* | mingw* | pw32* | cegcc*)
5467  # two different shell functions defined in ltmain.sh
5468  # decide which to use based on capabilities of $DLLTOOL
5469  case `$DLLTOOL --help 2>&1` in
5470  *--identify-strict*)
5471    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5472    ;;
5473  *)
5474    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5475    ;;
5476  esac
5477  ;;
5478*)
5479  # fallback: assume linklib IS sharedlib
5480  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5481  ;;
5482esac
5483
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5486$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5487sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5488test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5489
5490
5491
5492
5493
5494
5495
5496
5497if test -n "$ac_tool_prefix"; then
5498  for ac_prog in ar
5499  do
5500    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if ${ac_cv_prog_AR+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  if test -n "$AR"; then
5508  ac_cv_prog_AR="$AR" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513  IFS=$as_save_IFS
5514  test -z "$as_dir" && as_dir=.
5515    for ac_exec_ext in '' $ac_executable_extensions; do
5516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519    break 2
5520  fi
5521done
5522  done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527AR=$ac_cv_prog_AR
5528if test -n "$AR"; then
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5530$as_echo "$AR" >&6; }
5531else
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536
5537    test -n "$AR" && break
5538  done
5539fi
5540if test -z "$AR"; then
5541  ac_ct_AR=$AR
5542  for ac_prog in ar
5543do
5544  # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if ${ac_cv_prog_ac_ct_AR+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -n "$ac_ct_AR"; then
5552  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561    ac_cv_prog_ac_ct_AR="$ac_prog"
5562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566  done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_AR=$ac_cv_prog_ac_ct_AR
5572if test -n "$ac_ct_AR"; then
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5574$as_echo "$ac_ct_AR" >&6; }
5575else
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580
5581  test -n "$ac_ct_AR" && break
5582done
5583
5584  if test "x$ac_ct_AR" = x; then
5585    AR="false"
5586  else
5587    case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591ac_tool_warned=yes ;;
5592esac
5593    AR=$ac_ct_AR
5594  fi
5595fi
5596
5597: ${AR=ar}
5598: ${AR_FLAGS=cru}
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5611$as_echo_n "checking for archiver @FILE support... " >&6; }
5612if ${lt_cv_ar_at_file+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  lt_cv_ar_at_file=no
5616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h.  */
5618
5619int
5620main ()
5621{
5622
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  echo conftest.$ac_objext > conftest.lst
5629      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5630      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5631  (eval $lt_ar_try) 2>&5
5632  ac_status=$?
5633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634  test $ac_status = 0; }
5635      if test "$ac_status" -eq 0; then
5636	# Ensure the archiver fails upon bogus file names.
5637	rm -f conftest.$ac_objext libconftest.a
5638	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5639  (eval $lt_ar_try) 2>&5
5640  ac_status=$?
5641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642  test $ac_status = 0; }
5643	if test "$ac_status" -ne 0; then
5644          lt_cv_ar_at_file=@
5645        fi
5646      fi
5647      rm -f conftest.* libconftest.a
5648
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5654$as_echo "$lt_cv_ar_at_file" >&6; }
5655
5656if test "x$lt_cv_ar_at_file" = xno; then
5657  archiver_list_spec=
5658else
5659  archiver_list_spec=$lt_cv_ar_at_file
5660fi
5661
5662
5663
5664
5665
5666
5667
5668if test -n "$ac_tool_prefix"; then
5669  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5670set dummy ${ac_tool_prefix}strip; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_STRIP+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$STRIP"; then
5677  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696STRIP=$ac_cv_prog_STRIP
5697if test -n "$STRIP"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5699$as_echo "$STRIP" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705
5706fi
5707if test -z "$ac_cv_prog_STRIP"; then
5708  ac_ct_STRIP=$STRIP
5709  # Extract the first word of "strip", so it can be a program name with args.
5710set dummy strip; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$ac_ct_STRIP"; then
5717  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_ac_ct_STRIP="strip"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5737if test -n "$ac_ct_STRIP"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5739$as_echo "$ac_ct_STRIP" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745  if test "x$ac_ct_STRIP" = x; then
5746    STRIP=":"
5747  else
5748    case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754    STRIP=$ac_ct_STRIP
5755  fi
5756else
5757  STRIP="$ac_cv_prog_STRIP"
5758fi
5759
5760test -z "$STRIP" && STRIP=:
5761
5762
5763
5764
5765
5766
5767if test -n "$ac_tool_prefix"; then
5768  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5769set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771$as_echo_n "checking for $ac_word... " >&6; }
5772if ${ac_cv_prog_RANLIB+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  if test -n "$RANLIB"; then
5776  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781  IFS=$as_save_IFS
5782  test -z "$as_dir" && as_dir=.
5783    for ac_exec_ext in '' $ac_executable_extensions; do
5784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787    break 2
5788  fi
5789done
5790  done
5791IFS=$as_save_IFS
5792
5793fi
5794fi
5795RANLIB=$ac_cv_prog_RANLIB
5796if test -n "$RANLIB"; then
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5798$as_echo "$RANLIB" >&6; }
5799else
5800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802fi
5803
5804
5805fi
5806if test -z "$ac_cv_prog_RANLIB"; then
5807  ac_ct_RANLIB=$RANLIB
5808  # Extract the first word of "ranlib", so it can be a program name with args.
5809set dummy ranlib; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  if test -n "$ac_ct_RANLIB"; then
5816  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823    for ac_exec_ext in '' $ac_executable_extensions; do
5824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_ac_ct_RANLIB="ranlib"
5826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830  done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5836if test -n "$ac_ct_RANLIB"; then
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5838$as_echo "$ac_ct_RANLIB" >&6; }
5839else
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844  if test "x$ac_ct_RANLIB" = x; then
5845    RANLIB=":"
5846  else
5847    case $cross_compiling:$ac_tool_warned in
5848yes:)
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851ac_tool_warned=yes ;;
5852esac
5853    RANLIB=$ac_ct_RANLIB
5854  fi
5855else
5856  RANLIB="$ac_cv_prog_RANLIB"
5857fi
5858
5859test -z "$RANLIB" && RANLIB=:
5860
5861
5862
5863
5864
5865
5866# Determine commands to create old-style static archives.
5867old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5868old_postinstall_cmds='chmod 644 $oldlib'
5869old_postuninstall_cmds=
5870
5871if test -n "$RANLIB"; then
5872  case $host_os in
5873  openbsd*)
5874    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5875    ;;
5876  *)
5877    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5878    ;;
5879  esac
5880  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5881fi
5882
5883case $host_os in
5884  darwin*)
5885    lock_old_archive_extraction=yes ;;
5886  *)
5887    lock_old_archive_extraction=no ;;
5888esac
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928# If no C compiler was specified, use CC.
5929LTCC=${LTCC-"$CC"}
5930
5931# If no C compiler flags were specified, use CFLAGS.
5932LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5933
5934# Allow CC to be a program name with arguments.
5935compiler=$CC
5936
5937
5938# Check for command to grab the raw symbol name followed by C symbol from nm.
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5940$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5941if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944
5945# These are sane defaults that work on at least a few old systems.
5946# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5947
5948# Character class describing NM global symbol codes.
5949symcode='[BCDEGRST]'
5950
5951# Regexp to match symbols that can be accessed directly from C.
5952sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5953
5954# Define system-specific variables.
5955case $host_os in
5956aix*)
5957  symcode='[BCDT]'
5958  ;;
5959cygwin* | mingw* | pw32* | cegcc*)
5960  symcode='[ABCDGISTW]'
5961  ;;
5962hpux*)
5963  if test "$host_cpu" = ia64; then
5964    symcode='[ABCDEGRST]'
5965  fi
5966  ;;
5967irix* | nonstopux*)
5968  symcode='[BCDEGRST]'
5969  ;;
5970osf*)
5971  symcode='[BCDEGQRST]'
5972  ;;
5973solaris*)
5974  symcode='[BDRT]'
5975  ;;
5976sco3.2v5*)
5977  symcode='[DT]'
5978  ;;
5979sysv4.2uw2*)
5980  symcode='[DT]'
5981  ;;
5982sysv5* | sco5v6* | unixware* | OpenUNIX*)
5983  symcode='[ABDT]'
5984  ;;
5985sysv4)
5986  symcode='[DFNSTU]'
5987  ;;
5988esac
5989
5990# If we're using GNU nm, then use its standard symbol codes.
5991case `$NM -V 2>&1` in
5992*GNU* | *'with BFD'*)
5993  symcode='[ABCDGIRSTW]' ;;
5994esac
5995
5996# Transform an extracted symbol line into a proper C declaration.
5997# Some systems (esp. on ia64) link data and code symbols differently,
5998# so use this general approach.
5999lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6000
6001# Transform an extracted symbol line into symbol name and symbol address
6002lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6003lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6004
6005# Handle CRLF in mingw tool chain
6006opt_cr=
6007case $build_os in
6008mingw*)
6009  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010  ;;
6011esac
6012
6013# Try without a prefix underscore, then with it.
6014for ac_symprfx in "" "_"; do
6015
6016  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6017  symxfrm="\\1 $ac_symprfx\\2 \\2"
6018
6019  # Write the raw and C identifiers.
6020  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6021    # Fake it for dumpbin and say T for any non-static function
6022    # and D for any global variable.
6023    # Also find C++ and __fastcall symbols from MSVC++,
6024    # which start with @ or ?.
6025    lt_cv_sys_global_symbol_pipe="$AWK '"\
6026"     {last_section=section; section=\$ 3};"\
6027"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6028"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6029"     \$ 0!~/External *\|/{next};"\
6030"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6031"     {if(hide[section]) next};"\
6032"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6033"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6034"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6035"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6036"     ' prfx=^$ac_symprfx"
6037  else
6038    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6039  fi
6040  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6041
6042  # Check to see that the pipe works correctly.
6043  pipe_works=no
6044
6045  rm -f conftest*
6046  cat > conftest.$ac_ext <<_LT_EOF
6047#ifdef __cplusplus
6048extern "C" {
6049#endif
6050char nm_test_var;
6051void nm_test_func(void);
6052void nm_test_func(void){}
6053#ifdef __cplusplus
6054}
6055#endif
6056int main(){nm_test_var='a';nm_test_func();return(0);}
6057_LT_EOF
6058
6059  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6060  (eval $ac_compile) 2>&5
6061  ac_status=$?
6062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063  test $ac_status = 0; }; then
6064    # Now try to grab the symbols.
6065    nlist=conftest.nm
6066    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6067  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6068  ac_status=$?
6069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070  test $ac_status = 0; } && test -s "$nlist"; then
6071      # Try sorting and uniquifying the output.
6072      if sort "$nlist" | uniq > "$nlist"T; then
6073	mv -f "$nlist"T "$nlist"
6074      else
6075	rm -f "$nlist"T
6076      fi
6077
6078      # Make sure that we snagged all the symbols we need.
6079      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6080	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6081	  cat <<_LT_EOF > conftest.$ac_ext
6082/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6083#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6084/* DATA imports from DLLs on WIN32 con't be const, because runtime
6085   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6086# define LT_DLSYM_CONST
6087#elif defined(__osf__)
6088/* This system does not cope well with relocations in const data.  */
6089# define LT_DLSYM_CONST
6090#else
6091# define LT_DLSYM_CONST const
6092#endif
6093
6094#ifdef __cplusplus
6095extern "C" {
6096#endif
6097
6098_LT_EOF
6099	  # Now generate the symbol file.
6100	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6101
6102	  cat <<_LT_EOF >> conftest.$ac_ext
6103
6104/* The mapping between symbol names and symbols.  */
6105LT_DLSYM_CONST struct {
6106  const char *name;
6107  void       *address;
6108}
6109lt__PROGRAM__LTX_preloaded_symbols[] =
6110{
6111  { "@PROGRAM@", (void *) 0 },
6112_LT_EOF
6113	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6114	  cat <<\_LT_EOF >> conftest.$ac_ext
6115  {0, (void *) 0}
6116};
6117
6118/* This works around a problem in FreeBSD linker */
6119#ifdef FREEBSD_WORKAROUND
6120static const void *lt_preloaded_setup() {
6121  return lt__PROGRAM__LTX_preloaded_symbols;
6122}
6123#endif
6124
6125#ifdef __cplusplus
6126}
6127#endif
6128_LT_EOF
6129	  # Now try linking the two files.
6130	  mv conftest.$ac_objext conftstm.$ac_objext
6131	  lt_globsym_save_LIBS=$LIBS
6132	  lt_globsym_save_CFLAGS=$CFLAGS
6133	  LIBS="conftstm.$ac_objext"
6134	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6135	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6136  (eval $ac_link) 2>&5
6137  ac_status=$?
6138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6140	    pipe_works=yes
6141	  fi
6142	  LIBS=$lt_globsym_save_LIBS
6143	  CFLAGS=$lt_globsym_save_CFLAGS
6144	else
6145	  echo "cannot find nm_test_func in $nlist" >&5
6146	fi
6147      else
6148	echo "cannot find nm_test_var in $nlist" >&5
6149      fi
6150    else
6151      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6152    fi
6153  else
6154    echo "$progname: failed program was:" >&5
6155    cat conftest.$ac_ext >&5
6156  fi
6157  rm -rf conftest* conftst*
6158
6159  # Do not use the global_symbol_pipe unless it works.
6160  if test "$pipe_works" = yes; then
6161    break
6162  else
6163    lt_cv_sys_global_symbol_pipe=
6164  fi
6165done
6166
6167fi
6168
6169if test -z "$lt_cv_sys_global_symbol_pipe"; then
6170  lt_cv_sys_global_symbol_to_cdecl=
6171fi
6172if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6174$as_echo "failed" >&6; }
6175else
6176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6177$as_echo "ok" >&6; }
6178fi
6179
6180# Response file support.
6181if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6182  nm_file_list_spec='@'
6183elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6184  nm_file_list_spec='@'
6185fi
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6214$as_echo_n "checking for sysroot... " >&6; }
6215
6216# Check whether --with-sysroot was given.
6217if test "${with_sysroot+set}" = set; then :
6218  withval=$with_sysroot;
6219else
6220  with_sysroot=no
6221fi
6222
6223
6224lt_sysroot=
6225case ${with_sysroot} in #(
6226 yes)
6227   if test "$GCC" = yes; then
6228     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6229   fi
6230   ;; #(
6231 /*)
6232   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6233   ;; #(
6234 no|'')
6235   ;; #(
6236 *)
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6238$as_echo "${with_sysroot}" >&6; }
6239   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6240   ;;
6241esac
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6244$as_echo "${lt_sysroot:-no}" >&6; }
6245
6246
6247
6248
6249
6250# Check whether --enable-libtool-lock was given.
6251if test "${enable_libtool_lock+set}" = set; then :
6252  enableval=$enable_libtool_lock;
6253fi
6254
6255test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6256
6257# Some flags need to be propagated to the compiler or linker for good
6258# libtool support.
6259case $host in
6260ia64-*-hpux*)
6261  # Find out which ABI we are using.
6262  echo 'int i;' > conftest.$ac_ext
6263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264  (eval $ac_compile) 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267  test $ac_status = 0; }; then
6268    case `/usr/bin/file conftest.$ac_objext` in
6269      *ELF-32*)
6270	HPUX_IA64_MODE="32"
6271	;;
6272      *ELF-64*)
6273	HPUX_IA64_MODE="64"
6274	;;
6275    esac
6276  fi
6277  rm -rf conftest*
6278  ;;
6279*-*-irix6*)
6280  # Find out which ABI we are using.
6281  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6283  (eval $ac_compile) 2>&5
6284  ac_status=$?
6285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286  test $ac_status = 0; }; then
6287    if test "$lt_cv_prog_gnu_ld" = yes; then
6288      case `/usr/bin/file conftest.$ac_objext` in
6289	*32-bit*)
6290	  LD="${LD-ld} -melf32bsmip"
6291	  ;;
6292	*N32*)
6293	  LD="${LD-ld} -melf32bmipn32"
6294	  ;;
6295	*64-bit*)
6296	  LD="${LD-ld} -melf64bmip"
6297	;;
6298      esac
6299    else
6300      case `/usr/bin/file conftest.$ac_objext` in
6301	*32-bit*)
6302	  LD="${LD-ld} -32"
6303	  ;;
6304	*N32*)
6305	  LD="${LD-ld} -n32"
6306	  ;;
6307	*64-bit*)
6308	  LD="${LD-ld} -64"
6309	  ;;
6310      esac
6311    fi
6312  fi
6313  rm -rf conftest*
6314  ;;
6315
6316x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6317s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6318  # Find out which ABI we are using.
6319  echo 'int i;' > conftest.$ac_ext
6320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321  (eval $ac_compile) 2>&5
6322  ac_status=$?
6323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324  test $ac_status = 0; }; then
6325    case `/usr/bin/file conftest.o` in
6326      *32-bit*)
6327	case $host in
6328	  x86_64-*kfreebsd*-gnu)
6329	    LD="${LD-ld} -m elf_i386_fbsd"
6330	    ;;
6331	  x86_64-*linux*)
6332	    LD="${LD-ld} -m elf_i386"
6333	    ;;
6334	  powerpc64le-*linux*)
6335	    LD="${LD-ld} -m elf32lppclinux"
6336	    ;;
6337	  powerpc64-*linux*)
6338	    LD="${LD-ld} -m elf32ppclinux"
6339	    ;;
6340	  s390x-*linux*)
6341	    LD="${LD-ld} -m elf_s390"
6342	    ;;
6343	  sparc64-*linux*)
6344	    LD="${LD-ld} -m elf32_sparc"
6345	    ;;
6346	esac
6347	;;
6348      *64-bit*)
6349	case $host in
6350	  x86_64-*kfreebsd*-gnu)
6351	    LD="${LD-ld} -m elf_x86_64_fbsd"
6352	    ;;
6353	  x86_64-*linux*)
6354	    LD="${LD-ld} -m elf_x86_64"
6355	    ;;
6356	  powerpcle-*linux*)
6357	    LD="${LD-ld} -m elf64lppc"
6358	    ;;
6359	  powerpc-*linux*)
6360	    LD="${LD-ld} -m elf64ppc"
6361	    ;;
6362	  s390*-*linux*|s390*-*tpf*)
6363	    LD="${LD-ld} -m elf64_s390"
6364	    ;;
6365	  sparc*-*linux*)
6366	    LD="${LD-ld} -m elf64_sparc"
6367	    ;;
6368	esac
6369	;;
6370    esac
6371  fi
6372  rm -rf conftest*
6373  ;;
6374
6375*-*-sco3.2v5*)
6376  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6377  SAVE_CFLAGS="$CFLAGS"
6378  CFLAGS="$CFLAGS -belf"
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6380$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6381if ${lt_cv_cc_needs_belf+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"; then :
6402  lt_cv_cc_needs_belf=yes
6403else
6404  lt_cv_cc_needs_belf=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext \
6407    conftest$ac_exeext conftest.$ac_ext
6408     ac_ext=c
6409ac_cpp='$CPP $CPPFLAGS'
6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6416$as_echo "$lt_cv_cc_needs_belf" >&6; }
6417  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6418    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6419    CFLAGS="$SAVE_CFLAGS"
6420  fi
6421  ;;
6422*-*solaris*)
6423  # Find out which ABI we are using.
6424  echo 'int i;' > conftest.$ac_ext
6425  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6426  (eval $ac_compile) 2>&5
6427  ac_status=$?
6428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429  test $ac_status = 0; }; then
6430    case `/usr/bin/file conftest.o` in
6431    *64-bit*)
6432      case $lt_cv_prog_gnu_ld in
6433      yes*)
6434        case $host in
6435        i?86-*-solaris*)
6436          LD="${LD-ld} -m elf_x86_64"
6437          ;;
6438        sparc*-*-solaris*)
6439          LD="${LD-ld} -m elf64_sparc"
6440          ;;
6441        esac
6442        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6443        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6444          LD="${LD-ld}_sol2"
6445        fi
6446        ;;
6447      *)
6448	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6449	  LD="${LD-ld} -64"
6450	fi
6451	;;
6452      esac
6453      ;;
6454    esac
6455  fi
6456  rm -rf conftest*
6457  ;;
6458esac
6459
6460need_locks="$enable_libtool_lock"
6461
6462if test -n "$ac_tool_prefix"; then
6463  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6464set dummy ${ac_tool_prefix}mt; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$MANIFEST_TOOL"; then
6471  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6491if test -n "$MANIFEST_TOOL"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6493$as_echo "$MANIFEST_TOOL" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499
6500fi
6501if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6502  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6503  # Extract the first word of "mt", so it can be a program name with args.
6504set dummy mt; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510  if test -n "$ac_ct_MANIFEST_TOOL"; then
6511  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  test -z "$as_dir" && as_dir=.
6518    for ac_exec_ext in '' $ac_executable_extensions; do
6519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525  done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6531if test -n "$ac_ct_MANIFEST_TOOL"; then
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6533$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6534else
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6540    MANIFEST_TOOL=":"
6541  else
6542    case $cross_compiling:$ac_tool_warned in
6543yes:)
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546ac_tool_warned=yes ;;
6547esac
6548    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6549  fi
6550else
6551  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6552fi
6553
6554test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6556$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6557if ${lt_cv_path_mainfest_tool+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  lt_cv_path_mainfest_tool=no
6561  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6562  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6563  cat conftest.err >&5
6564  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6565    lt_cv_path_mainfest_tool=yes
6566  fi
6567  rm -f conftest*
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6570$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6571if test "x$lt_cv_path_mainfest_tool" != xyes; then
6572  MANIFEST_TOOL=:
6573fi
6574
6575
6576
6577
6578
6579
6580  case $host_os in
6581    rhapsody* | darwin*)
6582    if test -n "$ac_tool_prefix"; then
6583  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6584set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_prog_DSYMUTIL+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$DSYMUTIL"; then
6591  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610DSYMUTIL=$ac_cv_prog_DSYMUTIL
6611if test -n "$DSYMUTIL"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6613$as_echo "$DSYMUTIL" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619
6620fi
6621if test -z "$ac_cv_prog_DSYMUTIL"; then
6622  ac_ct_DSYMUTIL=$DSYMUTIL
6623  # Extract the first word of "dsymutil", so it can be a program name with args.
6624set dummy dsymutil; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  if test -n "$ac_ct_DSYMUTIL"; then
6631  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6651if test -n "$ac_ct_DSYMUTIL"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6653$as_echo "$ac_ct_DSYMUTIL" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659  if test "x$ac_ct_DSYMUTIL" = x; then
6660    DSYMUTIL=":"
6661  else
6662    case $cross_compiling:$ac_tool_warned in
6663yes:)
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666ac_tool_warned=yes ;;
6667esac
6668    DSYMUTIL=$ac_ct_DSYMUTIL
6669  fi
6670else
6671  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6672fi
6673
6674    if test -n "$ac_tool_prefix"; then
6675  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6676set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_NMEDIT+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$NMEDIT"; then
6683  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702NMEDIT=$ac_cv_prog_NMEDIT
6703if test -n "$NMEDIT"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6705$as_echo "$NMEDIT" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711
6712fi
6713if test -z "$ac_cv_prog_NMEDIT"; then
6714  ac_ct_NMEDIT=$NMEDIT
6715  # Extract the first word of "nmedit", so it can be a program name with args.
6716set dummy nmedit; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
6719if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  if test -n "$ac_ct_NMEDIT"; then
6723  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728  IFS=$as_save_IFS
6729  test -z "$as_dir" && as_dir=.
6730    for ac_exec_ext in '' $ac_executable_extensions; do
6731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734    break 2
6735  fi
6736done
6737  done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6743if test -n "$ac_ct_NMEDIT"; then
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6745$as_echo "$ac_ct_NMEDIT" >&6; }
6746else
6747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
6749fi
6750
6751  if test "x$ac_ct_NMEDIT" = x; then
6752    NMEDIT=":"
6753  else
6754    case $cross_compiling:$ac_tool_warned in
6755yes:)
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758ac_tool_warned=yes ;;
6759esac
6760    NMEDIT=$ac_ct_NMEDIT
6761  fi
6762else
6763  NMEDIT="$ac_cv_prog_NMEDIT"
6764fi
6765
6766    if test -n "$ac_tool_prefix"; then
6767  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}lipo; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_LIPO+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$LIPO"; then
6775  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794LIPO=$ac_cv_prog_LIPO
6795if test -n "$LIPO"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6797$as_echo "$LIPO" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804fi
6805if test -z "$ac_cv_prog_LIPO"; then
6806  ac_ct_LIPO=$LIPO
6807  # Extract the first word of "lipo", so it can be a program name with args.
6808set dummy lipo; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  if test -n "$ac_ct_LIPO"; then
6815  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820  IFS=$as_save_IFS
6821  test -z "$as_dir" && as_dir=.
6822    for ac_exec_ext in '' $ac_executable_extensions; do
6823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824    ac_cv_prog_ac_ct_LIPO="lipo"
6825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826    break 2
6827  fi
6828done
6829  done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6835if test -n "$ac_ct_LIPO"; then
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6837$as_echo "$ac_ct_LIPO" >&6; }
6838else
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843  if test "x$ac_ct_LIPO" = x; then
6844    LIPO=":"
6845  else
6846    case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    LIPO=$ac_ct_LIPO
6853  fi
6854else
6855  LIPO="$ac_cv_prog_LIPO"
6856fi
6857
6858    if test -n "$ac_tool_prefix"; then
6859  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}otool; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_OTOOL+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$OTOOL"; then
6867  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886OTOOL=$ac_cv_prog_OTOOL
6887if test -n "$OTOOL"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6889$as_echo "$OTOOL" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_OTOOL"; then
6898  ac_ct_OTOOL=$OTOOL
6899  # Extract the first word of "otool", so it can be a program name with args.
6900set dummy otool; ac_word=$2
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -n "$ac_ct_OTOOL"; then
6907  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914    for ac_exec_ext in '' $ac_executable_extensions; do
6915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916    ac_cv_prog_ac_ct_OTOOL="otool"
6917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921  done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6927if test -n "$ac_ct_OTOOL"; then
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6929$as_echo "$ac_ct_OTOOL" >&6; }
6930else
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
6933fi
6934
6935  if test "x$ac_ct_OTOOL" = x; then
6936    OTOOL=":"
6937  else
6938    case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942ac_tool_warned=yes ;;
6943esac
6944    OTOOL=$ac_ct_OTOOL
6945  fi
6946else
6947  OTOOL="$ac_cv_prog_OTOOL"
6948fi
6949
6950    if test -n "$ac_tool_prefix"; then
6951  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6952set dummy ${ac_tool_prefix}otool64; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_OTOOL64+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$OTOOL64"; then
6959  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978OTOOL64=$ac_cv_prog_OTOOL64
6979if test -n "$OTOOL64"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6981$as_echo "$OTOOL64" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987
6988fi
6989if test -z "$ac_cv_prog_OTOOL64"; then
6990  ac_ct_OTOOL64=$OTOOL64
6991  # Extract the first word of "otool64", so it can be a program name with args.
6992set dummy otool64; ac_word=$2
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994$as_echo_n "checking for $ac_word... " >&6; }
6995if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6996  $as_echo_n "(cached) " >&6
6997else
6998  if test -n "$ac_ct_OTOOL64"; then
6999  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  test -z "$as_dir" && as_dir=.
7006    for ac_exec_ext in '' $ac_executable_extensions; do
7007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008    ac_cv_prog_ac_ct_OTOOL64="otool64"
7009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010    break 2
7011  fi
7012done
7013  done
7014IFS=$as_save_IFS
7015
7016fi
7017fi
7018ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7019if test -n "$ac_ct_OTOOL64"; then
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7021$as_echo "$ac_ct_OTOOL64" >&6; }
7022else
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025fi
7026
7027  if test "x$ac_ct_OTOOL64" = x; then
7028    OTOOL64=":"
7029  else
7030    case $cross_compiling:$ac_tool_warned in
7031yes:)
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034ac_tool_warned=yes ;;
7035esac
7036    OTOOL64=$ac_ct_OTOOL64
7037  fi
7038else
7039  OTOOL64="$ac_cv_prog_OTOOL64"
7040fi
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7069$as_echo_n "checking for -single_module linker flag... " >&6; }
7070if ${lt_cv_apple_cc_single_mod+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  lt_cv_apple_cc_single_mod=no
7074      if test -z "${LT_MULTI_MODULE}"; then
7075	# By default we will add the -single_module flag. You can override
7076	# by either setting the environment variable LT_MULTI_MODULE
7077	# non-empty at configure time, or by adding -multi_module to the
7078	# link flags.
7079	rm -rf libconftest.dylib*
7080	echo "int foo(void){return 1;}" > conftest.c
7081	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7082-dynamiclib -Wl,-single_module conftest.c" >&5
7083	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7084	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7085        _lt_result=$?
7086	# If there is a non-empty error log, and "single_module"
7087	# appears in it, assume the flag caused a linker warning
7088        if test -s conftest.err && $GREP single_module conftest.err; then
7089	  cat conftest.err >&5
7090	# Otherwise, if the output was created with a 0 exit code from
7091	# the compiler, it worked.
7092	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7093	  lt_cv_apple_cc_single_mod=yes
7094	else
7095	  cat conftest.err >&5
7096	fi
7097	rm -rf libconftest.dylib*
7098	rm -f conftest.*
7099      fi
7100fi
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7102$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7103
7104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7105$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7106if ${lt_cv_ld_exported_symbols_list+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  lt_cv_ld_exported_symbols_list=no
7110      save_LDFLAGS=$LDFLAGS
7111      echo "_main" > conftest.sym
7112      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  lt_cv_ld_exported_symbols_list=yes
7126else
7127  lt_cv_ld_exported_symbols_list=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131	LDFLAGS="$save_LDFLAGS"
7132
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7135$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7136
7137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7138$as_echo_n "checking for -force_load linker flag... " >&6; }
7139if ${lt_cv_ld_force_load+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  lt_cv_ld_force_load=no
7143      cat > conftest.c << _LT_EOF
7144int forced_loaded() { return 2;}
7145_LT_EOF
7146      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7147      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7148      echo "$AR cru libconftest.a conftest.o" >&5
7149      $AR cru libconftest.a conftest.o 2>&5
7150      echo "$RANLIB libconftest.a" >&5
7151      $RANLIB libconftest.a 2>&5
7152      cat > conftest.c << _LT_EOF
7153int main() { return 0;}
7154_LT_EOF
7155      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7156      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7157      _lt_result=$?
7158      if test -s conftest.err && $GREP force_load conftest.err; then
7159	cat conftest.err >&5
7160      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7161	lt_cv_ld_force_load=yes
7162      else
7163	cat conftest.err >&5
7164      fi
7165        rm -f conftest.err libconftest.a conftest conftest.c
7166        rm -rf conftest.dSYM
7167
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7170$as_echo "$lt_cv_ld_force_load" >&6; }
7171    case $host_os in
7172    rhapsody* | darwin1.[012])
7173      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7174    darwin1.*)
7175      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7176    darwin*) # darwin 5.x on
7177      # if running on 10.5 or later, the deployment target defaults
7178      # to the OS version, if on x86, and 10.4, the deployment
7179      # target defaults to 10.4. Don't you love it?
7180      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7181	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7182	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7183	10.[012]*)
7184	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7185	10.*)
7186	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7187      esac
7188    ;;
7189  esac
7190    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7191      _lt_dar_single_mod='$single_module'
7192    fi
7193    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7194      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7195    else
7196      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7197    fi
7198    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7199      _lt_dsymutil='~$DSYMUTIL $lib || :'
7200    else
7201      _lt_dsymutil=
7202    fi
7203    ;;
7204  esac
7205
7206ac_ext=c
7207ac_cpp='$CPP $CPPFLAGS'
7208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7212$as_echo_n "checking how to run the C preprocessor... " >&6; }
7213# On Suns, sometimes $CPP names a directory.
7214if test -n "$CPP" && test -d "$CPP"; then
7215  CPP=
7216fi
7217if test -z "$CPP"; then
7218  if ${ac_cv_prog_CPP+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221      # Double quotes because CPP needs to be expanded
7222    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7223    do
7224      ac_preproc_ok=false
7225for ac_c_preproc_warn_flag in '' yes
7226do
7227  # Use a header file that comes with gcc, so configuring glibc
7228  # with a fresh cross-compiler works.
7229  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7230  # <limits.h> exists even on freestanding compilers.
7231  # On the NeXT, cc -E runs the code through the compiler's parser,
7232  # not just through cpp. "Syntax error" is here to catch this case.
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235#ifdef __STDC__
7236# include <limits.h>
7237#else
7238# include <assert.h>
7239#endif
7240		     Syntax error
7241_ACEOF
7242if ac_fn_c_try_cpp "$LINENO"; then :
7243
7244else
7245  # Broken: fails on valid input.
7246continue
7247fi
7248rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250  # OK, works on sane cases.  Now check whether nonexistent headers
7251  # can be detected and how.
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254#include <ac_nonexistent.h>
7255_ACEOF
7256if ac_fn_c_try_cpp "$LINENO"; then :
7257  # Broken: success on invalid input.
7258continue
7259else
7260  # Passes both tests.
7261ac_preproc_ok=:
7262break
7263fi
7264rm -f conftest.err conftest.i conftest.$ac_ext
7265
7266done
7267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268rm -f conftest.i conftest.err conftest.$ac_ext
7269if $ac_preproc_ok; then :
7270  break
7271fi
7272
7273    done
7274    ac_cv_prog_CPP=$CPP
7275
7276fi
7277  CPP=$ac_cv_prog_CPP
7278else
7279  ac_cv_prog_CPP=$CPP
7280fi
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7282$as_echo "$CPP" >&6; }
7283ac_preproc_ok=false
7284for ac_c_preproc_warn_flag in '' yes
7285do
7286  # Use a header file that comes with gcc, so configuring glibc
7287  # with a fresh cross-compiler works.
7288  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289  # <limits.h> exists even on freestanding compilers.
7290  # On the NeXT, cc -E runs the code through the compiler's parser,
7291  # not just through cpp. "Syntax error" is here to catch this case.
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294#ifdef __STDC__
7295# include <limits.h>
7296#else
7297# include <assert.h>
7298#endif
7299		     Syntax error
7300_ACEOF
7301if ac_fn_c_try_cpp "$LINENO"; then :
7302
7303else
7304  # Broken: fails on valid input.
7305continue
7306fi
7307rm -f conftest.err conftest.i conftest.$ac_ext
7308
7309  # OK, works on sane cases.  Now check whether nonexistent headers
7310  # can be detected and how.
7311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312/* end confdefs.h.  */
7313#include <ac_nonexistent.h>
7314_ACEOF
7315if ac_fn_c_try_cpp "$LINENO"; then :
7316  # Broken: success on invalid input.
7317continue
7318else
7319  # Passes both tests.
7320ac_preproc_ok=:
7321break
7322fi
7323rm -f conftest.err conftest.i conftest.$ac_ext
7324
7325done
7326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7327rm -f conftest.i conftest.err conftest.$ac_ext
7328if $ac_preproc_ok; then :
7329
7330else
7331  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7334See \`config.log' for more details" "$LINENO" 5; }
7335fi
7336
7337ac_ext=c
7338ac_cpp='$CPP $CPPFLAGS'
7339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342
7343
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7345$as_echo_n "checking for ANSI C header files... " >&6; }
7346if ${ac_cv_header_stdc+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351#include <stdlib.h>
7352#include <stdarg.h>
7353#include <string.h>
7354#include <float.h>
7355
7356int
7357main ()
7358{
7359
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364if ac_fn_c_try_compile "$LINENO"; then :
7365  ac_cv_header_stdc=yes
7366else
7367  ac_cv_header_stdc=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370
7371if test $ac_cv_header_stdc = yes; then
7372  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375#include <string.h>
7376
7377_ACEOF
7378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7379  $EGREP "memchr" >/dev/null 2>&1; then :
7380
7381else
7382  ac_cv_header_stdc=no
7383fi
7384rm -f conftest*
7385
7386fi
7387
7388if test $ac_cv_header_stdc = yes; then
7389  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392#include <stdlib.h>
7393
7394_ACEOF
7395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396  $EGREP "free" >/dev/null 2>&1; then :
7397
7398else
7399  ac_cv_header_stdc=no
7400fi
7401rm -f conftest*
7402
7403fi
7404
7405if test $ac_cv_header_stdc = yes; then
7406  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7407  if test "$cross_compiling" = yes; then :
7408  :
7409else
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412#include <ctype.h>
7413#include <stdlib.h>
7414#if ((' ' & 0x0FF) == 0x020)
7415# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7416# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7417#else
7418# define ISLOWER(c) \
7419		   (('a' <= (c) && (c) <= 'i') \
7420		     || ('j' <= (c) && (c) <= 'r') \
7421		     || ('s' <= (c) && (c) <= 'z'))
7422# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7423#endif
7424
7425#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7426int
7427main ()
7428{
7429  int i;
7430  for (i = 0; i < 256; i++)
7431    if (XOR (islower (i), ISLOWER (i))
7432	|| toupper (i) != TOUPPER (i))
7433      return 2;
7434  return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_run "$LINENO"; then :
7438
7439else
7440  ac_cv_header_stdc=no
7441fi
7442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7443  conftest.$ac_objext conftest.beam conftest.$ac_ext
7444fi
7445
7446fi
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7449$as_echo "$ac_cv_header_stdc" >&6; }
7450if test $ac_cv_header_stdc = yes; then
7451
7452$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7453
7454fi
7455
7456# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7457for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7458		  inttypes.h stdint.h unistd.h
7459do :
7460  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7461ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7462"
7463if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7464  cat >>confdefs.h <<_ACEOF
7465#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466_ACEOF
7467
7468fi
7469
7470done
7471
7472
7473for ac_header in dlfcn.h
7474do :
7475  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7476"
7477if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7478  cat >>confdefs.h <<_ACEOF
7479#define HAVE_DLFCN_H 1
7480_ACEOF
7481
7482fi
7483
7484done
7485
7486
7487
7488
7489
7490# Set options
7491
7492
7493
7494        enable_dlopen=no
7495
7496
7497  enable_win32_dll=no
7498
7499
7500            # Check whether --enable-shared was given.
7501if test "${enable_shared+set}" = set; then :
7502  enableval=$enable_shared; p=${PACKAGE-default}
7503    case $enableval in
7504    yes) enable_shared=yes ;;
7505    no) enable_shared=no ;;
7506    *)
7507      enable_shared=no
7508      # Look at the argument we got.  We use all the common list separators.
7509      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510      for pkg in $enableval; do
7511	IFS="$lt_save_ifs"
7512	if test "X$pkg" = "X$p"; then
7513	  enable_shared=yes
7514	fi
7515      done
7516      IFS="$lt_save_ifs"
7517      ;;
7518    esac
7519else
7520  enable_shared=yes
7521fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533# Check whether --with-pic was given.
7534if test "${with_pic+set}" = set; then :
7535  withval=$with_pic; lt_p=${PACKAGE-default}
7536    case $withval in
7537    yes|no) pic_mode=$withval ;;
7538    *)
7539      pic_mode=default
7540      # Look at the argument we got.  We use all the common list separators.
7541      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542      for lt_pkg in $withval; do
7543	IFS="$lt_save_ifs"
7544	if test "X$lt_pkg" = "X$lt_p"; then
7545	  pic_mode=yes
7546	fi
7547      done
7548      IFS="$lt_save_ifs"
7549      ;;
7550    esac
7551else
7552  pic_mode=default
7553fi
7554
7555
7556test -z "$pic_mode" && pic_mode=default
7557
7558
7559
7560
7561
7562
7563
7564  # Check whether --enable-fast-install was given.
7565if test "${enable_fast_install+set}" = set; then :
7566  enableval=$enable_fast_install; p=${PACKAGE-default}
7567    case $enableval in
7568    yes) enable_fast_install=yes ;;
7569    no) enable_fast_install=no ;;
7570    *)
7571      enable_fast_install=no
7572      # Look at the argument we got.  We use all the common list separators.
7573      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7574      for pkg in $enableval; do
7575	IFS="$lt_save_ifs"
7576	if test "X$pkg" = "X$p"; then
7577	  enable_fast_install=yes
7578	fi
7579      done
7580      IFS="$lt_save_ifs"
7581      ;;
7582    esac
7583else
7584  enable_fast_install=yes
7585fi
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597# This can be used to rebuild libtool when needed
7598LIBTOOL_DEPS="$ltmain"
7599
7600# Always use our own libtool.
7601LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632test -z "$LN_S" && LN_S="ln -s"
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647if test -n "${ZSH_VERSION+set}" ; then
7648   setopt NO_GLOB_SUBST
7649fi
7650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7652$as_echo_n "checking for objdir... " >&6; }
7653if ${lt_cv_objdir+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  rm -f .libs 2>/dev/null
7657mkdir .libs 2>/dev/null
7658if test -d .libs; then
7659  lt_cv_objdir=.libs
7660else
7661  # MS-DOS does not allow filenames that begin with a dot.
7662  lt_cv_objdir=_libs
7663fi
7664rmdir .libs 2>/dev/null
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7667$as_echo "$lt_cv_objdir" >&6; }
7668objdir=$lt_cv_objdir
7669
7670
7671
7672
7673
7674cat >>confdefs.h <<_ACEOF
7675#define LT_OBJDIR "$lt_cv_objdir/"
7676_ACEOF
7677
7678
7679
7680
7681case $host_os in
7682aix3*)
7683  # AIX sometimes has problems with the GCC collect2 program.  For some
7684  # reason, if we set the COLLECT_NAMES environment variable, the problems
7685  # vanish in a puff of smoke.
7686  if test "X${COLLECT_NAMES+set}" != Xset; then
7687    COLLECT_NAMES=
7688    export COLLECT_NAMES
7689  fi
7690  ;;
7691esac
7692
7693# Global variables:
7694ofile=libtool
7695can_build_shared=yes
7696
7697# All known linkers require a `.a' archive for static linking (except MSVC,
7698# which needs '.lib').
7699libext=a
7700
7701with_gnu_ld="$lt_cv_prog_gnu_ld"
7702
7703old_CC="$CC"
7704old_CFLAGS="$CFLAGS"
7705
7706# Set sane defaults for various variables
7707test -z "$CC" && CC=cc
7708test -z "$LTCC" && LTCC=$CC
7709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7710test -z "$LD" && LD=ld
7711test -z "$ac_objext" && ac_objext=o
7712
7713for cc_temp in $compiler""; do
7714  case $cc_temp in
7715    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7716    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7717    \-*) ;;
7718    *) break;;
7719  esac
7720done
7721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7722
7723
7724# Only perform the check for file, if the check method requires it
7725test -z "$MAGIC_CMD" && MAGIC_CMD=file
7726case $deplibs_check_method in
7727file_magic*)
7728  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7731if ${lt_cv_path_MAGIC_CMD+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  case $MAGIC_CMD in
7735[\\/*] |  ?:[\\/]*)
7736  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7737  ;;
7738*)
7739  lt_save_MAGIC_CMD="$MAGIC_CMD"
7740  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7741  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7742  for ac_dir in $ac_dummy; do
7743    IFS="$lt_save_ifs"
7744    test -z "$ac_dir" && ac_dir=.
7745    if test -f $ac_dir/${ac_tool_prefix}file; then
7746      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7747      if test -n "$file_magic_test_file"; then
7748	case $deplibs_check_method in
7749	"file_magic "*)
7750	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7751	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7753	    $EGREP "$file_magic_regex" > /dev/null; then
7754	    :
7755	  else
7756	    cat <<_LT_EOF 1>&2
7757
7758*** Warning: the command libtool uses to detect shared libraries,
7759*** $file_magic_cmd, produces output that libtool cannot recognize.
7760*** The result is that libtool may fail to recognize shared libraries
7761*** as such.  This will affect the creation of libtool libraries that
7762*** depend on shared libraries, but programs linked with such libtool
7763*** libraries will work regardless of this problem.  Nevertheless, you
7764*** may want to report the problem to your system manager and/or to
7765*** bug-libtool@gnu.org
7766
7767_LT_EOF
7768	  fi ;;
7769	esac
7770      fi
7771      break
7772    fi
7773  done
7774  IFS="$lt_save_ifs"
7775  MAGIC_CMD="$lt_save_MAGIC_CMD"
7776  ;;
7777esac
7778fi
7779
7780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7781if test -n "$MAGIC_CMD"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7783$as_echo "$MAGIC_CMD" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789
7790
7791
7792
7793if test -z "$lt_cv_path_MAGIC_CMD"; then
7794  if test -n "$ac_tool_prefix"; then
7795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7796$as_echo_n "checking for file... " >&6; }
7797if ${lt_cv_path_MAGIC_CMD+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  case $MAGIC_CMD in
7801[\\/*] |  ?:[\\/]*)
7802  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7803  ;;
7804*)
7805  lt_save_MAGIC_CMD="$MAGIC_CMD"
7806  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7807  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7808  for ac_dir in $ac_dummy; do
7809    IFS="$lt_save_ifs"
7810    test -z "$ac_dir" && ac_dir=.
7811    if test -f $ac_dir/file; then
7812      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7813      if test -n "$file_magic_test_file"; then
7814	case $deplibs_check_method in
7815	"file_magic "*)
7816	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7817	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7819	    $EGREP "$file_magic_regex" > /dev/null; then
7820	    :
7821	  else
7822	    cat <<_LT_EOF 1>&2
7823
7824*** Warning: the command libtool uses to detect shared libraries,
7825*** $file_magic_cmd, produces output that libtool cannot recognize.
7826*** The result is that libtool may fail to recognize shared libraries
7827*** as such.  This will affect the creation of libtool libraries that
7828*** depend on shared libraries, but programs linked with such libtool
7829*** libraries will work regardless of this problem.  Nevertheless, you
7830*** may want to report the problem to your system manager and/or to
7831*** bug-libtool@gnu.org
7832
7833_LT_EOF
7834	  fi ;;
7835	esac
7836      fi
7837      break
7838    fi
7839  done
7840  IFS="$lt_save_ifs"
7841  MAGIC_CMD="$lt_save_MAGIC_CMD"
7842  ;;
7843esac
7844fi
7845
7846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7847if test -n "$MAGIC_CMD"; then
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7849$as_echo "$MAGIC_CMD" >&6; }
7850else
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855
7856  else
7857    MAGIC_CMD=:
7858  fi
7859fi
7860
7861  fi
7862  ;;
7863esac
7864
7865# Use C for the default configuration in the libtool script
7866
7867lt_save_CC="$CC"
7868ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874
7875# Source file extension for C test sources.
7876ac_ext=c
7877
7878# Object file extension for compiled C test sources.
7879objext=o
7880objext=$objext
7881
7882# Code to be used in simple compile tests
7883lt_simple_compile_test_code="int some_variable = 0;"
7884
7885# Code to be used in simple link tests
7886lt_simple_link_test_code='int main(){return(0);}'
7887
7888
7889
7890
7891
7892
7893
7894# If no C compiler was specified, use CC.
7895LTCC=${LTCC-"$CC"}
7896
7897# If no C compiler flags were specified, use CFLAGS.
7898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7899
7900# Allow CC to be a program name with arguments.
7901compiler=$CC
7902
7903# Save the default compiler, since it gets overwritten when the other
7904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7905compiler_DEFAULT=$CC
7906
7907# save warnings/boilerplate of simple test code
7908ac_outfile=conftest.$ac_objext
7909echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7911_lt_compiler_boilerplate=`cat conftest.err`
7912$RM conftest*
7913
7914ac_outfile=conftest.$ac_objext
7915echo "$lt_simple_link_test_code" >conftest.$ac_ext
7916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7917_lt_linker_boilerplate=`cat conftest.err`
7918$RM -r conftest*
7919
7920
7921if test -n "$compiler"; then
7922
7923lt_prog_compiler_no_builtin_flag=
7924
7925if test "$GCC" = yes; then
7926  case $cc_basename in
7927  nvcc*)
7928    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7929  *)
7930    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7931  esac
7932
7933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7934$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7935if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  lt_cv_prog_compiler_rtti_exceptions=no
7939   ac_outfile=conftest.$ac_objext
7940   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7941   lt_compiler_flag="-fno-rtti -fno-exceptions"
7942   # Insert the option either (1) after the last *FLAGS variable, or
7943   # (2) before a word containing "conftest.", or (3) at the end.
7944   # Note that $ac_compile itself does not contain backslashes and begins
7945   # with a dollar sign (not a hyphen), so the echo should work correctly.
7946   # The option is referenced via a variable to avoid confusing sed.
7947   lt_compile=`echo "$ac_compile" | $SED \
7948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950   -e 's:$: $lt_compiler_flag:'`
7951   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7952   (eval "$lt_compile" 2>conftest.err)
7953   ac_status=$?
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   if (exit $ac_status) && test -s "$ac_outfile"; then
7957     # The compiler can only warn and ignore the option if not recognized
7958     # So say no if there are warnings other than the usual output.
7959     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7960     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7962       lt_cv_prog_compiler_rtti_exceptions=yes
7963     fi
7964   fi
7965   $RM conftest*
7966
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7969$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7970
7971if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7972    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7973else
7974    :
7975fi
7976
7977fi
7978
7979
7980
7981
7982
7983
7984  lt_prog_compiler_wl=
7985lt_prog_compiler_pic=
7986lt_prog_compiler_static=
7987
7988
7989  if test "$GCC" = yes; then
7990    lt_prog_compiler_wl='-Wl,'
7991    lt_prog_compiler_static='-static'
7992
7993    case $host_os in
7994      aix*)
7995      # All AIX code is PIC.
7996      if test "$host_cpu" = ia64; then
7997	# AIX 5 now supports IA64 processor
7998	lt_prog_compiler_static='-Bstatic'
7999      fi
8000      ;;
8001
8002    amigaos*)
8003      case $host_cpu in
8004      powerpc)
8005            # see comment about AmigaOS4 .so support
8006            lt_prog_compiler_pic='-fPIC'
8007        ;;
8008      m68k)
8009            # FIXME: we need at least 68020 code to build shared libraries, but
8010            # adding the `-m68020' flag to GCC prevents building anything better,
8011            # like `-m68040'.
8012            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8013        ;;
8014      esac
8015      ;;
8016
8017    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8018      # PIC is the default for these OSes.
8019      ;;
8020
8021    mingw* | cygwin* | pw32* | os2* | cegcc*)
8022      # This hack is so that the source file can tell whether it is being
8023      # built for inclusion in a dll (and should export symbols for example).
8024      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8025      # (--disable-auto-import) libraries
8026      lt_prog_compiler_pic='-DDLL_EXPORT'
8027      ;;
8028
8029    darwin* | rhapsody*)
8030      # PIC is the default on this platform
8031      # Common symbols not allowed in MH_DYLIB files
8032      lt_prog_compiler_pic='-fno-common'
8033      ;;
8034
8035    haiku*)
8036      # PIC is the default for Haiku.
8037      # The "-static" flag exists, but is broken.
8038      lt_prog_compiler_static=
8039      ;;
8040
8041    hpux*)
8042      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8043      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8044      # sets the default TLS model and affects inlining.
8045      case $host_cpu in
8046      hppa*64*)
8047	# +Z the default
8048	;;
8049      *)
8050	lt_prog_compiler_pic='-fPIC'
8051	;;
8052      esac
8053      ;;
8054
8055    interix[3-9]*)
8056      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8057      # Instead, we relocate shared libraries at runtime.
8058      ;;
8059
8060    msdosdjgpp*)
8061      # Just because we use GCC doesn't mean we suddenly get shared libraries
8062      # on systems that don't support them.
8063      lt_prog_compiler_can_build_shared=no
8064      enable_shared=no
8065      ;;
8066
8067    *nto* | *qnx*)
8068      # QNX uses GNU C++, but need to define -shared option too, otherwise
8069      # it will coredump.
8070      lt_prog_compiler_pic='-fPIC -shared'
8071      ;;
8072
8073    sysv4*MP*)
8074      if test -d /usr/nec; then
8075	lt_prog_compiler_pic=-Kconform_pic
8076      fi
8077      ;;
8078
8079    *)
8080      lt_prog_compiler_pic='-fPIC'
8081      ;;
8082    esac
8083
8084    case $cc_basename in
8085    nvcc*) # Cuda Compiler Driver 2.2
8086      lt_prog_compiler_wl='-Xlinker '
8087      if test -n "$lt_prog_compiler_pic"; then
8088        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8089      fi
8090      ;;
8091    esac
8092  else
8093    # PORTME Check for flag to pass linker flags through the system compiler.
8094    case $host_os in
8095    aix*)
8096      lt_prog_compiler_wl='-Wl,'
8097      if test "$host_cpu" = ia64; then
8098	# AIX 5 now supports IA64 processor
8099	lt_prog_compiler_static='-Bstatic'
8100      else
8101	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8102      fi
8103      ;;
8104
8105    mingw* | cygwin* | pw32* | os2* | cegcc*)
8106      # This hack is so that the source file can tell whether it is being
8107      # built for inclusion in a dll (and should export symbols for example).
8108      lt_prog_compiler_pic='-DDLL_EXPORT'
8109      ;;
8110
8111    hpux9* | hpux10* | hpux11*)
8112      lt_prog_compiler_wl='-Wl,'
8113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8114      # not for PA HP-UX.
8115      case $host_cpu in
8116      hppa*64*|ia64*)
8117	# +Z the default
8118	;;
8119      *)
8120	lt_prog_compiler_pic='+Z'
8121	;;
8122      esac
8123      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8124      lt_prog_compiler_static='${wl}-a ${wl}archive'
8125      ;;
8126
8127    irix5* | irix6* | nonstopux*)
8128      lt_prog_compiler_wl='-Wl,'
8129      # PIC (with -KPIC) is the default.
8130      lt_prog_compiler_static='-non_shared'
8131      ;;
8132
8133    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8134      case $cc_basename in
8135      # old Intel for x86_64 which still supported -KPIC.
8136      ecc*)
8137	lt_prog_compiler_wl='-Wl,'
8138	lt_prog_compiler_pic='-KPIC'
8139	lt_prog_compiler_static='-static'
8140        ;;
8141      # icc used to be incompatible with GCC.
8142      # ICC 10 doesn't accept -KPIC any more.
8143      icc* | ifort*)
8144	lt_prog_compiler_wl='-Wl,'
8145	lt_prog_compiler_pic='-fPIC'
8146	lt_prog_compiler_static='-static'
8147        ;;
8148      # Lahey Fortran 8.1.
8149      lf95*)
8150	lt_prog_compiler_wl='-Wl,'
8151	lt_prog_compiler_pic='--shared'
8152	lt_prog_compiler_static='--static'
8153	;;
8154      nagfor*)
8155	# NAG Fortran compiler
8156	lt_prog_compiler_wl='-Wl,-Wl,,'
8157	lt_prog_compiler_pic='-PIC'
8158	lt_prog_compiler_static='-Bstatic'
8159	;;
8160      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8161        # Portland Group compilers (*not* the Pentium gcc compiler,
8162	# which looks to be a dead project)
8163	lt_prog_compiler_wl='-Wl,'
8164	lt_prog_compiler_pic='-fpic'
8165	lt_prog_compiler_static='-Bstatic'
8166        ;;
8167      ccc*)
8168        lt_prog_compiler_wl='-Wl,'
8169        # All Alpha code is PIC.
8170        lt_prog_compiler_static='-non_shared'
8171        ;;
8172      xl* | bgxl* | bgf* | mpixl*)
8173	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8174	lt_prog_compiler_wl='-Wl,'
8175	lt_prog_compiler_pic='-qpic'
8176	lt_prog_compiler_static='-qstaticlink'
8177	;;
8178      *)
8179	case `$CC -V 2>&1 | sed 5q` in
8180	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8181	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8182	  lt_prog_compiler_pic='-KPIC'
8183	  lt_prog_compiler_static='-Bstatic'
8184	  lt_prog_compiler_wl=''
8185	  ;;
8186	*Sun\ F* | *Sun*Fortran*)
8187	  lt_prog_compiler_pic='-KPIC'
8188	  lt_prog_compiler_static='-Bstatic'
8189	  lt_prog_compiler_wl='-Qoption ld '
8190	  ;;
8191	*Sun\ C*)
8192	  # Sun C 5.9
8193	  lt_prog_compiler_pic='-KPIC'
8194	  lt_prog_compiler_static='-Bstatic'
8195	  lt_prog_compiler_wl='-Wl,'
8196	  ;;
8197        *Intel*\ [CF]*Compiler*)
8198	  lt_prog_compiler_wl='-Wl,'
8199	  lt_prog_compiler_pic='-fPIC'
8200	  lt_prog_compiler_static='-static'
8201	  ;;
8202	*Portland\ Group*)
8203	  lt_prog_compiler_wl='-Wl,'
8204	  lt_prog_compiler_pic='-fpic'
8205	  lt_prog_compiler_static='-Bstatic'
8206	  ;;
8207	esac
8208	;;
8209      esac
8210      ;;
8211
8212    newsos6)
8213      lt_prog_compiler_pic='-KPIC'
8214      lt_prog_compiler_static='-Bstatic'
8215      ;;
8216
8217    *nto* | *qnx*)
8218      # QNX uses GNU C++, but need to define -shared option too, otherwise
8219      # it will coredump.
8220      lt_prog_compiler_pic='-fPIC -shared'
8221      ;;
8222
8223    osf3* | osf4* | osf5*)
8224      lt_prog_compiler_wl='-Wl,'
8225      # All OSF/1 code is PIC.
8226      lt_prog_compiler_static='-non_shared'
8227      ;;
8228
8229    rdos*)
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    solaris*)
8234      lt_prog_compiler_pic='-KPIC'
8235      lt_prog_compiler_static='-Bstatic'
8236      case $cc_basename in
8237      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8238	lt_prog_compiler_wl='-Qoption ld ';;
8239      *)
8240	lt_prog_compiler_wl='-Wl,';;
8241      esac
8242      ;;
8243
8244    sunos4*)
8245      lt_prog_compiler_wl='-Qoption ld '
8246      lt_prog_compiler_pic='-PIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4 | sysv4.2uw2* | sysv4.3*)
8251      lt_prog_compiler_wl='-Wl,'
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      ;;
8255
8256    sysv4*MP*)
8257      if test -d /usr/nec ;then
8258	lt_prog_compiler_pic='-Kconform_pic'
8259	lt_prog_compiler_static='-Bstatic'
8260      fi
8261      ;;
8262
8263    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_pic='-KPIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      ;;
8268
8269    unicos*)
8270      lt_prog_compiler_wl='-Wl,'
8271      lt_prog_compiler_can_build_shared=no
8272      ;;
8273
8274    uts4*)
8275      lt_prog_compiler_pic='-pic'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    *)
8280      lt_prog_compiler_can_build_shared=no
8281      ;;
8282    esac
8283  fi
8284
8285case $host_os in
8286  # For platforms which do not support PIC, -DPIC is meaningless:
8287  *djgpp*)
8288    lt_prog_compiler_pic=
8289    ;;
8290  *)
8291    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292    ;;
8293esac
8294
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8296$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8297if ${lt_cv_prog_compiler_pic+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8303$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8304lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8305
8306#
8307# Check to make sure the PIC flag actually works.
8308#
8309if test -n "$lt_prog_compiler_pic"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8311$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8312if ${lt_cv_prog_compiler_pic_works+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  lt_cv_prog_compiler_pic_works=no
8316   ac_outfile=conftest.$ac_objext
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8319   # Insert the option either (1) after the last *FLAGS variable, or
8320   # (2) before a word containing "conftest.", or (3) at the end.
8321   # Note that $ac_compile itself does not contain backslashes and begins
8322   # with a dollar sign (not a hyphen), so the echo should work correctly.
8323   # The option is referenced via a variable to avoid confusing sed.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>conftest.err)
8330   ac_status=$?
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s "$ac_outfile"; then
8334     # The compiler can only warn and ignore the option if not recognized
8335     # So say no if there are warnings other than the usual output.
8336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339       lt_cv_prog_compiler_pic_works=yes
8340     fi
8341   fi
8342   $RM conftest*
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8346$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8347
8348if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8349    case $lt_prog_compiler_pic in
8350     "" | " "*) ;;
8351     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8352     esac
8353else
8354    lt_prog_compiler_pic=
8355     lt_prog_compiler_can_build_shared=no
8356fi
8357
8358fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370#
8371# Check to make sure the static flag actually works.
8372#
8373wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8375$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8376if ${lt_cv_prog_compiler_static_works+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  lt_cv_prog_compiler_static_works=no
8380   save_LDFLAGS="$LDFLAGS"
8381   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8382   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8383   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8384     # The linker can only warn and ignore the option if not recognized
8385     # So say no if there are warnings
8386     if test -s conftest.err; then
8387       # Append any errors to the config.log.
8388       cat conftest.err 1>&5
8389       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8390       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8391       if diff conftest.exp conftest.er2 >/dev/null; then
8392         lt_cv_prog_compiler_static_works=yes
8393       fi
8394     else
8395       lt_cv_prog_compiler_static_works=yes
8396     fi
8397   fi
8398   $RM -r conftest*
8399   LDFLAGS="$save_LDFLAGS"
8400
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8403$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8404
8405if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8406    :
8407else
8408    lt_prog_compiler_static=
8409fi
8410
8411
8412
8413
8414
8415
8416
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8419if ${lt_cv_prog_compiler_c_o+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  lt_cv_prog_compiler_c_o=no
8423   $RM -r conftest 2>/dev/null
8424   mkdir conftest
8425   cd conftest
8426   mkdir out
8427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
8429   lt_compiler_flag="-o out/conftest2.$ac_objext"
8430   # Insert the option either (1) after the last *FLAGS variable, or
8431   # (2) before a word containing "conftest.", or (3) at the end.
8432   # Note that $ac_compile itself does not contain backslashes and begins
8433   # with a dollar sign (not a hyphen), so the echo should work correctly.
8434   lt_compile=`echo "$ac_compile" | $SED \
8435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437   -e 's:$: $lt_compiler_flag:'`
8438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439   (eval "$lt_compile" 2>out/conftest.err)
8440   ac_status=$?
8441   cat out/conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8444   then
8445     # The compiler can only warn and ignore the option if not recognized
8446     # So say no if there are warnings
8447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8450       lt_cv_prog_compiler_c_o=yes
8451     fi
8452   fi
8453   chmod u+w . 2>&5
8454   $RM conftest*
8455   # SGI C++ compiler will create directory out/ii_files/ for
8456   # template instantiation
8457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8458   $RM out/* && rmdir out
8459   cd ..
8460   $RM -r conftest
8461   $RM conftest*
8462
8463fi
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8466
8467
8468
8469
8470
8471
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8473$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8474if ${lt_cv_prog_compiler_c_o+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  lt_cv_prog_compiler_c_o=no
8478   $RM -r conftest 2>/dev/null
8479   mkdir conftest
8480   cd conftest
8481   mkdir out
8482   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483
8484   lt_compiler_flag="-o out/conftest2.$ac_objext"
8485   # Insert the option either (1) after the last *FLAGS variable, or
8486   # (2) before a word containing "conftest.", or (3) at the end.
8487   # Note that $ac_compile itself does not contain backslashes and begins
8488   # with a dollar sign (not a hyphen), so the echo should work correctly.
8489   lt_compile=`echo "$ac_compile" | $SED \
8490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492   -e 's:$: $lt_compiler_flag:'`
8493   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494   (eval "$lt_compile" 2>out/conftest.err)
8495   ac_status=$?
8496   cat out/conftest.err >&5
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8499   then
8500     # The compiler can only warn and ignore the option if not recognized
8501     # So say no if there are warnings
8502     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8503     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8504     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8505       lt_cv_prog_compiler_c_o=yes
8506     fi
8507   fi
8508   chmod u+w . 2>&5
8509   $RM conftest*
8510   # SGI C++ compiler will create directory out/ii_files/ for
8511   # template instantiation
8512   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8513   $RM out/* && rmdir out
8514   cd ..
8515   $RM -r conftest
8516   $RM conftest*
8517
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8520$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8521
8522
8523
8524
8525hard_links="nottested"
8526if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8527  # do not overwrite the value of need_locks provided by the user
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8529$as_echo_n "checking if we can lock with hard links... " >&6; }
8530  hard_links=yes
8531  $RM conftest*
8532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8533  touch conftest.a
8534  ln conftest.a conftest.b 2>&5 || hard_links=no
8535  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8537$as_echo "$hard_links" >&6; }
8538  if test "$hard_links" = no; then
8539    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8540$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8541    need_locks=warn
8542  fi
8543else
8544  need_locks=no
8545fi
8546
8547
8548
8549
8550
8551
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8553$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8554
8555  runpath_var=
8556  allow_undefined_flag=
8557  always_export_symbols=no
8558  archive_cmds=
8559  archive_expsym_cmds=
8560  compiler_needs_object=no
8561  enable_shared_with_static_runtimes=no
8562  export_dynamic_flag_spec=
8563  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8564  hardcode_automatic=no
8565  hardcode_direct=no
8566  hardcode_direct_absolute=no
8567  hardcode_libdir_flag_spec=
8568  hardcode_libdir_separator=
8569  hardcode_minus_L=no
8570  hardcode_shlibpath_var=unsupported
8571  inherit_rpath=no
8572  link_all_deplibs=unknown
8573  module_cmds=
8574  module_expsym_cmds=
8575  old_archive_from_new_cmds=
8576  old_archive_from_expsyms_cmds=
8577  thread_safe_flag_spec=
8578  whole_archive_flag_spec=
8579  # include_expsyms should be a list of space-separated symbols to be *always*
8580  # included in the symbol list
8581  include_expsyms=
8582  # exclude_expsyms can be an extended regexp of symbols to exclude
8583  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8584  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8585  # as well as any symbol that contains `d'.
8586  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8587  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8588  # platforms (ab)use it in PIC code, but their linkers get confused if
8589  # the symbol is explicitly referenced.  Since portable code cannot
8590  # rely on this symbol name, it's probably fine to never include it in
8591  # preloaded symbol tables.
8592  # Exclude shared library initialization/finalization symbols.
8593  extract_expsyms_cmds=
8594
8595  case $host_os in
8596  cygwin* | mingw* | pw32* | cegcc*)
8597    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8598    # When not using gcc, we currently assume that we are using
8599    # Microsoft Visual C++.
8600    if test "$GCC" != yes; then
8601      with_gnu_ld=no
8602    fi
8603    ;;
8604  interix*)
8605    # we just hope/assume this is gcc and not c89 (= MSVC++)
8606    with_gnu_ld=yes
8607    ;;
8608  openbsd*)
8609    with_gnu_ld=no
8610    ;;
8611  esac
8612
8613  ld_shlibs=yes
8614
8615  # On some targets, GNU ld is compatible enough with the native linker
8616  # that we're better off using the native interface for both.
8617  lt_use_gnu_ld_interface=no
8618  if test "$with_gnu_ld" = yes; then
8619    case $host_os in
8620      aix*)
8621	# The AIX port of GNU ld has always aspired to compatibility
8622	# with the native linker.  However, as the warning in the GNU ld
8623	# block says, versions before 2.19.5* couldn't really create working
8624	# shared libraries, regardless of the interface used.
8625	case `$LD -v 2>&1` in
8626	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8627	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8628	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8629	  *)
8630	    lt_use_gnu_ld_interface=yes
8631	    ;;
8632	esac
8633	;;
8634      *)
8635	lt_use_gnu_ld_interface=yes
8636	;;
8637    esac
8638  fi
8639
8640  if test "$lt_use_gnu_ld_interface" = yes; then
8641    # If archive_cmds runs LD, not CC, wlarc should be empty
8642    wlarc='${wl}'
8643
8644    # Set some defaults for GNU ld with shared library support. These
8645    # are reset later if shared libraries are not supported. Putting them
8646    # here allows them to be overridden if necessary.
8647    runpath_var=LD_RUN_PATH
8648    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649    export_dynamic_flag_spec='${wl}--export-dynamic'
8650    # ancient GNU ld didn't support --whole-archive et. al.
8651    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8652      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8653    else
8654      whole_archive_flag_spec=
8655    fi
8656    supports_anon_versioning=no
8657    case `$LD -v 2>&1` in
8658      *GNU\ gold*) supports_anon_versioning=yes ;;
8659      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8660      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8661      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8662      *\ 2.11.*) ;; # other 2.11 versions
8663      *) supports_anon_versioning=yes ;;
8664    esac
8665
8666    # See if GNU ld supports shared libraries.
8667    case $host_os in
8668    aix[3-9]*)
8669      # On AIX/PPC, the GNU linker is very broken
8670      if test "$host_cpu" != ia64; then
8671	ld_shlibs=no
8672	cat <<_LT_EOF 1>&2
8673
8674*** Warning: the GNU linker, at least up to release 2.19, is reported
8675*** to be unable to reliably create shared libraries on AIX.
8676*** Therefore, libtool is disabling shared libraries support.  If you
8677*** really care for shared libraries, you may want to install binutils
8678*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8679*** You will then need to restart the configuration process.
8680
8681_LT_EOF
8682      fi
8683      ;;
8684
8685    amigaos*)
8686      case $host_cpu in
8687      powerpc)
8688            # see comment about AmigaOS4 .so support
8689            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690            archive_expsym_cmds=''
8691        ;;
8692      m68k)
8693            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)'
8694            hardcode_libdir_flag_spec='-L$libdir'
8695            hardcode_minus_L=yes
8696        ;;
8697      esac
8698      ;;
8699
8700    beos*)
8701      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8702	allow_undefined_flag=unsupported
8703	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8704	# support --undefined.  This deserves some investigation.  FIXME
8705	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706      else
8707	ld_shlibs=no
8708      fi
8709      ;;
8710
8711    cygwin* | mingw* | pw32* | cegcc*)
8712      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8713      # as there is no search path for DLLs.
8714      hardcode_libdir_flag_spec='-L$libdir'
8715      export_dynamic_flag_spec='${wl}--export-all-symbols'
8716      allow_undefined_flag=unsupported
8717      always_export_symbols=no
8718      enable_shared_with_static_runtimes=yes
8719      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'
8720      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8721
8722      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8723        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724	# If the export-symbols file already is a .def file (1st line
8725	# is EXPORTS), use it as is; otherwise, prepend...
8726	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727	  cp $export_symbols $output_objdir/$soname.def;
8728	else
8729	  echo EXPORTS > $output_objdir/$soname.def;
8730	  cat $export_symbols >> $output_objdir/$soname.def;
8731	fi~
8732	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8733      else
8734	ld_shlibs=no
8735      fi
8736      ;;
8737
8738    haiku*)
8739      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740      link_all_deplibs=yes
8741      ;;
8742
8743    interix[3-9]*)
8744      hardcode_direct=no
8745      hardcode_shlibpath_var=no
8746      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8747      export_dynamic_flag_spec='${wl}-E'
8748      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8749      # Instead, shared libraries are loaded at an image base (0x10000000 by
8750      # default) and relocated if they conflict, which is a slow very memory
8751      # consuming and fragmenting process.  To avoid this, we pick a random,
8752      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8753      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8754      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8755      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'
8756      ;;
8757
8758    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8759      tmp_diet=no
8760      if test "$host_os" = linux-dietlibc; then
8761	case $cc_basename in
8762	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8763	esac
8764      fi
8765      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8766	 && test "$tmp_diet" = no
8767      then
8768	tmp_addflag=' $pic_flag'
8769	tmp_sharedflag='-shared'
8770	case $cc_basename,$host_cpu in
8771        pgcc*)				# Portland Group C compiler
8772	  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'
8773	  tmp_addflag=' $pic_flag'
8774	  ;;
8775	pgf77* | pgf90* | pgf95* | pgfortran*)
8776					# Portland Group f77 and f90 compilers
8777	  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'
8778	  tmp_addflag=' $pic_flag -Mnomain' ;;
8779	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8780	  tmp_addflag=' -i_dynamic' ;;
8781	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8782	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8783	ifc* | ifort*)			# Intel Fortran compiler
8784	  tmp_addflag=' -nofor_main' ;;
8785	lf95*)				# Lahey Fortran 8.1
8786	  whole_archive_flag_spec=
8787	  tmp_sharedflag='--shared' ;;
8788	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8789	  tmp_sharedflag='-qmkshrobj'
8790	  tmp_addflag= ;;
8791	nvcc*)	# Cuda Compiler Driver 2.2
8792	  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'
8793	  compiler_needs_object=yes
8794	  ;;
8795	esac
8796	case `$CC -V 2>&1 | sed 5q` in
8797	*Sun\ C*)			# Sun C 5.9
8798	  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'
8799	  compiler_needs_object=yes
8800	  tmp_sharedflag='-G' ;;
8801	*Sun\ F*)			# Sun Fortran 8.3
8802	  tmp_sharedflag='-G' ;;
8803	esac
8804	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805
8806        if test "x$supports_anon_versioning" = xyes; then
8807          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8808	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8809	    echo "local: *; };" >> $output_objdir/$libname.ver~
8810	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8811        fi
8812
8813	case $cc_basename in
8814	xlf* | bgf* | bgxlf* | mpixlf*)
8815	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8816	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8817	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8819	  if test "x$supports_anon_versioning" = xyes; then
8820	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8821	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8822	      echo "local: *; };" >> $output_objdir/$libname.ver~
8823	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8824	  fi
8825	  ;;
8826	esac
8827      else
8828        ld_shlibs=no
8829      fi
8830      ;;
8831
8832    netbsd*)
8833      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8834	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8835	wlarc=
8836      else
8837	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8839      fi
8840      ;;
8841
8842    solaris*)
8843      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8844	ld_shlibs=no
8845	cat <<_LT_EOF 1>&2
8846
8847*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8848*** create shared libraries on Solaris systems.  Therefore, libtool
8849*** is disabling shared libraries support.  We urge you to upgrade GNU
8850*** binutils to release 2.9.1 or newer.  Another option is to modify
8851*** your PATH or compiler configuration so that the native linker is
8852*** used, and then restart.
8853
8854_LT_EOF
8855      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858      else
8859	ld_shlibs=no
8860      fi
8861      ;;
8862
8863    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8864      case `$LD -v 2>&1` in
8865        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8866	ld_shlibs=no
8867	cat <<_LT_EOF 1>&2
8868
8869*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8870*** reliably create shared libraries on SCO systems.  Therefore, libtool
8871*** is disabling shared libraries support.  We urge you to upgrade GNU
8872*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8873*** your PATH or compiler configuration so that the native linker is
8874*** used, and then restart.
8875
8876_LT_EOF
8877	;;
8878	*)
8879	  # For security reasons, it is highly recommended that you always
8880	  # use absolute paths for naming shared libraries, and exclude the
8881	  # DT_RUNPATH tag from executables and libraries.  But doing so
8882	  # requires that you compile everything twice, which is a pain.
8883	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8884	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887	  else
8888	    ld_shlibs=no
8889	  fi
8890	;;
8891      esac
8892      ;;
8893
8894    sunos4*)
8895      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8896      wlarc=
8897      hardcode_direct=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    *)
8902      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8903	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8905      else
8906	ld_shlibs=no
8907      fi
8908      ;;
8909    esac
8910
8911    if test "$ld_shlibs" = no; then
8912      runpath_var=
8913      hardcode_libdir_flag_spec=
8914      export_dynamic_flag_spec=
8915      whole_archive_flag_spec=
8916    fi
8917  else
8918    # PORTME fill in a description of your system's linker (not GNU ld)
8919    case $host_os in
8920    aix3*)
8921      allow_undefined_flag=unsupported
8922      always_export_symbols=yes
8923      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'
8924      # Note: this linker hardcodes the directories in LIBPATH if there
8925      # are no directories specified by -L.
8926      hardcode_minus_L=yes
8927      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8928	# Neither direct hardcoding nor static linking is supported with a
8929	# broken collect2.
8930	hardcode_direct=unsupported
8931      fi
8932      ;;
8933
8934    aix[4-9]*)
8935      if test "$host_cpu" = ia64; then
8936	# On IA64, the linker does run time linking by default, so we don't
8937	# have to do anything special.
8938	aix_use_runtimelinking=no
8939	exp_sym_flag='-Bexport'
8940	no_entry_flag=""
8941      else
8942	# If we're using GNU nm, then we don't want the "-C" option.
8943	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8944	# Also, AIX nm treats weak defined symbols like other global
8945	# defined symbols, whereas GNU nm marks them as "W".
8946	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8947	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8948	else
8949	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8950	fi
8951	aix_use_runtimelinking=no
8952
8953	# Test if we are trying to use run time linking or normal
8954	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8955	# need to do runtime linking.
8956	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8957	  for ld_flag in $LDFLAGS; do
8958	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8959	    aix_use_runtimelinking=yes
8960	    break
8961	  fi
8962	  done
8963	  ;;
8964	esac
8965
8966	exp_sym_flag='-bexport'
8967	no_entry_flag='-bnoentry'
8968      fi
8969
8970      # When large executables or shared objects are built, AIX ld can
8971      # have problems creating the table of contents.  If linking a library
8972      # or program results in "error TOC overflow" add -mminimal-toc to
8973      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8974      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8975
8976      archive_cmds=''
8977      hardcode_direct=yes
8978      hardcode_direct_absolute=yes
8979      hardcode_libdir_separator=':'
8980      link_all_deplibs=yes
8981      file_list_spec='${wl}-f,'
8982
8983      if test "$GCC" = yes; then
8984	case $host_os in aix4.[012]|aix4.[012].*)
8985	# We only want to do this on AIX 4.2 and lower, the check
8986	# below for broken collect2 doesn't work under 4.3+
8987	  collect2name=`${CC} -print-prog-name=collect2`
8988	  if test -f "$collect2name" &&
8989	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8990	  then
8991	  # We have reworked collect2
8992	  :
8993	  else
8994	  # We have old collect2
8995	  hardcode_direct=unsupported
8996	  # It fails to find uninstalled libraries when the uninstalled
8997	  # path is not listed in the libpath.  Setting hardcode_minus_L
8998	  # to unsupported forces relinking
8999	  hardcode_minus_L=yes
9000	  hardcode_libdir_flag_spec='-L$libdir'
9001	  hardcode_libdir_separator=
9002	  fi
9003	  ;;
9004	esac
9005	shared_flag='-shared'
9006	if test "$aix_use_runtimelinking" = yes; then
9007	  shared_flag="$shared_flag "'${wl}-G'
9008	fi
9009      else
9010	# not using gcc
9011	if test "$host_cpu" = ia64; then
9012	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9013	# chokes on -Wl,-G. The following line is correct:
9014	  shared_flag='-G'
9015	else
9016	  if test "$aix_use_runtimelinking" = yes; then
9017	    shared_flag='${wl}-G'
9018	  else
9019	    shared_flag='${wl}-bM:SRE'
9020	  fi
9021	fi
9022      fi
9023
9024      export_dynamic_flag_spec='${wl}-bexpall'
9025      # It seems that -bexpall does not export symbols beginning with
9026      # underscore (_), so it is better to generate a list of symbols to export.
9027      always_export_symbols=yes
9028      if test "$aix_use_runtimelinking" = yes; then
9029	# Warning - without using the other runtime loading flags (-brtl),
9030	# -berok will link without error, but may produce a broken library.
9031	allow_undefined_flag='-berok'
9032        # Determine the default libpath from the value encoded in an
9033        # empty executable.
9034        if test "${lt_cv_aix_libpath+set}" = set; then
9035  aix_libpath=$lt_cv_aix_libpath
9036else
9037  if ${lt_cv_aix_libpath_+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042
9043int
9044main ()
9045{
9046
9047  ;
9048  return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"; then :
9052
9053  lt_aix_libpath_sed='
9054      /Import File Strings/,/^$/ {
9055	  /^0/ {
9056	      s/^0  *\([^ ]*\) *$/\1/
9057	      p
9058	  }
9059      }'
9060  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9061  # Check for a 64-bit object if we didn't find anything.
9062  if test -z "$lt_cv_aix_libpath_"; then
9063    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064  fi
9065fi
9066rm -f core conftest.err conftest.$ac_objext \
9067    conftest$ac_exeext conftest.$ac_ext
9068  if test -z "$lt_cv_aix_libpath_"; then
9069    lt_cv_aix_libpath_="/usr/lib:/lib"
9070  fi
9071
9072fi
9073
9074  aix_libpath=$lt_cv_aix_libpath_
9075fi
9076
9077        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9078        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9079      else
9080	if test "$host_cpu" = ia64; then
9081	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9082	  allow_undefined_flag="-z nodefs"
9083	  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"
9084	else
9085	 # Determine the default libpath from the value encoded in an
9086	 # empty executable.
9087	 if test "${lt_cv_aix_libpath+set}" = set; then
9088  aix_libpath=$lt_cv_aix_libpath
9089else
9090  if ${lt_cv_aix_libpath_+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095
9096int
9097main ()
9098{
9099
9100  ;
9101  return 0;
9102}
9103_ACEOF
9104if ac_fn_c_try_link "$LINENO"; then :
9105
9106  lt_aix_libpath_sed='
9107      /Import File Strings/,/^$/ {
9108	  /^0/ {
9109	      s/^0  *\([^ ]*\) *$/\1/
9110	      p
9111	  }
9112      }'
9113  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9114  # Check for a 64-bit object if we didn't find anything.
9115  if test -z "$lt_cv_aix_libpath_"; then
9116    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9117  fi
9118fi
9119rm -f core conftest.err conftest.$ac_objext \
9120    conftest$ac_exeext conftest.$ac_ext
9121  if test -z "$lt_cv_aix_libpath_"; then
9122    lt_cv_aix_libpath_="/usr/lib:/lib"
9123  fi
9124
9125fi
9126
9127  aix_libpath=$lt_cv_aix_libpath_
9128fi
9129
9130	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9131	  # Warning - without using the other run time loading flags,
9132	  # -berok will link without error, but may produce a broken library.
9133	  no_undefined_flag=' ${wl}-bernotok'
9134	  allow_undefined_flag=' ${wl}-berok'
9135	  if test "$with_gnu_ld" = yes; then
9136	    # We only use this code for GNU lds that support --whole-archive.
9137	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9138	  else
9139	    # Exported symbols can be pulled into shared objects from archives
9140	    whole_archive_flag_spec='$convenience'
9141	  fi
9142	  archive_cmds_need_lc=yes
9143	  # This is similar to how AIX traditionally builds its shared libraries.
9144	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9145	fi
9146      fi
9147      ;;
9148
9149    amigaos*)
9150      case $host_cpu in
9151      powerpc)
9152            # see comment about AmigaOS4 .so support
9153            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154            archive_expsym_cmds=''
9155        ;;
9156      m68k)
9157            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)'
9158            hardcode_libdir_flag_spec='-L$libdir'
9159            hardcode_minus_L=yes
9160        ;;
9161      esac
9162      ;;
9163
9164    bsdi[45]*)
9165      export_dynamic_flag_spec=-rdynamic
9166      ;;
9167
9168    cygwin* | mingw* | pw32* | cegcc*)
9169      # When not using gcc, we currently assume that we are using
9170      # Microsoft Visual C++.
9171      # hardcode_libdir_flag_spec is actually meaningless, as there is
9172      # no search path for DLLs.
9173      case $cc_basename in
9174      cl*)
9175	# Native MSVC
9176	hardcode_libdir_flag_spec=' '
9177	allow_undefined_flag=unsupported
9178	always_export_symbols=yes
9179	file_list_spec='@'
9180	# Tell ltmain to make .lib files, not .a files.
9181	libext=lib
9182	# Tell ltmain to make .dll files, not .so files.
9183	shrext_cmds=".dll"
9184	# FIXME: Setting linknames here is a bad hack.
9185	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9186	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9187	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9188	  else
9189	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9190	  fi~
9191	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9192	  linknames='
9193	# The linker will not automatically build a static lib if we build a DLL.
9194	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9195	enable_shared_with_static_runtimes=yes
9196	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9197	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9198	# Don't use ranlib
9199	old_postinstall_cmds='chmod 644 $oldlib'
9200	postlink_cmds='lt_outputfile="@OUTPUT@"~
9201	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9202	  case $lt_outputfile in
9203	    *.exe|*.EXE) ;;
9204	    *)
9205	      lt_outputfile="$lt_outputfile.exe"
9206	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9207	      ;;
9208	  esac~
9209	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9210	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9211	    $RM "$lt_outputfile.manifest";
9212	  fi'
9213	;;
9214      *)
9215	# Assume MSVC wrapper
9216	hardcode_libdir_flag_spec=' '
9217	allow_undefined_flag=unsupported
9218	# Tell ltmain to make .lib files, not .a files.
9219	libext=lib
9220	# Tell ltmain to make .dll files, not .so files.
9221	shrext_cmds=".dll"
9222	# FIXME: Setting linknames here is a bad hack.
9223	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9224	# The linker will automatically build a .lib file if we build a DLL.
9225	old_archive_from_new_cmds='true'
9226	# FIXME: Should let the user specify the lib program.
9227	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9228	enable_shared_with_static_runtimes=yes
9229	;;
9230      esac
9231      ;;
9232
9233    darwin* | rhapsody*)
9234
9235
9236  archive_cmds_need_lc=no
9237  hardcode_direct=no
9238  hardcode_automatic=yes
9239  hardcode_shlibpath_var=unsupported
9240  if test "$lt_cv_ld_force_load" = "yes"; then
9241    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\"`'
9242
9243  else
9244    whole_archive_flag_spec=''
9245  fi
9246  link_all_deplibs=yes
9247  allow_undefined_flag="$_lt_dar_allow_undefined"
9248  case $cc_basename in
9249     ifort*) _lt_dar_can_shared=yes ;;
9250     *) _lt_dar_can_shared=$GCC ;;
9251  esac
9252  if test "$_lt_dar_can_shared" = "yes"; then
9253    output_verbose_link_cmd=func_echo_all
9254    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9255    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9256    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}"
9257    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}"
9258
9259  else
9260  ld_shlibs=no
9261  fi
9262
9263      ;;
9264
9265    dgux*)
9266      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267      hardcode_libdir_flag_spec='-L$libdir'
9268      hardcode_shlibpath_var=no
9269      ;;
9270
9271    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9272    # support.  Future versions do this automatically, but an explicit c++rt0.o
9273    # does not break anything, and helps significantly (at the cost of a little
9274    # extra space).
9275    freebsd2.2*)
9276      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9277      hardcode_libdir_flag_spec='-R$libdir'
9278      hardcode_direct=yes
9279      hardcode_shlibpath_var=no
9280      ;;
9281
9282    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9283    freebsd2.*)
9284      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285      hardcode_direct=yes
9286      hardcode_minus_L=yes
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9291    freebsd* | dragonfly*)
9292      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9293      hardcode_libdir_flag_spec='-R$libdir'
9294      hardcode_direct=yes
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    hpux9*)
9299      if test "$GCC" = yes; then
9300	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9301      else
9302	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9303      fi
9304      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9305      hardcode_libdir_separator=:
9306      hardcode_direct=yes
9307
9308      # hardcode_minus_L: Not really in the search PATH,
9309      # but as the default location of the library.
9310      hardcode_minus_L=yes
9311      export_dynamic_flag_spec='${wl}-E'
9312      ;;
9313
9314    hpux10*)
9315      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9316	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9317      else
9318	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9319      fi
9320      if test "$with_gnu_ld" = no; then
9321	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9322	hardcode_libdir_separator=:
9323	hardcode_direct=yes
9324	hardcode_direct_absolute=yes
9325	export_dynamic_flag_spec='${wl}-E'
9326	# hardcode_minus_L: Not really in the search PATH,
9327	# but as the default location of the library.
9328	hardcode_minus_L=yes
9329      fi
9330      ;;
9331
9332    hpux11*)
9333      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9334	case $host_cpu in
9335	hppa*64*)
9336	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337	  ;;
9338	ia64*)
9339	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9340	  ;;
9341	*)
9342	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9343	  ;;
9344	esac
9345      else
9346	case $host_cpu in
9347	hppa*64*)
9348	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9349	  ;;
9350	ia64*)
9351	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9352	  ;;
9353	*)
9354
9355	  # Older versions of the 11.00 compiler do not understand -b yet
9356	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9357	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9358$as_echo_n "checking if $CC understands -b... " >&6; }
9359if ${lt_cv_prog_compiler__b+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  lt_cv_prog_compiler__b=no
9363   save_LDFLAGS="$LDFLAGS"
9364   LDFLAGS="$LDFLAGS -b"
9365   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9366   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9367     # The linker can only warn and ignore the option if not recognized
9368     # So say no if there are warnings
9369     if test -s conftest.err; then
9370       # Append any errors to the config.log.
9371       cat conftest.err 1>&5
9372       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9373       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374       if diff conftest.exp conftest.er2 >/dev/null; then
9375         lt_cv_prog_compiler__b=yes
9376       fi
9377     else
9378       lt_cv_prog_compiler__b=yes
9379     fi
9380   fi
9381   $RM -r conftest*
9382   LDFLAGS="$save_LDFLAGS"
9383
9384fi
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9386$as_echo "$lt_cv_prog_compiler__b" >&6; }
9387
9388if test x"$lt_cv_prog_compiler__b" = xyes; then
9389    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390else
9391    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9392fi
9393
9394	  ;;
9395	esac
9396      fi
9397      if test "$with_gnu_ld" = no; then
9398	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9399	hardcode_libdir_separator=:
9400
9401	case $host_cpu in
9402	hppa*64*|ia64*)
9403	  hardcode_direct=no
9404	  hardcode_shlibpath_var=no
9405	  ;;
9406	*)
9407	  hardcode_direct=yes
9408	  hardcode_direct_absolute=yes
9409	  export_dynamic_flag_spec='${wl}-E'
9410
9411	  # hardcode_minus_L: Not really in the search PATH,
9412	  # but as the default location of the library.
9413	  hardcode_minus_L=yes
9414	  ;;
9415	esac
9416      fi
9417      ;;
9418
9419    irix5* | irix6* | nonstopux*)
9420      if test "$GCC" = yes; then
9421	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'
9422	# Try to use the -exported_symbol ld option, if it does not
9423	# work, assume that -exports_file does not work either and
9424	# implicitly export all symbols.
9425	# This should be the same for all languages, so no per-tag cache variable.
9426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9427$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9428if ${lt_cv_irix_exported_symbol+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  save_LDFLAGS="$LDFLAGS"
9432	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9433	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435int foo (void) { return 0; }
9436_ACEOF
9437if ac_fn_c_try_link "$LINENO"; then :
9438  lt_cv_irix_exported_symbol=yes
9439else
9440  lt_cv_irix_exported_symbol=no
9441fi
9442rm -f core conftest.err conftest.$ac_objext \
9443    conftest$ac_exeext conftest.$ac_ext
9444           LDFLAGS="$save_LDFLAGS"
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9447$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9448	if test "$lt_cv_irix_exported_symbol" = yes; then
9449          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'
9450	fi
9451      else
9452	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'
9453	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'
9454      fi
9455      archive_cmds_need_lc='no'
9456      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457      hardcode_libdir_separator=:
9458      inherit_rpath=yes
9459      link_all_deplibs=yes
9460      ;;
9461
9462    netbsd*)
9463      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9464	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9465      else
9466	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9467      fi
9468      hardcode_libdir_flag_spec='-R$libdir'
9469      hardcode_direct=yes
9470      hardcode_shlibpath_var=no
9471      ;;
9472
9473    newsos6)
9474      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475      hardcode_direct=yes
9476      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477      hardcode_libdir_separator=:
9478      hardcode_shlibpath_var=no
9479      ;;
9480
9481    *nto* | *qnx*)
9482      ;;
9483
9484    openbsd*)
9485      if test -f /usr/libexec/ld.so; then
9486	hardcode_direct=yes
9487	hardcode_shlibpath_var=no
9488	hardcode_direct_absolute=yes
9489	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9490	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9491	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9492	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9493	  export_dynamic_flag_spec='${wl}-E'
9494	else
9495	  case $host_os in
9496	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9497	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498	     hardcode_libdir_flag_spec='-R$libdir'
9499	     ;;
9500	   *)
9501	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9502	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9503	     ;;
9504	  esac
9505	fi
9506      else
9507	ld_shlibs=no
9508      fi
9509      ;;
9510
9511    os2*)
9512      hardcode_libdir_flag_spec='-L$libdir'
9513      hardcode_minus_L=yes
9514      allow_undefined_flag=unsupported
9515      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9516      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9517      ;;
9518
9519    osf3*)
9520      if test "$GCC" = yes; then
9521	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9522	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'
9523      else
9524	allow_undefined_flag=' -expect_unresolved \*'
9525	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'
9526      fi
9527      archive_cmds_need_lc='no'
9528      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529      hardcode_libdir_separator=:
9530      ;;
9531
9532    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9533      if test "$GCC" = yes; then
9534	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9535	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'
9536	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537      else
9538	allow_undefined_flag=' -expect_unresolved \*'
9539	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'
9540	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~
9541	$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'
9542
9543	# Both c and cxx compiler support -rpath directly
9544	hardcode_libdir_flag_spec='-rpath $libdir'
9545      fi
9546      archive_cmds_need_lc='no'
9547      hardcode_libdir_separator=:
9548      ;;
9549
9550    solaris*)
9551      no_undefined_flag=' -z defs'
9552      if test "$GCC" = yes; then
9553	wlarc='${wl}'
9554	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556	  $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'
9557      else
9558	case `$CC -V 2>&1` in
9559	*"Compilers 5.0"*)
9560	  wlarc=''
9561	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9563	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9564	  ;;
9565	*)
9566	  wlarc='${wl}'
9567	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9568	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9569	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9570	  ;;
9571	esac
9572      fi
9573      hardcode_libdir_flag_spec='-R$libdir'
9574      hardcode_shlibpath_var=no
9575      case $host_os in
9576      solaris2.[0-5] | solaris2.[0-5].*) ;;
9577      *)
9578	# The compiler driver will combine and reorder linker options,
9579	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9580	# but is careful enough not to reorder.
9581	# Supported since Solaris 2.6 (maybe 2.5.1?)
9582	if test "$GCC" = yes; then
9583	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9584	else
9585	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9586	fi
9587	;;
9588      esac
9589      link_all_deplibs=yes
9590      ;;
9591
9592    sunos4*)
9593      if test "x$host_vendor" = xsequent; then
9594	# Use $CC to link under sequent, because it throws in some extra .o
9595	# files that make .init and .fini sections work.
9596	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9597      else
9598	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9599      fi
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      hardcode_direct=yes
9602      hardcode_minus_L=yes
9603      hardcode_shlibpath_var=no
9604      ;;
9605
9606    sysv4)
9607      case $host_vendor in
9608	sni)
9609	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610	  hardcode_direct=yes # is this really true???
9611	;;
9612	siemens)
9613	  ## LD is ld it makes a PLAMLIB
9614	  ## CC just makes a GrossModule.
9615	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9616	  reload_cmds='$CC -r -o $output$reload_objs'
9617	  hardcode_direct=no
9618        ;;
9619	motorola)
9620	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9622	;;
9623      esac
9624      runpath_var='LD_RUN_PATH'
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    sysv4.3*)
9629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630      hardcode_shlibpath_var=no
9631      export_dynamic_flag_spec='-Bexport'
9632      ;;
9633
9634    sysv4*MP*)
9635      if test -d /usr/nec; then
9636	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637	hardcode_shlibpath_var=no
9638	runpath_var=LD_RUN_PATH
9639	hardcode_runpath_var=yes
9640	ld_shlibs=yes
9641      fi
9642      ;;
9643
9644    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9645      no_undefined_flag='${wl}-z,text'
9646      archive_cmds_need_lc=no
9647      hardcode_shlibpath_var=no
9648      runpath_var='LD_RUN_PATH'
9649
9650      if test "$GCC" = yes; then
9651	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653      else
9654	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656      fi
9657      ;;
9658
9659    sysv5* | sco3.2v5* | sco5v6*)
9660      # Note: We can NOT use -z defs as we might desire, because we do not
9661      # link with -lc, and that would cause any symbols used from libc to
9662      # always be unresolved, which means just about no library would
9663      # ever link correctly.  If we're not using GNU ld we use -z text
9664      # though, which does catch some bad symbols but isn't as heavy-handed
9665      # as -z defs.
9666      no_undefined_flag='${wl}-z,text'
9667      allow_undefined_flag='${wl}-z,nodefs'
9668      archive_cmds_need_lc=no
9669      hardcode_shlibpath_var=no
9670      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9671      hardcode_libdir_separator=':'
9672      link_all_deplibs=yes
9673      export_dynamic_flag_spec='${wl}-Bexport'
9674      runpath_var='LD_RUN_PATH'
9675
9676      if test "$GCC" = yes; then
9677	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679      else
9680	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682      fi
9683      ;;
9684
9685    uts4*)
9686      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687      hardcode_libdir_flag_spec='-L$libdir'
9688      hardcode_shlibpath_var=no
9689      ;;
9690
9691    *)
9692      ld_shlibs=no
9693      ;;
9694    esac
9695
9696    if test x$host_vendor = xsni; then
9697      case $host in
9698      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9699	export_dynamic_flag_spec='${wl}-Blargedynsym'
9700	;;
9701      esac
9702    fi
9703  fi
9704
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9706$as_echo "$ld_shlibs" >&6; }
9707test "$ld_shlibs" = no && can_build_shared=no
9708
9709with_gnu_ld=$with_gnu_ld
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725#
9726# Do we need to explicitly link libc?
9727#
9728case "x$archive_cmds_need_lc" in
9729x|xyes)
9730  # Assume -lc should be added
9731  archive_cmds_need_lc=yes
9732
9733  if test "$enable_shared" = yes && test "$GCC" = yes; then
9734    case $archive_cmds in
9735    *'~'*)
9736      # FIXME: we may have to deal with multi-command sequences.
9737      ;;
9738    '$CC '*)
9739      # Test whether the compiler implicitly links with -lc since on some
9740      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9741      # to ld, don't add -lc before -lgcc.
9742      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9743$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9744if ${lt_cv_archive_cmds_need_lc+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  $RM conftest*
9748	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9749
9750	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9751  (eval $ac_compile) 2>&5
9752  ac_status=$?
9753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9754  test $ac_status = 0; } 2>conftest.err; then
9755	  soname=conftest
9756	  lib=conftest
9757	  libobjs=conftest.$ac_objext
9758	  deplibs=
9759	  wl=$lt_prog_compiler_wl
9760	  pic_flag=$lt_prog_compiler_pic
9761	  compiler_flags=-v
9762	  linker_flags=-v
9763	  verstring=
9764	  output_objdir=.
9765	  libname=conftest
9766	  lt_save_allow_undefined_flag=$allow_undefined_flag
9767	  allow_undefined_flag=
9768	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9769  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9770  ac_status=$?
9771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9772  test $ac_status = 0; }
9773	  then
9774	    lt_cv_archive_cmds_need_lc=no
9775	  else
9776	    lt_cv_archive_cmds_need_lc=yes
9777	  fi
9778	  allow_undefined_flag=$lt_save_allow_undefined_flag
9779	else
9780	  cat conftest.err 1>&5
9781	fi
9782	$RM conftest*
9783
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9786$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9787      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9788      ;;
9789    esac
9790  fi
9791  ;;
9792esac
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9946$as_echo_n "checking dynamic linker characteristics... " >&6; }
9947
9948if test "$GCC" = yes; then
9949  case $host_os in
9950    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9951    *) lt_awk_arg="/^libraries:/" ;;
9952  esac
9953  case $host_os in
9954    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9955    *) lt_sed_strip_eq="s,=/,/,g" ;;
9956  esac
9957  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9958  case $lt_search_path_spec in
9959  *\;*)
9960    # if the path contains ";" then we assume it to be the separator
9961    # otherwise default to the standard path separator (i.e. ":") - it is
9962    # assumed that no part of a normal pathname contains ";" but that should
9963    # okay in the real world where ";" in dirpaths is itself problematic.
9964    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9965    ;;
9966  *)
9967    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9968    ;;
9969  esac
9970  # Ok, now we have the path, separated by spaces, we can step through it
9971  # and add multilib dir if necessary.
9972  lt_tmp_lt_search_path_spec=
9973  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9974  for lt_sys_path in $lt_search_path_spec; do
9975    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9976      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9977    else
9978      test -d "$lt_sys_path" && \
9979	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9980    fi
9981  done
9982  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9983BEGIN {RS=" "; FS="/|\n";} {
9984  lt_foo="";
9985  lt_count=0;
9986  for (lt_i = NF; lt_i > 0; lt_i--) {
9987    if ($lt_i != "" && $lt_i != ".") {
9988      if ($lt_i == "..") {
9989        lt_count++;
9990      } else {
9991        if (lt_count == 0) {
9992          lt_foo="/" $lt_i lt_foo;
9993        } else {
9994          lt_count--;
9995        }
9996      }
9997    }
9998  }
9999  if (lt_foo != "") { lt_freq[lt_foo]++; }
10000  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10001}'`
10002  # AWK program above erroneously prepends '/' to C:/dos/paths
10003  # for these hosts.
10004  case $host_os in
10005    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10006      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10007  esac
10008  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10009else
10010  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10011fi
10012library_names_spec=
10013libname_spec='lib$name'
10014soname_spec=
10015shrext_cmds=".so"
10016postinstall_cmds=
10017postuninstall_cmds=
10018finish_cmds=
10019finish_eval=
10020shlibpath_var=
10021shlibpath_overrides_runpath=unknown
10022version_type=none
10023dynamic_linker="$host_os ld.so"
10024sys_lib_dlsearch_path_spec="/lib /usr/lib"
10025need_lib_prefix=unknown
10026hardcode_into_libs=no
10027
10028# when you set need_version to no, make sure it does not cause -set_version
10029# flags to be left without arguments
10030need_version=unknown
10031
10032case $host_os in
10033aix3*)
10034  version_type=linux # correct to gnu/linux during the next big refactor
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10036  shlibpath_var=LIBPATH
10037
10038  # AIX 3 has no versioning support, so we append a major version to the name.
10039  soname_spec='${libname}${release}${shared_ext}$major'
10040  ;;
10041
10042aix[4-9]*)
10043  version_type=linux # correct to gnu/linux during the next big refactor
10044  need_lib_prefix=no
10045  need_version=no
10046  hardcode_into_libs=yes
10047  if test "$host_cpu" = ia64; then
10048    # AIX 5 supports IA64
10049    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10050    shlibpath_var=LD_LIBRARY_PATH
10051  else
10052    # With GCC up to 2.95.x, collect2 would create an import file
10053    # for dependence libraries.  The import file would start with
10054    # the line `#! .'.  This would cause the generated library to
10055    # depend on `.', always an invalid library.  This was fixed in
10056    # development snapshots of GCC prior to 3.0.
10057    case $host_os in
10058      aix4 | aix4.[01] | aix4.[01].*)
10059      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10060	   echo ' yes '
10061	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10062	:
10063      else
10064	can_build_shared=no
10065      fi
10066      ;;
10067    esac
10068    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10069    # soname into executable. Probably we can add versioning support to
10070    # collect2, so additional links can be useful in future.
10071    if test "$aix_use_runtimelinking" = yes; then
10072      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10073      # instead of lib<name>.a to let people know that these are not
10074      # typical AIX shared libraries.
10075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076    else
10077      # We preserve .a as extension for shared libraries through AIX4.2
10078      # and later when we are not doing run time linking.
10079      library_names_spec='${libname}${release}.a $libname.a'
10080      soname_spec='${libname}${release}${shared_ext}$major'
10081    fi
10082    shlibpath_var=LIBPATH
10083  fi
10084  ;;
10085
10086amigaos*)
10087  case $host_cpu in
10088  powerpc)
10089    # Since July 2007 AmigaOS4 officially supports .so libraries.
10090    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10091    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092    ;;
10093  m68k)
10094    library_names_spec='$libname.ixlibrary $libname.a'
10095    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10096    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10097    ;;
10098  esac
10099  ;;
10100
10101beos*)
10102  library_names_spec='${libname}${shared_ext}'
10103  dynamic_linker="$host_os ld.so"
10104  shlibpath_var=LIBRARY_PATH
10105  ;;
10106
10107bsdi[45]*)
10108  version_type=linux # correct to gnu/linux during the next big refactor
10109  need_version=no
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10113  shlibpath_var=LD_LIBRARY_PATH
10114  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10115  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10116  # the default ld.so.conf also contains /usr/contrib/lib and
10117  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10118  # libtool to hard-code these into programs
10119  ;;
10120
10121cygwin* | mingw* | pw32* | cegcc*)
10122  version_type=windows
10123  shrext_cmds=".dll"
10124  need_version=no
10125  need_lib_prefix=no
10126
10127  case $GCC,$cc_basename in
10128  yes,*)
10129    # gcc
10130    library_names_spec='$libname.dll.a'
10131    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10132    postinstall_cmds='base_file=`basename \${file}`~
10133      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10134      dldir=$destdir/`dirname \$dlpath`~
10135      test -d \$dldir || mkdir -p \$dldir~
10136      $install_prog $dir/$dlname \$dldir/$dlname~
10137      chmod a+x \$dldir/$dlname~
10138      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10139        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10140      fi'
10141    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10142      dlpath=$dir/\$dldll~
10143       $RM \$dlpath'
10144    shlibpath_overrides_runpath=yes
10145
10146    case $host_os in
10147    cygwin*)
10148      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10149      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10150
10151      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10152      ;;
10153    mingw* | cegcc*)
10154      # MinGW DLLs use traditional 'lib' prefix
10155      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10156      ;;
10157    pw32*)
10158      # pw32 DLLs use 'pw' prefix rather than 'lib'
10159      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10160      ;;
10161    esac
10162    dynamic_linker='Win32 ld.exe'
10163    ;;
10164
10165  *,cl*)
10166    # Native MSVC
10167    libname_spec='$name'
10168    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10169    library_names_spec='${libname}.dll.lib'
10170
10171    case $build_os in
10172    mingw*)
10173      sys_lib_search_path_spec=
10174      lt_save_ifs=$IFS
10175      IFS=';'
10176      for lt_path in $LIB
10177      do
10178        IFS=$lt_save_ifs
10179        # Let DOS variable expansion print the short 8.3 style file name.
10180        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10181        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10182      done
10183      IFS=$lt_save_ifs
10184      # Convert to MSYS style.
10185      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10186      ;;
10187    cygwin*)
10188      # Convert to unix form, then to dos form, then back to unix form
10189      # but this time dos style (no spaces!) so that the unix form looks
10190      # like /cygdrive/c/PROGRA~1:/cygdr...
10191      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10192      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10193      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10194      ;;
10195    *)
10196      sys_lib_search_path_spec="$LIB"
10197      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10198        # It is most probably a Windows format PATH.
10199        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10200      else
10201        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10202      fi
10203      # FIXME: find the short name or the path components, as spaces are
10204      # common. (e.g. "Program Files" -> "PROGRA~1")
10205      ;;
10206    esac
10207
10208    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209    postinstall_cmds='base_file=`basename \${file}`~
10210      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10211      dldir=$destdir/`dirname \$dlpath`~
10212      test -d \$dldir || mkdir -p \$dldir~
10213      $install_prog $dir/$dlname \$dldir/$dlname'
10214    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215      dlpath=$dir/\$dldll~
10216       $RM \$dlpath'
10217    shlibpath_overrides_runpath=yes
10218    dynamic_linker='Win32 link.exe'
10219    ;;
10220
10221  *)
10222    # Assume MSVC wrapper
10223    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10224    dynamic_linker='Win32 ld.exe'
10225    ;;
10226  esac
10227  # FIXME: first we should search . and the directory the executable is in
10228  shlibpath_var=PATH
10229  ;;
10230
10231darwin* | rhapsody*)
10232  dynamic_linker="$host_os dyld"
10233  version_type=darwin
10234  need_lib_prefix=no
10235  need_version=no
10236  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10237  soname_spec='${libname}${release}${major}$shared_ext'
10238  shlibpath_overrides_runpath=yes
10239  shlibpath_var=DYLD_LIBRARY_PATH
10240  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10241
10242  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10243  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10244  ;;
10245
10246dgux*)
10247  version_type=linux # correct to gnu/linux during the next big refactor
10248  need_lib_prefix=no
10249  need_version=no
10250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10251  soname_spec='${libname}${release}${shared_ext}$major'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  ;;
10254
10255freebsd* | dragonfly*)
10256  # DragonFly does not have aout.  When/if they implement a new
10257  # versioning mechanism, adjust this.
10258  if test -x /usr/bin/objformat; then
10259    objformat=`/usr/bin/objformat`
10260  else
10261    case $host_os in
10262    freebsd[23].*) objformat=aout ;;
10263    *) objformat=elf ;;
10264    esac
10265  fi
10266  version_type=freebsd-$objformat
10267  case $version_type in
10268    freebsd-elf*)
10269      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10270      need_version=no
10271      need_lib_prefix=no
10272      ;;
10273    freebsd-*)
10274      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10275      need_version=yes
10276      ;;
10277  esac
10278  shlibpath_var=LD_LIBRARY_PATH
10279  case $host_os in
10280  freebsd2.*)
10281    shlibpath_overrides_runpath=yes
10282    ;;
10283  freebsd3.[01]* | freebsdelf3.[01]*)
10284    shlibpath_overrides_runpath=yes
10285    hardcode_into_libs=yes
10286    ;;
10287  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10288  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10289    shlibpath_overrides_runpath=no
10290    hardcode_into_libs=yes
10291    ;;
10292  *) # from 4.6 on, and DragonFly
10293    shlibpath_overrides_runpath=yes
10294    hardcode_into_libs=yes
10295    ;;
10296  esac
10297  ;;
10298
10299gnu*)
10300  version_type=linux # correct to gnu/linux during the next big refactor
10301  need_lib_prefix=no
10302  need_version=no
10303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304  soname_spec='${libname}${release}${shared_ext}$major'
10305  shlibpath_var=LD_LIBRARY_PATH
10306  shlibpath_overrides_runpath=no
10307  hardcode_into_libs=yes
10308  ;;
10309
10310haiku*)
10311  version_type=linux # correct to gnu/linux during the next big refactor
10312  need_lib_prefix=no
10313  need_version=no
10314  dynamic_linker="$host_os runtime_loader"
10315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10316  soname_spec='${libname}${release}${shared_ext}$major'
10317  shlibpath_var=LIBRARY_PATH
10318  shlibpath_overrides_runpath=yes
10319  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10320  hardcode_into_libs=yes
10321  ;;
10322
10323hpux9* | hpux10* | hpux11*)
10324  # Give a soname corresponding to the major version so that dld.sl refuses to
10325  # link against other versions.
10326  version_type=sunos
10327  need_lib_prefix=no
10328  need_version=no
10329  case $host_cpu in
10330  ia64*)
10331    shrext_cmds='.so'
10332    hardcode_into_libs=yes
10333    dynamic_linker="$host_os dld.so"
10334    shlibpath_var=LD_LIBRARY_PATH
10335    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337    soname_spec='${libname}${release}${shared_ext}$major'
10338    if test "X$HPUX_IA64_MODE" = X32; then
10339      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10340    else
10341      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10342    fi
10343    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344    ;;
10345  hppa*64*)
10346    shrext_cmds='.sl'
10347    hardcode_into_libs=yes
10348    dynamic_linker="$host_os dld.sl"
10349    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10350    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352    soname_spec='${libname}${release}${shared_ext}$major'
10353    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355    ;;
10356  *)
10357    shrext_cmds='.sl'
10358    dynamic_linker="$host_os dld.sl"
10359    shlibpath_var=SHLIB_PATH
10360    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10361    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362    soname_spec='${libname}${release}${shared_ext}$major'
10363    ;;
10364  esac
10365  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10366  postinstall_cmds='chmod 555 $lib'
10367  # or fails outright, so override atomically:
10368  install_override_mode=555
10369  ;;
10370
10371interix[3-9]*)
10372  version_type=linux # correct to gnu/linux during the next big refactor
10373  need_lib_prefix=no
10374  need_version=no
10375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376  soname_spec='${libname}${release}${shared_ext}$major'
10377  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10378  shlibpath_var=LD_LIBRARY_PATH
10379  shlibpath_overrides_runpath=no
10380  hardcode_into_libs=yes
10381  ;;
10382
10383irix5* | irix6* | nonstopux*)
10384  case $host_os in
10385    nonstopux*) version_type=nonstopux ;;
10386    *)
10387	if test "$lt_cv_prog_gnu_ld" = yes; then
10388		version_type=linux # correct to gnu/linux during the next big refactor
10389	else
10390		version_type=irix
10391	fi ;;
10392  esac
10393  need_lib_prefix=no
10394  need_version=no
10395  soname_spec='${libname}${release}${shared_ext}$major'
10396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10397  case $host_os in
10398  irix5* | nonstopux*)
10399    libsuff= shlibsuff=
10400    ;;
10401  *)
10402    case $LD in # libtool.m4 will add one of these switches to LD
10403    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10404      libsuff= shlibsuff= libmagic=32-bit;;
10405    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10406      libsuff=32 shlibsuff=N32 libmagic=N32;;
10407    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10408      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10409    *) libsuff= shlibsuff= libmagic=never-match;;
10410    esac
10411    ;;
10412  esac
10413  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10414  shlibpath_overrides_runpath=no
10415  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10416  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10417  hardcode_into_libs=yes
10418  ;;
10419
10420# No shared lib support for Linux oldld, aout, or coff.
10421linux*oldld* | linux*aout* | linux*coff*)
10422  dynamic_linker=no
10423  ;;
10424
10425# This must be glibc/ELF.
10426linux* | k*bsd*-gnu | kopensolaris*-gnu)
10427  version_type=linux # correct to gnu/linux during the next big refactor
10428  need_lib_prefix=no
10429  need_version=no
10430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=no
10435
10436  # Some binutils ld are patched to set DT_RUNPATH
10437  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  lt_cv_shlibpath_overrides_runpath=no
10441    save_LDFLAGS=$LDFLAGS
10442    save_libdir=$libdir
10443    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10444	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447
10448int
10449main ()
10450{
10451
10452  ;
10453  return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10458  lt_cv_shlibpath_overrides_runpath=yes
10459fi
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462    conftest$ac_exeext conftest.$ac_ext
10463    LDFLAGS=$save_LDFLAGS
10464    libdir=$save_libdir
10465
10466fi
10467
10468  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10469
10470  # This implies no fast_install, which is unacceptable.
10471  # Some rework will be needed to allow for fast_install
10472  # before this can be enabled.
10473  hardcode_into_libs=yes
10474
10475  # Add ABI-specific directories to the system library path.
10476  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10477
10478  # Append ld.so.conf contents to the search path
10479  if test -f /etc/ld.so.conf; then
10480    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' ' '`
10481    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10482
10483  fi
10484
10485  # We used to test for /lib/ld.so.1 and disable shared libraries on
10486  # powerpc, because MkLinux only supported shared libraries with the
10487  # GNU dynamic linker.  Since this was broken with cross compilers,
10488  # most powerpc-linux boxes support dynamic linking these days and
10489  # people can always --disable-shared, the test was removed, and we
10490  # assume the GNU/Linux dynamic linker is in use.
10491  dynamic_linker='GNU/Linux ld.so'
10492  ;;
10493
10494netbsd*)
10495  version_type=sunos
10496  need_lib_prefix=no
10497  need_version=no
10498  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501    dynamic_linker='NetBSD (a.out) ld.so'
10502  else
10503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504    soname_spec='${libname}${release}${shared_ext}$major'
10505    dynamic_linker='NetBSD ld.elf_so'
10506  fi
10507  shlibpath_var=LD_LIBRARY_PATH
10508  shlibpath_overrides_runpath=yes
10509  hardcode_into_libs=yes
10510  ;;
10511
10512newsos6)
10513  version_type=linux # correct to gnu/linux during the next big refactor
10514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515  shlibpath_var=LD_LIBRARY_PATH
10516  shlibpath_overrides_runpath=yes
10517  ;;
10518
10519*nto* | *qnx*)
10520  version_type=qnx
10521  need_lib_prefix=no
10522  need_version=no
10523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524  soname_spec='${libname}${release}${shared_ext}$major'
10525  shlibpath_var=LD_LIBRARY_PATH
10526  shlibpath_overrides_runpath=no
10527  hardcode_into_libs=yes
10528  dynamic_linker='ldqnx.so'
10529  ;;
10530
10531openbsd*)
10532  version_type=sunos
10533  sys_lib_dlsearch_path_spec="/usr/lib"
10534  need_lib_prefix=no
10535  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10536  case $host_os in
10537    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10538    *)				need_version=no  ;;
10539  esac
10540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542  shlibpath_var=LD_LIBRARY_PATH
10543  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10544    case $host_os in
10545      openbsd2.[89] | openbsd2.[89].*)
10546	shlibpath_overrides_runpath=no
10547	;;
10548      *)
10549	shlibpath_overrides_runpath=yes
10550	;;
10551      esac
10552  else
10553    shlibpath_overrides_runpath=yes
10554  fi
10555  ;;
10556
10557os2*)
10558  libname_spec='$name'
10559  shrext_cmds=".dll"
10560  need_lib_prefix=no
10561  library_names_spec='$libname${shared_ext} $libname.a'
10562  dynamic_linker='OS/2 ld.exe'
10563  shlibpath_var=LIBPATH
10564  ;;
10565
10566osf3* | osf4* | osf5*)
10567  version_type=osf
10568  need_lib_prefix=no
10569  need_version=no
10570  soname_spec='${libname}${release}${shared_ext}$major'
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572  shlibpath_var=LD_LIBRARY_PATH
10573  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10574  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10575  ;;
10576
10577rdos*)
10578  dynamic_linker=no
10579  ;;
10580
10581solaris*)
10582  version_type=linux # correct to gnu/linux during the next big refactor
10583  need_lib_prefix=no
10584  need_version=no
10585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586  soname_spec='${libname}${release}${shared_ext}$major'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  shlibpath_overrides_runpath=yes
10589  hardcode_into_libs=yes
10590  # ldd complains unless libraries are executable
10591  postinstall_cmds='chmod +x $lib'
10592  ;;
10593
10594sunos4*)
10595  version_type=sunos
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=yes
10600  if test "$with_gnu_ld" = yes; then
10601    need_lib_prefix=no
10602  fi
10603  need_version=yes
10604  ;;
10605
10606sysv4 | sysv4.3*)
10607  version_type=linux # correct to gnu/linux during the next big refactor
10608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609  soname_spec='${libname}${release}${shared_ext}$major'
10610  shlibpath_var=LD_LIBRARY_PATH
10611  case $host_vendor in
10612    sni)
10613      shlibpath_overrides_runpath=no
10614      need_lib_prefix=no
10615      runpath_var=LD_RUN_PATH
10616      ;;
10617    siemens)
10618      need_lib_prefix=no
10619      ;;
10620    motorola)
10621      need_lib_prefix=no
10622      need_version=no
10623      shlibpath_overrides_runpath=no
10624      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10625      ;;
10626  esac
10627  ;;
10628
10629sysv4*MP*)
10630  if test -d /usr/nec ;then
10631    version_type=linux # correct to gnu/linux during the next big refactor
10632    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10633    soname_spec='$libname${shared_ext}.$major'
10634    shlibpath_var=LD_LIBRARY_PATH
10635  fi
10636  ;;
10637
10638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639  version_type=freebsd-elf
10640  need_lib_prefix=no
10641  need_version=no
10642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  shlibpath_overrides_runpath=yes
10646  hardcode_into_libs=yes
10647  if test "$with_gnu_ld" = yes; then
10648    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10649  else
10650    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10651    case $host_os in
10652      sco3.2v5*)
10653        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654	;;
10655    esac
10656  fi
10657  sys_lib_dlsearch_path_spec='/usr/lib'
10658  ;;
10659
10660tpf*)
10661  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10662  version_type=linux # correct to gnu/linux during the next big refactor
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666  shlibpath_var=LD_LIBRARY_PATH
10667  shlibpath_overrides_runpath=no
10668  hardcode_into_libs=yes
10669  ;;
10670
10671uts4*)
10672  version_type=linux # correct to gnu/linux during the next big refactor
10673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674  soname_spec='${libname}${release}${shared_ext}$major'
10675  shlibpath_var=LD_LIBRARY_PATH
10676  ;;
10677
10678*)
10679  dynamic_linker=no
10680  ;;
10681esac
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10683$as_echo "$dynamic_linker" >&6; }
10684test "$dynamic_linker" = no && can_build_shared=no
10685
10686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687if test "$GCC" = yes; then
10688  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10689fi
10690
10691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10692  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10693fi
10694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10695  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10696fi
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10790$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10791hardcode_action=
10792if test -n "$hardcode_libdir_flag_spec" ||
10793   test -n "$runpath_var" ||
10794   test "X$hardcode_automatic" = "Xyes" ; then
10795
10796  # We can hardcode non-existent directories.
10797  if test "$hardcode_direct" != no &&
10798     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10799     # have to relink, otherwise we might link with an installed library
10800     # when we should be linking with a yet-to-be-installed one
10801     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10802     test "$hardcode_minus_L" != no; then
10803    # Linking always hardcodes the temporary library directory.
10804    hardcode_action=relink
10805  else
10806    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10807    hardcode_action=immediate
10808  fi
10809else
10810  # We cannot hardcode anything, or else we can only hardcode existing
10811  # directories.
10812  hardcode_action=unsupported
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10815$as_echo "$hardcode_action" >&6; }
10816
10817if test "$hardcode_action" = relink ||
10818   test "$inherit_rpath" = yes; then
10819  # Fast installation is not supported
10820  enable_fast_install=no
10821elif test "$shlibpath_overrides_runpath" = yes ||
10822     test "$enable_shared" = no; then
10823  # Fast installation is not necessary
10824  enable_fast_install=needless
10825fi
10826
10827
10828
10829
10830
10831
10832  if test "x$enable_dlopen" != xyes; then
10833  enable_dlopen=unknown
10834  enable_dlopen_self=unknown
10835  enable_dlopen_self_static=unknown
10836else
10837  lt_cv_dlopen=no
10838  lt_cv_dlopen_libs=
10839
10840  case $host_os in
10841  beos*)
10842    lt_cv_dlopen="load_add_on"
10843    lt_cv_dlopen_libs=
10844    lt_cv_dlopen_self=yes
10845    ;;
10846
10847  mingw* | pw32* | cegcc*)
10848    lt_cv_dlopen="LoadLibrary"
10849    lt_cv_dlopen_libs=
10850    ;;
10851
10852  cygwin*)
10853    lt_cv_dlopen="dlopen"
10854    lt_cv_dlopen_libs=
10855    ;;
10856
10857  darwin*)
10858  # if libdl is installed we need to link against it
10859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10860$as_echo_n "checking for dlopen in -ldl... " >&6; }
10861if ${ac_cv_lib_dl_dlopen+:} false; then :
10862  $as_echo_n "(cached) " >&6
10863else
10864  ac_check_lib_save_LIBS=$LIBS
10865LIBS="-ldl  $LIBS"
10866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h.  */
10868
10869/* Override any GCC internal prototype to avoid an error.
10870   Use char because int might match the return type of a GCC
10871   builtin and then its argument prototype would still apply.  */
10872#ifdef __cplusplus
10873extern "C"
10874#endif
10875char dlopen ();
10876int
10877main ()
10878{
10879return dlopen ();
10880  ;
10881  return 0;
10882}
10883_ACEOF
10884if ac_fn_c_try_link "$LINENO"; then :
10885  ac_cv_lib_dl_dlopen=yes
10886else
10887  ac_cv_lib_dl_dlopen=no
10888fi
10889rm -f core conftest.err conftest.$ac_objext \
10890    conftest$ac_exeext conftest.$ac_ext
10891LIBS=$ac_check_lib_save_LIBS
10892fi
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10895if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10896  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897else
10898
10899    lt_cv_dlopen="dyld"
10900    lt_cv_dlopen_libs=
10901    lt_cv_dlopen_self=yes
10902
10903fi
10904
10905    ;;
10906
10907  *)
10908    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10909if test "x$ac_cv_func_shl_load" = xyes; then :
10910  lt_cv_dlopen="shl_load"
10911else
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10913$as_echo_n "checking for shl_load in -ldld... " >&6; }
10914if ${ac_cv_lib_dld_shl_load+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  ac_check_lib_save_LIBS=$LIBS
10918LIBS="-ldld  $LIBS"
10919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920/* end confdefs.h.  */
10921
10922/* Override any GCC internal prototype to avoid an error.
10923   Use char because int might match the return type of a GCC
10924   builtin and then its argument prototype would still apply.  */
10925#ifdef __cplusplus
10926extern "C"
10927#endif
10928char shl_load ();
10929int
10930main ()
10931{
10932return shl_load ();
10933  ;
10934  return 0;
10935}
10936_ACEOF
10937if ac_fn_c_try_link "$LINENO"; then :
10938  ac_cv_lib_dld_shl_load=yes
10939else
10940  ac_cv_lib_dld_shl_load=no
10941fi
10942rm -f core conftest.err conftest.$ac_objext \
10943    conftest$ac_exeext conftest.$ac_ext
10944LIBS=$ac_check_lib_save_LIBS
10945fi
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10947$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10948if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10949  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10950else
10951  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10952if test "x$ac_cv_func_dlopen" = xyes; then :
10953  lt_cv_dlopen="dlopen"
10954else
10955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10956$as_echo_n "checking for dlopen in -ldl... " >&6; }
10957if ${ac_cv_lib_dl_dlopen+:} false; then :
10958  $as_echo_n "(cached) " >&6
10959else
10960  ac_check_lib_save_LIBS=$LIBS
10961LIBS="-ldl  $LIBS"
10962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963/* end confdefs.h.  */
10964
10965/* Override any GCC internal prototype to avoid an error.
10966   Use char because int might match the return type of a GCC
10967   builtin and then its argument prototype would still apply.  */
10968#ifdef __cplusplus
10969extern "C"
10970#endif
10971char dlopen ();
10972int
10973main ()
10974{
10975return dlopen ();
10976  ;
10977  return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_link "$LINENO"; then :
10981  ac_cv_lib_dl_dlopen=yes
10982else
10983  ac_cv_lib_dl_dlopen=no
10984fi
10985rm -f core conftest.err conftest.$ac_objext \
10986    conftest$ac_exeext conftest.$ac_ext
10987LIBS=$ac_check_lib_save_LIBS
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10992  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10993else
10994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10995$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10996if ${ac_cv_lib_svld_dlopen+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999  ac_check_lib_save_LIBS=$LIBS
11000LIBS="-lsvld  $LIBS"
11001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002/* end confdefs.h.  */
11003
11004/* Override any GCC internal prototype to avoid an error.
11005   Use char because int might match the return type of a GCC
11006   builtin and then its argument prototype would still apply.  */
11007#ifdef __cplusplus
11008extern "C"
11009#endif
11010char dlopen ();
11011int
11012main ()
11013{
11014return dlopen ();
11015  ;
11016  return 0;
11017}
11018_ACEOF
11019if ac_fn_c_try_link "$LINENO"; then :
11020  ac_cv_lib_svld_dlopen=yes
11021else
11022  ac_cv_lib_svld_dlopen=no
11023fi
11024rm -f core conftest.err conftest.$ac_objext \
11025    conftest$ac_exeext conftest.$ac_ext
11026LIBS=$ac_check_lib_save_LIBS
11027fi
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11029$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11030if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11031  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11032else
11033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11034$as_echo_n "checking for dld_link in -ldld... " >&6; }
11035if ${ac_cv_lib_dld_dld_link+:} false; then :
11036  $as_echo_n "(cached) " >&6
11037else
11038  ac_check_lib_save_LIBS=$LIBS
11039LIBS="-ldld  $LIBS"
11040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041/* end confdefs.h.  */
11042
11043/* Override any GCC internal prototype to avoid an error.
11044   Use char because int might match the return type of a GCC
11045   builtin and then its argument prototype would still apply.  */
11046#ifdef __cplusplus
11047extern "C"
11048#endif
11049char dld_link ();
11050int
11051main ()
11052{
11053return dld_link ();
11054  ;
11055  return 0;
11056}
11057_ACEOF
11058if ac_fn_c_try_link "$LINENO"; then :
11059  ac_cv_lib_dld_dld_link=yes
11060else
11061  ac_cv_lib_dld_dld_link=no
11062fi
11063rm -f core conftest.err conftest.$ac_objext \
11064    conftest$ac_exeext conftest.$ac_ext
11065LIBS=$ac_check_lib_save_LIBS
11066fi
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11068$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11069if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11070  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11071fi
11072
11073
11074fi
11075
11076
11077fi
11078
11079
11080fi
11081
11082
11083fi
11084
11085
11086fi
11087
11088    ;;
11089  esac
11090
11091  if test "x$lt_cv_dlopen" != xno; then
11092    enable_dlopen=yes
11093  else
11094    enable_dlopen=no
11095  fi
11096
11097  case $lt_cv_dlopen in
11098  dlopen)
11099    save_CPPFLAGS="$CPPFLAGS"
11100    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11101
11102    save_LDFLAGS="$LDFLAGS"
11103    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11104
11105    save_LIBS="$LIBS"
11106    LIBS="$lt_cv_dlopen_libs $LIBS"
11107
11108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11109$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11110if ${lt_cv_dlopen_self+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  	  if test "$cross_compiling" = yes; then :
11114  lt_cv_dlopen_self=cross
11115else
11116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11117  lt_status=$lt_dlunknown
11118  cat > conftest.$ac_ext <<_LT_EOF
11119#line $LINENO "configure"
11120#include "confdefs.h"
11121
11122#if HAVE_DLFCN_H
11123#include <dlfcn.h>
11124#endif
11125
11126#include <stdio.h>
11127
11128#ifdef RTLD_GLOBAL
11129#  define LT_DLGLOBAL		RTLD_GLOBAL
11130#else
11131#  ifdef DL_GLOBAL
11132#    define LT_DLGLOBAL		DL_GLOBAL
11133#  else
11134#    define LT_DLGLOBAL		0
11135#  endif
11136#endif
11137
11138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11139   find out it does not work in some platform. */
11140#ifndef LT_DLLAZY_OR_NOW
11141#  ifdef RTLD_LAZY
11142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11143#  else
11144#    ifdef DL_LAZY
11145#      define LT_DLLAZY_OR_NOW		DL_LAZY
11146#    else
11147#      ifdef RTLD_NOW
11148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11149#      else
11150#        ifdef DL_NOW
11151#          define LT_DLLAZY_OR_NOW	DL_NOW
11152#        else
11153#          define LT_DLLAZY_OR_NOW	0
11154#        endif
11155#      endif
11156#    endif
11157#  endif
11158#endif
11159
11160/* When -fvisbility=hidden is used, assume the code has been annotated
11161   correspondingly for the symbols needed.  */
11162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11163int fnord () __attribute__((visibility("default")));
11164#endif
11165
11166int fnord () { return 42; }
11167int main ()
11168{
11169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11170  int status = $lt_dlunknown;
11171
11172  if (self)
11173    {
11174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11175      else
11176        {
11177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11178          else puts (dlerror ());
11179	}
11180      /* dlclose (self); */
11181    }
11182  else
11183    puts (dlerror ());
11184
11185  return status;
11186}
11187_LT_EOF
11188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189  (eval $ac_link) 2>&5
11190  ac_status=$?
11191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193    (./conftest; exit; ) >&5 2>/dev/null
11194    lt_status=$?
11195    case x$lt_status in
11196      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11197      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11198      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11199    esac
11200  else :
11201    # compilation failed
11202    lt_cv_dlopen_self=no
11203  fi
11204fi
11205rm -fr conftest*
11206
11207
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11210$as_echo "$lt_cv_dlopen_self" >&6; }
11211
11212    if test "x$lt_cv_dlopen_self" = xyes; then
11213      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11214      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11215$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11216if ${lt_cv_dlopen_self_static+:} false; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219  	  if test "$cross_compiling" = yes; then :
11220  lt_cv_dlopen_self_static=cross
11221else
11222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223  lt_status=$lt_dlunknown
11224  cat > conftest.$ac_ext <<_LT_EOF
11225#line $LINENO "configure"
11226#include "confdefs.h"
11227
11228#if HAVE_DLFCN_H
11229#include <dlfcn.h>
11230#endif
11231
11232#include <stdio.h>
11233
11234#ifdef RTLD_GLOBAL
11235#  define LT_DLGLOBAL		RTLD_GLOBAL
11236#else
11237#  ifdef DL_GLOBAL
11238#    define LT_DLGLOBAL		DL_GLOBAL
11239#  else
11240#    define LT_DLGLOBAL		0
11241#  endif
11242#endif
11243
11244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245   find out it does not work in some platform. */
11246#ifndef LT_DLLAZY_OR_NOW
11247#  ifdef RTLD_LAZY
11248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11249#  else
11250#    ifdef DL_LAZY
11251#      define LT_DLLAZY_OR_NOW		DL_LAZY
11252#    else
11253#      ifdef RTLD_NOW
11254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11255#      else
11256#        ifdef DL_NOW
11257#          define LT_DLLAZY_OR_NOW	DL_NOW
11258#        else
11259#          define LT_DLLAZY_OR_NOW	0
11260#        endif
11261#      endif
11262#    endif
11263#  endif
11264#endif
11265
11266/* When -fvisbility=hidden is used, assume the code has been annotated
11267   correspondingly for the symbols needed.  */
11268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11269int fnord () __attribute__((visibility("default")));
11270#endif
11271
11272int fnord () { return 42; }
11273int main ()
11274{
11275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276  int status = $lt_dlunknown;
11277
11278  if (self)
11279    {
11280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11281      else
11282        {
11283	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11284          else puts (dlerror ());
11285	}
11286      /* dlclose (self); */
11287    }
11288  else
11289    puts (dlerror ());
11290
11291  return status;
11292}
11293_LT_EOF
11294  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295  (eval $ac_link) 2>&5
11296  ac_status=$?
11297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11299    (./conftest; exit; ) >&5 2>/dev/null
11300    lt_status=$?
11301    case x$lt_status in
11302      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11303      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11304      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11305    esac
11306  else :
11307    # compilation failed
11308    lt_cv_dlopen_self_static=no
11309  fi
11310fi
11311rm -fr conftest*
11312
11313
11314fi
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11316$as_echo "$lt_cv_dlopen_self_static" >&6; }
11317    fi
11318
11319    CPPFLAGS="$save_CPPFLAGS"
11320    LDFLAGS="$save_LDFLAGS"
11321    LIBS="$save_LIBS"
11322    ;;
11323  esac
11324
11325  case $lt_cv_dlopen_self in
11326  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11327  *) enable_dlopen_self=unknown ;;
11328  esac
11329
11330  case $lt_cv_dlopen_self_static in
11331  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11332  *) enable_dlopen_self_static=unknown ;;
11333  esac
11334fi
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352striplib=
11353old_striplib=
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11357  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11358  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360$as_echo "yes" >&6; }
11361else
11362# FIXME - insert some real tests, host_os isn't really good enough
11363  case $host_os in
11364  darwin*)
11365    if test -n "$STRIP" ; then
11366      striplib="$STRIP -x"
11367      old_striplib="$STRIP -S"
11368      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
11370    else
11371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373    fi
11374    ;;
11375  *)
11376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378    ;;
11379  esac
11380fi
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393  # Report which library types will actually be built
11394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11397$as_echo "$can_build_shared" >&6; }
11398
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11400$as_echo_n "checking whether to build shared libraries... " >&6; }
11401  test "$can_build_shared" = "no" && enable_shared=no
11402
11403  # On AIX, shared libraries and static libraries use the same namespace, and
11404  # are all built from PIC.
11405  case $host_os in
11406  aix3*)
11407    test "$enable_shared" = yes && enable_static=no
11408    if test -n "$RANLIB"; then
11409      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11410      postinstall_cmds='$RANLIB $lib'
11411    fi
11412    ;;
11413
11414  aix[4-9]*)
11415    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11416      test "$enable_shared" = yes && enable_static=no
11417    fi
11418    ;;
11419  esac
11420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11421$as_echo "$enable_shared" >&6; }
11422
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11424$as_echo_n "checking whether to build static libraries... " >&6; }
11425  # Make sure either enable_shared or enable_static is yes.
11426  test "$enable_shared" = yes || enable_static=yes
11427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11428$as_echo "$enable_static" >&6; }
11429
11430
11431
11432
11433fi
11434ac_ext=c
11435ac_cpp='$CPP $CPPFLAGS'
11436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438ac_compiler_gnu=$ac_cv_c_compiler_gnu
11439
11440CC="$lt_save_CC"
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456        ac_config_commands="$ac_config_commands libtool"
11457
11458
11459
11460
11461# Only expand once:
11462
11463
11464
11465# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11478$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11479if ${ac_cv_prog_cc_c99+:} false; then :
11480  $as_echo_n "(cached) " >&6
11481else
11482  ac_cv_prog_cc_c99=no
11483ac_save_CC=$CC
11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485/* end confdefs.h.  */
11486#include <stdarg.h>
11487#include <stdbool.h>
11488#include <stdlib.h>
11489#include <wchar.h>
11490#include <stdio.h>
11491
11492// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11493#define debug(...) fprintf (stderr, __VA_ARGS__)
11494#define showlist(...) puts (#__VA_ARGS__)
11495#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11496static void
11497test_varargs_macros (void)
11498{
11499  int x = 1234;
11500  int y = 5678;
11501  debug ("Flag");
11502  debug ("X = %d\n", x);
11503  showlist (The first, second, and third items.);
11504  report (x>y, "x is %d but y is %d", x, y);
11505}
11506
11507// Check long long types.
11508#define BIG64 18446744073709551615ull
11509#define BIG32 4294967295ul
11510#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11511#if !BIG_OK
11512  your preprocessor is broken;
11513#endif
11514#if BIG_OK
11515#else
11516  your preprocessor is broken;
11517#endif
11518static long long int bignum = -9223372036854775807LL;
11519static unsigned long long int ubignum = BIG64;
11520
11521struct incomplete_array
11522{
11523  int datasize;
11524  double data[];
11525};
11526
11527struct named_init {
11528  int number;
11529  const wchar_t *name;
11530  double average;
11531};
11532
11533typedef const char *ccp;
11534
11535static inline int
11536test_restrict (ccp restrict text)
11537{
11538  // See if C++-style comments work.
11539  // Iterate through items via the restricted pointer.
11540  // Also check for declarations in for loops.
11541  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11542    continue;
11543  return 0;
11544}
11545
11546// Check varargs and va_copy.
11547static void
11548test_varargs (const char *format, ...)
11549{
11550  va_list args;
11551  va_start (args, format);
11552  va_list args_copy;
11553  va_copy (args_copy, args);
11554
11555  const char *str;
11556  int number;
11557  float fnumber;
11558
11559  while (*format)
11560    {
11561      switch (*format++)
11562	{
11563	case 's': // string
11564	  str = va_arg (args_copy, const char *);
11565	  break;
11566	case 'd': // int
11567	  number = va_arg (args_copy, int);
11568	  break;
11569	case 'f': // float
11570	  fnumber = va_arg (args_copy, double);
11571	  break;
11572	default:
11573	  break;
11574	}
11575    }
11576  va_end (args_copy);
11577  va_end (args);
11578}
11579
11580int
11581main ()
11582{
11583
11584  // Check bool.
11585  _Bool success = false;
11586
11587  // Check restrict.
11588  if (test_restrict ("String literal") == 0)
11589    success = true;
11590  char *restrict newvar = "Another string";
11591
11592  // Check varargs.
11593  test_varargs ("s, d' f .", "string", 65, 34.234);
11594  test_varargs_macros ();
11595
11596  // Check flexible array members.
11597  struct incomplete_array *ia =
11598    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11599  ia->datasize = 10;
11600  for (int i = 0; i < ia->datasize; ++i)
11601    ia->data[i] = i * 1.234;
11602
11603  // Check named initializers.
11604  struct named_init ni = {
11605    .number = 34,
11606    .name = L"Test wide string",
11607    .average = 543.34343,
11608  };
11609
11610  ni.number = 58;
11611
11612  int dynamic_array[ni.number];
11613  dynamic_array[ni.number - 1] = 543;
11614
11615  // work around unused variable warnings
11616  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11617	  || dynamic_array[ni.number - 1] != 543);
11618
11619  ;
11620  return 0;
11621}
11622_ACEOF
11623for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11624do
11625  CC="$ac_save_CC $ac_arg"
11626  if ac_fn_c_try_compile "$LINENO"; then :
11627  ac_cv_prog_cc_c99=$ac_arg
11628fi
11629rm -f core conftest.err conftest.$ac_objext
11630  test "x$ac_cv_prog_cc_c99" != "xno" && break
11631done
11632rm -f conftest.$ac_ext
11633CC=$ac_save_CC
11634
11635fi
11636# AC_CACHE_VAL
11637case "x$ac_cv_prog_cc_c99" in
11638  x)
11639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11640$as_echo "none needed" >&6; } ;;
11641  xno)
11642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11643$as_echo "unsupported" >&6; } ;;
11644  *)
11645    CC="$CC $ac_cv_prog_cc_c99"
11646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11647$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11648esac
11649if test "x$ac_cv_prog_cc_c99" != xno; then :
11650
11651fi
11652
11653
11654
11655
11656
11657
11658ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11659if test "x$ac_cv_have_decl___clang__" = xyes; then :
11660  CLANGCC="yes"
11661else
11662  CLANGCC="no"
11663fi
11664
11665ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11666if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11667  INTELCC="yes"
11668else
11669  INTELCC="no"
11670fi
11671
11672ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11673if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11674  SUNCC="yes"
11675else
11676  SUNCC="no"
11677fi
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11688	if test -n "$ac_tool_prefix"; then
11689  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11690set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692$as_echo_n "checking for $ac_word... " >&6; }
11693if ${ac_cv_path_PKG_CONFIG+:} false; then :
11694  $as_echo_n "(cached) " >&6
11695else
11696  case $PKG_CONFIG in
11697  [\\/]* | ?:[\\/]*)
11698  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11699  ;;
11700  *)
11701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704  IFS=$as_save_IFS
11705  test -z "$as_dir" && as_dir=.
11706    for ac_exec_ext in '' $ac_executable_extensions; do
11707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710    break 2
11711  fi
11712done
11713  done
11714IFS=$as_save_IFS
11715
11716  ;;
11717esac
11718fi
11719PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11720if test -n "$PKG_CONFIG"; then
11721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11722$as_echo "$PKG_CONFIG" >&6; }
11723else
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; }
11726fi
11727
11728
11729fi
11730if test -z "$ac_cv_path_PKG_CONFIG"; then
11731  ac_pt_PKG_CONFIG=$PKG_CONFIG
11732  # Extract the first word of "pkg-config", so it can be a program name with args.
11733set dummy pkg-config; ac_word=$2
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
11736if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11737  $as_echo_n "(cached) " >&6
11738else
11739  case $ac_pt_PKG_CONFIG in
11740  [\\/]* | ?:[\\/]*)
11741  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11742  ;;
11743  *)
11744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747  IFS=$as_save_IFS
11748  test -z "$as_dir" && as_dir=.
11749    for ac_exec_ext in '' $ac_executable_extensions; do
11750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753    break 2
11754  fi
11755done
11756  done
11757IFS=$as_save_IFS
11758
11759  ;;
11760esac
11761fi
11762ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11763if test -n "$ac_pt_PKG_CONFIG"; then
11764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11765$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11766else
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
11769fi
11770
11771  if test "x$ac_pt_PKG_CONFIG" = x; then
11772    PKG_CONFIG=""
11773  else
11774    case $cross_compiling:$ac_tool_warned in
11775yes:)
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11778ac_tool_warned=yes ;;
11779esac
11780    PKG_CONFIG=$ac_pt_PKG_CONFIG
11781  fi
11782else
11783  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11784fi
11785
11786fi
11787if test -n "$PKG_CONFIG"; then
11788	_pkg_min_version=0.9.0
11789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11790$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11791	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793$as_echo "yes" >&6; }
11794	else
11795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797		PKG_CONFIG=""
11798	fi
11799fi
11800
11801
11802
11803
11804
11805# Check whether --enable-selective-werror was given.
11806if test "${enable_selective_werror+set}" = set; then :
11807  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11808else
11809  SELECTIVE_WERROR=yes
11810fi
11811
11812
11813
11814
11815
11816# -v is too short to test reliably with XORG_TESTSET_CFLAG
11817if test "x$SUNCC" = "xyes"; then
11818    BASE_CFLAGS="-v"
11819else
11820    BASE_CFLAGS=""
11821fi
11822
11823# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837xorg_testset_save_CFLAGS="$CFLAGS"
11838
11839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11844  $as_echo_n "(cached) " >&6
11845else
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848int i;
11849_ACEOF
11850if ac_fn_c_try_compile "$LINENO"; then :
11851  xorg_cv_cc_flag_unknown_warning_option=yes
11852else
11853  xorg_cv_cc_flag_unknown_warning_option=no
11854fi
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11860	CFLAGS="$xorg_testset_save_CFLAGS"
11861fi
11862
11863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11866	fi
11867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11871  $as_echo_n "(cached) " >&6
11872else
11873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874/* end confdefs.h.  */
11875int i;
11876_ACEOF
11877if ac_fn_c_try_compile "$LINENO"; then :
11878  xorg_cv_cc_flag_unused_command_line_argument=yes
11879else
11880  xorg_cv_cc_flag_unused_command_line_argument=no
11881fi
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883fi
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11887	CFLAGS="$xorg_testset_save_CFLAGS"
11888fi
11889
11890found="no"
11891
11892	if test $found = "no" ; then
11893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11895		fi
11896
11897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11899		fi
11900
11901		CFLAGS="$CFLAGS -Wall"
11902
11903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11904$as_echo_n "checking if $CC supports -Wall... " >&6; }
11905		cacheid=xorg_cv_cc_flag__Wall
11906		if eval \${$cacheid+:} false; then :
11907  $as_echo_n "(cached) " >&6
11908else
11909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h.  */
11911int i;
11912int
11913main ()
11914{
11915
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920if ac_fn_c_try_link "$LINENO"; then :
11921  eval $cacheid=yes
11922else
11923  eval $cacheid=no
11924fi
11925rm -f core conftest.err conftest.$ac_objext \
11926    conftest$ac_exeext conftest.$ac_ext
11927fi
11928
11929
11930		CFLAGS="$xorg_testset_save_CFLAGS"
11931
11932		eval supported=\$$cacheid
11933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11934$as_echo "$supported" >&6; }
11935		if test "$supported" = "yes" ; then
11936			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11937			found="yes"
11938		fi
11939	fi
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955xorg_testset_save_CFLAGS="$CFLAGS"
11956
11957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965/* end confdefs.h.  */
11966int i;
11967_ACEOF
11968if ac_fn_c_try_compile "$LINENO"; then :
11969  xorg_cv_cc_flag_unknown_warning_option=yes
11970else
11971  xorg_cv_cc_flag_unknown_warning_option=no
11972fi
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11978	CFLAGS="$xorg_testset_save_CFLAGS"
11979fi
11980
11981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11984	fi
11985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993int i;
11994_ACEOF
11995if ac_fn_c_try_compile "$LINENO"; then :
11996  xorg_cv_cc_flag_unused_command_line_argument=yes
11997else
11998  xorg_cv_cc_flag_unused_command_line_argument=no
11999fi
12000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12005	CFLAGS="$xorg_testset_save_CFLAGS"
12006fi
12007
12008found="no"
12009
12010	if test $found = "no" ; then
12011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12013		fi
12014
12015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12017		fi
12018
12019		CFLAGS="$CFLAGS -Wpointer-arith"
12020
12021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12022$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12023		cacheid=xorg_cv_cc_flag__Wpointer_arith
12024		if eval \${$cacheid+:} false; then :
12025  $as_echo_n "(cached) " >&6
12026else
12027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h.  */
12029int i;
12030int
12031main ()
12032{
12033
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"; then :
12039  eval $cacheid=yes
12040else
12041  eval $cacheid=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext \
12044    conftest$ac_exeext conftest.$ac_ext
12045fi
12046
12047
12048		CFLAGS="$xorg_testset_save_CFLAGS"
12049
12050		eval supported=\$$cacheid
12051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12052$as_echo "$supported" >&6; }
12053		if test "$supported" = "yes" ; then
12054			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12055			found="yes"
12056		fi
12057	fi
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073xorg_testset_save_CFLAGS="$CFLAGS"
12074
12075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12080  $as_echo_n "(cached) " >&6
12081else
12082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h.  */
12084int i;
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087  xorg_cv_cc_flag_unknown_warning_option=yes
12088else
12089  xorg_cv_cc_flag_unknown_warning_option=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12096	CFLAGS="$xorg_testset_save_CFLAGS"
12097fi
12098
12099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12102	fi
12103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12107  $as_echo_n "(cached) " >&6
12108else
12109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h.  */
12111int i;
12112_ACEOF
12113if ac_fn_c_try_compile "$LINENO"; then :
12114  xorg_cv_cc_flag_unused_command_line_argument=yes
12115else
12116  xorg_cv_cc_flag_unused_command_line_argument=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12123	CFLAGS="$xorg_testset_save_CFLAGS"
12124fi
12125
12126found="no"
12127
12128	if test $found = "no" ; then
12129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12131		fi
12132
12133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12135		fi
12136
12137		CFLAGS="$CFLAGS -Wmissing-declarations"
12138
12139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12140$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12141		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12142		if eval \${$cacheid+:} false; then :
12143  $as_echo_n "(cached) " >&6
12144else
12145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147int i;
12148int
12149main ()
12150{
12151
12152  ;
12153  return 0;
12154}
12155_ACEOF
12156if ac_fn_c_try_link "$LINENO"; then :
12157  eval $cacheid=yes
12158else
12159  eval $cacheid=no
12160fi
12161rm -f core conftest.err conftest.$ac_objext \
12162    conftest$ac_exeext conftest.$ac_ext
12163fi
12164
12165
12166		CFLAGS="$xorg_testset_save_CFLAGS"
12167
12168		eval supported=\$$cacheid
12169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12170$as_echo "$supported" >&6; }
12171		if test "$supported" = "yes" ; then
12172			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12173			found="yes"
12174		fi
12175	fi
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191xorg_testset_save_CFLAGS="$CFLAGS"
12192
12193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h.  */
12202int i;
12203_ACEOF
12204if ac_fn_c_try_compile "$LINENO"; then :
12205  xorg_cv_cc_flag_unknown_warning_option=yes
12206else
12207  xorg_cv_cc_flag_unknown_warning_option=no
12208fi
12209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210fi
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12214	CFLAGS="$xorg_testset_save_CFLAGS"
12215fi
12216
12217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12220	fi
12221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12225  $as_echo_n "(cached) " >&6
12226else
12227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h.  */
12229int i;
12230_ACEOF
12231if ac_fn_c_try_compile "$LINENO"; then :
12232  xorg_cv_cc_flag_unused_command_line_argument=yes
12233else
12234  xorg_cv_cc_flag_unused_command_line_argument=no
12235fi
12236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12241	CFLAGS="$xorg_testset_save_CFLAGS"
12242fi
12243
12244found="no"
12245
12246	if test $found = "no" ; then
12247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12249		fi
12250
12251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12253		fi
12254
12255		CFLAGS="$CFLAGS -Wformat=2"
12256
12257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12258$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12259		cacheid=xorg_cv_cc_flag__Wformat_2
12260		if eval \${$cacheid+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h.  */
12265int i;
12266int
12267main ()
12268{
12269
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"; then :
12275  eval $cacheid=yes
12276else
12277  eval $cacheid=no
12278fi
12279rm -f core conftest.err conftest.$ac_objext \
12280    conftest$ac_exeext conftest.$ac_ext
12281fi
12282
12283
12284		CFLAGS="$xorg_testset_save_CFLAGS"
12285
12286		eval supported=\$$cacheid
12287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12288$as_echo "$supported" >&6; }
12289		if test "$supported" = "yes" ; then
12290			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12291			found="yes"
12292		fi
12293	fi
12294
12295	if test $found = "no" ; then
12296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12298		fi
12299
12300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12302		fi
12303
12304		CFLAGS="$CFLAGS -Wformat"
12305
12306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12307$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12308		cacheid=xorg_cv_cc_flag__Wformat
12309		if eval \${$cacheid+:} false; then :
12310  $as_echo_n "(cached) " >&6
12311else
12312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313/* end confdefs.h.  */
12314int i;
12315int
12316main ()
12317{
12318
12319  ;
12320  return 0;
12321}
12322_ACEOF
12323if ac_fn_c_try_link "$LINENO"; then :
12324  eval $cacheid=yes
12325else
12326  eval $cacheid=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329    conftest$ac_exeext conftest.$ac_ext
12330fi
12331
12332
12333		CFLAGS="$xorg_testset_save_CFLAGS"
12334
12335		eval supported=\$$cacheid
12336		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12337$as_echo "$supported" >&6; }
12338		if test "$supported" = "yes" ; then
12339			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12340			found="yes"
12341		fi
12342	fi
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360xorg_testset_save_CFLAGS="$CFLAGS"
12361
12362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12367  $as_echo_n "(cached) " >&6
12368else
12369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h.  */
12371int i;
12372_ACEOF
12373if ac_fn_c_try_compile "$LINENO"; then :
12374  xorg_cv_cc_flag_unknown_warning_option=yes
12375else
12376  xorg_cv_cc_flag_unknown_warning_option=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12383	CFLAGS="$xorg_testset_save_CFLAGS"
12384fi
12385
12386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12389	fi
12390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h.  */
12398int i;
12399_ACEOF
12400if ac_fn_c_try_compile "$LINENO"; then :
12401  xorg_cv_cc_flag_unused_command_line_argument=yes
12402else
12403  xorg_cv_cc_flag_unused_command_line_argument=no
12404fi
12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12410	CFLAGS="$xorg_testset_save_CFLAGS"
12411fi
12412
12413found="no"
12414
12415	if test $found = "no" ; then
12416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12418		fi
12419
12420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12422		fi
12423
12424		CFLAGS="$CFLAGS -Wstrict-prototypes"
12425
12426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12427$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12428		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12429		if eval \${$cacheid+:} false; then :
12430  $as_echo_n "(cached) " >&6
12431else
12432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433/* end confdefs.h.  */
12434int i;
12435int
12436main ()
12437{
12438
12439  ;
12440  return 0;
12441}
12442_ACEOF
12443if ac_fn_c_try_link "$LINENO"; then :
12444  eval $cacheid=yes
12445else
12446  eval $cacheid=no
12447fi
12448rm -f core conftest.err conftest.$ac_objext \
12449    conftest$ac_exeext conftest.$ac_ext
12450fi
12451
12452
12453		CFLAGS="$xorg_testset_save_CFLAGS"
12454
12455		eval supported=\$$cacheid
12456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12457$as_echo "$supported" >&6; }
12458		if test "$supported" = "yes" ; then
12459			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12460			found="yes"
12461		fi
12462	fi
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478xorg_testset_save_CFLAGS="$CFLAGS"
12479
12480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h.  */
12489int i;
12490_ACEOF
12491if ac_fn_c_try_compile "$LINENO"; then :
12492  xorg_cv_cc_flag_unknown_warning_option=yes
12493else
12494  xorg_cv_cc_flag_unknown_warning_option=no
12495fi
12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12501	CFLAGS="$xorg_testset_save_CFLAGS"
12502fi
12503
12504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12507	fi
12508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h.  */
12516int i;
12517_ACEOF
12518if ac_fn_c_try_compile "$LINENO"; then :
12519  xorg_cv_cc_flag_unused_command_line_argument=yes
12520else
12521  xorg_cv_cc_flag_unused_command_line_argument=no
12522fi
12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12528	CFLAGS="$xorg_testset_save_CFLAGS"
12529fi
12530
12531found="no"
12532
12533	if test $found = "no" ; then
12534		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12536		fi
12537
12538		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540		fi
12541
12542		CFLAGS="$CFLAGS -Wmissing-prototypes"
12543
12544		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12545$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12546		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12547		if eval \${$cacheid+:} false; then :
12548  $as_echo_n "(cached) " >&6
12549else
12550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h.  */
12552int i;
12553int
12554main ()
12555{
12556
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561if ac_fn_c_try_link "$LINENO"; then :
12562  eval $cacheid=yes
12563else
12564  eval $cacheid=no
12565fi
12566rm -f core conftest.err conftest.$ac_objext \
12567    conftest$ac_exeext conftest.$ac_ext
12568fi
12569
12570
12571		CFLAGS="$xorg_testset_save_CFLAGS"
12572
12573		eval supported=\$$cacheid
12574		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12575$as_echo "$supported" >&6; }
12576		if test "$supported" = "yes" ; then
12577			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12578			found="yes"
12579		fi
12580	fi
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596xorg_testset_save_CFLAGS="$CFLAGS"
12597
12598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h.  */
12607int i;
12608_ACEOF
12609if ac_fn_c_try_compile "$LINENO"; then :
12610  xorg_cv_cc_flag_unknown_warning_option=yes
12611else
12612  xorg_cv_cc_flag_unknown_warning_option=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615fi
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12619	CFLAGS="$xorg_testset_save_CFLAGS"
12620fi
12621
12622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12625	fi
12626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634int i;
12635_ACEOF
12636if ac_fn_c_try_compile "$LINENO"; then :
12637  xorg_cv_cc_flag_unused_command_line_argument=yes
12638else
12639  xorg_cv_cc_flag_unused_command_line_argument=no
12640fi
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642fi
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12646	CFLAGS="$xorg_testset_save_CFLAGS"
12647fi
12648
12649found="no"
12650
12651	if test $found = "no" ; then
12652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12654		fi
12655
12656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658		fi
12659
12660		CFLAGS="$CFLAGS -Wnested-externs"
12661
12662		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12663$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12664		cacheid=xorg_cv_cc_flag__Wnested_externs
12665		if eval \${$cacheid+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h.  */
12670int i;
12671int
12672main ()
12673{
12674
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_link "$LINENO"; then :
12680  eval $cacheid=yes
12681else
12682  eval $cacheid=no
12683fi
12684rm -f core conftest.err conftest.$ac_objext \
12685    conftest$ac_exeext conftest.$ac_ext
12686fi
12687
12688
12689		CFLAGS="$xorg_testset_save_CFLAGS"
12690
12691		eval supported=\$$cacheid
12692		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12693$as_echo "$supported" >&6; }
12694		if test "$supported" = "yes" ; then
12695			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12696			found="yes"
12697		fi
12698	fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714xorg_testset_save_CFLAGS="$CFLAGS"
12715
12716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12721  $as_echo_n "(cached) " >&6
12722else
12723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h.  */
12725int i;
12726_ACEOF
12727if ac_fn_c_try_compile "$LINENO"; then :
12728  xorg_cv_cc_flag_unknown_warning_option=yes
12729else
12730  xorg_cv_cc_flag_unknown_warning_option=no
12731fi
12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12737	CFLAGS="$xorg_testset_save_CFLAGS"
12738fi
12739
12740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12743	fi
12744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12748  $as_echo_n "(cached) " >&6
12749else
12750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h.  */
12752int i;
12753_ACEOF
12754if ac_fn_c_try_compile "$LINENO"; then :
12755  xorg_cv_cc_flag_unused_command_line_argument=yes
12756else
12757  xorg_cv_cc_flag_unused_command_line_argument=no
12758fi
12759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760fi
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12764	CFLAGS="$xorg_testset_save_CFLAGS"
12765fi
12766
12767found="no"
12768
12769	if test $found = "no" ; then
12770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12772		fi
12773
12774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776		fi
12777
12778		CFLAGS="$CFLAGS -Wbad-function-cast"
12779
12780		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12781$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12782		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12783		if eval \${$cacheid+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788int i;
12789int
12790main ()
12791{
12792
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797if ac_fn_c_try_link "$LINENO"; then :
12798  eval $cacheid=yes
12799else
12800  eval $cacheid=no
12801fi
12802rm -f core conftest.err conftest.$ac_objext \
12803    conftest$ac_exeext conftest.$ac_ext
12804fi
12805
12806
12807		CFLAGS="$xorg_testset_save_CFLAGS"
12808
12809		eval supported=\$$cacheid
12810		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12811$as_echo "$supported" >&6; }
12812		if test "$supported" = "yes" ; then
12813			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12814			found="yes"
12815		fi
12816	fi
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832xorg_testset_save_CFLAGS="$CFLAGS"
12833
12834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12839  $as_echo_n "(cached) " >&6
12840else
12841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843int i;
12844_ACEOF
12845if ac_fn_c_try_compile "$LINENO"; then :
12846  xorg_cv_cc_flag_unknown_warning_option=yes
12847else
12848  xorg_cv_cc_flag_unknown_warning_option=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12854	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12855	CFLAGS="$xorg_testset_save_CFLAGS"
12856fi
12857
12858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12859	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12860		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12861	fi
12862	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12866  $as_echo_n "(cached) " >&6
12867else
12868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869/* end confdefs.h.  */
12870int i;
12871_ACEOF
12872if ac_fn_c_try_compile "$LINENO"; then :
12873  xorg_cv_cc_flag_unused_command_line_argument=yes
12874else
12875  xorg_cv_cc_flag_unused_command_line_argument=no
12876fi
12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878fi
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12882	CFLAGS="$xorg_testset_save_CFLAGS"
12883fi
12884
12885found="no"
12886
12887	if test $found = "no" ; then
12888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12890		fi
12891
12892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12894		fi
12895
12896		CFLAGS="$CFLAGS -Wold-style-definition"
12897
12898		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12899$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12900		cacheid=xorg_cv_cc_flag__Wold_style_definition
12901		if eval \${$cacheid+:} false; then :
12902  $as_echo_n "(cached) " >&6
12903else
12904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906int i;
12907int
12908main ()
12909{
12910
12911  ;
12912  return 0;
12913}
12914_ACEOF
12915if ac_fn_c_try_link "$LINENO"; then :
12916  eval $cacheid=yes
12917else
12918  eval $cacheid=no
12919fi
12920rm -f core conftest.err conftest.$ac_objext \
12921    conftest$ac_exeext conftest.$ac_ext
12922fi
12923
12924
12925		CFLAGS="$xorg_testset_save_CFLAGS"
12926
12927		eval supported=\$$cacheid
12928		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12929$as_echo "$supported" >&6; }
12930		if test "$supported" = "yes" ; then
12931			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12932			found="yes"
12933		fi
12934	fi
12935
12936	if test $found = "no" ; then
12937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12939		fi
12940
12941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12943		fi
12944
12945		CFLAGS="$CFLAGS -fd"
12946
12947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12948$as_echo_n "checking if $CC supports -fd... " >&6; }
12949		cacheid=xorg_cv_cc_flag__fd
12950		if eval \${$cacheid+:} false; then :
12951  $as_echo_n "(cached) " >&6
12952else
12953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h.  */
12955int i;
12956int
12957main ()
12958{
12959
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964if ac_fn_c_try_link "$LINENO"; then :
12965  eval $cacheid=yes
12966else
12967  eval $cacheid=no
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext conftest.$ac_ext
12971fi
12972
12973
12974		CFLAGS="$xorg_testset_save_CFLAGS"
12975
12976		eval supported=\$$cacheid
12977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12978$as_echo "$supported" >&6; }
12979		if test "$supported" = "yes" ; then
12980			BASE_CFLAGS="$BASE_CFLAGS -fd"
12981			found="yes"
12982		fi
12983	fi
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999xorg_testset_save_CFLAGS="$CFLAGS"
13000
13001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13006  $as_echo_n "(cached) " >&6
13007else
13008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009/* end confdefs.h.  */
13010int i;
13011_ACEOF
13012if ac_fn_c_try_compile "$LINENO"; then :
13013  xorg_cv_cc_flag_unknown_warning_option=yes
13014else
13015  xorg_cv_cc_flag_unknown_warning_option=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018fi
13019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13022	CFLAGS="$xorg_testset_save_CFLAGS"
13023fi
13024
13025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13028	fi
13029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13033  $as_echo_n "(cached) " >&6
13034else
13035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036/* end confdefs.h.  */
13037int i;
13038_ACEOF
13039if ac_fn_c_try_compile "$LINENO"; then :
13040  xorg_cv_cc_flag_unused_command_line_argument=yes
13041else
13042  xorg_cv_cc_flag_unused_command_line_argument=no
13043fi
13044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045fi
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13049	CFLAGS="$xorg_testset_save_CFLAGS"
13050fi
13051
13052found="no"
13053
13054	if test $found = "no" ; then
13055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13057		fi
13058
13059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13061		fi
13062
13063		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13064
13065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13066$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13067		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13068		if eval \${$cacheid+:} false; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h.  */
13073int i;
13074int
13075main ()
13076{
13077
13078  ;
13079  return 0;
13080}
13081_ACEOF
13082if ac_fn_c_try_link "$LINENO"; then :
13083  eval $cacheid=yes
13084else
13085  eval $cacheid=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext \
13088    conftest$ac_exeext conftest.$ac_ext
13089fi
13090
13091
13092		CFLAGS="$xorg_testset_save_CFLAGS"
13093
13094		eval supported=\$$cacheid
13095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13096$as_echo "$supported" >&6; }
13097		if test "$supported" = "yes" ; then
13098			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13099			found="yes"
13100		fi
13101	fi
13102
13103
13104
13105
13106
13107# This chunk adds additional warnings that could catch undesired effects.
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121xorg_testset_save_CFLAGS="$CFLAGS"
13122
13123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13128  $as_echo_n "(cached) " >&6
13129else
13130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h.  */
13132int i;
13133_ACEOF
13134if ac_fn_c_try_compile "$LINENO"; then :
13135  xorg_cv_cc_flag_unknown_warning_option=yes
13136else
13137  xorg_cv_cc_flag_unknown_warning_option=no
13138fi
13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140fi
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13144	CFLAGS="$xorg_testset_save_CFLAGS"
13145fi
13146
13147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13150	fi
13151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13155  $as_echo_n "(cached) " >&6
13156else
13157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158/* end confdefs.h.  */
13159int i;
13160_ACEOF
13161if ac_fn_c_try_compile "$LINENO"; then :
13162  xorg_cv_cc_flag_unused_command_line_argument=yes
13163else
13164  xorg_cv_cc_flag_unused_command_line_argument=no
13165fi
13166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13167fi
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13171	CFLAGS="$xorg_testset_save_CFLAGS"
13172fi
13173
13174found="no"
13175
13176	if test $found = "no" ; then
13177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13179		fi
13180
13181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13183		fi
13184
13185		CFLAGS="$CFLAGS -Wunused"
13186
13187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13188$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13189		cacheid=xorg_cv_cc_flag__Wunused
13190		if eval \${$cacheid+:} false; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194/* end confdefs.h.  */
13195int i;
13196int
13197main ()
13198{
13199
13200  ;
13201  return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_link "$LINENO"; then :
13205  eval $cacheid=yes
13206else
13207  eval $cacheid=no
13208fi
13209rm -f core conftest.err conftest.$ac_objext \
13210    conftest$ac_exeext conftest.$ac_ext
13211fi
13212
13213
13214		CFLAGS="$xorg_testset_save_CFLAGS"
13215
13216		eval supported=\$$cacheid
13217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13218$as_echo "$supported" >&6; }
13219		if test "$supported" = "yes" ; then
13220			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13221			found="yes"
13222		fi
13223	fi
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239xorg_testset_save_CFLAGS="$CFLAGS"
13240
13241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13246  $as_echo_n "(cached) " >&6
13247else
13248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h.  */
13250int i;
13251_ACEOF
13252if ac_fn_c_try_compile "$LINENO"; then :
13253  xorg_cv_cc_flag_unknown_warning_option=yes
13254else
13255  xorg_cv_cc_flag_unknown_warning_option=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258fi
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13262	CFLAGS="$xorg_testset_save_CFLAGS"
13263fi
13264
13265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13268	fi
13269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13273  $as_echo_n "(cached) " >&6
13274else
13275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h.  */
13277int i;
13278_ACEOF
13279if ac_fn_c_try_compile "$LINENO"; then :
13280  xorg_cv_cc_flag_unused_command_line_argument=yes
13281else
13282  xorg_cv_cc_flag_unused_command_line_argument=no
13283fi
13284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285fi
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13289	CFLAGS="$xorg_testset_save_CFLAGS"
13290fi
13291
13292found="no"
13293
13294	if test $found = "no" ; then
13295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297		fi
13298
13299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13301		fi
13302
13303		CFLAGS="$CFLAGS -Wuninitialized"
13304
13305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13306$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13307		cacheid=xorg_cv_cc_flag__Wuninitialized
13308		if eval \${$cacheid+:} false; then :
13309  $as_echo_n "(cached) " >&6
13310else
13311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h.  */
13313int i;
13314int
13315main ()
13316{
13317
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322if ac_fn_c_try_link "$LINENO"; then :
13323  eval $cacheid=yes
13324else
13325  eval $cacheid=no
13326fi
13327rm -f core conftest.err conftest.$ac_objext \
13328    conftest$ac_exeext conftest.$ac_ext
13329fi
13330
13331
13332		CFLAGS="$xorg_testset_save_CFLAGS"
13333
13334		eval supported=\$$cacheid
13335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13336$as_echo "$supported" >&6; }
13337		if test "$supported" = "yes" ; then
13338			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13339			found="yes"
13340		fi
13341	fi
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357xorg_testset_save_CFLAGS="$CFLAGS"
13358
13359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13364  $as_echo_n "(cached) " >&6
13365else
13366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367/* end confdefs.h.  */
13368int i;
13369_ACEOF
13370if ac_fn_c_try_compile "$LINENO"; then :
13371  xorg_cv_cc_flag_unknown_warning_option=yes
13372else
13373  xorg_cv_cc_flag_unknown_warning_option=no
13374fi
13375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13380	CFLAGS="$xorg_testset_save_CFLAGS"
13381fi
13382
13383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13386	fi
13387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395int i;
13396_ACEOF
13397if ac_fn_c_try_compile "$LINENO"; then :
13398  xorg_cv_cc_flag_unused_command_line_argument=yes
13399else
13400  xorg_cv_cc_flag_unused_command_line_argument=no
13401fi
13402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403fi
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13407	CFLAGS="$xorg_testset_save_CFLAGS"
13408fi
13409
13410found="no"
13411
13412	if test $found = "no" ; then
13413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415		fi
13416
13417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419		fi
13420
13421		CFLAGS="$CFLAGS -Wshadow"
13422
13423		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13424$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13425		cacheid=xorg_cv_cc_flag__Wshadow
13426		if eval \${$cacheid+:} false; then :
13427  $as_echo_n "(cached) " >&6
13428else
13429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430/* end confdefs.h.  */
13431int i;
13432int
13433main ()
13434{
13435
13436  ;
13437  return 0;
13438}
13439_ACEOF
13440if ac_fn_c_try_link "$LINENO"; then :
13441  eval $cacheid=yes
13442else
13443  eval $cacheid=no
13444fi
13445rm -f core conftest.err conftest.$ac_objext \
13446    conftest$ac_exeext conftest.$ac_ext
13447fi
13448
13449
13450		CFLAGS="$xorg_testset_save_CFLAGS"
13451
13452		eval supported=\$$cacheid
13453		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13454$as_echo "$supported" >&6; }
13455		if test "$supported" = "yes" ; then
13456			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13457			found="yes"
13458		fi
13459	fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475xorg_testset_save_CFLAGS="$CFLAGS"
13476
13477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13482  $as_echo_n "(cached) " >&6
13483else
13484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485/* end confdefs.h.  */
13486int i;
13487_ACEOF
13488if ac_fn_c_try_compile "$LINENO"; then :
13489  xorg_cv_cc_flag_unknown_warning_option=yes
13490else
13491  xorg_cv_cc_flag_unknown_warning_option=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494fi
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13498	CFLAGS="$xorg_testset_save_CFLAGS"
13499fi
13500
13501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504	fi
13505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13509  $as_echo_n "(cached) " >&6
13510else
13511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512/* end confdefs.h.  */
13513int i;
13514_ACEOF
13515if ac_fn_c_try_compile "$LINENO"; then :
13516  xorg_cv_cc_flag_unused_command_line_argument=yes
13517else
13518  xorg_cv_cc_flag_unused_command_line_argument=no
13519fi
13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521fi
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13525	CFLAGS="$xorg_testset_save_CFLAGS"
13526fi
13527
13528found="no"
13529
13530	if test $found = "no" ; then
13531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533		fi
13534
13535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537		fi
13538
13539		CFLAGS="$CFLAGS -Wmissing-noreturn"
13540
13541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13542$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13543		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13544		if eval \${$cacheid+:} false; then :
13545  $as_echo_n "(cached) " >&6
13546else
13547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548/* end confdefs.h.  */
13549int i;
13550int
13551main ()
13552{
13553
13554  ;
13555  return 0;
13556}
13557_ACEOF
13558if ac_fn_c_try_link "$LINENO"; then :
13559  eval $cacheid=yes
13560else
13561  eval $cacheid=no
13562fi
13563rm -f core conftest.err conftest.$ac_objext \
13564    conftest$ac_exeext conftest.$ac_ext
13565fi
13566
13567
13568		CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570		eval supported=\$$cacheid
13571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572$as_echo "$supported" >&6; }
13573		if test "$supported" = "yes" ; then
13574			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13575			found="yes"
13576		fi
13577	fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593xorg_testset_save_CFLAGS="$CFLAGS"
13594
13595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13600  $as_echo_n "(cached) " >&6
13601else
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604int i;
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"; then :
13607  xorg_cv_cc_flag_unknown_warning_option=yes
13608else
13609  xorg_cv_cc_flag_unknown_warning_option=no
13610fi
13611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13616	CFLAGS="$xorg_testset_save_CFLAGS"
13617fi
13618
13619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622	fi
13623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13627  $as_echo_n "(cached) " >&6
13628else
13629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h.  */
13631int i;
13632_ACEOF
13633if ac_fn_c_try_compile "$LINENO"; then :
13634  xorg_cv_cc_flag_unused_command_line_argument=yes
13635else
13636  xorg_cv_cc_flag_unused_command_line_argument=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639fi
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13643	CFLAGS="$xorg_testset_save_CFLAGS"
13644fi
13645
13646found="no"
13647
13648	if test $found = "no" ; then
13649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651		fi
13652
13653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13655		fi
13656
13657		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13658
13659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13660$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13661		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13662		if eval \${$cacheid+:} false; then :
13663  $as_echo_n "(cached) " >&6
13664else
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667int i;
13668int
13669main ()
13670{
13671
13672  ;
13673  return 0;
13674}
13675_ACEOF
13676if ac_fn_c_try_link "$LINENO"; then :
13677  eval $cacheid=yes
13678else
13679  eval $cacheid=no
13680fi
13681rm -f core conftest.err conftest.$ac_objext \
13682    conftest$ac_exeext conftest.$ac_ext
13683fi
13684
13685
13686		CFLAGS="$xorg_testset_save_CFLAGS"
13687
13688		eval supported=\$$cacheid
13689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13690$as_echo "$supported" >&6; }
13691		if test "$supported" = "yes" ; then
13692			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13693			found="yes"
13694		fi
13695	fi
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711xorg_testset_save_CFLAGS="$CFLAGS"
13712
13713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13718  $as_echo_n "(cached) " >&6
13719else
13720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h.  */
13722int i;
13723_ACEOF
13724if ac_fn_c_try_compile "$LINENO"; then :
13725  xorg_cv_cc_flag_unknown_warning_option=yes
13726else
13727  xorg_cv_cc_flag_unknown_warning_option=no
13728fi
13729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730fi
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13734	CFLAGS="$xorg_testset_save_CFLAGS"
13735fi
13736
13737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13740	fi
13741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13745  $as_echo_n "(cached) " >&6
13746else
13747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748/* end confdefs.h.  */
13749int i;
13750_ACEOF
13751if ac_fn_c_try_compile "$LINENO"; then :
13752  xorg_cv_cc_flag_unused_command_line_argument=yes
13753else
13754  xorg_cv_cc_flag_unused_command_line_argument=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13761	CFLAGS="$xorg_testset_save_CFLAGS"
13762fi
13763
13764found="no"
13765
13766	if test $found = "no" ; then
13767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769		fi
13770
13771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773		fi
13774
13775		CFLAGS="$CFLAGS -Wredundant-decls"
13776
13777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13778$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13779		cacheid=xorg_cv_cc_flag__Wredundant_decls
13780		if eval \${$cacheid+:} false; then :
13781  $as_echo_n "(cached) " >&6
13782else
13783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785int i;
13786int
13787main ()
13788{
13789
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_link "$LINENO"; then :
13795  eval $cacheid=yes
13796else
13797  eval $cacheid=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext \
13800    conftest$ac_exeext conftest.$ac_ext
13801fi
13802
13803
13804		CFLAGS="$xorg_testset_save_CFLAGS"
13805
13806		eval supported=\$$cacheid
13807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13808$as_echo "$supported" >&6; }
13809		if test "$supported" = "yes" ; then
13810			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13811			found="yes"
13812		fi
13813	fi
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829xorg_testset_save_CFLAGS="$CFLAGS"
13830
13831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839/* end confdefs.h.  */
13840int i;
13841_ACEOF
13842if ac_fn_c_try_compile "$LINENO"; then :
13843  xorg_cv_cc_flag_unknown_warning_option=yes
13844else
13845  xorg_cv_cc_flag_unknown_warning_option=no
13846fi
13847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848fi
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13852	CFLAGS="$xorg_testset_save_CFLAGS"
13853fi
13854
13855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13858	fi
13859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866/* end confdefs.h.  */
13867int i;
13868_ACEOF
13869if ac_fn_c_try_compile "$LINENO"; then :
13870  xorg_cv_cc_flag_unused_command_line_argument=yes
13871else
13872  xorg_cv_cc_flag_unused_command_line_argument=no
13873fi
13874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875fi
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13879	CFLAGS="$xorg_testset_save_CFLAGS"
13880fi
13881
13882found="no"
13883
13884	if test $found = "no" ; then
13885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887		fi
13888
13889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891		fi
13892
13893		CFLAGS="$CFLAGS -Wlogical-op"
13894
13895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13896$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13897		cacheid=xorg_cv_cc_flag__Wlogical_op
13898		if eval \${$cacheid+:} false; then :
13899  $as_echo_n "(cached) " >&6
13900else
13901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902/* end confdefs.h.  */
13903int i;
13904int
13905main ()
13906{
13907
13908  ;
13909  return 0;
13910}
13911_ACEOF
13912if ac_fn_c_try_link "$LINENO"; then :
13913  eval $cacheid=yes
13914else
13915  eval $cacheid=no
13916fi
13917rm -f core conftest.err conftest.$ac_objext \
13918    conftest$ac_exeext conftest.$ac_ext
13919fi
13920
13921
13922		CFLAGS="$xorg_testset_save_CFLAGS"
13923
13924		eval supported=\$$cacheid
13925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13926$as_echo "$supported" >&6; }
13927		if test "$supported" = "yes" ; then
13928			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13929			found="yes"
13930		fi
13931	fi
13932
13933
13934
13935# These are currently disabled because they are noisy.  They will be enabled
13936# in the future once the codebase is sufficiently modernized to silence
13937# them.  For now, I don't want them to drown out the other warnings.
13938# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13939# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13940# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13941
13942# Turn some warnings into errors, so we don't accidently get successful builds
13943# when there are problems that should be fixed.
13944
13945if test "x$SELECTIVE_WERROR" = "xyes" ; then
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959xorg_testset_save_CFLAGS="$CFLAGS"
13960
13961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969/* end confdefs.h.  */
13970int i;
13971_ACEOF
13972if ac_fn_c_try_compile "$LINENO"; then :
13973  xorg_cv_cc_flag_unknown_warning_option=yes
13974else
13975  xorg_cv_cc_flag_unknown_warning_option=no
13976fi
13977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13982	CFLAGS="$xorg_testset_save_CFLAGS"
13983fi
13984
13985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13988	fi
13989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13993  $as_echo_n "(cached) " >&6
13994else
13995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996/* end confdefs.h.  */
13997int i;
13998_ACEOF
13999if ac_fn_c_try_compile "$LINENO"; then :
14000  xorg_cv_cc_flag_unused_command_line_argument=yes
14001else
14002  xorg_cv_cc_flag_unused_command_line_argument=no
14003fi
14004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005fi
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14009	CFLAGS="$xorg_testset_save_CFLAGS"
14010fi
14011
14012found="no"
14013
14014	if test $found = "no" ; then
14015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14017		fi
14018
14019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021		fi
14022
14023		CFLAGS="$CFLAGS -Werror=implicit"
14024
14025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14026$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14027		cacheid=xorg_cv_cc_flag__Werror_implicit
14028		if eval \${$cacheid+:} false; then :
14029  $as_echo_n "(cached) " >&6
14030else
14031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032/* end confdefs.h.  */
14033int i;
14034int
14035main ()
14036{
14037
14038  ;
14039  return 0;
14040}
14041_ACEOF
14042if ac_fn_c_try_link "$LINENO"; then :
14043  eval $cacheid=yes
14044else
14045  eval $cacheid=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext \
14048    conftest$ac_exeext conftest.$ac_ext
14049fi
14050
14051
14052		CFLAGS="$xorg_testset_save_CFLAGS"
14053
14054		eval supported=\$$cacheid
14055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14056$as_echo "$supported" >&6; }
14057		if test "$supported" = "yes" ; then
14058			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14059			found="yes"
14060		fi
14061	fi
14062
14063	if test $found = "no" ; then
14064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066		fi
14067
14068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14070		fi
14071
14072		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14073
14074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14075$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14076		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14077		if eval \${$cacheid+:} false; then :
14078  $as_echo_n "(cached) " >&6
14079else
14080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081/* end confdefs.h.  */
14082int i;
14083int
14084main ()
14085{
14086
14087  ;
14088  return 0;
14089}
14090_ACEOF
14091if ac_fn_c_try_link "$LINENO"; then :
14092  eval $cacheid=yes
14093else
14094  eval $cacheid=no
14095fi
14096rm -f core conftest.err conftest.$ac_objext \
14097    conftest$ac_exeext conftest.$ac_ext
14098fi
14099
14100
14101		CFLAGS="$xorg_testset_save_CFLAGS"
14102
14103		eval supported=\$$cacheid
14104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14105$as_echo "$supported" >&6; }
14106		if test "$supported" = "yes" ; then
14107			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14108			found="yes"
14109		fi
14110	fi
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126xorg_testset_save_CFLAGS="$CFLAGS"
14127
14128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14133  $as_echo_n "(cached) " >&6
14134else
14135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137int i;
14138_ACEOF
14139if ac_fn_c_try_compile "$LINENO"; then :
14140  xorg_cv_cc_flag_unknown_warning_option=yes
14141else
14142  xorg_cv_cc_flag_unknown_warning_option=no
14143fi
14144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145fi
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14149	CFLAGS="$xorg_testset_save_CFLAGS"
14150fi
14151
14152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155	fi
14156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14160  $as_echo_n "(cached) " >&6
14161else
14162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h.  */
14164int i;
14165_ACEOF
14166if ac_fn_c_try_compile "$LINENO"; then :
14167  xorg_cv_cc_flag_unused_command_line_argument=yes
14168else
14169  xorg_cv_cc_flag_unused_command_line_argument=no
14170fi
14171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172fi
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14176	CFLAGS="$xorg_testset_save_CFLAGS"
14177fi
14178
14179found="no"
14180
14181	if test $found = "no" ; then
14182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184		fi
14185
14186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14188		fi
14189
14190		CFLAGS="$CFLAGS -Werror=nonnull"
14191
14192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14193$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14194		cacheid=xorg_cv_cc_flag__Werror_nonnull
14195		if eval \${$cacheid+:} false; then :
14196  $as_echo_n "(cached) " >&6
14197else
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200int i;
14201int
14202main ()
14203{
14204
14205  ;
14206  return 0;
14207}
14208_ACEOF
14209if ac_fn_c_try_link "$LINENO"; then :
14210  eval $cacheid=yes
14211else
14212  eval $cacheid=no
14213fi
14214rm -f core conftest.err conftest.$ac_objext \
14215    conftest$ac_exeext conftest.$ac_ext
14216fi
14217
14218
14219		CFLAGS="$xorg_testset_save_CFLAGS"
14220
14221		eval supported=\$$cacheid
14222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14223$as_echo "$supported" >&6; }
14224		if test "$supported" = "yes" ; then
14225			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14226			found="yes"
14227		fi
14228	fi
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244xorg_testset_save_CFLAGS="$CFLAGS"
14245
14246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14251  $as_echo_n "(cached) " >&6
14252else
14253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254/* end confdefs.h.  */
14255int i;
14256_ACEOF
14257if ac_fn_c_try_compile "$LINENO"; then :
14258  xorg_cv_cc_flag_unknown_warning_option=yes
14259else
14260  xorg_cv_cc_flag_unknown_warning_option=no
14261fi
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14267	CFLAGS="$xorg_testset_save_CFLAGS"
14268fi
14269
14270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273	fi
14274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14278  $as_echo_n "(cached) " >&6
14279else
14280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282int i;
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"; then :
14285  xorg_cv_cc_flag_unused_command_line_argument=yes
14286else
14287  xorg_cv_cc_flag_unused_command_line_argument=no
14288fi
14289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290fi
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14294	CFLAGS="$xorg_testset_save_CFLAGS"
14295fi
14296
14297found="no"
14298
14299	if test $found = "no" ; then
14300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302		fi
14303
14304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14306		fi
14307
14308		CFLAGS="$CFLAGS -Werror=init-self"
14309
14310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14311$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14312		cacheid=xorg_cv_cc_flag__Werror_init_self
14313		if eval \${$cacheid+:} false; then :
14314  $as_echo_n "(cached) " >&6
14315else
14316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317/* end confdefs.h.  */
14318int i;
14319int
14320main ()
14321{
14322
14323  ;
14324  return 0;
14325}
14326_ACEOF
14327if ac_fn_c_try_link "$LINENO"; then :
14328  eval $cacheid=yes
14329else
14330  eval $cacheid=no
14331fi
14332rm -f core conftest.err conftest.$ac_objext \
14333    conftest$ac_exeext conftest.$ac_ext
14334fi
14335
14336
14337		CFLAGS="$xorg_testset_save_CFLAGS"
14338
14339		eval supported=\$$cacheid
14340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14341$as_echo "$supported" >&6; }
14342		if test "$supported" = "yes" ; then
14343			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14344			found="yes"
14345		fi
14346	fi
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362xorg_testset_save_CFLAGS="$CFLAGS"
14363
14364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14369  $as_echo_n "(cached) " >&6
14370else
14371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372/* end confdefs.h.  */
14373int i;
14374_ACEOF
14375if ac_fn_c_try_compile "$LINENO"; then :
14376  xorg_cv_cc_flag_unknown_warning_option=yes
14377else
14378  xorg_cv_cc_flag_unknown_warning_option=no
14379fi
14380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381fi
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14385	CFLAGS="$xorg_testset_save_CFLAGS"
14386fi
14387
14388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14391	fi
14392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399/* end confdefs.h.  */
14400int i;
14401_ACEOF
14402if ac_fn_c_try_compile "$LINENO"; then :
14403  xorg_cv_cc_flag_unused_command_line_argument=yes
14404else
14405  xorg_cv_cc_flag_unused_command_line_argument=no
14406fi
14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408fi
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14412	CFLAGS="$xorg_testset_save_CFLAGS"
14413fi
14414
14415found="no"
14416
14417	if test $found = "no" ; then
14418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14420		fi
14421
14422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14424		fi
14425
14426		CFLAGS="$CFLAGS -Werror=main"
14427
14428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14429$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14430		cacheid=xorg_cv_cc_flag__Werror_main
14431		if eval \${$cacheid+:} false; then :
14432  $as_echo_n "(cached) " >&6
14433else
14434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437int
14438main ()
14439{
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"; then :
14446  eval $cacheid=yes
14447else
14448  eval $cacheid=no
14449fi
14450rm -f core conftest.err conftest.$ac_objext \
14451    conftest$ac_exeext conftest.$ac_ext
14452fi
14453
14454
14455		CFLAGS="$xorg_testset_save_CFLAGS"
14456
14457		eval supported=\$$cacheid
14458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14459$as_echo "$supported" >&6; }
14460		if test "$supported" = "yes" ; then
14461			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14462			found="yes"
14463		fi
14464	fi
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480xorg_testset_save_CFLAGS="$CFLAGS"
14481
14482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14487  $as_echo_n "(cached) " >&6
14488else
14489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490/* end confdefs.h.  */
14491int i;
14492_ACEOF
14493if ac_fn_c_try_compile "$LINENO"; then :
14494  xorg_cv_cc_flag_unknown_warning_option=yes
14495else
14496  xorg_cv_cc_flag_unknown_warning_option=no
14497fi
14498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499fi
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14503	CFLAGS="$xorg_testset_save_CFLAGS"
14504fi
14505
14506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509	fi
14510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14514  $as_echo_n "(cached) " >&6
14515else
14516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h.  */
14518int i;
14519_ACEOF
14520if ac_fn_c_try_compile "$LINENO"; then :
14521  xorg_cv_cc_flag_unused_command_line_argument=yes
14522else
14523  xorg_cv_cc_flag_unused_command_line_argument=no
14524fi
14525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14530	CFLAGS="$xorg_testset_save_CFLAGS"
14531fi
14532
14533found="no"
14534
14535	if test $found = "no" ; then
14536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14538		fi
14539
14540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14542		fi
14543
14544		CFLAGS="$CFLAGS -Werror=missing-braces"
14545
14546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14547$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14548		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14549		if eval \${$cacheid+:} false; then :
14550  $as_echo_n "(cached) " >&6
14551else
14552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553/* end confdefs.h.  */
14554int i;
14555int
14556main ()
14557{
14558
14559  ;
14560  return 0;
14561}
14562_ACEOF
14563if ac_fn_c_try_link "$LINENO"; then :
14564  eval $cacheid=yes
14565else
14566  eval $cacheid=no
14567fi
14568rm -f core conftest.err conftest.$ac_objext \
14569    conftest$ac_exeext conftest.$ac_ext
14570fi
14571
14572
14573		CFLAGS="$xorg_testset_save_CFLAGS"
14574
14575		eval supported=\$$cacheid
14576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14577$as_echo "$supported" >&6; }
14578		if test "$supported" = "yes" ; then
14579			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14580			found="yes"
14581		fi
14582	fi
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598xorg_testset_save_CFLAGS="$CFLAGS"
14599
14600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14605  $as_echo_n "(cached) " >&6
14606else
14607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609int i;
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612  xorg_cv_cc_flag_unknown_warning_option=yes
14613else
14614  xorg_cv_cc_flag_unknown_warning_option=no
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617fi
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14621	CFLAGS="$xorg_testset_save_CFLAGS"
14622fi
14623
14624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14627	fi
14628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14632  $as_echo_n "(cached) " >&6
14633else
14634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635/* end confdefs.h.  */
14636int i;
14637_ACEOF
14638if ac_fn_c_try_compile "$LINENO"; then :
14639  xorg_cv_cc_flag_unused_command_line_argument=yes
14640else
14641  xorg_cv_cc_flag_unused_command_line_argument=no
14642fi
14643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14648	CFLAGS="$xorg_testset_save_CFLAGS"
14649fi
14650
14651found="no"
14652
14653	if test $found = "no" ; then
14654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14656		fi
14657
14658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14660		fi
14661
14662		CFLAGS="$CFLAGS -Werror=sequence-point"
14663
14664		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14665$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14666		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14667		if eval \${$cacheid+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673int
14674main ()
14675{
14676
14677  ;
14678  return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_link "$LINENO"; then :
14682  eval $cacheid=yes
14683else
14684  eval $cacheid=no
14685fi
14686rm -f core conftest.err conftest.$ac_objext \
14687    conftest$ac_exeext conftest.$ac_ext
14688fi
14689
14690
14691		CFLAGS="$xorg_testset_save_CFLAGS"
14692
14693		eval supported=\$$cacheid
14694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14695$as_echo "$supported" >&6; }
14696		if test "$supported" = "yes" ; then
14697			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14698			found="yes"
14699		fi
14700	fi
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716xorg_testset_save_CFLAGS="$CFLAGS"
14717
14718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14723  $as_echo_n "(cached) " >&6
14724else
14725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727int i;
14728_ACEOF
14729if ac_fn_c_try_compile "$LINENO"; then :
14730  xorg_cv_cc_flag_unknown_warning_option=yes
14731else
14732  xorg_cv_cc_flag_unknown_warning_option=no
14733fi
14734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735fi
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14739	CFLAGS="$xorg_testset_save_CFLAGS"
14740fi
14741
14742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14745	fi
14746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14750  $as_echo_n "(cached) " >&6
14751else
14752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753/* end confdefs.h.  */
14754int i;
14755_ACEOF
14756if ac_fn_c_try_compile "$LINENO"; then :
14757  xorg_cv_cc_flag_unused_command_line_argument=yes
14758else
14759  xorg_cv_cc_flag_unused_command_line_argument=no
14760fi
14761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762fi
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14766	CFLAGS="$xorg_testset_save_CFLAGS"
14767fi
14768
14769found="no"
14770
14771	if test $found = "no" ; then
14772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14774		fi
14775
14776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778		fi
14779
14780		CFLAGS="$CFLAGS -Werror=return-type"
14781
14782		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14783$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14784		cacheid=xorg_cv_cc_flag__Werror_return_type
14785		if eval \${$cacheid+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791int
14792main ()
14793{
14794
14795  ;
14796  return 0;
14797}
14798_ACEOF
14799if ac_fn_c_try_link "$LINENO"; then :
14800  eval $cacheid=yes
14801else
14802  eval $cacheid=no
14803fi
14804rm -f core conftest.err conftest.$ac_objext \
14805    conftest$ac_exeext conftest.$ac_ext
14806fi
14807
14808
14809		CFLAGS="$xorg_testset_save_CFLAGS"
14810
14811		eval supported=\$$cacheid
14812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14813$as_echo "$supported" >&6; }
14814		if test "$supported" = "yes" ; then
14815			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14816			found="yes"
14817		fi
14818	fi
14819
14820	if test $found = "no" ; then
14821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823		fi
14824
14825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14827		fi
14828
14829		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14830
14831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14832$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14833		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14834		if eval \${$cacheid+:} false; then :
14835  $as_echo_n "(cached) " >&6
14836else
14837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838/* end confdefs.h.  */
14839int i;
14840int
14841main ()
14842{
14843
14844  ;
14845  return 0;
14846}
14847_ACEOF
14848if ac_fn_c_try_link "$LINENO"; then :
14849  eval $cacheid=yes
14850else
14851  eval $cacheid=no
14852fi
14853rm -f core conftest.err conftest.$ac_objext \
14854    conftest$ac_exeext conftest.$ac_ext
14855fi
14856
14857
14858		CFLAGS="$xorg_testset_save_CFLAGS"
14859
14860		eval supported=\$$cacheid
14861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14862$as_echo "$supported" >&6; }
14863		if test "$supported" = "yes" ; then
14864			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14865			found="yes"
14866		fi
14867	fi
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883xorg_testset_save_CFLAGS="$CFLAGS"
14884
14885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14890  $as_echo_n "(cached) " >&6
14891else
14892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h.  */
14894int i;
14895_ACEOF
14896if ac_fn_c_try_compile "$LINENO"; then :
14897  xorg_cv_cc_flag_unknown_warning_option=yes
14898else
14899  xorg_cv_cc_flag_unknown_warning_option=no
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14906	CFLAGS="$xorg_testset_save_CFLAGS"
14907fi
14908
14909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912	fi
14913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14917  $as_echo_n "(cached) " >&6
14918else
14919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920/* end confdefs.h.  */
14921int i;
14922_ACEOF
14923if ac_fn_c_try_compile "$LINENO"; then :
14924  xorg_cv_cc_flag_unused_command_line_argument=yes
14925else
14926  xorg_cv_cc_flag_unused_command_line_argument=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14933	CFLAGS="$xorg_testset_save_CFLAGS"
14934fi
14935
14936found="no"
14937
14938	if test $found = "no" ; then
14939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941		fi
14942
14943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14945		fi
14946
14947		CFLAGS="$CFLAGS -Werror=trigraphs"
14948
14949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14950$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14951		cacheid=xorg_cv_cc_flag__Werror_trigraphs
14952		if eval \${$cacheid+:} false; then :
14953  $as_echo_n "(cached) " >&6
14954else
14955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h.  */
14957int i;
14958int
14959main ()
14960{
14961
14962  ;
14963  return 0;
14964}
14965_ACEOF
14966if ac_fn_c_try_link "$LINENO"; then :
14967  eval $cacheid=yes
14968else
14969  eval $cacheid=no
14970fi
14971rm -f core conftest.err conftest.$ac_objext \
14972    conftest$ac_exeext conftest.$ac_ext
14973fi
14974
14975
14976		CFLAGS="$xorg_testset_save_CFLAGS"
14977
14978		eval supported=\$$cacheid
14979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14980$as_echo "$supported" >&6; }
14981		if test "$supported" = "yes" ; then
14982			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14983			found="yes"
14984		fi
14985	fi
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001xorg_testset_save_CFLAGS="$CFLAGS"
15002
15003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15008  $as_echo_n "(cached) " >&6
15009else
15010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011/* end confdefs.h.  */
15012int i;
15013_ACEOF
15014if ac_fn_c_try_compile "$LINENO"; then :
15015  xorg_cv_cc_flag_unknown_warning_option=yes
15016else
15017  xorg_cv_cc_flag_unknown_warning_option=no
15018fi
15019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020fi
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15024	CFLAGS="$xorg_testset_save_CFLAGS"
15025fi
15026
15027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030	fi
15031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15035  $as_echo_n "(cached) " >&6
15036else
15037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038/* end confdefs.h.  */
15039int i;
15040_ACEOF
15041if ac_fn_c_try_compile "$LINENO"; then :
15042  xorg_cv_cc_flag_unused_command_line_argument=yes
15043else
15044  xorg_cv_cc_flag_unused_command_line_argument=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047fi
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15051	CFLAGS="$xorg_testset_save_CFLAGS"
15052fi
15053
15054found="no"
15055
15056	if test $found = "no" ; then
15057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059		fi
15060
15061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15063		fi
15064
15065		CFLAGS="$CFLAGS -Werror=array-bounds"
15066
15067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15068$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15069		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15070		if eval \${$cacheid+:} false; then :
15071  $as_echo_n "(cached) " >&6
15072else
15073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074/* end confdefs.h.  */
15075int i;
15076int
15077main ()
15078{
15079
15080  ;
15081  return 0;
15082}
15083_ACEOF
15084if ac_fn_c_try_link "$LINENO"; then :
15085  eval $cacheid=yes
15086else
15087  eval $cacheid=no
15088fi
15089rm -f core conftest.err conftest.$ac_objext \
15090    conftest$ac_exeext conftest.$ac_ext
15091fi
15092
15093
15094		CFLAGS="$xorg_testset_save_CFLAGS"
15095
15096		eval supported=\$$cacheid
15097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15098$as_echo "$supported" >&6; }
15099		if test "$supported" = "yes" ; then
15100			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15101			found="yes"
15102		fi
15103	fi
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119xorg_testset_save_CFLAGS="$CFLAGS"
15120
15121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15126  $as_echo_n "(cached) " >&6
15127else
15128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130int i;
15131_ACEOF
15132if ac_fn_c_try_compile "$LINENO"; then :
15133  xorg_cv_cc_flag_unknown_warning_option=yes
15134else
15135  xorg_cv_cc_flag_unknown_warning_option=no
15136fi
15137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138fi
15139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15142	CFLAGS="$xorg_testset_save_CFLAGS"
15143fi
15144
15145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15148	fi
15149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15153  $as_echo_n "(cached) " >&6
15154else
15155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h.  */
15157int i;
15158_ACEOF
15159if ac_fn_c_try_compile "$LINENO"; then :
15160  xorg_cv_cc_flag_unused_command_line_argument=yes
15161else
15162  xorg_cv_cc_flag_unused_command_line_argument=no
15163fi
15164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165fi
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15169	CFLAGS="$xorg_testset_save_CFLAGS"
15170fi
15171
15172found="no"
15173
15174	if test $found = "no" ; then
15175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177		fi
15178
15179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15181		fi
15182
15183		CFLAGS="$CFLAGS -Werror=write-strings"
15184
15185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15186$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15187		cacheid=xorg_cv_cc_flag__Werror_write_strings
15188		if eval \${$cacheid+:} false; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192/* end confdefs.h.  */
15193int i;
15194int
15195main ()
15196{
15197
15198  ;
15199  return 0;
15200}
15201_ACEOF
15202if ac_fn_c_try_link "$LINENO"; then :
15203  eval $cacheid=yes
15204else
15205  eval $cacheid=no
15206fi
15207rm -f core conftest.err conftest.$ac_objext \
15208    conftest$ac_exeext conftest.$ac_ext
15209fi
15210
15211
15212		CFLAGS="$xorg_testset_save_CFLAGS"
15213
15214		eval supported=\$$cacheid
15215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15216$as_echo "$supported" >&6; }
15217		if test "$supported" = "yes" ; then
15218			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15219			found="yes"
15220		fi
15221	fi
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237xorg_testset_save_CFLAGS="$CFLAGS"
15238
15239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15244  $as_echo_n "(cached) " >&6
15245else
15246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247/* end confdefs.h.  */
15248int i;
15249_ACEOF
15250if ac_fn_c_try_compile "$LINENO"; then :
15251  xorg_cv_cc_flag_unknown_warning_option=yes
15252else
15253  xorg_cv_cc_flag_unknown_warning_option=no
15254fi
15255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256fi
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15260	CFLAGS="$xorg_testset_save_CFLAGS"
15261fi
15262
15263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266	fi
15267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15271  $as_echo_n "(cached) " >&6
15272else
15273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h.  */
15275int i;
15276_ACEOF
15277if ac_fn_c_try_compile "$LINENO"; then :
15278  xorg_cv_cc_flag_unused_command_line_argument=yes
15279else
15280  xorg_cv_cc_flag_unused_command_line_argument=no
15281fi
15282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283fi
15284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15287	CFLAGS="$xorg_testset_save_CFLAGS"
15288fi
15289
15290found="no"
15291
15292	if test $found = "no" ; then
15293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295		fi
15296
15297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299		fi
15300
15301		CFLAGS="$CFLAGS -Werror=address"
15302
15303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15304$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15305		cacheid=xorg_cv_cc_flag__Werror_address
15306		if eval \${$cacheid+:} false; then :
15307  $as_echo_n "(cached) " >&6
15308else
15309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310/* end confdefs.h.  */
15311int i;
15312int
15313main ()
15314{
15315
15316  ;
15317  return 0;
15318}
15319_ACEOF
15320if ac_fn_c_try_link "$LINENO"; then :
15321  eval $cacheid=yes
15322else
15323  eval $cacheid=no
15324fi
15325rm -f core conftest.err conftest.$ac_objext \
15326    conftest$ac_exeext conftest.$ac_ext
15327fi
15328
15329
15330		CFLAGS="$xorg_testset_save_CFLAGS"
15331
15332		eval supported=\$$cacheid
15333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15334$as_echo "$supported" >&6; }
15335		if test "$supported" = "yes" ; then
15336			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15337			found="yes"
15338		fi
15339	fi
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355xorg_testset_save_CFLAGS="$CFLAGS"
15356
15357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15362  $as_echo_n "(cached) " >&6
15363else
15364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366int i;
15367_ACEOF
15368if ac_fn_c_try_compile "$LINENO"; then :
15369  xorg_cv_cc_flag_unknown_warning_option=yes
15370else
15371  xorg_cv_cc_flag_unknown_warning_option=no
15372fi
15373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374fi
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15378	CFLAGS="$xorg_testset_save_CFLAGS"
15379fi
15380
15381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15384	fi
15385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15389  $as_echo_n "(cached) " >&6
15390else
15391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392/* end confdefs.h.  */
15393int i;
15394_ACEOF
15395if ac_fn_c_try_compile "$LINENO"; then :
15396  xorg_cv_cc_flag_unused_command_line_argument=yes
15397else
15398  xorg_cv_cc_flag_unused_command_line_argument=no
15399fi
15400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401fi
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15405	CFLAGS="$xorg_testset_save_CFLAGS"
15406fi
15407
15408found="no"
15409
15410	if test $found = "no" ; then
15411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15413		fi
15414
15415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15417		fi
15418
15419		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15420
15421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15422$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15423		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15424		if eval \${$cacheid+:} false; then :
15425  $as_echo_n "(cached) " >&6
15426else
15427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428/* end confdefs.h.  */
15429int i;
15430int
15431main ()
15432{
15433
15434  ;
15435  return 0;
15436}
15437_ACEOF
15438if ac_fn_c_try_link "$LINENO"; then :
15439  eval $cacheid=yes
15440else
15441  eval $cacheid=no
15442fi
15443rm -f core conftest.err conftest.$ac_objext \
15444    conftest$ac_exeext conftest.$ac_ext
15445fi
15446
15447
15448		CFLAGS="$xorg_testset_save_CFLAGS"
15449
15450		eval supported=\$$cacheid
15451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15452$as_echo "$supported" >&6; }
15453		if test "$supported" = "yes" ; then
15454			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15455			found="yes"
15456		fi
15457	fi
15458
15459	if test $found = "no" ; then
15460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462		fi
15463
15464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15466		fi
15467
15468		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15469
15470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15471$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15472		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15473		if eval \${$cacheid+:} false; then :
15474  $as_echo_n "(cached) " >&6
15475else
15476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477/* end confdefs.h.  */
15478int i;
15479int
15480main ()
15481{
15482
15483  ;
15484  return 0;
15485}
15486_ACEOF
15487if ac_fn_c_try_link "$LINENO"; then :
15488  eval $cacheid=yes
15489else
15490  eval $cacheid=no
15491fi
15492rm -f core conftest.err conftest.$ac_objext \
15493    conftest$ac_exeext conftest.$ac_ext
15494fi
15495
15496
15497		CFLAGS="$xorg_testset_save_CFLAGS"
15498
15499		eval supported=\$$cacheid
15500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15501$as_echo "$supported" >&6; }
15502		if test "$supported" = "yes" ; then
15503			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15504			found="yes"
15505		fi
15506	fi
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522xorg_testset_save_CFLAGS="$CFLAGS"
15523
15524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533int i;
15534_ACEOF
15535if ac_fn_c_try_compile "$LINENO"; then :
15536  xorg_cv_cc_flag_unknown_warning_option=yes
15537else
15538  xorg_cv_cc_flag_unknown_warning_option=no
15539fi
15540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541fi
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15545	CFLAGS="$xorg_testset_save_CFLAGS"
15546fi
15547
15548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15551	fi
15552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15556  $as_echo_n "(cached) " >&6
15557else
15558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559/* end confdefs.h.  */
15560int i;
15561_ACEOF
15562if ac_fn_c_try_compile "$LINENO"; then :
15563  xorg_cv_cc_flag_unused_command_line_argument=yes
15564else
15565  xorg_cv_cc_flag_unused_command_line_argument=no
15566fi
15567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568fi
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15572	CFLAGS="$xorg_testset_save_CFLAGS"
15573fi
15574
15575found="no"
15576
15577	if test $found = "no" ; then
15578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580		fi
15581
15582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15584		fi
15585
15586		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15587
15588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15589$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15590		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15591		if eval \${$cacheid+:} false; then :
15592  $as_echo_n "(cached) " >&6
15593else
15594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595/* end confdefs.h.  */
15596int i;
15597int
15598main ()
15599{
15600
15601  ;
15602  return 0;
15603}
15604_ACEOF
15605if ac_fn_c_try_link "$LINENO"; then :
15606  eval $cacheid=yes
15607else
15608  eval $cacheid=no
15609fi
15610rm -f core conftest.err conftest.$ac_objext \
15611    conftest$ac_exeext conftest.$ac_ext
15612fi
15613
15614
15615		CFLAGS="$xorg_testset_save_CFLAGS"
15616
15617		eval supported=\$$cacheid
15618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619$as_echo "$supported" >&6; }
15620		if test "$supported" = "yes" ; then
15621			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15622			found="yes"
15623		fi
15624	fi
15625
15626 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15627else
15628{ $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
15629$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;}
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643xorg_testset_save_CFLAGS="$CFLAGS"
15644
15645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15650  $as_echo_n "(cached) " >&6
15651else
15652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h.  */
15654int i;
15655_ACEOF
15656if ac_fn_c_try_compile "$LINENO"; then :
15657  xorg_cv_cc_flag_unknown_warning_option=yes
15658else
15659  xorg_cv_cc_flag_unknown_warning_option=no
15660fi
15661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15666	CFLAGS="$xorg_testset_save_CFLAGS"
15667fi
15668
15669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672	fi
15673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15677  $as_echo_n "(cached) " >&6
15678else
15679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681int i;
15682_ACEOF
15683if ac_fn_c_try_compile "$LINENO"; then :
15684  xorg_cv_cc_flag_unused_command_line_argument=yes
15685else
15686  xorg_cv_cc_flag_unused_command_line_argument=no
15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689fi
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15693	CFLAGS="$xorg_testset_save_CFLAGS"
15694fi
15695
15696found="no"
15697
15698	if test $found = "no" ; then
15699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15701		fi
15702
15703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705		fi
15706
15707		CFLAGS="$CFLAGS -Wimplicit"
15708
15709		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15710$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15711		cacheid=xorg_cv_cc_flag__Wimplicit
15712		if eval \${$cacheid+:} false; then :
15713  $as_echo_n "(cached) " >&6
15714else
15715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716/* end confdefs.h.  */
15717int i;
15718int
15719main ()
15720{
15721
15722  ;
15723  return 0;
15724}
15725_ACEOF
15726if ac_fn_c_try_link "$LINENO"; then :
15727  eval $cacheid=yes
15728else
15729  eval $cacheid=no
15730fi
15731rm -f core conftest.err conftest.$ac_objext \
15732    conftest$ac_exeext conftest.$ac_ext
15733fi
15734
15735
15736		CFLAGS="$xorg_testset_save_CFLAGS"
15737
15738		eval supported=\$$cacheid
15739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15740$as_echo "$supported" >&6; }
15741		if test "$supported" = "yes" ; then
15742			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15743			found="yes"
15744		fi
15745	fi
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761xorg_testset_save_CFLAGS="$CFLAGS"
15762
15763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15768  $as_echo_n "(cached) " >&6
15769else
15770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h.  */
15772int i;
15773_ACEOF
15774if ac_fn_c_try_compile "$LINENO"; then :
15775  xorg_cv_cc_flag_unknown_warning_option=yes
15776else
15777  xorg_cv_cc_flag_unknown_warning_option=no
15778fi
15779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780fi
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15784	CFLAGS="$xorg_testset_save_CFLAGS"
15785fi
15786
15787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15790	fi
15791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15795  $as_echo_n "(cached) " >&6
15796else
15797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798/* end confdefs.h.  */
15799int i;
15800_ACEOF
15801if ac_fn_c_try_compile "$LINENO"; then :
15802  xorg_cv_cc_flag_unused_command_line_argument=yes
15803else
15804  xorg_cv_cc_flag_unused_command_line_argument=no
15805fi
15806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807fi
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15811	CFLAGS="$xorg_testset_save_CFLAGS"
15812fi
15813
15814found="no"
15815
15816	if test $found = "no" ; then
15817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819		fi
15820
15821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823		fi
15824
15825		CFLAGS="$CFLAGS -Wnonnull"
15826
15827		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15828$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15829		cacheid=xorg_cv_cc_flag__Wnonnull
15830		if eval \${$cacheid+:} false; then :
15831  $as_echo_n "(cached) " >&6
15832else
15833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834/* end confdefs.h.  */
15835int i;
15836int
15837main ()
15838{
15839
15840  ;
15841  return 0;
15842}
15843_ACEOF
15844if ac_fn_c_try_link "$LINENO"; then :
15845  eval $cacheid=yes
15846else
15847  eval $cacheid=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850    conftest$ac_exeext conftest.$ac_ext
15851fi
15852
15853
15854		CFLAGS="$xorg_testset_save_CFLAGS"
15855
15856		eval supported=\$$cacheid
15857		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15858$as_echo "$supported" >&6; }
15859		if test "$supported" = "yes" ; then
15860			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15861			found="yes"
15862		fi
15863	fi
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879xorg_testset_save_CFLAGS="$CFLAGS"
15880
15881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889/* end confdefs.h.  */
15890int i;
15891_ACEOF
15892if ac_fn_c_try_compile "$LINENO"; then :
15893  xorg_cv_cc_flag_unknown_warning_option=yes
15894else
15895  xorg_cv_cc_flag_unknown_warning_option=no
15896fi
15897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15898fi
15899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15902	CFLAGS="$xorg_testset_save_CFLAGS"
15903fi
15904
15905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908	fi
15909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15913  $as_echo_n "(cached) " >&6
15914else
15915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916/* end confdefs.h.  */
15917int i;
15918_ACEOF
15919if ac_fn_c_try_compile "$LINENO"; then :
15920  xorg_cv_cc_flag_unused_command_line_argument=yes
15921else
15922  xorg_cv_cc_flag_unused_command_line_argument=no
15923fi
15924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925fi
15926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15929	CFLAGS="$xorg_testset_save_CFLAGS"
15930fi
15931
15932found="no"
15933
15934	if test $found = "no" ; then
15935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937		fi
15938
15939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941		fi
15942
15943		CFLAGS="$CFLAGS -Winit-self"
15944
15945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15946$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15947		cacheid=xorg_cv_cc_flag__Winit_self
15948		if eval \${$cacheid+:} false; then :
15949  $as_echo_n "(cached) " >&6
15950else
15951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952/* end confdefs.h.  */
15953int i;
15954int
15955main ()
15956{
15957
15958  ;
15959  return 0;
15960}
15961_ACEOF
15962if ac_fn_c_try_link "$LINENO"; then :
15963  eval $cacheid=yes
15964else
15965  eval $cacheid=no
15966fi
15967rm -f core conftest.err conftest.$ac_objext \
15968    conftest$ac_exeext conftest.$ac_ext
15969fi
15970
15971
15972		CFLAGS="$xorg_testset_save_CFLAGS"
15973
15974		eval supported=\$$cacheid
15975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15976$as_echo "$supported" >&6; }
15977		if test "$supported" = "yes" ; then
15978			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15979			found="yes"
15980		fi
15981	fi
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997xorg_testset_save_CFLAGS="$CFLAGS"
15998
15999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007/* end confdefs.h.  */
16008int i;
16009_ACEOF
16010if ac_fn_c_try_compile "$LINENO"; then :
16011  xorg_cv_cc_flag_unknown_warning_option=yes
16012else
16013  xorg_cv_cc_flag_unknown_warning_option=no
16014fi
16015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016fi
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16020	CFLAGS="$xorg_testset_save_CFLAGS"
16021fi
16022
16023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16026	fi
16027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16031  $as_echo_n "(cached) " >&6
16032else
16033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034/* end confdefs.h.  */
16035int i;
16036_ACEOF
16037if ac_fn_c_try_compile "$LINENO"; then :
16038  xorg_cv_cc_flag_unused_command_line_argument=yes
16039else
16040  xorg_cv_cc_flag_unused_command_line_argument=no
16041fi
16042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043fi
16044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16047	CFLAGS="$xorg_testset_save_CFLAGS"
16048fi
16049
16050found="no"
16051
16052	if test $found = "no" ; then
16053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16055		fi
16056
16057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16059		fi
16060
16061		CFLAGS="$CFLAGS -Wmain"
16062
16063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16064$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16065		cacheid=xorg_cv_cc_flag__Wmain
16066		if eval \${$cacheid+:} false; then :
16067  $as_echo_n "(cached) " >&6
16068else
16069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070/* end confdefs.h.  */
16071int i;
16072int
16073main ()
16074{
16075
16076  ;
16077  return 0;
16078}
16079_ACEOF
16080if ac_fn_c_try_link "$LINENO"; then :
16081  eval $cacheid=yes
16082else
16083  eval $cacheid=no
16084fi
16085rm -f core conftest.err conftest.$ac_objext \
16086    conftest$ac_exeext conftest.$ac_ext
16087fi
16088
16089
16090		CFLAGS="$xorg_testset_save_CFLAGS"
16091
16092		eval supported=\$$cacheid
16093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16094$as_echo "$supported" >&6; }
16095		if test "$supported" = "yes" ; then
16096			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16097			found="yes"
16098		fi
16099	fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115xorg_testset_save_CFLAGS="$CFLAGS"
16116
16117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16122  $as_echo_n "(cached) " >&6
16123else
16124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125/* end confdefs.h.  */
16126int i;
16127_ACEOF
16128if ac_fn_c_try_compile "$LINENO"; then :
16129  xorg_cv_cc_flag_unknown_warning_option=yes
16130else
16131  xorg_cv_cc_flag_unknown_warning_option=no
16132fi
16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134fi
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16138	CFLAGS="$xorg_testset_save_CFLAGS"
16139fi
16140
16141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16144	fi
16145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152/* end confdefs.h.  */
16153int i;
16154_ACEOF
16155if ac_fn_c_try_compile "$LINENO"; then :
16156  xorg_cv_cc_flag_unused_command_line_argument=yes
16157else
16158  xorg_cv_cc_flag_unused_command_line_argument=no
16159fi
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161fi
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16165	CFLAGS="$xorg_testset_save_CFLAGS"
16166fi
16167
16168found="no"
16169
16170	if test $found = "no" ; then
16171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173		fi
16174
16175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177		fi
16178
16179		CFLAGS="$CFLAGS -Wmissing-braces"
16180
16181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16182$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16183		cacheid=xorg_cv_cc_flag__Wmissing_braces
16184		if eval \${$cacheid+:} false; then :
16185  $as_echo_n "(cached) " >&6
16186else
16187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188/* end confdefs.h.  */
16189int i;
16190int
16191main ()
16192{
16193
16194  ;
16195  return 0;
16196}
16197_ACEOF
16198if ac_fn_c_try_link "$LINENO"; then :
16199  eval $cacheid=yes
16200else
16201  eval $cacheid=no
16202fi
16203rm -f core conftest.err conftest.$ac_objext \
16204    conftest$ac_exeext conftest.$ac_ext
16205fi
16206
16207
16208		CFLAGS="$xorg_testset_save_CFLAGS"
16209
16210		eval supported=\$$cacheid
16211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16212$as_echo "$supported" >&6; }
16213		if test "$supported" = "yes" ; then
16214			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16215			found="yes"
16216		fi
16217	fi
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233xorg_testset_save_CFLAGS="$CFLAGS"
16234
16235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16240  $as_echo_n "(cached) " >&6
16241else
16242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h.  */
16244int i;
16245_ACEOF
16246if ac_fn_c_try_compile "$LINENO"; then :
16247  xorg_cv_cc_flag_unknown_warning_option=yes
16248else
16249  xorg_cv_cc_flag_unknown_warning_option=no
16250fi
16251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252fi
16253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16256	CFLAGS="$xorg_testset_save_CFLAGS"
16257fi
16258
16259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16262	fi
16263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16267  $as_echo_n "(cached) " >&6
16268else
16269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270/* end confdefs.h.  */
16271int i;
16272_ACEOF
16273if ac_fn_c_try_compile "$LINENO"; then :
16274  xorg_cv_cc_flag_unused_command_line_argument=yes
16275else
16276  xorg_cv_cc_flag_unused_command_line_argument=no
16277fi
16278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279fi
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16283	CFLAGS="$xorg_testset_save_CFLAGS"
16284fi
16285
16286found="no"
16287
16288	if test $found = "no" ; then
16289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291		fi
16292
16293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295		fi
16296
16297		CFLAGS="$CFLAGS -Wsequence-point"
16298
16299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16300$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16301		cacheid=xorg_cv_cc_flag__Wsequence_point
16302		if eval \${$cacheid+:} false; then :
16303  $as_echo_n "(cached) " >&6
16304else
16305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307int i;
16308int
16309main ()
16310{
16311
16312  ;
16313  return 0;
16314}
16315_ACEOF
16316if ac_fn_c_try_link "$LINENO"; then :
16317  eval $cacheid=yes
16318else
16319  eval $cacheid=no
16320fi
16321rm -f core conftest.err conftest.$ac_objext \
16322    conftest$ac_exeext conftest.$ac_ext
16323fi
16324
16325
16326		CFLAGS="$xorg_testset_save_CFLAGS"
16327
16328		eval supported=\$$cacheid
16329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16330$as_echo "$supported" >&6; }
16331		if test "$supported" = "yes" ; then
16332			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16333			found="yes"
16334		fi
16335	fi
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351xorg_testset_save_CFLAGS="$CFLAGS"
16352
16353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16358  $as_echo_n "(cached) " >&6
16359else
16360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h.  */
16362int i;
16363_ACEOF
16364if ac_fn_c_try_compile "$LINENO"; then :
16365  xorg_cv_cc_flag_unknown_warning_option=yes
16366else
16367  xorg_cv_cc_flag_unknown_warning_option=no
16368fi
16369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370fi
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16374	CFLAGS="$xorg_testset_save_CFLAGS"
16375fi
16376
16377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16380	fi
16381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16385  $as_echo_n "(cached) " >&6
16386else
16387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388/* end confdefs.h.  */
16389int i;
16390_ACEOF
16391if ac_fn_c_try_compile "$LINENO"; then :
16392  xorg_cv_cc_flag_unused_command_line_argument=yes
16393else
16394  xorg_cv_cc_flag_unused_command_line_argument=no
16395fi
16396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16397fi
16398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16401	CFLAGS="$xorg_testset_save_CFLAGS"
16402fi
16403
16404found="no"
16405
16406	if test $found = "no" ; then
16407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409		fi
16410
16411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16413		fi
16414
16415		CFLAGS="$CFLAGS -Wreturn-type"
16416
16417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16418$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16419		cacheid=xorg_cv_cc_flag__Wreturn_type
16420		if eval \${$cacheid+:} false; then :
16421  $as_echo_n "(cached) " >&6
16422else
16423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424/* end confdefs.h.  */
16425int i;
16426int
16427main ()
16428{
16429
16430  ;
16431  return 0;
16432}
16433_ACEOF
16434if ac_fn_c_try_link "$LINENO"; then :
16435  eval $cacheid=yes
16436else
16437  eval $cacheid=no
16438fi
16439rm -f core conftest.err conftest.$ac_objext \
16440    conftest$ac_exeext conftest.$ac_ext
16441fi
16442
16443
16444		CFLAGS="$xorg_testset_save_CFLAGS"
16445
16446		eval supported=\$$cacheid
16447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16448$as_echo "$supported" >&6; }
16449		if test "$supported" = "yes" ; then
16450			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16451			found="yes"
16452		fi
16453	fi
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469xorg_testset_save_CFLAGS="$CFLAGS"
16470
16471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16476  $as_echo_n "(cached) " >&6
16477else
16478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479/* end confdefs.h.  */
16480int i;
16481_ACEOF
16482if ac_fn_c_try_compile "$LINENO"; then :
16483  xorg_cv_cc_flag_unknown_warning_option=yes
16484else
16485  xorg_cv_cc_flag_unknown_warning_option=no
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488fi
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16492	CFLAGS="$xorg_testset_save_CFLAGS"
16493fi
16494
16495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16498	fi
16499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16503  $as_echo_n "(cached) " >&6
16504else
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507int i;
16508_ACEOF
16509if ac_fn_c_try_compile "$LINENO"; then :
16510  xorg_cv_cc_flag_unused_command_line_argument=yes
16511else
16512  xorg_cv_cc_flag_unused_command_line_argument=no
16513fi
16514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515fi
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16519	CFLAGS="$xorg_testset_save_CFLAGS"
16520fi
16521
16522found="no"
16523
16524	if test $found = "no" ; then
16525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527		fi
16528
16529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16531		fi
16532
16533		CFLAGS="$CFLAGS -Wtrigraphs"
16534
16535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16536$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16537		cacheid=xorg_cv_cc_flag__Wtrigraphs
16538		if eval \${$cacheid+:} false; then :
16539  $as_echo_n "(cached) " >&6
16540else
16541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542/* end confdefs.h.  */
16543int i;
16544int
16545main ()
16546{
16547
16548  ;
16549  return 0;
16550}
16551_ACEOF
16552if ac_fn_c_try_link "$LINENO"; then :
16553  eval $cacheid=yes
16554else
16555  eval $cacheid=no
16556fi
16557rm -f core conftest.err conftest.$ac_objext \
16558    conftest$ac_exeext conftest.$ac_ext
16559fi
16560
16561
16562		CFLAGS="$xorg_testset_save_CFLAGS"
16563
16564		eval supported=\$$cacheid
16565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16566$as_echo "$supported" >&6; }
16567		if test "$supported" = "yes" ; then
16568			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16569			found="yes"
16570		fi
16571	fi
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587xorg_testset_save_CFLAGS="$CFLAGS"
16588
16589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16594  $as_echo_n "(cached) " >&6
16595else
16596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597/* end confdefs.h.  */
16598int i;
16599_ACEOF
16600if ac_fn_c_try_compile "$LINENO"; then :
16601  xorg_cv_cc_flag_unknown_warning_option=yes
16602else
16603  xorg_cv_cc_flag_unknown_warning_option=no
16604fi
16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606fi
16607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16610	CFLAGS="$xorg_testset_save_CFLAGS"
16611fi
16612
16613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16616	fi
16617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16621  $as_echo_n "(cached) " >&6
16622else
16623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624/* end confdefs.h.  */
16625int i;
16626_ACEOF
16627if ac_fn_c_try_compile "$LINENO"; then :
16628  xorg_cv_cc_flag_unused_command_line_argument=yes
16629else
16630  xorg_cv_cc_flag_unused_command_line_argument=no
16631fi
16632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633fi
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16637	CFLAGS="$xorg_testset_save_CFLAGS"
16638fi
16639
16640found="no"
16641
16642	if test $found = "no" ; then
16643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16645		fi
16646
16647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16649		fi
16650
16651		CFLAGS="$CFLAGS -Warray-bounds"
16652
16653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16654$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16655		cacheid=xorg_cv_cc_flag__Warray_bounds
16656		if eval \${$cacheid+:} false; then :
16657  $as_echo_n "(cached) " >&6
16658else
16659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660/* end confdefs.h.  */
16661int i;
16662int
16663main ()
16664{
16665
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_link "$LINENO"; then :
16671  eval $cacheid=yes
16672else
16673  eval $cacheid=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext \
16676    conftest$ac_exeext conftest.$ac_ext
16677fi
16678
16679
16680		CFLAGS="$xorg_testset_save_CFLAGS"
16681
16682		eval supported=\$$cacheid
16683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16684$as_echo "$supported" >&6; }
16685		if test "$supported" = "yes" ; then
16686			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16687			found="yes"
16688		fi
16689	fi
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705xorg_testset_save_CFLAGS="$CFLAGS"
16706
16707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16712  $as_echo_n "(cached) " >&6
16713else
16714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h.  */
16716int i;
16717_ACEOF
16718if ac_fn_c_try_compile "$LINENO"; then :
16719  xorg_cv_cc_flag_unknown_warning_option=yes
16720else
16721  xorg_cv_cc_flag_unknown_warning_option=no
16722fi
16723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724fi
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16728	CFLAGS="$xorg_testset_save_CFLAGS"
16729fi
16730
16731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734	fi
16735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16739  $as_echo_n "(cached) " >&6
16740else
16741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742/* end confdefs.h.  */
16743int i;
16744_ACEOF
16745if ac_fn_c_try_compile "$LINENO"; then :
16746  xorg_cv_cc_flag_unused_command_line_argument=yes
16747else
16748  xorg_cv_cc_flag_unused_command_line_argument=no
16749fi
16750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751fi
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16755	CFLAGS="$xorg_testset_save_CFLAGS"
16756fi
16757
16758found="no"
16759
16760	if test $found = "no" ; then
16761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763		fi
16764
16765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16767		fi
16768
16769		CFLAGS="$CFLAGS -Wwrite-strings"
16770
16771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16772$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16773		cacheid=xorg_cv_cc_flag__Wwrite_strings
16774		if eval \${$cacheid+:} false; then :
16775  $as_echo_n "(cached) " >&6
16776else
16777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778/* end confdefs.h.  */
16779int i;
16780int
16781main ()
16782{
16783
16784  ;
16785  return 0;
16786}
16787_ACEOF
16788if ac_fn_c_try_link "$LINENO"; then :
16789  eval $cacheid=yes
16790else
16791  eval $cacheid=no
16792fi
16793rm -f core conftest.err conftest.$ac_objext \
16794    conftest$ac_exeext conftest.$ac_ext
16795fi
16796
16797
16798		CFLAGS="$xorg_testset_save_CFLAGS"
16799
16800		eval supported=\$$cacheid
16801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16802$as_echo "$supported" >&6; }
16803		if test "$supported" = "yes" ; then
16804			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16805			found="yes"
16806		fi
16807	fi
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823xorg_testset_save_CFLAGS="$CFLAGS"
16824
16825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16830  $as_echo_n "(cached) " >&6
16831else
16832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833/* end confdefs.h.  */
16834int i;
16835_ACEOF
16836if ac_fn_c_try_compile "$LINENO"; then :
16837  xorg_cv_cc_flag_unknown_warning_option=yes
16838else
16839  xorg_cv_cc_flag_unknown_warning_option=no
16840fi
16841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16846	CFLAGS="$xorg_testset_save_CFLAGS"
16847fi
16848
16849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16852	fi
16853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16857  $as_echo_n "(cached) " >&6
16858else
16859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h.  */
16861int i;
16862_ACEOF
16863if ac_fn_c_try_compile "$LINENO"; then :
16864  xorg_cv_cc_flag_unused_command_line_argument=yes
16865else
16866  xorg_cv_cc_flag_unused_command_line_argument=no
16867fi
16868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16873	CFLAGS="$xorg_testset_save_CFLAGS"
16874fi
16875
16876found="no"
16877
16878	if test $found = "no" ; then
16879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16881		fi
16882
16883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16885		fi
16886
16887		CFLAGS="$CFLAGS -Waddress"
16888
16889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16890$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16891		cacheid=xorg_cv_cc_flag__Waddress
16892		if eval \${$cacheid+:} false; then :
16893  $as_echo_n "(cached) " >&6
16894else
16895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h.  */
16897int i;
16898int
16899main ()
16900{
16901
16902  ;
16903  return 0;
16904}
16905_ACEOF
16906if ac_fn_c_try_link "$LINENO"; then :
16907  eval $cacheid=yes
16908else
16909  eval $cacheid=no
16910fi
16911rm -f core conftest.err conftest.$ac_objext \
16912    conftest$ac_exeext conftest.$ac_ext
16913fi
16914
16915
16916		CFLAGS="$xorg_testset_save_CFLAGS"
16917
16918		eval supported=\$$cacheid
16919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16920$as_echo "$supported" >&6; }
16921		if test "$supported" = "yes" ; then
16922			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16923			found="yes"
16924		fi
16925	fi
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941xorg_testset_save_CFLAGS="$CFLAGS"
16942
16943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16948  $as_echo_n "(cached) " >&6
16949else
16950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h.  */
16952int i;
16953_ACEOF
16954if ac_fn_c_try_compile "$LINENO"; then :
16955  xorg_cv_cc_flag_unknown_warning_option=yes
16956else
16957  xorg_cv_cc_flag_unknown_warning_option=no
16958fi
16959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960fi
16961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16964	CFLAGS="$xorg_testset_save_CFLAGS"
16965fi
16966
16967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16970	fi
16971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16975  $as_echo_n "(cached) " >&6
16976else
16977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978/* end confdefs.h.  */
16979int i;
16980_ACEOF
16981if ac_fn_c_try_compile "$LINENO"; then :
16982  xorg_cv_cc_flag_unused_command_line_argument=yes
16983else
16984  xorg_cv_cc_flag_unused_command_line_argument=no
16985fi
16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987fi
16988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16991	CFLAGS="$xorg_testset_save_CFLAGS"
16992fi
16993
16994found="no"
16995
16996	if test $found = "no" ; then
16997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999		fi
17000
17001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17003		fi
17004
17005		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17006
17007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17008$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17009		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17010		if eval \${$cacheid+:} false; then :
17011  $as_echo_n "(cached) " >&6
17012else
17013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014/* end confdefs.h.  */
17015int i;
17016int
17017main ()
17018{
17019
17020  ;
17021  return 0;
17022}
17023_ACEOF
17024if ac_fn_c_try_link "$LINENO"; then :
17025  eval $cacheid=yes
17026else
17027  eval $cacheid=no
17028fi
17029rm -f core conftest.err conftest.$ac_objext \
17030    conftest$ac_exeext conftest.$ac_ext
17031fi
17032
17033
17034		CFLAGS="$xorg_testset_save_CFLAGS"
17035
17036		eval supported=\$$cacheid
17037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17038$as_echo "$supported" >&6; }
17039		if test "$supported" = "yes" ; then
17040			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17041			found="yes"
17042		fi
17043	fi
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059xorg_testset_save_CFLAGS="$CFLAGS"
17060
17061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17066  $as_echo_n "(cached) " >&6
17067else
17068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h.  */
17070int i;
17071_ACEOF
17072if ac_fn_c_try_compile "$LINENO"; then :
17073  xorg_cv_cc_flag_unknown_warning_option=yes
17074else
17075  xorg_cv_cc_flag_unknown_warning_option=no
17076fi
17077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078fi
17079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17082	CFLAGS="$xorg_testset_save_CFLAGS"
17083fi
17084
17085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17088	fi
17089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17093  $as_echo_n "(cached) " >&6
17094else
17095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h.  */
17097int i;
17098_ACEOF
17099if ac_fn_c_try_compile "$LINENO"; then :
17100  xorg_cv_cc_flag_unused_command_line_argument=yes
17101else
17102  xorg_cv_cc_flag_unused_command_line_argument=no
17103fi
17104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105fi
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17109	CFLAGS="$xorg_testset_save_CFLAGS"
17110fi
17111
17112found="no"
17113
17114	if test $found = "no" ; then
17115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17117		fi
17118
17119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17121		fi
17122
17123		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17124
17125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17126$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17127		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17128		if eval \${$cacheid+:} false; then :
17129  $as_echo_n "(cached) " >&6
17130else
17131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132/* end confdefs.h.  */
17133int i;
17134int
17135main ()
17136{
17137
17138  ;
17139  return 0;
17140}
17141_ACEOF
17142if ac_fn_c_try_link "$LINENO"; then :
17143  eval $cacheid=yes
17144else
17145  eval $cacheid=no
17146fi
17147rm -f core conftest.err conftest.$ac_objext \
17148    conftest$ac_exeext conftest.$ac_ext
17149fi
17150
17151
17152		CFLAGS="$xorg_testset_save_CFLAGS"
17153
17154		eval supported=\$$cacheid
17155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17156$as_echo "$supported" >&6; }
17157		if test "$supported" = "yes" ; then
17158			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17159			found="yes"
17160		fi
17161	fi
17162
17163
17164fi
17165
17166
17167
17168
17169
17170
17171
17172		CWARNFLAGS="$BASE_CFLAGS"
17173		if  test "x$GCC" = xyes ; then
17174		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17175		fi
17176
17177
17178
17179
17180
17181
17182
17183
17184# Check whether --enable-strict-compilation was given.
17185if test "${enable_strict_compilation+set}" = set; then :
17186  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17187else
17188  STRICT_COMPILE=no
17189fi
17190
17191
17192
17193
17194
17195
17196STRICT_CFLAGS=""
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210xorg_testset_save_CFLAGS="$CFLAGS"
17211
17212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220/* end confdefs.h.  */
17221int i;
17222_ACEOF
17223if ac_fn_c_try_compile "$LINENO"; then :
17224  xorg_cv_cc_flag_unknown_warning_option=yes
17225else
17226  xorg_cv_cc_flag_unknown_warning_option=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17233	CFLAGS="$xorg_testset_save_CFLAGS"
17234fi
17235
17236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239	fi
17240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17244  $as_echo_n "(cached) " >&6
17245else
17246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247/* end confdefs.h.  */
17248int i;
17249_ACEOF
17250if ac_fn_c_try_compile "$LINENO"; then :
17251  xorg_cv_cc_flag_unused_command_line_argument=yes
17252else
17253  xorg_cv_cc_flag_unused_command_line_argument=no
17254fi
17255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256fi
17257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17260	CFLAGS="$xorg_testset_save_CFLAGS"
17261fi
17262
17263found="no"
17264
17265	if test $found = "no" ; then
17266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268		fi
17269
17270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17272		fi
17273
17274		CFLAGS="$CFLAGS -pedantic"
17275
17276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17277$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17278		cacheid=xorg_cv_cc_flag__pedantic
17279		if eval \${$cacheid+:} false; then :
17280  $as_echo_n "(cached) " >&6
17281else
17282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283/* end confdefs.h.  */
17284int i;
17285int
17286main ()
17287{
17288
17289  ;
17290  return 0;
17291}
17292_ACEOF
17293if ac_fn_c_try_link "$LINENO"; then :
17294  eval $cacheid=yes
17295else
17296  eval $cacheid=no
17297fi
17298rm -f core conftest.err conftest.$ac_objext \
17299    conftest$ac_exeext conftest.$ac_ext
17300fi
17301
17302
17303		CFLAGS="$xorg_testset_save_CFLAGS"
17304
17305		eval supported=\$$cacheid
17306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17307$as_echo "$supported" >&6; }
17308		if test "$supported" = "yes" ; then
17309			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17310			found="yes"
17311		fi
17312	fi
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328xorg_testset_save_CFLAGS="$CFLAGS"
17329
17330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17335  $as_echo_n "(cached) " >&6
17336else
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339int i;
17340_ACEOF
17341if ac_fn_c_try_compile "$LINENO"; then :
17342  xorg_cv_cc_flag_unknown_warning_option=yes
17343else
17344  xorg_cv_cc_flag_unknown_warning_option=no
17345fi
17346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347fi
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17351	CFLAGS="$xorg_testset_save_CFLAGS"
17352fi
17353
17354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17357	fi
17358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17362  $as_echo_n "(cached) " >&6
17363else
17364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365/* end confdefs.h.  */
17366int i;
17367_ACEOF
17368if ac_fn_c_try_compile "$LINENO"; then :
17369  xorg_cv_cc_flag_unused_command_line_argument=yes
17370else
17371  xorg_cv_cc_flag_unused_command_line_argument=no
17372fi
17373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374fi
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17378	CFLAGS="$xorg_testset_save_CFLAGS"
17379fi
17380
17381found="no"
17382
17383	if test $found = "no" ; then
17384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17386		fi
17387
17388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390		fi
17391
17392		CFLAGS="$CFLAGS -Werror"
17393
17394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17395$as_echo_n "checking if $CC supports -Werror... " >&6; }
17396		cacheid=xorg_cv_cc_flag__Werror
17397		if eval \${$cacheid+:} false; then :
17398  $as_echo_n "(cached) " >&6
17399else
17400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401/* end confdefs.h.  */
17402int i;
17403int
17404main ()
17405{
17406
17407  ;
17408  return 0;
17409}
17410_ACEOF
17411if ac_fn_c_try_link "$LINENO"; then :
17412  eval $cacheid=yes
17413else
17414  eval $cacheid=no
17415fi
17416rm -f core conftest.err conftest.$ac_objext \
17417    conftest$ac_exeext conftest.$ac_ext
17418fi
17419
17420
17421		CFLAGS="$xorg_testset_save_CFLAGS"
17422
17423		eval supported=\$$cacheid
17424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17425$as_echo "$supported" >&6; }
17426		if test "$supported" = "yes" ; then
17427			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17428			found="yes"
17429		fi
17430	fi
17431
17432	if test $found = "no" ; then
17433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435		fi
17436
17437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17439		fi
17440
17441		CFLAGS="$CFLAGS -errwarn"
17442
17443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17444$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17445		cacheid=xorg_cv_cc_flag__errwarn
17446		if eval \${$cacheid+:} false; then :
17447  $as_echo_n "(cached) " >&6
17448else
17449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h.  */
17451int i;
17452int
17453main ()
17454{
17455
17456  ;
17457  return 0;
17458}
17459_ACEOF
17460if ac_fn_c_try_link "$LINENO"; then :
17461  eval $cacheid=yes
17462else
17463  eval $cacheid=no
17464fi
17465rm -f core conftest.err conftest.$ac_objext \
17466    conftest$ac_exeext conftest.$ac_ext
17467fi
17468
17469
17470		CFLAGS="$xorg_testset_save_CFLAGS"
17471
17472		eval supported=\$$cacheid
17473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17474$as_echo "$supported" >&6; }
17475		if test "$supported" = "yes" ; then
17476			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17477			found="yes"
17478		fi
17479	fi
17480
17481
17482
17483# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17484# activate it with -Werror, so we add it here explicitly.
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498xorg_testset_save_CFLAGS="$CFLAGS"
17499
17500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17505  $as_echo_n "(cached) " >&6
17506else
17507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508/* end confdefs.h.  */
17509int i;
17510_ACEOF
17511if ac_fn_c_try_compile "$LINENO"; then :
17512  xorg_cv_cc_flag_unknown_warning_option=yes
17513else
17514  xorg_cv_cc_flag_unknown_warning_option=no
17515fi
17516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517fi
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17521	CFLAGS="$xorg_testset_save_CFLAGS"
17522fi
17523
17524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17527	fi
17528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17532  $as_echo_n "(cached) " >&6
17533else
17534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535/* end confdefs.h.  */
17536int i;
17537_ACEOF
17538if ac_fn_c_try_compile "$LINENO"; then :
17539  xorg_cv_cc_flag_unused_command_line_argument=yes
17540else
17541  xorg_cv_cc_flag_unused_command_line_argument=no
17542fi
17543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17544fi
17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17548	CFLAGS="$xorg_testset_save_CFLAGS"
17549fi
17550
17551found="no"
17552
17553	if test $found = "no" ; then
17554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556		fi
17557
17558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17560		fi
17561
17562		CFLAGS="$CFLAGS -Werror=attributes"
17563
17564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17565$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17566		cacheid=xorg_cv_cc_flag__Werror_attributes
17567		if eval \${$cacheid+:} false; then :
17568  $as_echo_n "(cached) " >&6
17569else
17570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571/* end confdefs.h.  */
17572int i;
17573int
17574main ()
17575{
17576
17577  ;
17578  return 0;
17579}
17580_ACEOF
17581if ac_fn_c_try_link "$LINENO"; then :
17582  eval $cacheid=yes
17583else
17584  eval $cacheid=no
17585fi
17586rm -f core conftest.err conftest.$ac_objext \
17587    conftest$ac_exeext conftest.$ac_ext
17588fi
17589
17590
17591		CFLAGS="$xorg_testset_save_CFLAGS"
17592
17593		eval supported=\$$cacheid
17594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17595$as_echo "$supported" >&6; }
17596		if test "$supported" = "yes" ; then
17597			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17598			found="yes"
17599		fi
17600	fi
17601
17602
17603
17604if test "x$STRICT_COMPILE" = "xyes"; then
17605    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17606    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17607fi
17608
17609
17610
17611
17612
17613
17614cat >>confdefs.h <<_ACEOF
17615#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17616_ACEOF
17617
17618	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17619	if test "x$PVM" = "x"; then
17620		PVM="0"
17621	fi
17622
17623cat >>confdefs.h <<_ACEOF
17624#define PACKAGE_VERSION_MINOR $PVM
17625_ACEOF
17626
17627	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17628	if test "x$PVP" = "x"; then
17629		PVP="0"
17630	fi
17631
17632cat >>confdefs.h <<_ACEOF
17633#define PACKAGE_VERSION_PATCHLEVEL $PVP
17634_ACEOF
17635
17636
17637
17638CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17639mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17640|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17641echo 'git directory not found: installing possibly empty changelog.' >&2)"
17642
17643
17644
17645
17646macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17647INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17648mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17649|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17650echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17651
17652
17653
17654
17655
17656
17657if test x$APP_MAN_SUFFIX = x    ; then
17658    APP_MAN_SUFFIX=1
17659fi
17660if test x$APP_MAN_DIR = x    ; then
17661    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17662fi
17663
17664if test x$LIB_MAN_SUFFIX = x    ; then
17665    LIB_MAN_SUFFIX=3
17666fi
17667if test x$LIB_MAN_DIR = x    ; then
17668    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17669fi
17670
17671if test x$FILE_MAN_SUFFIX = x    ; then
17672    case $host_os in
17673	solaris*)	FILE_MAN_SUFFIX=4  ;;
17674	*)		FILE_MAN_SUFFIX=5  ;;
17675    esac
17676fi
17677if test x$FILE_MAN_DIR = x    ; then
17678    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17679fi
17680
17681if test x$MISC_MAN_SUFFIX = x    ; then
17682    case $host_os in
17683	solaris*)	MISC_MAN_SUFFIX=5  ;;
17684	*)		MISC_MAN_SUFFIX=7  ;;
17685    esac
17686fi
17687if test x$MISC_MAN_DIR = x    ; then
17688    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17689fi
17690
17691if test x$DRIVER_MAN_SUFFIX = x    ; then
17692    case $host_os in
17693	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17694	*)		DRIVER_MAN_SUFFIX=4  ;;
17695    esac
17696fi
17697if test x$DRIVER_MAN_DIR = x    ; then
17698    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17699fi
17700
17701if test x$ADMIN_MAN_SUFFIX = x    ; then
17702    case $host_os in
17703	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17704	*)		ADMIN_MAN_SUFFIX=8  ;;
17705    esac
17706fi
17707if test x$ADMIN_MAN_DIR = x    ; then
17708    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17709fi
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725XORG_MAN_PAGE="X Version 11"
17726
17727MAN_SUBSTS="\
17728	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17729	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17730	-e 's|__xservername__|Xorg|g' \
17731	-e 's|__xconfigfile__|xorg.conf|g' \
17732	-e 's|__projectroot__|\$(prefix)|g' \
17733	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17734	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17735	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17736	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17737	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17738	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17739	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17740
17741
17742
17743# Check whether --enable-silent-rules was given.
17744if test "${enable_silent_rules+set}" = set; then :
17745  enableval=$enable_silent_rules;
17746fi
17747
17748case $enable_silent_rules in # (((
17749  yes) AM_DEFAULT_VERBOSITY=0;;
17750   no) AM_DEFAULT_VERBOSITY=1;;
17751    *) AM_DEFAULT_VERBOSITY=0;;
17752esac
17753am_make=${MAKE-make}
17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17755$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17756if ${am_cv_make_support_nested_variables+:} false; then :
17757  $as_echo_n "(cached) " >&6
17758else
17759  if $as_echo 'TRUE=$(BAR$(V))
17760BAR0=false
17761BAR1=true
17762V=1
17763am__doit:
17764	@$(TRUE)
17765.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17766  am_cv_make_support_nested_variables=yes
17767else
17768  am_cv_make_support_nested_variables=no
17769fi
17770fi
17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17772$as_echo "$am_cv_make_support_nested_variables" >&6; }
17773if test $am_cv_make_support_nested_variables = yes; then
17774    AM_V='$(V)'
17775  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17776else
17777  AM_V=$AM_DEFAULT_VERBOSITY
17778  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17779fi
17780AM_BACKSLASH='\'
17781
17782
17783
17784# Obtain compiler/linker options from server and required extensions
17785
17786pkg_failed=no
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17788$as_echo_n "checking for XORG... " >&6; }
17789
17790if test -n "$XORG_CFLAGS"; then
17791    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17792 elif test -n "$PKG_CONFIG"; then
17793    if test -n "$PKG_CONFIG" && \
17794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
17795  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
17796  ac_status=$?
17797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17798  test $ac_status = 0; }; then
17799  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
17800		      test "x$?" != "x0" && pkg_failed=yes
17801else
17802  pkg_failed=yes
17803fi
17804 else
17805    pkg_failed=untried
17806fi
17807if test -n "$XORG_LIBS"; then
17808    pkg_cv_XORG_LIBS="$XORG_LIBS"
17809 elif test -n "$PKG_CONFIG"; then
17810    if test -n "$PKG_CONFIG" && \
17811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
17812  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
17813  ac_status=$?
17814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17815  test $ac_status = 0; }; then
17816  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
17817		      test "x$?" != "x0" && pkg_failed=yes
17818else
17819  pkg_failed=yes
17820fi
17821 else
17822    pkg_failed=untried
17823fi
17824
17825
17826
17827if test $pkg_failed = yes; then
17828   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17829$as_echo "no" >&6; }
17830
17831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17832        _pkg_short_errors_supported=yes
17833else
17834        _pkg_short_errors_supported=no
17835fi
17836        if test $_pkg_short_errors_supported = yes; then
17837	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto inputproto" 2>&1`
17838        else
17839	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto inputproto" 2>&1`
17840        fi
17841	# Put the nasty error message in config.log where it belongs
17842	echo "$XORG_PKG_ERRORS" >&5
17843
17844	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto inputproto) were not met:
17845
17846$XORG_PKG_ERRORS
17847
17848Consider adjusting the PKG_CONFIG_PATH environment variable if you
17849installed software in a non-standard prefix.
17850
17851Alternatively, you may set the environment variables XORG_CFLAGS
17852and XORG_LIBS to avoid the need to call pkg-config.
17853See the pkg-config man page for more details." "$LINENO" 5
17854elif test $pkg_failed = untried; then
17855     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856$as_echo "no" >&6; }
17857	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17859as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17860is in your PATH or set the PKG_CONFIG environment variable to the full
17861path to pkg-config.
17862
17863Alternatively, you may set the environment variables XORG_CFLAGS
17864and XORG_LIBS to avoid the need to call pkg-config.
17865See the pkg-config man page for more details.
17866
17867To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17868See \`config.log' for more details" "$LINENO" 5; }
17869else
17870	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17871	XORG_LIBS=$pkg_cv_XORG_LIBS
17872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17873$as_echo "yes" >&6; }
17874
17875fi
17876
17877# Define a configure option for an alternate input module directory
17878
17879# Check whether --with-xorg-module-dir was given.
17880if test "${with_xorg_module_dir+set}" = set; then :
17881  withval=$with_xorg_module_dir; moduledir="$withval"
17882else
17883  moduledir="$libdir/xorg/modules"
17884fi
17885
17886inputdir=${moduledir}/input
17887
17888
17889# The keyboard driver code is O/S specific
17890case $host_os in
17891  linux*)
17892    IS_LINUX="yes"
17893    ;;
17894
17895  freebsd* | kfreebsd-gnu* | netbsd* | openbsd* | dragonfly*)
17896    IS_BSD="yes"
17897    ;;
17898
17899  solaris*)
17900    IS_SOLARIS="yes"
17901    ;;
17902
17903  gnu*)
17904    IS_HURD="yes"
17905    ;;
17906
17907  *)
17908    as_fn_error $? "Your operating system is not supported by the kbd driver.
17909                  Contact xorg@lists.freedesktop.org if you are interested in
17910                  porting it." "$LINENO" 5
17911    ;;
17912esac
17913case $host_os in
17914  netbsd*)
17915    case $host in
17916      *powerpc-*|*sparc-*|*sparc64-*|*vax-*)
17917        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
17918        ;;
17919    esac
17920    case "$(uname -m 2>&1)" in
17921      evbarm|sgimips|shark)
17922        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
17923        ;;
17924    esac
17925    ;;
17926esac
17927
17928
17929 if test "x$IS_LINUX" = xyes; then
17930  LINUX_TRUE=
17931  LINUX_FALSE='#'
17932else
17933  LINUX_TRUE='#'
17934  LINUX_FALSE=
17935fi
17936
17937 if test "x$IS_BSD" = xyes; then
17938  BSD_TRUE=
17939  BSD_FALSE='#'
17940else
17941  BSD_TRUE='#'
17942  BSD_FALSE=
17943fi
17944
17945 if test "x$IS_SOLARIS" = xyes; then
17946  SOLARIS_TRUE=
17947  SOLARIS_FALSE='#'
17948else
17949  SOLARIS_TRUE='#'
17950  SOLARIS_FALSE=
17951fi
17952
17953 if test "x$IS_HURD" = xyes; then
17954  HURD_TRUE=
17955  HURD_FALSE='#'
17956else
17957  HURD_TRUE='#'
17958  HURD_FALSE=
17959fi
17960
17961
17962DRIVER_NAME=kbd
17963
17964
17965ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
17966
17967cat >confcache <<\_ACEOF
17968# This file is a shell script that caches the results of configure
17969# tests run on this system so they can be shared between configure
17970# scripts and configure runs, see configure's option --config-cache.
17971# It is not useful on other systems.  If it contains results you don't
17972# want to keep, you may remove or edit it.
17973#
17974# config.status only pays attention to the cache file if you give it
17975# the --recheck option to rerun configure.
17976#
17977# `ac_cv_env_foo' variables (set or unset) will be overridden when
17978# loading this file, other *unset* `ac_cv_foo' will be assigned the
17979# following values.
17980
17981_ACEOF
17982
17983# The following way of writing the cache mishandles newlines in values,
17984# but we know of no workaround that is simple, portable, and efficient.
17985# So, we kill variables containing newlines.
17986# Ultrix sh set writes to stderr and can't be redirected directly,
17987# and sets the high bit in the cache file unless we assign to the vars.
17988(
17989  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17990    eval ac_val=\$$ac_var
17991    case $ac_val in #(
17992    *${as_nl}*)
17993      case $ac_var in #(
17994      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17995$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17996      esac
17997      case $ac_var in #(
17998      _ | IFS | as_nl) ;; #(
17999      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18000      *) { eval $ac_var=; unset $ac_var;} ;;
18001      esac ;;
18002    esac
18003  done
18004
18005  (set) 2>&1 |
18006    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18007    *${as_nl}ac_space=\ *)
18008      # `set' does not quote correctly, so add quotes: double-quote
18009      # substitution turns \\\\ into \\, and sed turns \\ into \.
18010      sed -n \
18011	"s/'/'\\\\''/g;
18012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18013      ;; #(
18014    *)
18015      # `set' quotes correctly as required by POSIX, so do not add quotes.
18016      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18017      ;;
18018    esac |
18019    sort
18020) |
18021  sed '
18022     /^ac_cv_env_/b end
18023     t clear
18024     :clear
18025     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18026     t end
18027     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18028     :end' >>confcache
18029if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18030  if test -w "$cache_file"; then
18031    if test "x$cache_file" != "x/dev/null"; then
18032      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18033$as_echo "$as_me: updating cache $cache_file" >&6;}
18034      if test ! -f "$cache_file" || test -h "$cache_file"; then
18035	cat confcache >"$cache_file"
18036      else
18037        case $cache_file in #(
18038        */* | ?:*)
18039	  mv -f confcache "$cache_file"$$ &&
18040	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18041        *)
18042	  mv -f confcache "$cache_file" ;;
18043	esac
18044      fi
18045    fi
18046  else
18047    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18048$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18049  fi
18050fi
18051rm -f confcache
18052
18053test "x$prefix" = xNONE && prefix=$ac_default_prefix
18054# Let make expand exec_prefix.
18055test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18056
18057DEFS=-DHAVE_CONFIG_H
18058
18059ac_libobjs=
18060ac_ltlibobjs=
18061U=
18062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18063  # 1. Remove the extension, and $U if already installed.
18064  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18065  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18066  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18067  #    will be set to the directory where LIBOBJS objects are built.
18068  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18069  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18070done
18071LIBOBJS=$ac_libobjs
18072
18073LTLIBOBJS=$ac_ltlibobjs
18074
18075
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18077$as_echo_n "checking that generated files are newer than configure... " >&6; }
18078   if test -n "$am_sleep_pid"; then
18079     # Hide warnings about reused PIDs.
18080     wait $am_sleep_pid 2>/dev/null
18081   fi
18082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18083$as_echo "done" >&6; }
18084 if test -n "$EXEEXT"; then
18085  am__EXEEXT_TRUE=
18086  am__EXEEXT_FALSE='#'
18087else
18088  am__EXEEXT_TRUE='#'
18089  am__EXEEXT_FALSE=
18090fi
18091
18092if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18093  as_fn_error $? "conditional \"AMDEP\" was never defined.
18094Usually this means the macro was only invoked conditionally." "$LINENO" 5
18095fi
18096if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18097  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18098Usually this means the macro was only invoked conditionally." "$LINENO" 5
18099fi
18100if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18101  as_fn_error $? "conditional \"LINUX\" was never defined.
18102Usually this means the macro was only invoked conditionally." "$LINENO" 5
18103fi
18104if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
18105  as_fn_error $? "conditional \"BSD\" was never defined.
18106Usually this means the macro was only invoked conditionally." "$LINENO" 5
18107fi
18108if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
18109  as_fn_error $? "conditional \"SOLARIS\" was never defined.
18110Usually this means the macro was only invoked conditionally." "$LINENO" 5
18111fi
18112if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
18113  as_fn_error $? "conditional \"HURD\" was never defined.
18114Usually this means the macro was only invoked conditionally." "$LINENO" 5
18115fi
18116
18117: "${CONFIG_STATUS=./config.status}"
18118ac_write_fail=0
18119ac_clean_files_save=$ac_clean_files
18120ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18121{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18122$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18123as_write_fail=0
18124cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18125#! $SHELL
18126# Generated by $as_me.
18127# Run this file to recreate the current configuration.
18128# Compiler output produced by configure, useful for debugging
18129# configure, is in config.log if it exists.
18130
18131debug=false
18132ac_cs_recheck=false
18133ac_cs_silent=false
18134
18135SHELL=\${CONFIG_SHELL-$SHELL}
18136export SHELL
18137_ASEOF
18138cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18139## -------------------- ##
18140## M4sh Initialization. ##
18141## -------------------- ##
18142
18143# Be more Bourne compatible
18144DUALCASE=1; export DUALCASE # for MKS sh
18145if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18146  emulate sh
18147  NULLCMD=:
18148  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18149  # is contrary to our usage.  Disable this feature.
18150  alias -g '${1+"$@"}'='"$@"'
18151  setopt NO_GLOB_SUBST
18152else
18153  case `(set -o) 2>/dev/null` in #(
18154  *posix*) :
18155    set -o posix ;; #(
18156  *) :
18157     ;;
18158esac
18159fi
18160
18161
18162as_nl='
18163'
18164export as_nl
18165# Printing a long string crashes Solaris 7 /usr/bin/printf.
18166as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18169# Prefer a ksh shell builtin over an external printf program on Solaris,
18170# but without wasting forks for bash or zsh.
18171if test -z "$BASH_VERSION$ZSH_VERSION" \
18172    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18173  as_echo='print -r --'
18174  as_echo_n='print -rn --'
18175elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18176  as_echo='printf %s\n'
18177  as_echo_n='printf %s'
18178else
18179  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18180    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18181    as_echo_n='/usr/ucb/echo -n'
18182  else
18183    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18184    as_echo_n_body='eval
18185      arg=$1;
18186      case $arg in #(
18187      *"$as_nl"*)
18188	expr "X$arg" : "X\\(.*\\)$as_nl";
18189	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18190      esac;
18191      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18192    '
18193    export as_echo_n_body
18194    as_echo_n='sh -c $as_echo_n_body as_echo'
18195  fi
18196  export as_echo_body
18197  as_echo='sh -c $as_echo_body as_echo'
18198fi
18199
18200# The user is always right.
18201if test "${PATH_SEPARATOR+set}" != set; then
18202  PATH_SEPARATOR=:
18203  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18204    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18205      PATH_SEPARATOR=';'
18206  }
18207fi
18208
18209
18210# IFS
18211# We need space, tab and new line, in precisely that order.  Quoting is
18212# there to prevent editors from complaining about space-tab.
18213# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18214# splitting by setting IFS to empty value.)
18215IFS=" ""	$as_nl"
18216
18217# Find who we are.  Look in the path if we contain no directory separator.
18218as_myself=
18219case $0 in #((
18220  *[\\/]* ) as_myself=$0 ;;
18221  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222for as_dir in $PATH
18223do
18224  IFS=$as_save_IFS
18225  test -z "$as_dir" && as_dir=.
18226    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18227  done
18228IFS=$as_save_IFS
18229
18230     ;;
18231esac
18232# We did not find ourselves, most probably we were run as `sh COMMAND'
18233# in which case we are not to be found in the path.
18234if test "x$as_myself" = x; then
18235  as_myself=$0
18236fi
18237if test ! -f "$as_myself"; then
18238  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18239  exit 1
18240fi
18241
18242# Unset variables that we do not need and which cause bugs (e.g. in
18243# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18244# suppresses any "Segmentation fault" message there.  '((' could
18245# trigger a bug in pdksh 5.2.14.
18246for as_var in BASH_ENV ENV MAIL MAILPATH
18247do eval test x\${$as_var+set} = xset \
18248  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18249done
18250PS1='$ '
18251PS2='> '
18252PS4='+ '
18253
18254# NLS nuisances.
18255LC_ALL=C
18256export LC_ALL
18257LANGUAGE=C
18258export LANGUAGE
18259
18260# CDPATH.
18261(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18262
18263
18264# as_fn_error STATUS ERROR [LINENO LOG_FD]
18265# ----------------------------------------
18266# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18267# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18268# script with STATUS, using 1 if that was 0.
18269as_fn_error ()
18270{
18271  as_status=$1; test $as_status -eq 0 && as_status=1
18272  if test "$4"; then
18273    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18274    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18275  fi
18276  $as_echo "$as_me: error: $2" >&2
18277  as_fn_exit $as_status
18278} # as_fn_error
18279
18280
18281# as_fn_set_status STATUS
18282# -----------------------
18283# Set $? to STATUS, without forking.
18284as_fn_set_status ()
18285{
18286  return $1
18287} # as_fn_set_status
18288
18289# as_fn_exit STATUS
18290# -----------------
18291# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18292as_fn_exit ()
18293{
18294  set +e
18295  as_fn_set_status $1
18296  exit $1
18297} # as_fn_exit
18298
18299# as_fn_unset VAR
18300# ---------------
18301# Portably unset VAR.
18302as_fn_unset ()
18303{
18304  { eval $1=; unset $1;}
18305}
18306as_unset=as_fn_unset
18307# as_fn_append VAR VALUE
18308# ----------------------
18309# Append the text in VALUE to the end of the definition contained in VAR. Take
18310# advantage of any shell optimizations that allow amortized linear growth over
18311# repeated appends, instead of the typical quadratic growth present in naive
18312# implementations.
18313if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18314  eval 'as_fn_append ()
18315  {
18316    eval $1+=\$2
18317  }'
18318else
18319  as_fn_append ()
18320  {
18321    eval $1=\$$1\$2
18322  }
18323fi # as_fn_append
18324
18325# as_fn_arith ARG...
18326# ------------------
18327# Perform arithmetic evaluation on the ARGs, and store the result in the
18328# global $as_val. Take advantage of shells that can avoid forks. The arguments
18329# must be portable across $(()) and expr.
18330if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18331  eval 'as_fn_arith ()
18332  {
18333    as_val=$(( $* ))
18334  }'
18335else
18336  as_fn_arith ()
18337  {
18338    as_val=`expr "$@" || test $? -eq 1`
18339  }
18340fi # as_fn_arith
18341
18342
18343if expr a : '\(a\)' >/dev/null 2>&1 &&
18344   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18345  as_expr=expr
18346else
18347  as_expr=false
18348fi
18349
18350if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18351  as_basename=basename
18352else
18353  as_basename=false
18354fi
18355
18356if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18357  as_dirname=dirname
18358else
18359  as_dirname=false
18360fi
18361
18362as_me=`$as_basename -- "$0" ||
18363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18364	 X"$0" : 'X\(//\)$' \| \
18365	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18366$as_echo X/"$0" |
18367    sed '/^.*\/\([^/][^/]*\)\/*$/{
18368	    s//\1/
18369	    q
18370	  }
18371	  /^X\/\(\/\/\)$/{
18372	    s//\1/
18373	    q
18374	  }
18375	  /^X\/\(\/\).*/{
18376	    s//\1/
18377	    q
18378	  }
18379	  s/.*/./; q'`
18380
18381# Avoid depending upon Character Ranges.
18382as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18383as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18384as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18385as_cr_digits='0123456789'
18386as_cr_alnum=$as_cr_Letters$as_cr_digits
18387
18388ECHO_C= ECHO_N= ECHO_T=
18389case `echo -n x` in #(((((
18390-n*)
18391  case `echo 'xy\c'` in
18392  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18393  xy)  ECHO_C='\c';;
18394  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18395       ECHO_T='	';;
18396  esac;;
18397*)
18398  ECHO_N='-n';;
18399esac
18400
18401rm -f conf$$ conf$$.exe conf$$.file
18402if test -d conf$$.dir; then
18403  rm -f conf$$.dir/conf$$.file
18404else
18405  rm -f conf$$.dir
18406  mkdir conf$$.dir 2>/dev/null
18407fi
18408if (echo >conf$$.file) 2>/dev/null; then
18409  if ln -s conf$$.file conf$$ 2>/dev/null; then
18410    as_ln_s='ln -s'
18411    # ... but there are two gotchas:
18412    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18413    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18414    # In both cases, we have to default to `cp -pR'.
18415    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18416      as_ln_s='cp -pR'
18417  elif ln conf$$.file conf$$ 2>/dev/null; then
18418    as_ln_s=ln
18419  else
18420    as_ln_s='cp -pR'
18421  fi
18422else
18423  as_ln_s='cp -pR'
18424fi
18425rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18426rmdir conf$$.dir 2>/dev/null
18427
18428
18429# as_fn_mkdir_p
18430# -------------
18431# Create "$as_dir" as a directory, including parents if necessary.
18432as_fn_mkdir_p ()
18433{
18434
18435  case $as_dir in #(
18436  -*) as_dir=./$as_dir;;
18437  esac
18438  test -d "$as_dir" || eval $as_mkdir_p || {
18439    as_dirs=
18440    while :; do
18441      case $as_dir in #(
18442      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18443      *) as_qdir=$as_dir;;
18444      esac
18445      as_dirs="'$as_qdir' $as_dirs"
18446      as_dir=`$as_dirname -- "$as_dir" ||
18447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18448	 X"$as_dir" : 'X\(//\)[^/]' \| \
18449	 X"$as_dir" : 'X\(//\)$' \| \
18450	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18451$as_echo X"$as_dir" |
18452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18453	    s//\1/
18454	    q
18455	  }
18456	  /^X\(\/\/\)[^/].*/{
18457	    s//\1/
18458	    q
18459	  }
18460	  /^X\(\/\/\)$/{
18461	    s//\1/
18462	    q
18463	  }
18464	  /^X\(\/\).*/{
18465	    s//\1/
18466	    q
18467	  }
18468	  s/.*/./; q'`
18469      test -d "$as_dir" && break
18470    done
18471    test -z "$as_dirs" || eval "mkdir $as_dirs"
18472  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18473
18474
18475} # as_fn_mkdir_p
18476if mkdir -p . 2>/dev/null; then
18477  as_mkdir_p='mkdir -p "$as_dir"'
18478else
18479  test -d ./-p && rmdir ./-p
18480  as_mkdir_p=false
18481fi
18482
18483
18484# as_fn_executable_p FILE
18485# -----------------------
18486# Test if FILE is an executable regular file.
18487as_fn_executable_p ()
18488{
18489  test -f "$1" && test -x "$1"
18490} # as_fn_executable_p
18491as_test_x='test -x'
18492as_executable_p=as_fn_executable_p
18493
18494# Sed expression to map a string onto a valid CPP name.
18495as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18496
18497# Sed expression to map a string onto a valid variable name.
18498as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18499
18500
18501exec 6>&1
18502## ----------------------------------- ##
18503## Main body of $CONFIG_STATUS script. ##
18504## ----------------------------------- ##
18505_ASEOF
18506test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18507
18508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18509# Save the log message, to keep $0 and so on meaningful, and to
18510# report actual input values of CONFIG_FILES etc. instead of their
18511# values after options handling.
18512ac_log="
18513This file was extended by xf86-input-keyboard $as_me 1.8.1, which was
18514generated by GNU Autoconf 2.69.  Invocation command line was
18515
18516  CONFIG_FILES    = $CONFIG_FILES
18517  CONFIG_HEADERS  = $CONFIG_HEADERS
18518  CONFIG_LINKS    = $CONFIG_LINKS
18519  CONFIG_COMMANDS = $CONFIG_COMMANDS
18520  $ $0 $@
18521
18522on `(hostname || uname -n) 2>/dev/null | sed 1q`
18523"
18524
18525_ACEOF
18526
18527case $ac_config_files in *"
18528"*) set x $ac_config_files; shift; ac_config_files=$*;;
18529esac
18530
18531case $ac_config_headers in *"
18532"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18533esac
18534
18535
18536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18537# Files that config.status was made for.
18538config_files="$ac_config_files"
18539config_headers="$ac_config_headers"
18540config_commands="$ac_config_commands"
18541
18542_ACEOF
18543
18544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18545ac_cs_usage="\
18546\`$as_me' instantiates files and other configuration actions
18547from templates according to the current configuration.  Unless the files
18548and actions are specified as TAGs, all are instantiated by default.
18549
18550Usage: $0 [OPTION]... [TAG]...
18551
18552  -h, --help       print this help, then exit
18553  -V, --version    print version number and configuration settings, then exit
18554      --config     print configuration, then exit
18555  -q, --quiet, --silent
18556                   do not print progress messages
18557  -d, --debug      don't remove temporary files
18558      --recheck    update $as_me by reconfiguring in the same conditions
18559      --file=FILE[:TEMPLATE]
18560                   instantiate the configuration file FILE
18561      --header=FILE[:TEMPLATE]
18562                   instantiate the configuration header FILE
18563
18564Configuration files:
18565$config_files
18566
18567Configuration headers:
18568$config_headers
18569
18570Configuration commands:
18571$config_commands
18572
18573Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18574
18575_ACEOF
18576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18578ac_cs_version="\\
18579xf86-input-keyboard config.status 1.8.1
18580configured by $0, generated by GNU Autoconf 2.69,
18581  with options \\"\$ac_cs_config\\"
18582
18583Copyright (C) 2012 Free Software Foundation, Inc.
18584This config.status script is free software; the Free Software Foundation
18585gives unlimited permission to copy, distribute and modify it."
18586
18587ac_pwd='$ac_pwd'
18588srcdir='$srcdir'
18589INSTALL='$INSTALL'
18590MKDIR_P='$MKDIR_P'
18591AWK='$AWK'
18592test -n "\$AWK" || AWK=awk
18593_ACEOF
18594
18595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18596# The default lists apply if the user does not specify any file.
18597ac_need_defaults=:
18598while test $# != 0
18599do
18600  case $1 in
18601  --*=?*)
18602    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18603    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18604    ac_shift=:
18605    ;;
18606  --*=)
18607    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18608    ac_optarg=
18609    ac_shift=:
18610    ;;
18611  *)
18612    ac_option=$1
18613    ac_optarg=$2
18614    ac_shift=shift
18615    ;;
18616  esac
18617
18618  case $ac_option in
18619  # Handling of the options.
18620  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18621    ac_cs_recheck=: ;;
18622  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18623    $as_echo "$ac_cs_version"; exit ;;
18624  --config | --confi | --conf | --con | --co | --c )
18625    $as_echo "$ac_cs_config"; exit ;;
18626  --debug | --debu | --deb | --de | --d | -d )
18627    debug=: ;;
18628  --file | --fil | --fi | --f )
18629    $ac_shift
18630    case $ac_optarg in
18631    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18632    '') as_fn_error $? "missing file argument" ;;
18633    esac
18634    as_fn_append CONFIG_FILES " '$ac_optarg'"
18635    ac_need_defaults=false;;
18636  --header | --heade | --head | --hea )
18637    $ac_shift
18638    case $ac_optarg in
18639    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18640    esac
18641    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18642    ac_need_defaults=false;;
18643  --he | --h)
18644    # Conflict between --help and --header
18645    as_fn_error $? "ambiguous option: \`$1'
18646Try \`$0 --help' for more information.";;
18647  --help | --hel | -h )
18648    $as_echo "$ac_cs_usage"; exit ;;
18649  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18650  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18651    ac_cs_silent=: ;;
18652
18653  # This is an error.
18654  -*) as_fn_error $? "unrecognized option: \`$1'
18655Try \`$0 --help' for more information." ;;
18656
18657  *) as_fn_append ac_config_targets " $1"
18658     ac_need_defaults=false ;;
18659
18660  esac
18661  shift
18662done
18663
18664ac_configure_extra_args=
18665
18666if $ac_cs_silent; then
18667  exec 6>/dev/null
18668  ac_configure_extra_args="$ac_configure_extra_args --silent"
18669fi
18670
18671_ACEOF
18672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673if \$ac_cs_recheck; then
18674  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18675  shift
18676  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18677  CONFIG_SHELL='$SHELL'
18678  export CONFIG_SHELL
18679  exec "\$@"
18680fi
18681
18682_ACEOF
18683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18684exec 5>>config.log
18685{
18686  echo
18687  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18688## Running $as_me. ##
18689_ASBOX
18690  $as_echo "$ac_log"
18691} >&5
18692
18693_ACEOF
18694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18695#
18696# INIT-COMMANDS
18697#
18698AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18699
18700
18701# The HP-UX ksh and POSIX shell print the target directory to stdout
18702# if CDPATH is set.
18703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18704
18705sed_quote_subst='$sed_quote_subst'
18706double_quote_subst='$double_quote_subst'
18707delay_variable_subst='$delay_variable_subst'
18708enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18709macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18710macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18711enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18712pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18713enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18714SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18715ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18716PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18717host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18718host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18719host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18720build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18721build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18722build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18723SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18724Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18725GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18726EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18727FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18728LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18729NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18730LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18731max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18732ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18733exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18734lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18735lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18736lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18737lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18738lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18739reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18740reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18741OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18742deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18743file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18744file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18745want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18746DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18747sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18748AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18749AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18750archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18751STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18752RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18753old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18754old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18755old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18756lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18757CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18758CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18759compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18760GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18761lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18762lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18763lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18764lt_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"`'
18765nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18766lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18767objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18768MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18769lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18770lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18771lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18772lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18773lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18774need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18775MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18776DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18777NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18778LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18779OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18780OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18781libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18782shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18783extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18784archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18785enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18786export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18787whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18788compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18789old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18790old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18791archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18792archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18793module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18794module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18795with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18796allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18797no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18798hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18799hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18800hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18801hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18802hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18803hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18804hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18805inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18806link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18807always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18808export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18809exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18810include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18811prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18812postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18813file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18814variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18815need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18816need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18817version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18818runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18819shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18820shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18821libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18822library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18823soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18824install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18825postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18826postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18827finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18828finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18829hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18830sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18831sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18832hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18833enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18834enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18835enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18836old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18837striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18838
18839LTCC='$LTCC'
18840LTCFLAGS='$LTCFLAGS'
18841compiler='$compiler_DEFAULT'
18842
18843# A function that is used when there is no print builtin or printf.
18844func_fallback_echo ()
18845{
18846  eval 'cat <<_LTECHO_EOF
18847\$1
18848_LTECHO_EOF'
18849}
18850
18851# Quote evaled strings.
18852for var in SHELL \
18853ECHO \
18854PATH_SEPARATOR \
18855SED \
18856GREP \
18857EGREP \
18858FGREP \
18859LD \
18860NM \
18861LN_S \
18862lt_SP2NL \
18863lt_NL2SP \
18864reload_flag \
18865OBJDUMP \
18866deplibs_check_method \
18867file_magic_cmd \
18868file_magic_glob \
18869want_nocaseglob \
18870DLLTOOL \
18871sharedlib_from_linklib_cmd \
18872AR \
18873AR_FLAGS \
18874archiver_list_spec \
18875STRIP \
18876RANLIB \
18877CC \
18878CFLAGS \
18879compiler \
18880lt_cv_sys_global_symbol_pipe \
18881lt_cv_sys_global_symbol_to_cdecl \
18882lt_cv_sys_global_symbol_to_c_name_address \
18883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18884nm_file_list_spec \
18885lt_prog_compiler_no_builtin_flag \
18886lt_prog_compiler_pic \
18887lt_prog_compiler_wl \
18888lt_prog_compiler_static \
18889lt_cv_prog_compiler_c_o \
18890need_locks \
18891MANIFEST_TOOL \
18892DSYMUTIL \
18893NMEDIT \
18894LIPO \
18895OTOOL \
18896OTOOL64 \
18897shrext_cmds \
18898export_dynamic_flag_spec \
18899whole_archive_flag_spec \
18900compiler_needs_object \
18901with_gnu_ld \
18902allow_undefined_flag \
18903no_undefined_flag \
18904hardcode_libdir_flag_spec \
18905hardcode_libdir_separator \
18906exclude_expsyms \
18907include_expsyms \
18908file_list_spec \
18909variables_saved_for_relink \
18910libname_spec \
18911library_names_spec \
18912soname_spec \
18913install_override_mode \
18914finish_eval \
18915old_striplib \
18916striplib; do
18917    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18918    *[\\\\\\\`\\"\\\$]*)
18919      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18920      ;;
18921    *)
18922      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18923      ;;
18924    esac
18925done
18926
18927# Double-quote double-evaled strings.
18928for var in reload_cmds \
18929old_postinstall_cmds \
18930old_postuninstall_cmds \
18931old_archive_cmds \
18932extract_expsyms_cmds \
18933old_archive_from_new_cmds \
18934old_archive_from_expsyms_cmds \
18935archive_cmds \
18936archive_expsym_cmds \
18937module_cmds \
18938module_expsym_cmds \
18939export_symbols_cmds \
18940prelink_cmds \
18941postlink_cmds \
18942postinstall_cmds \
18943postuninstall_cmds \
18944finish_cmds \
18945sys_lib_search_path_spec \
18946sys_lib_dlsearch_path_spec; do
18947    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18948    *[\\\\\\\`\\"\\\$]*)
18949      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18950      ;;
18951    *)
18952      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18953      ;;
18954    esac
18955done
18956
18957ac_aux_dir='$ac_aux_dir'
18958xsi_shell='$xsi_shell'
18959lt_shell_append='$lt_shell_append'
18960
18961# See if we are running on zsh, and set the options which allow our
18962# commands through without removal of \ escapes INIT.
18963if test -n "\${ZSH_VERSION+set}" ; then
18964   setopt NO_GLOB_SUBST
18965fi
18966
18967
18968    PACKAGE='$PACKAGE'
18969    VERSION='$VERSION'
18970    TIMESTAMP='$TIMESTAMP'
18971    RM='$RM'
18972    ofile='$ofile'
18973
18974
18975
18976
18977_ACEOF
18978
18979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18980
18981# Handling of arguments.
18982for ac_config_target in $ac_config_targets
18983do
18984  case $ac_config_target in
18985    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18986    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18987    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18988    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18989    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18990    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18991
18992  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18993  esac
18994done
18995
18996
18997# If the user did not use the arguments to specify the items to instantiate,
18998# then the envvar interface is used.  Set only those that are not.
18999# We use the long form for the default assignment because of an extremely
19000# bizarre bug on SunOS 4.1.3.
19001if $ac_need_defaults; then
19002  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19003  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19004  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19005fi
19006
19007# Have a temporary directory for convenience.  Make it in the build tree
19008# simply because there is no reason against having it here, and in addition,
19009# creating and moving files from /tmp can sometimes cause problems.
19010# Hook for its removal unless debugging.
19011# Note that there is a small window in which the directory will not be cleaned:
19012# after its creation but before its name has been assigned to `$tmp'.
19013$debug ||
19014{
19015  tmp= ac_tmp=
19016  trap 'exit_status=$?
19017  : "${ac_tmp:=$tmp}"
19018  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19019' 0
19020  trap 'as_fn_exit 1' 1 2 13 15
19021}
19022# Create a (secure) tmp directory for tmp files.
19023
19024{
19025  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19026  test -d "$tmp"
19027}  ||
19028{
19029  tmp=./conf$$-$RANDOM
19030  (umask 077 && mkdir "$tmp")
19031} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19032ac_tmp=$tmp
19033
19034# Set up the scripts for CONFIG_FILES section.
19035# No need to generate them if there are no CONFIG_FILES.
19036# This happens for instance with `./config.status config.h'.
19037if test -n "$CONFIG_FILES"; then
19038
19039
19040ac_cr=`echo X | tr X '\015'`
19041# On cygwin, bash can eat \r inside `` if the user requested igncr.
19042# But we know of no other shell where ac_cr would be empty at this
19043# point, so we can use a bashism as a fallback.
19044if test "x$ac_cr" = x; then
19045  eval ac_cr=\$\'\\r\'
19046fi
19047ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19048if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19049  ac_cs_awk_cr='\\r'
19050else
19051  ac_cs_awk_cr=$ac_cr
19052fi
19053
19054echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19055_ACEOF
19056
19057
19058{
19059  echo "cat >conf$$subs.awk <<_ACEOF" &&
19060  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19061  echo "_ACEOF"
19062} >conf$$subs.sh ||
19063  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19064ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19065ac_delim='%!_!# '
19066for ac_last_try in false false false false false :; do
19067  . ./conf$$subs.sh ||
19068    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19069
19070  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19071  if test $ac_delim_n = $ac_delim_num; then
19072    break
19073  elif $ac_last_try; then
19074    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19075  else
19076    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19077  fi
19078done
19079rm -f conf$$subs.sh
19080
19081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19082cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19083_ACEOF
19084sed -n '
19085h
19086s/^/S["/; s/!.*/"]=/
19087p
19088g
19089s/^[^!]*!//
19090:repl
19091t repl
19092s/'"$ac_delim"'$//
19093t delim
19094:nl
19095h
19096s/\(.\{148\}\)..*/\1/
19097t more1
19098s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19099p
19100n
19101b repl
19102:more1
19103s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19104p
19105g
19106s/.\{148\}//
19107t nl
19108:delim
19109h
19110s/\(.\{148\}\)..*/\1/
19111t more2
19112s/["\\]/\\&/g; s/^/"/; s/$/"/
19113p
19114b
19115:more2
19116s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19117p
19118g
19119s/.\{148\}//
19120t delim
19121' <conf$$subs.awk | sed '
19122/^[^""]/{
19123  N
19124  s/\n//
19125}
19126' >>$CONFIG_STATUS || ac_write_fail=1
19127rm -f conf$$subs.awk
19128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19129_ACAWK
19130cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19131  for (key in S) S_is_set[key] = 1
19132  FS = ""
19133
19134}
19135{
19136  line = $ 0
19137  nfields = split(line, field, "@")
19138  substed = 0
19139  len = length(field[1])
19140  for (i = 2; i < nfields; i++) {
19141    key = field[i]
19142    keylen = length(key)
19143    if (S_is_set[key]) {
19144      value = S[key]
19145      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19146      len += length(value) + length(field[++i])
19147      substed = 1
19148    } else
19149      len += 1 + keylen
19150  }
19151
19152  print line
19153}
19154
19155_ACAWK
19156_ACEOF
19157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19159  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19160else
19161  cat
19162fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19163  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19164_ACEOF
19165
19166# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19167# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19168# trailing colons and then remove the whole line if VPATH becomes empty
19169# (actually we leave an empty line to preserve line numbers).
19170if test "x$srcdir" = x.; then
19171  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19172h
19173s///
19174s/^/:/
19175s/[	 ]*$/:/
19176s/:\$(srcdir):/:/g
19177s/:\${srcdir}:/:/g
19178s/:@srcdir@:/:/g
19179s/^:*//
19180s/:*$//
19181x
19182s/\(=[	 ]*\).*/\1/
19183G
19184s/\n//
19185s/^[^=]*=[	 ]*$//
19186}'
19187fi
19188
19189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190fi # test -n "$CONFIG_FILES"
19191
19192# Set up the scripts for CONFIG_HEADERS section.
19193# No need to generate them if there are no CONFIG_HEADERS.
19194# This happens for instance with `./config.status Makefile'.
19195if test -n "$CONFIG_HEADERS"; then
19196cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19197BEGIN {
19198_ACEOF
19199
19200# Transform confdefs.h into an awk script `defines.awk', embedded as
19201# here-document in config.status, that substitutes the proper values into
19202# config.h.in to produce config.h.
19203
19204# Create a delimiter string that does not exist in confdefs.h, to ease
19205# handling of long lines.
19206ac_delim='%!_!# '
19207for ac_last_try in false false :; do
19208  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19209  if test -z "$ac_tt"; then
19210    break
19211  elif $ac_last_try; then
19212    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19213  else
19214    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19215  fi
19216done
19217
19218# For the awk script, D is an array of macro values keyed by name,
19219# likewise P contains macro parameters if any.  Preserve backslash
19220# newline sequences.
19221
19222ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19223sed -n '
19224s/.\{148\}/&'"$ac_delim"'/g
19225t rset
19226:rset
19227s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19228t def
19229d
19230:def
19231s/\\$//
19232t bsnl
19233s/["\\]/\\&/g
19234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19235D["\1"]=" \3"/p
19236s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19237d
19238:bsnl
19239s/["\\]/\\&/g
19240s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19241D["\1"]=" \3\\\\\\n"\\/p
19242t cont
19243s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19244t cont
19245d
19246:cont
19247n
19248s/.\{148\}/&'"$ac_delim"'/g
19249t clear
19250:clear
19251s/\\$//
19252t bsnlc
19253s/["\\]/\\&/g; s/^/"/; s/$/"/p
19254d
19255:bsnlc
19256s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19257b cont
19258' <confdefs.h | sed '
19259s/'"$ac_delim"'/"\\\
19260"/g' >>$CONFIG_STATUS || ac_write_fail=1
19261
19262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19263  for (key in D) D_is_set[key] = 1
19264  FS = ""
19265}
19266/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19267  line = \$ 0
19268  split(line, arg, " ")
19269  if (arg[1] == "#") {
19270    defundef = arg[2]
19271    mac1 = arg[3]
19272  } else {
19273    defundef = substr(arg[1], 2)
19274    mac1 = arg[2]
19275  }
19276  split(mac1, mac2, "(") #)
19277  macro = mac2[1]
19278  prefix = substr(line, 1, index(line, defundef) - 1)
19279  if (D_is_set[macro]) {
19280    # Preserve the white space surrounding the "#".
19281    print prefix "define", macro P[macro] D[macro]
19282    next
19283  } else {
19284    # Replace #undef with comments.  This is necessary, for example,
19285    # in the case of _POSIX_SOURCE, which is predefined and required
19286    # on some systems where configure will not decide to define it.
19287    if (defundef == "undef") {
19288      print "/*", prefix defundef, macro, "*/"
19289      next
19290    }
19291  }
19292}
19293{ print }
19294_ACAWK
19295_ACEOF
19296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19297  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19298fi # test -n "$CONFIG_HEADERS"
19299
19300
19301eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19302shift
19303for ac_tag
19304do
19305  case $ac_tag in
19306  :[FHLC]) ac_mode=$ac_tag; continue;;
19307  esac
19308  case $ac_mode$ac_tag in
19309  :[FHL]*:*);;
19310  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19311  :[FH]-) ac_tag=-:-;;
19312  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19313  esac
19314  ac_save_IFS=$IFS
19315  IFS=:
19316  set x $ac_tag
19317  IFS=$ac_save_IFS
19318  shift
19319  ac_file=$1
19320  shift
19321
19322  case $ac_mode in
19323  :L) ac_source=$1;;
19324  :[FH])
19325    ac_file_inputs=
19326    for ac_f
19327    do
19328      case $ac_f in
19329      -) ac_f="$ac_tmp/stdin";;
19330      *) # Look for the file first in the build tree, then in the source tree
19331	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19332	 # because $ac_f cannot contain `:'.
19333	 test -f "$ac_f" ||
19334	   case $ac_f in
19335	   [\\/$]*) false;;
19336	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19337	   esac ||
19338	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19339      esac
19340      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19341      as_fn_append ac_file_inputs " '$ac_f'"
19342    done
19343
19344    # Let's still pretend it is `configure' which instantiates (i.e., don't
19345    # use $as_me), people would be surprised to read:
19346    #    /* config.h.  Generated by config.status.  */
19347    configure_input='Generated from '`
19348	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19349	`' by configure.'
19350    if test x"$ac_file" != x-; then
19351      configure_input="$ac_file.  $configure_input"
19352      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19353$as_echo "$as_me: creating $ac_file" >&6;}
19354    fi
19355    # Neutralize special characters interpreted by sed in replacement strings.
19356    case $configure_input in #(
19357    *\&* | *\|* | *\\* )
19358       ac_sed_conf_input=`$as_echo "$configure_input" |
19359       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19360    *) ac_sed_conf_input=$configure_input;;
19361    esac
19362
19363    case $ac_tag in
19364    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19365      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19366    esac
19367    ;;
19368  esac
19369
19370  ac_dir=`$as_dirname -- "$ac_file" ||
19371$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19372	 X"$ac_file" : 'X\(//\)[^/]' \| \
19373	 X"$ac_file" : 'X\(//\)$' \| \
19374	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19375$as_echo X"$ac_file" |
19376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19377	    s//\1/
19378	    q
19379	  }
19380	  /^X\(\/\/\)[^/].*/{
19381	    s//\1/
19382	    q
19383	  }
19384	  /^X\(\/\/\)$/{
19385	    s//\1/
19386	    q
19387	  }
19388	  /^X\(\/\).*/{
19389	    s//\1/
19390	    q
19391	  }
19392	  s/.*/./; q'`
19393  as_dir="$ac_dir"; as_fn_mkdir_p
19394  ac_builddir=.
19395
19396case "$ac_dir" in
19397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19398*)
19399  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19400  # A ".." for each directory in $ac_dir_suffix.
19401  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19402  case $ac_top_builddir_sub in
19403  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19404  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19405  esac ;;
19406esac
19407ac_abs_top_builddir=$ac_pwd
19408ac_abs_builddir=$ac_pwd$ac_dir_suffix
19409# for backward compatibility:
19410ac_top_builddir=$ac_top_build_prefix
19411
19412case $srcdir in
19413  .)  # We are building in place.
19414    ac_srcdir=.
19415    ac_top_srcdir=$ac_top_builddir_sub
19416    ac_abs_top_srcdir=$ac_pwd ;;
19417  [\\/]* | ?:[\\/]* )  # Absolute name.
19418    ac_srcdir=$srcdir$ac_dir_suffix;
19419    ac_top_srcdir=$srcdir
19420    ac_abs_top_srcdir=$srcdir ;;
19421  *) # Relative name.
19422    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19423    ac_top_srcdir=$ac_top_build_prefix$srcdir
19424    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19425esac
19426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19427
19428
19429  case $ac_mode in
19430  :F)
19431  #
19432  # CONFIG_FILE
19433  #
19434
19435  case $INSTALL in
19436  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19437  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19438  esac
19439  ac_MKDIR_P=$MKDIR_P
19440  case $MKDIR_P in
19441  [\\/$]* | ?:[\\/]* ) ;;
19442  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19443  esac
19444_ACEOF
19445
19446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19447# If the template does not know about datarootdir, expand it.
19448# FIXME: This hack should be removed a few years after 2.60.
19449ac_datarootdir_hack=; ac_datarootdir_seen=
19450ac_sed_dataroot='
19451/datarootdir/ {
19452  p
19453  q
19454}
19455/@datadir@/p
19456/@docdir@/p
19457/@infodir@/p
19458/@localedir@/p
19459/@mandir@/p'
19460case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19461*datarootdir*) ac_datarootdir_seen=yes;;
19462*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19464$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19465_ACEOF
19466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19467  ac_datarootdir_hack='
19468  s&@datadir@&$datadir&g
19469  s&@docdir@&$docdir&g
19470  s&@infodir@&$infodir&g
19471  s&@localedir@&$localedir&g
19472  s&@mandir@&$mandir&g
19473  s&\\\${datarootdir}&$datarootdir&g' ;;
19474esac
19475_ACEOF
19476
19477# Neutralize VPATH when `$srcdir' = `.'.
19478# Shell code in configure.ac might set extrasub.
19479# FIXME: do we really want to maintain this feature?
19480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19481ac_sed_extra="$ac_vpsub
19482$extrasub
19483_ACEOF
19484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485:t
19486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19487s|@configure_input@|$ac_sed_conf_input|;t t
19488s&@top_builddir@&$ac_top_builddir_sub&;t t
19489s&@top_build_prefix@&$ac_top_build_prefix&;t t
19490s&@srcdir@&$ac_srcdir&;t t
19491s&@abs_srcdir@&$ac_abs_srcdir&;t t
19492s&@top_srcdir@&$ac_top_srcdir&;t t
19493s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19494s&@builddir@&$ac_builddir&;t t
19495s&@abs_builddir@&$ac_abs_builddir&;t t
19496s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19497s&@INSTALL@&$ac_INSTALL&;t t
19498s&@MKDIR_P@&$ac_MKDIR_P&;t t
19499$ac_datarootdir_hack
19500"
19501eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19502  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19503
19504test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19505  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19506  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19507      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19508  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19509which seems to be undefined.  Please make sure it is defined" >&5
19510$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19511which seems to be undefined.  Please make sure it is defined" >&2;}
19512
19513  rm -f "$ac_tmp/stdin"
19514  case $ac_file in
19515  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19516  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19517  esac \
19518  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19519 ;;
19520  :H)
19521  #
19522  # CONFIG_HEADER
19523  #
19524  if test x"$ac_file" != x-; then
19525    {
19526      $as_echo "/* $configure_input  */" \
19527      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19528    } >"$ac_tmp/config.h" \
19529      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19530    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19531      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19532$as_echo "$as_me: $ac_file is unchanged" >&6;}
19533    else
19534      rm -f "$ac_file"
19535      mv "$ac_tmp/config.h" "$ac_file" \
19536	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19537    fi
19538  else
19539    $as_echo "/* $configure_input  */" \
19540      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19541      || as_fn_error $? "could not create -" "$LINENO" 5
19542  fi
19543# Compute "$ac_file"'s index in $config_headers.
19544_am_arg="$ac_file"
19545_am_stamp_count=1
19546for _am_header in $config_headers :; do
19547  case $_am_header in
19548    $_am_arg | $_am_arg:* )
19549      break ;;
19550    * )
19551      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19552  esac
19553done
19554echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19555$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19556	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19557	 X"$_am_arg" : 'X\(//\)$' \| \
19558	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19559$as_echo X"$_am_arg" |
19560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19561	    s//\1/
19562	    q
19563	  }
19564	  /^X\(\/\/\)[^/].*/{
19565	    s//\1/
19566	    q
19567	  }
19568	  /^X\(\/\/\)$/{
19569	    s//\1/
19570	    q
19571	  }
19572	  /^X\(\/\).*/{
19573	    s//\1/
19574	    q
19575	  }
19576	  s/.*/./; q'`/stamp-h$_am_stamp_count
19577 ;;
19578
19579  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19580$as_echo "$as_me: executing $ac_file commands" >&6;}
19581 ;;
19582  esac
19583
19584
19585  case $ac_file$ac_mode in
19586    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19587  # Older Autoconf quotes --file arguments for eval, but not when files
19588  # are listed without --file.  Let's play safe and only enable the eval
19589  # if we detect the quoting.
19590  case $CONFIG_FILES in
19591  *\'*) eval set x "$CONFIG_FILES" ;;
19592  *)   set x $CONFIG_FILES ;;
19593  esac
19594  shift
19595  for mf
19596  do
19597    # Strip MF so we end up with the name of the file.
19598    mf=`echo "$mf" | sed -e 's/:.*$//'`
19599    # Check whether this is an Automake generated Makefile or not.
19600    # We used to match only the files named 'Makefile.in', but
19601    # some people rename them; so instead we look at the file content.
19602    # Grep'ing the first line is not enough: some people post-process
19603    # each Makefile.in and add a new line on top of each file to say so.
19604    # Grep'ing the whole file is not good either: AIX grep has a line
19605    # limit of 2048, but all sed's we know have understand at least 4000.
19606    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19607      dirpart=`$as_dirname -- "$mf" ||
19608$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19609	 X"$mf" : 'X\(//\)[^/]' \| \
19610	 X"$mf" : 'X\(//\)$' \| \
19611	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19612$as_echo X"$mf" |
19613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19614	    s//\1/
19615	    q
19616	  }
19617	  /^X\(\/\/\)[^/].*/{
19618	    s//\1/
19619	    q
19620	  }
19621	  /^X\(\/\/\)$/{
19622	    s//\1/
19623	    q
19624	  }
19625	  /^X\(\/\).*/{
19626	    s//\1/
19627	    q
19628	  }
19629	  s/.*/./; q'`
19630    else
19631      continue
19632    fi
19633    # Extract the definition of DEPDIR, am__include, and am__quote
19634    # from the Makefile without running 'make'.
19635    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19636    test -z "$DEPDIR" && continue
19637    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19638    test -z "$am__include" && continue
19639    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19640    # Find all dependency output files, they are included files with
19641    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19642    # simplest approach to changing $(DEPDIR) to its actual value in the
19643    # expansion.
19644    for file in `sed -n "
19645      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19646	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19647      # Make sure the directory exists.
19648      test -f "$dirpart/$file" && continue
19649      fdir=`$as_dirname -- "$file" ||
19650$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19651	 X"$file" : 'X\(//\)[^/]' \| \
19652	 X"$file" : 'X\(//\)$' \| \
19653	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19654$as_echo X"$file" |
19655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19656	    s//\1/
19657	    q
19658	  }
19659	  /^X\(\/\/\)[^/].*/{
19660	    s//\1/
19661	    q
19662	  }
19663	  /^X\(\/\/\)$/{
19664	    s//\1/
19665	    q
19666	  }
19667	  /^X\(\/\).*/{
19668	    s//\1/
19669	    q
19670	  }
19671	  s/.*/./; q'`
19672      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19673      # echo "creating $dirpart/$file"
19674      echo '# dummy' > "$dirpart/$file"
19675    done
19676  done
19677}
19678 ;;
19679    "libtool":C)
19680
19681    # See if we are running on zsh, and set the options which allow our
19682    # commands through without removal of \ escapes.
19683    if test -n "${ZSH_VERSION+set}" ; then
19684      setopt NO_GLOB_SUBST
19685    fi
19686
19687    cfgfile="${ofile}T"
19688    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19689    $RM "$cfgfile"
19690
19691    cat <<_LT_EOF >> "$cfgfile"
19692#! $SHELL
19693
19694# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19695# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19697# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19698#
19699#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19700#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19701#                 Foundation, Inc.
19702#   Written by Gordon Matzigkeit, 1996
19703#
19704#   This file is part of GNU Libtool.
19705#
19706# GNU Libtool is free software; you can redistribute it and/or
19707# modify it under the terms of the GNU General Public License as
19708# published by the Free Software Foundation; either version 2 of
19709# the License, or (at your option) any later version.
19710#
19711# As a special exception to the GNU General Public License,
19712# if you distribute this file as part of a program or library that
19713# is built using GNU Libtool, you may include this file under the
19714# same distribution terms that you use for the rest of that program.
19715#
19716# GNU Libtool is distributed in the hope that it will be useful,
19717# but WITHOUT ANY WARRANTY; without even the implied warranty of
19718# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19719# GNU General Public License for more details.
19720#
19721# You should have received a copy of the GNU General Public License
19722# along with GNU Libtool; see the file COPYING.  If not, a copy
19723# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19724# obtained by writing to the Free Software Foundation, Inc.,
19725# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19726
19727
19728# The names of the tagged configurations supported by this script.
19729available_tags=""
19730
19731# ### BEGIN LIBTOOL CONFIG
19732
19733# Whether or not to build static libraries.
19734build_old_libs=$enable_static
19735
19736# Which release of libtool.m4 was used?
19737macro_version=$macro_version
19738macro_revision=$macro_revision
19739
19740# Whether or not to build shared libraries.
19741build_libtool_libs=$enable_shared
19742
19743# What type of objects to build.
19744pic_mode=$pic_mode
19745
19746# Whether or not to optimize for fast installation.
19747fast_install=$enable_fast_install
19748
19749# Shell to use when invoking shell scripts.
19750SHELL=$lt_SHELL
19751
19752# An echo program that protects backslashes.
19753ECHO=$lt_ECHO
19754
19755# The PATH separator for the build system.
19756PATH_SEPARATOR=$lt_PATH_SEPARATOR
19757
19758# The host system.
19759host_alias=$host_alias
19760host=$host
19761host_os=$host_os
19762
19763# The build system.
19764build_alias=$build_alias
19765build=$build
19766build_os=$build_os
19767
19768# A sed program that does not truncate output.
19769SED=$lt_SED
19770
19771# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19772Xsed="\$SED -e 1s/^X//"
19773
19774# A grep program that handles long lines.
19775GREP=$lt_GREP
19776
19777# An ERE matcher.
19778EGREP=$lt_EGREP
19779
19780# A literal string matcher.
19781FGREP=$lt_FGREP
19782
19783# A BSD- or MS-compatible name lister.
19784NM=$lt_NM
19785
19786# Whether we need soft or hard links.
19787LN_S=$lt_LN_S
19788
19789# What is the maximum length of a command?
19790max_cmd_len=$max_cmd_len
19791
19792# Object file suffix (normally "o").
19793objext=$ac_objext
19794
19795# Executable file suffix (normally "").
19796exeext=$exeext
19797
19798# whether the shell understands "unset".
19799lt_unset=$lt_unset
19800
19801# turn spaces into newlines.
19802SP2NL=$lt_lt_SP2NL
19803
19804# turn newlines into spaces.
19805NL2SP=$lt_lt_NL2SP
19806
19807# convert \$build file names to \$host format.
19808to_host_file_cmd=$lt_cv_to_host_file_cmd
19809
19810# convert \$build files to toolchain format.
19811to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19812
19813# An object symbol dumper.
19814OBJDUMP=$lt_OBJDUMP
19815
19816# Method to check whether dependent libraries are shared objects.
19817deplibs_check_method=$lt_deplibs_check_method
19818
19819# Command to use when deplibs_check_method = "file_magic".
19820file_magic_cmd=$lt_file_magic_cmd
19821
19822# How to find potential files when deplibs_check_method = "file_magic".
19823file_magic_glob=$lt_file_magic_glob
19824
19825# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19826want_nocaseglob=$lt_want_nocaseglob
19827
19828# DLL creation program.
19829DLLTOOL=$lt_DLLTOOL
19830
19831# Command to associate shared and link libraries.
19832sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19833
19834# The archiver.
19835AR=$lt_AR
19836
19837# Flags to create an archive.
19838AR_FLAGS=$lt_AR_FLAGS
19839
19840# How to feed a file listing to the archiver.
19841archiver_list_spec=$lt_archiver_list_spec
19842
19843# A symbol stripping program.
19844STRIP=$lt_STRIP
19845
19846# Commands used to install an old-style archive.
19847RANLIB=$lt_RANLIB
19848old_postinstall_cmds=$lt_old_postinstall_cmds
19849old_postuninstall_cmds=$lt_old_postuninstall_cmds
19850
19851# Whether to use a lock for old archive extraction.
19852lock_old_archive_extraction=$lock_old_archive_extraction
19853
19854# A C compiler.
19855LTCC=$lt_CC
19856
19857# LTCC compiler flags.
19858LTCFLAGS=$lt_CFLAGS
19859
19860# Take the output of nm and produce a listing of raw symbols and C names.
19861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19862
19863# Transform the output of nm in a proper C declaration.
19864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19865
19866# Transform the output of nm in a C name address pair.
19867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19868
19869# Transform the output of nm in a C name address pair when lib prefix is needed.
19870global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19871
19872# Specify filename containing input files for \$NM.
19873nm_file_list_spec=$lt_nm_file_list_spec
19874
19875# The root where to search for dependent libraries,and in which our libraries should be installed.
19876lt_sysroot=$lt_sysroot
19877
19878# The name of the directory that contains temporary libtool files.
19879objdir=$objdir
19880
19881# Used to examine libraries when file_magic_cmd begins with "file".
19882MAGIC_CMD=$MAGIC_CMD
19883
19884# Must we lock files when doing compilation?
19885need_locks=$lt_need_locks
19886
19887# Manifest tool.
19888MANIFEST_TOOL=$lt_MANIFEST_TOOL
19889
19890# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19891DSYMUTIL=$lt_DSYMUTIL
19892
19893# Tool to change global to local symbols on Mac OS X.
19894NMEDIT=$lt_NMEDIT
19895
19896# Tool to manipulate fat objects and archives on Mac OS X.
19897LIPO=$lt_LIPO
19898
19899# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19900OTOOL=$lt_OTOOL
19901
19902# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19903OTOOL64=$lt_OTOOL64
19904
19905# Old archive suffix (normally "a").
19906libext=$libext
19907
19908# Shared library suffix (normally ".so").
19909shrext_cmds=$lt_shrext_cmds
19910
19911# The commands to extract the exported symbol list from a shared archive.
19912extract_expsyms_cmds=$lt_extract_expsyms_cmds
19913
19914# Variables whose values should be saved in libtool wrapper scripts and
19915# restored at link time.
19916variables_saved_for_relink=$lt_variables_saved_for_relink
19917
19918# Do we need the "lib" prefix for modules?
19919need_lib_prefix=$need_lib_prefix
19920
19921# Do we need a version for libraries?
19922need_version=$need_version
19923
19924# Library versioning type.
19925version_type=$version_type
19926
19927# Shared library runtime path variable.
19928runpath_var=$runpath_var
19929
19930# Shared library path variable.
19931shlibpath_var=$shlibpath_var
19932
19933# Is shlibpath searched before the hard-coded library search path?
19934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19935
19936# Format of library name prefix.
19937libname_spec=$lt_libname_spec
19938
19939# List of archive names.  First name is the real one, the rest are links.
19940# The last name is the one that the linker finds with -lNAME
19941library_names_spec=$lt_library_names_spec
19942
19943# The coded name of the library, if different from the real name.
19944soname_spec=$lt_soname_spec
19945
19946# Permission mode override for installation of shared libraries.
19947install_override_mode=$lt_install_override_mode
19948
19949# Command to use after installation of a shared archive.
19950postinstall_cmds=$lt_postinstall_cmds
19951
19952# Command to use after uninstallation of a shared archive.
19953postuninstall_cmds=$lt_postuninstall_cmds
19954
19955# Commands used to finish a libtool library installation in a directory.
19956finish_cmds=$lt_finish_cmds
19957
19958# As "finish_cmds", except a single script fragment to be evaled but
19959# not shown.
19960finish_eval=$lt_finish_eval
19961
19962# Whether we should hardcode library paths into libraries.
19963hardcode_into_libs=$hardcode_into_libs
19964
19965# Compile-time system search path for libraries.
19966sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19967
19968# Run-time system search path for libraries.
19969sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19970
19971# Whether dlopen is supported.
19972dlopen_support=$enable_dlopen
19973
19974# Whether dlopen of programs is supported.
19975dlopen_self=$enable_dlopen_self
19976
19977# Whether dlopen of statically linked programs is supported.
19978dlopen_self_static=$enable_dlopen_self_static
19979
19980# Commands to strip libraries.
19981old_striplib=$lt_old_striplib
19982striplib=$lt_striplib
19983
19984
19985# The linker used to build libraries.
19986LD=$lt_LD
19987
19988# How to create reloadable object files.
19989reload_flag=$lt_reload_flag
19990reload_cmds=$lt_reload_cmds
19991
19992# Commands used to build an old-style archive.
19993old_archive_cmds=$lt_old_archive_cmds
19994
19995# A language specific compiler.
19996CC=$lt_compiler
19997
19998# Is the compiler the GNU compiler?
19999with_gcc=$GCC
20000
20001# Compiler flag to turn off builtin functions.
20002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20003
20004# Additional compiler flags for building library objects.
20005pic_flag=$lt_lt_prog_compiler_pic
20006
20007# How to pass a linker flag through the compiler.
20008wl=$lt_lt_prog_compiler_wl
20009
20010# Compiler flag to prevent dynamic linking.
20011link_static_flag=$lt_lt_prog_compiler_static
20012
20013# Does compiler simultaneously support -c and -o options?
20014compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20015
20016# Whether or not to add -lc for building shared libraries.
20017build_libtool_need_lc=$archive_cmds_need_lc
20018
20019# Whether or not to disallow shared libs when runtime libs are static.
20020allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20021
20022# Compiler flag to allow reflexive dlopens.
20023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20024
20025# Compiler flag to generate shared objects directly from archives.
20026whole_archive_flag_spec=$lt_whole_archive_flag_spec
20027
20028# Whether the compiler copes with passing no objects directly.
20029compiler_needs_object=$lt_compiler_needs_object
20030
20031# Create an old-style archive from a shared archive.
20032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20033
20034# Create a temporary old-style archive to link instead of a shared archive.
20035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20036
20037# Commands used to build a shared archive.
20038archive_cmds=$lt_archive_cmds
20039archive_expsym_cmds=$lt_archive_expsym_cmds
20040
20041# Commands used to build a loadable module if different from building
20042# a shared archive.
20043module_cmds=$lt_module_cmds
20044module_expsym_cmds=$lt_module_expsym_cmds
20045
20046# Whether we are building with GNU ld or not.
20047with_gnu_ld=$lt_with_gnu_ld
20048
20049# Flag that allows shared libraries with undefined symbols to be built.
20050allow_undefined_flag=$lt_allow_undefined_flag
20051
20052# Flag that enforces no undefined symbols.
20053no_undefined_flag=$lt_no_undefined_flag
20054
20055# Flag to hardcode \$libdir into a binary during linking.
20056# This must work even if \$libdir does not exist
20057hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20058
20059# Whether we need a single "-rpath" flag with a separated argument.
20060hardcode_libdir_separator=$lt_hardcode_libdir_separator
20061
20062# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20063# DIR into the resulting binary.
20064hardcode_direct=$hardcode_direct
20065
20066# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20067# DIR into the resulting binary and the resulting library dependency is
20068# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20069# library is relocated.
20070hardcode_direct_absolute=$hardcode_direct_absolute
20071
20072# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20073# into the resulting binary.
20074hardcode_minus_L=$hardcode_minus_L
20075
20076# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20077# into the resulting binary.
20078hardcode_shlibpath_var=$hardcode_shlibpath_var
20079
20080# Set to "yes" if building a shared library automatically hardcodes DIR
20081# into the library and all subsequent libraries and executables linked
20082# against it.
20083hardcode_automatic=$hardcode_automatic
20084
20085# Set to yes if linker adds runtime paths of dependent libraries
20086# to runtime path list.
20087inherit_rpath=$inherit_rpath
20088
20089# Whether libtool must link a program against all its dependency libraries.
20090link_all_deplibs=$link_all_deplibs
20091
20092# Set to "yes" if exported symbols are required.
20093always_export_symbols=$always_export_symbols
20094
20095# The commands to list exported symbols.
20096export_symbols_cmds=$lt_export_symbols_cmds
20097
20098# Symbols that should not be listed in the preloaded symbols.
20099exclude_expsyms=$lt_exclude_expsyms
20100
20101# Symbols that must always be exported.
20102include_expsyms=$lt_include_expsyms
20103
20104# Commands necessary for linking programs (against libraries) with templates.
20105prelink_cmds=$lt_prelink_cmds
20106
20107# Commands necessary for finishing linking programs.
20108postlink_cmds=$lt_postlink_cmds
20109
20110# Specify filename containing input files.
20111file_list_spec=$lt_file_list_spec
20112
20113# How to hardcode a shared library path into an executable.
20114hardcode_action=$hardcode_action
20115
20116# ### END LIBTOOL CONFIG
20117
20118_LT_EOF
20119
20120  case $host_os in
20121  aix3*)
20122    cat <<\_LT_EOF >> "$cfgfile"
20123# AIX sometimes has problems with the GCC collect2 program.  For some
20124# reason, if we set the COLLECT_NAMES environment variable, the problems
20125# vanish in a puff of smoke.
20126if test "X${COLLECT_NAMES+set}" != Xset; then
20127  COLLECT_NAMES=
20128  export COLLECT_NAMES
20129fi
20130_LT_EOF
20131    ;;
20132  esac
20133
20134
20135ltmain="$ac_aux_dir/ltmain.sh"
20136
20137
20138  # We use sed instead of cat because bash on DJGPP gets confused if
20139  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20140  # text mode, it properly converts lines to CR/LF.  This bash problem
20141  # is reportedly fixed, but why not run on old versions too?
20142  sed '$q' "$ltmain" >> "$cfgfile" \
20143     || (rm -f "$cfgfile"; exit 1)
20144
20145  if test x"$xsi_shell" = xyes; then
20146  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20147func_dirname ()\
20148{\
20149\    case ${1} in\
20150\      */*) func_dirname_result="${1%/*}${2}" ;;\
20151\      *  ) func_dirname_result="${3}" ;;\
20152\    esac\
20153} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20154  && mv -f "$cfgfile.tmp" "$cfgfile" \
20155    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20156test 0 -eq $? || _lt_function_replace_fail=:
20157
20158
20159  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20160func_basename ()\
20161{\
20162\    func_basename_result="${1##*/}"\
20163} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20164  && mv -f "$cfgfile.tmp" "$cfgfile" \
20165    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20166test 0 -eq $? || _lt_function_replace_fail=:
20167
20168
20169  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20170func_dirname_and_basename ()\
20171{\
20172\    case ${1} in\
20173\      */*) func_dirname_result="${1%/*}${2}" ;;\
20174\      *  ) func_dirname_result="${3}" ;;\
20175\    esac\
20176\    func_basename_result="${1##*/}"\
20177} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20178  && mv -f "$cfgfile.tmp" "$cfgfile" \
20179    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20180test 0 -eq $? || _lt_function_replace_fail=:
20181
20182
20183  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20184func_stripname ()\
20185{\
20186\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20187\    # positional parameters, so assign one to ordinary parameter first.\
20188\    func_stripname_result=${3}\
20189\    func_stripname_result=${func_stripname_result#"${1}"}\
20190\    func_stripname_result=${func_stripname_result%"${2}"}\
20191} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20192  && mv -f "$cfgfile.tmp" "$cfgfile" \
20193    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20194test 0 -eq $? || _lt_function_replace_fail=:
20195
20196
20197  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20198func_split_long_opt ()\
20199{\
20200\    func_split_long_opt_name=${1%%=*}\
20201\    func_split_long_opt_arg=${1#*=}\
20202} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20203  && mv -f "$cfgfile.tmp" "$cfgfile" \
20204    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20205test 0 -eq $? || _lt_function_replace_fail=:
20206
20207
20208  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20209func_split_short_opt ()\
20210{\
20211\    func_split_short_opt_arg=${1#??}\
20212\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20213} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20214  && mv -f "$cfgfile.tmp" "$cfgfile" \
20215    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20216test 0 -eq $? || _lt_function_replace_fail=:
20217
20218
20219  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20220func_lo2o ()\
20221{\
20222\    case ${1} in\
20223\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20224\      *)    func_lo2o_result=${1} ;;\
20225\    esac\
20226} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20227  && mv -f "$cfgfile.tmp" "$cfgfile" \
20228    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20229test 0 -eq $? || _lt_function_replace_fail=:
20230
20231
20232  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20233func_xform ()\
20234{\
20235    func_xform_result=${1%.*}.lo\
20236} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20237  && mv -f "$cfgfile.tmp" "$cfgfile" \
20238    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20239test 0 -eq $? || _lt_function_replace_fail=:
20240
20241
20242  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20243func_arith ()\
20244{\
20245    func_arith_result=$(( $* ))\
20246} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20247  && mv -f "$cfgfile.tmp" "$cfgfile" \
20248    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20249test 0 -eq $? || _lt_function_replace_fail=:
20250
20251
20252  sed -e '/^func_len ()$/,/^} # func_len /c\
20253func_len ()\
20254{\
20255    func_len_result=${#1}\
20256} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20257  && mv -f "$cfgfile.tmp" "$cfgfile" \
20258    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259test 0 -eq $? || _lt_function_replace_fail=:
20260
20261fi
20262
20263if test x"$lt_shell_append" = xyes; then
20264  sed -e '/^func_append ()$/,/^} # func_append /c\
20265func_append ()\
20266{\
20267    eval "${1}+=\\${2}"\
20268} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20269  && mv -f "$cfgfile.tmp" "$cfgfile" \
20270    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20271test 0 -eq $? || _lt_function_replace_fail=:
20272
20273
20274  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20275func_append_quoted ()\
20276{\
20277\    func_quote_for_eval "${2}"\
20278\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20279} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20280  && mv -f "$cfgfile.tmp" "$cfgfile" \
20281    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20282test 0 -eq $? || _lt_function_replace_fail=:
20283
20284
20285  # Save a `func_append' function call where possible by direct use of '+='
20286  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20287    && mv -f "$cfgfile.tmp" "$cfgfile" \
20288      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20289  test 0 -eq $? || _lt_function_replace_fail=:
20290else
20291  # Save a `func_append' function call even when '+=' is not available
20292  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20293    && mv -f "$cfgfile.tmp" "$cfgfile" \
20294      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20295  test 0 -eq $? || _lt_function_replace_fail=:
20296fi
20297
20298if test x"$_lt_function_replace_fail" = x":"; then
20299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20300$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20301fi
20302
20303
20304   mv -f "$cfgfile" "$ofile" ||
20305    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20306  chmod +x "$ofile"
20307
20308 ;;
20309
20310  esac
20311done # for ac_tag
20312
20313
20314as_fn_exit 0
20315_ACEOF
20316ac_clean_files=$ac_clean_files_save
20317
20318test $ac_write_fail = 0 ||
20319  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20320
20321
20322# configure is writing to config.log, and then calls config.status.
20323# config.status does its own redirection, appending to config.log.
20324# Unfortunately, on DOS this fails, as config.log is still kept open
20325# by configure, so config.status won't be able to write to it; its
20326# output is simply discarded.  So we exec the FD to /dev/null,
20327# effectively closing config.log, so it can be properly (re)opened and
20328# appended to by config.status.  When coming back to configure, we
20329# need to make the FD available again.
20330if test "$no_create" != yes; then
20331  ac_cs_success=:
20332  ac_config_status_args=
20333  test "$silent" = yes &&
20334    ac_config_status_args="$ac_config_status_args --quiet"
20335  exec 5>/dev/null
20336  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20337  exec 5>>config.log
20338  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20339  # would make configure fail if this is the last instruction.
20340  $ac_cs_success || as_fn_exit 1
20341fi
20342if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20344$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20345fi
20346
20347