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.9.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-input-keyboard'
593PACKAGE_TARNAME='xf86-input-keyboard'
594PACKAGE_VERSION='1.9.0'
595PACKAGE_STRING='xf86-input-keyboard 1.9.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
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
676LT_SYS_LIBRARY_PATH
677OTOOL64
678OTOOL
679LIPO
680NMEDIT
681DSYMUTIL
682MANIFEST_TOOL
683RANLIB
684ac_ct_AR
685AR
686DLLTOOL
687OBJDUMP
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696SED
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722LIBTOOL
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_silent_rules
792enable_static
793enable_shared
794with_pic
795enable_fast_install
796with_aix_soname
797enable_dependency_tracking
798with_gnu_ld
799with_sysroot
800enable_libtool_lock
801enable_selective_werror
802enable_strict_compilation
803with_xorg_module_dir
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813LT_SYS_LIBRARY_PATH
814CPP
815PKG_CONFIG
816PKG_CONFIG_PATH
817PKG_CONFIG_LIBDIR
818XORG_CFLAGS
819XORG_LIBS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  # Accept the important Cygnus configure options, so we can diagnose typos.
888
889  case $ac_dashdash$ac_option in
890  --)
891    ac_dashdash=yes ;;
892
893  -bindir | --bindir | --bindi | --bind | --bin | --bi)
894    ac_prev=bindir ;;
895  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896    bindir=$ac_optarg ;;
897
898  -build | --build | --buil | --bui | --bu)
899    ac_prev=build_alias ;;
900  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901    build_alias=$ac_optarg ;;
902
903  -cache-file | --cache-file | --cache-fil | --cache-fi \
904  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905    ac_prev=cache_file ;;
906  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908    cache_file=$ac_optarg ;;
909
910  --config-cache | -C)
911    cache_file=config.cache ;;
912
913  -datadir | --datadir | --datadi | --datad)
914    ac_prev=datadir ;;
915  -datadir=* | --datadir=* | --datadi=* | --datad=*)
916    datadir=$ac_optarg ;;
917
918  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919  | --dataroo | --dataro | --datar)
920    ac_prev=datarootdir ;;
921  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923    datarootdir=$ac_optarg ;;
924
925  -disable-* | --disable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=no ;;
940
941  -docdir | --docdir | --docdi | --doc | --do)
942    ac_prev=docdir ;;
943  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944    docdir=$ac_optarg ;;
945
946  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947    ac_prev=dvidir ;;
948  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949    dvidir=$ac_optarg ;;
950
951  -enable-* | --enable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=\$ac_optarg ;;
966
967  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969  | --exec | --exe | --ex)
970    ac_prev=exec_prefix ;;
971  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973  | --exec=* | --exe=* | --ex=*)
974    exec_prefix=$ac_optarg ;;
975
976  -gas | --gas | --ga | --g)
977    # Obsolete; use --with-gas.
978    with_gas=yes ;;
979
980  -help | --help | --hel | --he | -h)
981    ac_init_help=long ;;
982  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983    ac_init_help=recursive ;;
984  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985    ac_init_help=short ;;
986
987  -host | --host | --hos | --ho)
988    ac_prev=host_alias ;;
989  -host=* | --host=* | --hos=* | --ho=*)
990    host_alias=$ac_optarg ;;
991
992  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993    ac_prev=htmldir ;;
994  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995  | --ht=*)
996    htmldir=$ac_optarg ;;
997
998  -includedir | --includedir | --includedi | --included | --include \
999  | --includ | --inclu | --incl | --inc)
1000    ac_prev=includedir ;;
1001  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002  | --includ=* | --inclu=* | --incl=* | --inc=*)
1003    includedir=$ac_optarg ;;
1004
1005  -infodir | --infodir | --infodi | --infod | --info | --inf)
1006    ac_prev=infodir ;;
1007  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008    infodir=$ac_optarg ;;
1009
1010  -libdir | --libdir | --libdi | --libd)
1011    ac_prev=libdir ;;
1012  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013    libdir=$ac_optarg ;;
1014
1015  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016  | --libexe | --libex | --libe)
1017    ac_prev=libexecdir ;;
1018  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019  | --libexe=* | --libex=* | --libe=*)
1020    libexecdir=$ac_optarg ;;
1021
1022  -localedir | --localedir | --localedi | --localed | --locale)
1023    ac_prev=localedir ;;
1024  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025    localedir=$ac_optarg ;;
1026
1027  -localstatedir | --localstatedir | --localstatedi | --localstated \
1028  | --localstate | --localstat | --localsta | --localst | --locals)
1029    ac_prev=localstatedir ;;
1030  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032    localstatedir=$ac_optarg ;;
1033
1034  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035    ac_prev=mandir ;;
1036  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037    mandir=$ac_optarg ;;
1038
1039  -nfp | --nfp | --nf)
1040    # Obsolete; use --without-fp.
1041    with_fp=no ;;
1042
1043  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044  | --no-cr | --no-c | -n)
1045    no_create=yes ;;
1046
1047  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049    no_recursion=yes ;;
1050
1051  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053  | --oldin | --oldi | --old | --ol | --o)
1054    ac_prev=oldincludedir ;;
1055  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058    oldincludedir=$ac_optarg ;;
1059
1060  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061    ac_prev=prefix ;;
1062  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063    prefix=$ac_optarg ;;
1064
1065  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066  | --program-pre | --program-pr | --program-p)
1067    ac_prev=program_prefix ;;
1068  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070    program_prefix=$ac_optarg ;;
1071
1072  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073  | --program-suf | --program-su | --program-s)
1074    ac_prev=program_suffix ;;
1075  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077    program_suffix=$ac_optarg ;;
1078
1079  -program-transform-name | --program-transform-name \
1080  | --program-transform-nam | --program-transform-na \
1081  | --program-transform-n | --program-transform- \
1082  | --program-transform | --program-transfor \
1083  | --program-transfo | --program-transf \
1084  | --program-trans | --program-tran \
1085  | --progr-tra | --program-tr | --program-t)
1086    ac_prev=program_transform_name ;;
1087  -program-transform-name=* | --program-transform-name=* \
1088  | --program-transform-nam=* | --program-transform-na=* \
1089  | --program-transform-n=* | --program-transform-=* \
1090  | --program-transform=* | --program-transfor=* \
1091  | --program-transfo=* | --program-transf=* \
1092  | --program-trans=* | --program-tran=* \
1093  | --progr-tra=* | --program-tr=* | --program-t=*)
1094    program_transform_name=$ac_optarg ;;
1095
1096  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097    ac_prev=pdfdir ;;
1098  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099    pdfdir=$ac_optarg ;;
1100
1101  -psdir | --psdir | --psdi | --psd | --ps)
1102    ac_prev=psdir ;;
1103  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104    psdir=$ac_optarg ;;
1105
1106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107  | -silent | --silent | --silen | --sile | --sil)
1108    silent=yes ;;
1109
1110  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111    ac_prev=sbindir ;;
1112  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113  | --sbi=* | --sb=*)
1114    sbindir=$ac_optarg ;;
1115
1116  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118  | --sharedst | --shareds | --shared | --share | --shar \
1119  | --sha | --sh)
1120    ac_prev=sharedstatedir ;;
1121  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124  | --sha=* | --sh=*)
1125    sharedstatedir=$ac_optarg ;;
1126
1127  -site | --site | --sit)
1128    ac_prev=site ;;
1129  -site=* | --site=* | --sit=*)
1130    site=$ac_optarg ;;
1131
1132  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133    ac_prev=srcdir ;;
1134  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135    srcdir=$ac_optarg ;;
1136
1137  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138  | --syscon | --sysco | --sysc | --sys | --sy)
1139    ac_prev=sysconfdir ;;
1140  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142    sysconfdir=$ac_optarg ;;
1143
1144  -target | --target | --targe | --targ | --tar | --ta | --t)
1145    ac_prev=target_alias ;;
1146  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147    target_alias=$ac_optarg ;;
1148
1149  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150    verbose=yes ;;
1151
1152  -version | --version | --versio | --versi | --vers | -V)
1153    ac_init_version=: ;;
1154
1155  -with-* | --with-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=\$ac_optarg ;;
1170
1171  -without-* | --without-*)
1172    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175      as_fn_error $? "invalid package name: $ac_useropt"
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=no ;;
1186
1187  --x)
1188    # Obsolete; use --with-x.
1189    with_x=yes ;;
1190
1191  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192  | --x-incl | --x-inc | --x-in | --x-i)
1193    ac_prev=x_includes ;;
1194  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196    x_includes=$ac_optarg ;;
1197
1198  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200    ac_prev=x_libraries ;;
1201  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203    x_libraries=$ac_optarg ;;
1204
1205  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
1207    ;;
1208
1209  *=*)
1210    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211    # Reject names that are not valid shell variable names.
1212    case $ac_envvar in #(
1213      '' | [0-9]* | *[!_$as_cr_alnum]* )
1214      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215    esac
1216    eval $ac_envvar=\$ac_optarg
1217    export $ac_envvar ;;
1218
1219  *)
1220    # FIXME: should be removed in autoconf 3.0.
1221    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225    ;;
1226
1227  esac
1228done
1229
1230if test -n "$ac_prev"; then
1231  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232  as_fn_error $? "missing argument to $ac_option"
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236  case $enable_option_checking in
1237    no) ;;
1238    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240  esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245		datadir sysconfdir sharedstatedir localstatedir includedir \
1246		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247		libdir localedir mandir
1248do
1249  eval ac_val=\$$ac_var
1250  # Remove trailing slashes.
1251  case $ac_val in
1252    */ )
1253      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254      eval $ac_var=\$ac_val;;
1255  esac
1256  # Be sure to have absolute directory names.
1257  case $ac_val in
1258    [\\/$]* | ?:[\\/]* )  continue;;
1259    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260  esac
1261  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273  if test "x$build_alias" = x; then
1274    cross_compiling=maybe
1275  elif test "x$build_alias" != "x$host_alias"; then
1276    cross_compiling=yes
1277  fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289  as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291  as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296  ac_srcdir_defaulted=yes
1297  # Try the directory containing this script, then the parent directory.
1298  ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300	 X"$as_myself" : 'X\(//\)[^/]' \| \
1301	 X"$as_myself" : 'X\(//\)$' \| \
1302	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)[^/].*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\).*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  s/.*/./; q'`
1321  srcdir=$ac_confdir
1322  if test ! -r "$srcdir/$ac_unique_file"; then
1323    srcdir=..
1324  fi
1325else
1326  ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335	pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338  srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_env_${ac_var}_value=\$${ac_var}
1349  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357  # Omit some internal or obsolete options to make the list less imposing.
1358  # This message is too long to be a string in the A/UX 3.1 sh.
1359  cat <<_ACEOF
1360\`configure' configures xf86-input-keyboard 1.9.0 to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370  -h, --help              display this help and exit
1371      --help=short        display options specific to this package
1372      --help=recursive    display the short help of all the included packages
1373  -V, --version           display version information and exit
1374  -q, --quiet, --silent   do not print \`checking ...' messages
1375      --cache-file=FILE   cache test results in FILE [disabled]
1376  -C, --config-cache      alias for \`--cache-file=config.cache'
1377  -n, --no-create         do not create output files
1378      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381  --prefix=PREFIX         install architecture-independent files in PREFIX
1382                          [$ac_default_prefix]
1383  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                          [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394  --bindir=DIR            user executables [EPREFIX/bin]
1395  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396  --libexecdir=DIR        program executables [EPREFIX/libexec]
1397  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400  --libdir=DIR            object code libraries [EPREFIX/lib]
1401  --includedir=DIR        C header files [PREFIX/include]
1402  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405  --infodir=DIR           info documentation [DATAROOTDIR/info]
1406  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407  --mandir=DIR            man documentation [DATAROOTDIR/man]
1408  --docdir=DIR            documentation root
1409                          [DATAROOTDIR/doc/xf86-input-keyboard]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of xf86-input-keyboard 1.9.0:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-silent-rules   less verbose build output (undo: "make V=1")
1440  --disable-silent-rules  verbose build output (undo: "make V=0")
1441  --enable-static[=PKGS]  build static libraries [default=no]
1442  --enable-shared[=PKGS]  build shared libraries [default=yes]
1443  --enable-fast-install[=PKGS]
1444                          optimize for fast installation [default=yes]
1445  --enable-dependency-tracking
1446                          do not reject slow dependency extractors
1447  --disable-dependency-tracking
1448                          speeds up one-time build
1449  --disable-libtool-lock  avoid locking (might break parallel builds)
1450  --disable-selective-werror
1451                          Turn off selective compiler errors. (default:
1452                          enabled)
1453  --enable-strict-compilation
1454                          Enable all warnings from compiler and make them
1455                          errors (default: disabled)
1456
1457Optional Packages:
1458  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1461                          both]
1462  --with-aix-soname=aix|svr4|both
1463                          shared library versioning (aka "SONAME") variant to
1464                          provide on AIX, [default=aix].
1465  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1467                          compiler's sysroot if not specified).
1468  --with-xorg-module-dir=DIR
1469                          Default xorg module directory
1470                          [[default=$libdir/xorg/modules]]
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  LT_SYS_LIBRARY_PATH
1481              User-defined run-time library search path.
1482  CPP         C preprocessor
1483  PKG_CONFIG  path to pkg-config utility
1484  PKG_CONFIG_PATH
1485              directories to add to pkg-config's search path
1486  PKG_CONFIG_LIBDIR
1487              path overriding pkg-config's built-in search path
1488  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1489  XORG_LIBS   linker flags for XORG, overriding pkg-config
1490
1491Use these variables to override the choices made by `configure' or to help
1492it to find libraries and programs with nonstandard names/locations.
1493
1494Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1495_ACEOF
1496ac_status=$?
1497fi
1498
1499if test "$ac_init_help" = "recursive"; then
1500  # If there are subdirs, report their specific --help.
1501  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502    test -d "$ac_dir" ||
1503      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504      continue
1505    ac_builddir=.
1506
1507case "$ac_dir" in
1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509*)
1510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511  # A ".." for each directory in $ac_dir_suffix.
1512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513  case $ac_top_builddir_sub in
1514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516  esac ;;
1517esac
1518ac_abs_top_builddir=$ac_pwd
1519ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520# for backward compatibility:
1521ac_top_builddir=$ac_top_build_prefix
1522
1523case $srcdir in
1524  .)  # We are building in place.
1525    ac_srcdir=.
1526    ac_top_srcdir=$ac_top_builddir_sub
1527    ac_abs_top_srcdir=$ac_pwd ;;
1528  [\\/]* | ?:[\\/]* )  # Absolute name.
1529    ac_srcdir=$srcdir$ac_dir_suffix;
1530    ac_top_srcdir=$srcdir
1531    ac_abs_top_srcdir=$srcdir ;;
1532  *) # Relative name.
1533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534    ac_top_srcdir=$ac_top_build_prefix$srcdir
1535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536esac
1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539    cd "$ac_dir" || { ac_status=$?; continue; }
1540    # Check for guested configure.
1541    if test -f "$ac_srcdir/configure.gnu"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544    elif test -f "$ac_srcdir/configure"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure" --help=recursive
1547    else
1548      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549    fi || ac_status=$?
1550    cd "$ac_pwd" || { ac_status=$?; break; }
1551  done
1552fi
1553
1554test -n "$ac_init_help" && exit $ac_status
1555if $ac_init_version; then
1556  cat <<\_ACEOF
1557xf86-input-keyboard configure 1.9.0
1558generated by GNU Autoconf 2.69
1559
1560Copyright (C) 2012 Free Software Foundation, Inc.
1561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
1563_ACEOF
1564  exit
1565fi
1566
1567## ------------------------ ##
1568## Autoconf initialization. ##
1569## ------------------------ ##
1570
1571# ac_fn_c_try_compile LINENO
1572# --------------------------
1573# Try to compile conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_compile ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext
1578  if { { ac_try="$ac_compile"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_compile") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest.$ac_objext; then :
1597  ac_retval=0
1598else
1599  $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602	ac_retval=1
1603fi
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_compile
1608
1609# ac_fn_c_try_link LINENO
1610# -----------------------
1611# Try to link conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_link ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  rm -f conftest.$ac_objext conftest$ac_exeext
1616  if { { ac_try="$ac_link"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_link") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } && {
1632	 test -z "$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       } && test -s conftest$ac_exeext && {
1635	 test "$cross_compiling" = yes ||
1636	 test -x conftest$ac_exeext
1637       }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1
1644fi
1645  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647  # interfere with the next link command; also delete a directory that is
1648  # left behind by Apple's compiler.  We do this before executing the actions.
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_link
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  eval "$3=yes"
1674else
1675  eval "$3=no"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_cpp LINENO
1687# ----------------------
1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_cpp ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_cpp conftest.$ac_ext"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } > conftest.i && {
1708	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716    ac_retval=1
1717fi
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_cpp
1722
1723# ac_fn_c_try_run LINENO
1724# ----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726# that executables *can* be run.
1727ac_fn_c_try_run ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737  (eval "$ac_link") 2>&5
1738  ac_status=$?
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741  { { case "(($ac_try" in
1742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743  *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747  (eval "$ac_try") 2>&5
1748  ac_status=$?
1749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750  test $ac_status = 0; }; }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: program exited with status $ac_status" >&5
1754       $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757       ac_retval=$ac_status
1758fi
1759  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_run
1764
1765# ac_fn_c_check_func LINENO FUNC VAR
1766# ----------------------------------
1767# Tests whether FUNC exists, setting the cache variable VAR accordingly
1768ac_fn_c_check_func ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775else
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1780#define $2 innocuous_$2
1781
1782/* System header to define __stub macros and hopefully few prototypes,
1783    which can conflict with char $2 (); below.
1784    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785    <limits.h> exists even on freestanding compilers.  */
1786
1787#ifdef __STDC__
1788# include <limits.h>
1789#else
1790# include <assert.h>
1791#endif
1792
1793#undef $2
1794
1795/* Override any GCC internal prototype to avoid an error.
1796   Use char because int might match the return type of a GCC
1797   builtin and then its argument prototype would still apply.  */
1798#ifdef __cplusplus
1799extern "C"
1800#endif
1801char $2 ();
1802/* The GNU C library defines this for functions which it implements
1803    to always fail with ENOSYS.  Some functions are actually named
1804    something starting with __ and the normal name is an alias.  */
1805#if defined __stub_$2 || defined __stub___$2
1806choke me
1807#endif
1808
1809int
1810main ()
1811{
1812return $2 ();
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_link "$LINENO"; then :
1818  eval "$3=yes"
1819else
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext \
1823    conftest$ac_exeext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_func
1831
1832# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1833# ---------------------------------------------
1834# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1835# accordingly.
1836ac_fn_c_check_decl ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  as_decl_name=`echo $2|sed 's/ *(.*//'`
1840  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1842$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849int
1850main ()
1851{
1852#ifndef $as_decl_name
1853#ifdef __cplusplus
1854  (void) $as_decl_use;
1855#else
1856  (void) $as_decl_name;
1857#endif
1858#endif
1859
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865  eval "$3=yes"
1866else
1867  eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_decl
1877cat >config.log <<_ACEOF
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
1881It was created by xf86-input-keyboard $as_me 1.9.0, which was
1882generated by GNU Autoconf 2.69.  Invocation command line was
1883
1884  $ $0 $@
1885
1886_ACEOF
1887exec 5>>config.log
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1902
1903/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1904/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1907/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1908/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1909/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916  IFS=$as_save_IFS
1917  test -z "$as_dir" && as_dir=.
1918    $as_echo "PATH: $as_dir"
1919  done
1920IFS=$as_save_IFS
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945  for ac_arg
1946  do
1947    case $ac_arg in
1948    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950    | -silent | --silent | --silen | --sile | --sil)
1951      continue ;;
1952    *\'*)
1953      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954    esac
1955    case $ac_pass in
1956    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957    2)
1958      as_fn_append ac_configure_args1 " '$ac_arg'"
1959      if test $ac_must_keep_next = true; then
1960	ac_must_keep_next=false # Got value, back to normal.
1961      else
1962	case $ac_arg in
1963	  *=* | --config-cache | -C | -disable-* | --disable-* \
1964	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966	  | -with-* | --with-* | -without-* | --without-* | --x)
1967	    case "$ac_configure_args0 " in
1968	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969	    esac
1970	    ;;
1971	  -* ) ac_must_keep_next=true ;;
1972	esac
1973      fi
1974      as_fn_append ac_configure_args " '$ac_arg'"
1975      ;;
1976    esac
1977  done
1978done
1979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
1981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log.  We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987trap 'exit_status=$?
1988  # Save into config.log some information that might help in debugging.
1989  {
1990    echo
1991
1992    $as_echo "## ---------------- ##
1993## Cache variables. ##
1994## ---------------- ##"
1995    echo
1996    # The following way of writing the cache mishandles newlines in values,
1997(
1998  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999    eval ac_val=\$$ac_var
2000    case $ac_val in #(
2001    *${as_nl}*)
2002      case $ac_var in #(
2003      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005      esac
2006      case $ac_var in #(
2007      _ | IFS | as_nl) ;; #(
2008      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009      *) { eval $ac_var=; unset $ac_var;} ;;
2010      esac ;;
2011    esac
2012  done
2013  (set) 2>&1 |
2014    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015    *${as_nl}ac_space=\ *)
2016      sed -n \
2017	"s/'\''/'\''\\\\'\'''\''/g;
2018	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019      ;; #(
2020    *)
2021      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022      ;;
2023    esac |
2024    sort
2025)
2026    echo
2027
2028    $as_echo "## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##"
2031    echo
2032    for ac_var in $ac_subst_vars
2033    do
2034      eval ac_val=\$$ac_var
2035      case $ac_val in
2036      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037      esac
2038      $as_echo "$ac_var='\''$ac_val'\''"
2039    done | sort
2040    echo
2041
2042    if test -n "$ac_subst_files"; then
2043      $as_echo "## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##"
2046      echo
2047      for ac_var in $ac_subst_files
2048      do
2049	eval ac_val=\$$ac_var
2050	case $ac_val in
2051	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052	esac
2053	$as_echo "$ac_var='\''$ac_val'\''"
2054      done | sort
2055      echo
2056    fi
2057
2058    if test -s confdefs.h; then
2059      $as_echo "## ----------- ##
2060## confdefs.h. ##
2061## ----------- ##"
2062      echo
2063      cat confdefs.h
2064      echo
2065    fi
2066    test "$ac_signal" != 0 &&
2067      $as_echo "$as_me: caught signal $ac_signal"
2068    $as_echo "$as_me: exit $exit_status"
2069  } >&5
2070  rm -f core *.core core.conftest.* &&
2071    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072    exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
2075  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
2082$as_echo "/* confdefs.h */" > confdefs.h
2083
2084# Predefined preprocessor variables.
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_NAME "$PACKAGE_NAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_STRING "$PACKAGE_STRING"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_URL "$PACKAGE_URL"
2108_ACEOF
2109
2110
2111# Let the site file select an alternate cache file if it wants to.
2112# Prefer an explicitly selected file to automatically selected ones.
2113ac_site_file1=NONE
2114ac_site_file2=NONE
2115if test -n "$CONFIG_SITE"; then
2116  # We do not want a PATH search for config.site.
2117  case $CONFIG_SITE in #((
2118    -*)  ac_site_file1=./$CONFIG_SITE;;
2119    */*) ac_site_file1=$CONFIG_SITE;;
2120    *)   ac_site_file1=./$CONFIG_SITE;;
2121  esac
2122elif test "x$prefix" != xNONE; then
2123  ac_site_file1=$prefix/share/config.site
2124  ac_site_file2=$prefix/etc/config.site
2125else
2126  ac_site_file1=$ac_default_prefix/share/config.site
2127  ac_site_file2=$ac_default_prefix/etc/config.site
2128fi
2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131  test "x$ac_site_file" = xNONE && continue
2132  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135    sed 's/^/| /' "$ac_site_file" >&5
2136    . "$ac_site_file" \
2137      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139as_fn_error $? "failed to load site script $ac_site_file
2140See \`config.log' for more details" "$LINENO" 5; }
2141  fi
2142done
2143
2144if test -r "$cache_file"; then
2145  # Some versions of bash will fail to source /dev/null (special files
2146  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2147  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
2150    case $cache_file in
2151      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152      *)                      . "./$cache_file";;
2153    esac
2154  fi
2155else
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
2158  >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166  eval ac_new_set=\$ac_env_${ac_var}_set
2167  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168  eval ac_new_val=\$ac_env_${ac_var}_value
2169  case $ac_old_set,$ac_new_set in
2170    set,)
2171      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173      ac_cache_corrupted=: ;;
2174    ,set)
2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177      ac_cache_corrupted=: ;;
2178    ,);;
2179    *)
2180      if test "x$ac_old_val" != "x$ac_new_val"; then
2181	# differences in whitespace do not lead to failure.
2182	ac_old_val_w=`echo x $ac_old_val`
2183	ac_new_val_w=`echo x $ac_new_val`
2184	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187	  ac_cache_corrupted=:
2188	else
2189	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191	  eval $ac_var=\$ac_old_val
2192	fi
2193	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2194$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2197      fi;;
2198  esac
2199  # Pass precious variables to config.status.
2200  if test "$ac_new_set" = set; then
2201    case $ac_new_val in
2202    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203    *) ac_arg=$ac_var=$ac_new_val ;;
2204    esac
2205    case " $ac_configure_args " in
2206      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2207      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208    esac
2209  fi
2210done
2211if $ac_cache_corrupted; then
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217fi
2218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
2221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230ac_config_headers="$ac_config_headers config.h"
2231
2232ac_aux_dir=
2233for ac_dir in . "$srcdir"/.; do
2234  if test -f "$ac_dir/install-sh"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/install-sh -c"
2237    break
2238  elif test -f "$ac_dir/install.sh"; then
2239    ac_aux_dir=$ac_dir
2240    ac_install_sh="$ac_aux_dir/install.sh -c"
2241    break
2242  elif test -f "$ac_dir/shtool"; then
2243    ac_aux_dir=$ac_dir
2244    ac_install_sh="$ac_aux_dir/shtool install -c"
2245    break
2246  fi
2247done
2248if test -z "$ac_aux_dir"; then
2249  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2250fi
2251
2252# These three variables are undocumented and unsupported,
2253# and are intended to be withdrawn in a future Autoconf release.
2254# They can cause serious problems if a builder's source tree is in a directory
2255# whose full name contains unusual characters.
2256ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2257ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2258ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2259
2260
2261
2262# Initialize Automake
2263am__api_version='1.15'
2264
2265# Find a good install program.  We prefer a C program (faster),
2266# so one script is as good as another.  But avoid the broken or
2267# incompatible versions:
2268# SysV /etc/install, /usr/sbin/install
2269# SunOS /usr/etc/install
2270# IRIX /sbin/install
2271# AIX /bin/install
2272# AmigaOS /C/install, which installs bootblocks on floppy discs
2273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2274# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2276# OS/2's system install, which has a completely different semantic
2277# ./install, which can be erroneously created by make from ./install.sh.
2278# Reject install programs that cannot install multiple files.
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2280$as_echo_n "checking for a BSD-compatible install... " >&6; }
2281if test -z "$INSTALL"; then
2282if ${ac_cv_path_install+:} false; then :
2283  $as_echo_n "(cached) " >&6
2284else
2285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288  IFS=$as_save_IFS
2289  test -z "$as_dir" && as_dir=.
2290    # Account for people who put trailing slashes in PATH elements.
2291case $as_dir/ in #((
2292  ./ | .// | /[cC]/* | \
2293  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2294  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2295  /usr/ucb/* ) ;;
2296  *)
2297    # OSF1 and SCO ODT 3.0 have their own names for install.
2298    # Don't use installbsd from OSF since it installs stuff as root
2299    # by default.
2300    for ac_prog in ginstall scoinst install; do
2301      for ac_exec_ext in '' $ac_executable_extensions; do
2302	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2303	  if test $ac_prog = install &&
2304	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2305	    # AIX install.  It has an incompatible calling convention.
2306	    :
2307	  elif test $ac_prog = install &&
2308	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309	    # program-specific install script used by HP pwplus--don't use.
2310	    :
2311	  else
2312	    rm -rf conftest.one conftest.two conftest.dir
2313	    echo one > conftest.one
2314	    echo two > conftest.two
2315	    mkdir conftest.dir
2316	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2317	      test -s conftest.one && test -s conftest.two &&
2318	      test -s conftest.dir/conftest.one &&
2319	      test -s conftest.dir/conftest.two
2320	    then
2321	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2322	      break 3
2323	    fi
2324	  fi
2325	fi
2326      done
2327    done
2328    ;;
2329esac
2330
2331  done
2332IFS=$as_save_IFS
2333
2334rm -rf conftest.one conftest.two conftest.dir
2335
2336fi
2337  if test "${ac_cv_path_install+set}" = set; then
2338    INSTALL=$ac_cv_path_install
2339  else
2340    # As a last resort, use the slow shell script.  Don't cache a
2341    # value for INSTALL within a source directory, because that will
2342    # break other packages using the cache if that directory is
2343    # removed, or if the value is a relative name.
2344    INSTALL=$ac_install_sh
2345  fi
2346fi
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2348$as_echo "$INSTALL" >&6; }
2349
2350# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2351# It thinks the first close brace ends the variable substitution.
2352test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2353
2354test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2355
2356test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2357
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2359$as_echo_n "checking whether build environment is sane... " >&6; }
2360# Reject unsafe characters in $srcdir or the absolute working directory
2361# name.  Accept space and tab only in the latter.
2362am_lf='
2363'
2364case `pwd` in
2365  *[\\\"\#\$\&\'\`$am_lf]*)
2366    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2367esac
2368case $srcdir in
2369  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2370    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2371esac
2372
2373# Do 'set' in a subshell so we don't clobber the current shell's
2374# arguments.  Must try -L first in case configure is actually a
2375# symlink; some systems play weird games with the mod time of symlinks
2376# (eg FreeBSD returns the mod time of the symlink's containing
2377# directory).
2378if (
2379   am_has_slept=no
2380   for am_try in 1 2; do
2381     echo "timestamp, slept: $am_has_slept" > conftest.file
2382     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2383     if test "$*" = "X"; then
2384	# -L didn't work.
2385	set X `ls -t "$srcdir/configure" conftest.file`
2386     fi
2387     if test "$*" != "X $srcdir/configure conftest.file" \
2388	&& test "$*" != "X conftest.file $srcdir/configure"; then
2389
2390	# If neither matched, then we have a broken ls.  This can happen
2391	# if, for instance, CONFIG_SHELL is bash and it inherits a
2392	# broken ls alias from the environment.  This has actually
2393	# happened.  Such a system could not be considered "sane".
2394	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2395  alias in your environment" "$LINENO" 5
2396     fi
2397     if test "$2" = conftest.file || test $am_try -eq 2; then
2398       break
2399     fi
2400     # Just in case.
2401     sleep 1
2402     am_has_slept=yes
2403   done
2404   test "$2" = conftest.file
2405   )
2406then
2407   # Ok.
2408   :
2409else
2410   as_fn_error $? "newly created file is older than distributed files!
2411Check your system clock" "$LINENO" 5
2412fi
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2414$as_echo "yes" >&6; }
2415# If we didn't sleep, we still need to ensure time stamps of config.status and
2416# generated files are strictly newer.
2417am_sleep_pid=
2418if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2419  ( sleep 1 ) &
2420  am_sleep_pid=$!
2421fi
2422
2423rm -f conftest.file
2424
2425test "$program_prefix" != NONE &&
2426  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427# Use a double $ so make ignores it.
2428test "$program_suffix" != NONE &&
2429  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430# Double any \ or $.
2431# By default was `s,x,x', remove it if useless.
2432ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434
2435# Expand $ac_aux_dir to an absolute path.
2436am_aux_dir=`cd "$ac_aux_dir" && pwd`
2437
2438if test x"${MISSING+set}" != xset; then
2439  case $am_aux_dir in
2440  *\ * | *\	*)
2441    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2442  *)
2443    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444  esac
2445fi
2446# Use eval to expand $SHELL
2447if eval "$MISSING --is-lightweight"; then
2448  am_missing_run="$MISSING "
2449else
2450  am_missing_run=
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2452$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2453fi
2454
2455if test x"${install_sh+set}" != xset; then
2456  case $am_aux_dir in
2457  *\ * | *\	*)
2458    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2459  *)
2460    install_sh="\${SHELL} $am_aux_dir/install-sh"
2461  esac
2462fi
2463
2464# Installed binaries are usually stripped using 'strip' when the user
2465# run "make install-strip".  However 'strip' might not be the right
2466# tool to use in cross-compilation environments, therefore Automake
2467# will honor the 'STRIP' environment variable to overrule this program.
2468if test "$cross_compiling" != no; then
2469  if test -n "$ac_tool_prefix"; then
2470  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}strip; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_STRIP+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$STRIP"; then
2478  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492  done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497STRIP=$ac_cv_prog_STRIP
2498if test -n "$STRIP"; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2500$as_echo "$STRIP" >&6; }
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506
2507fi
2508if test -z "$ac_cv_prog_STRIP"; then
2509  ac_ct_STRIP=$STRIP
2510  # Extract the first word of "strip", so it can be a program name with args.
2511set dummy strip; ac_word=$2
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
2514if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  if test -n "$ac_ct_STRIP"; then
2518  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523  IFS=$as_save_IFS
2524  test -z "$as_dir" && as_dir=.
2525    for ac_exec_ext in '' $ac_executable_extensions; do
2526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527    ac_cv_prog_ac_ct_STRIP="strip"
2528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529    break 2
2530  fi
2531done
2532  done
2533IFS=$as_save_IFS
2534
2535fi
2536fi
2537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2538if test -n "$ac_ct_STRIP"; then
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2540$as_echo "$ac_ct_STRIP" >&6; }
2541else
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544fi
2545
2546  if test "x$ac_ct_STRIP" = x; then
2547    STRIP=":"
2548  else
2549    case $cross_compiling:$ac_tool_warned in
2550yes:)
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553ac_tool_warned=yes ;;
2554esac
2555    STRIP=$ac_ct_STRIP
2556  fi
2557else
2558  STRIP="$ac_cv_prog_STRIP"
2559fi
2560
2561fi
2562INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2565$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2566if test -z "$MKDIR_P"; then
2567  if ${ac_cv_path_mkdir+:} false; then :
2568  $as_echo_n "(cached) " >&6
2569else
2570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575    for ac_prog in mkdir gmkdir; do
2576	 for ac_exec_ext in '' $ac_executable_extensions; do
2577	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2578	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579	     'mkdir (GNU coreutils) '* | \
2580	     'mkdir (coreutils) '* | \
2581	     'mkdir (fileutils) '4.1*)
2582	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583	       break 3;;
2584	   esac
2585	 done
2586       done
2587  done
2588IFS=$as_save_IFS
2589
2590fi
2591
2592  test -d ./--version && rmdir ./--version
2593  if test "${ac_cv_path_mkdir+set}" = set; then
2594    MKDIR_P="$ac_cv_path_mkdir -p"
2595  else
2596    # As a last resort, use the slow shell script.  Don't cache a
2597    # value for MKDIR_P within a source directory, because that will
2598    # break other packages using the cache if that directory is
2599    # removed, or if the value is a relative name.
2600    MKDIR_P="$ac_install_sh -d"
2601  fi
2602fi
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2604$as_echo "$MKDIR_P" >&6; }
2605
2606for ac_prog in gawk mawk nawk awk
2607do
2608  # Extract the first word of "$ac_prog", so it can be a program name with args.
2609set dummy $ac_prog; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if ${ac_cv_prog_AWK+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  if test -n "$AWK"; then
2616  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621  IFS=$as_save_IFS
2622  test -z "$as_dir" && as_dir=.
2623    for ac_exec_ext in '' $ac_executable_extensions; do
2624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625    ac_cv_prog_AWK="$ac_prog"
2626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627    break 2
2628  fi
2629done
2630  done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635AWK=$ac_cv_prog_AWK
2636if test -n "$AWK"; then
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2638$as_echo "$AWK" >&6; }
2639else
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644
2645  test -n "$AWK" && break
2646done
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2649$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2650set x ${MAKE-make}
2651ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2652if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  cat >conftest.make <<\_ACEOF
2656SHELL = /bin/sh
2657all:
2658	@echo '@@@%%%=$(MAKE)=@@@%%%'
2659_ACEOF
2660# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2661case `${MAKE-make} -f conftest.make 2>/dev/null` in
2662  *@@@%%%=?*=@@@%%%*)
2663    eval ac_cv_prog_make_${ac_make}_set=yes;;
2664  *)
2665    eval ac_cv_prog_make_${ac_make}_set=no;;
2666esac
2667rm -f conftest.make
2668fi
2669if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
2672  SET_MAKE=
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676  SET_MAKE="MAKE=${MAKE-make}"
2677fi
2678
2679rm -rf .tst 2>/dev/null
2680mkdir .tst 2>/dev/null
2681if test -d .tst; then
2682  am__leading_dot=.
2683else
2684  am__leading_dot=_
2685fi
2686rmdir .tst 2>/dev/null
2687
2688# Check whether --enable-silent-rules was given.
2689if test "${enable_silent_rules+set}" = set; then :
2690  enableval=$enable_silent_rules;
2691fi
2692
2693case $enable_silent_rules in # (((
2694  yes) AM_DEFAULT_VERBOSITY=0;;
2695   no) AM_DEFAULT_VERBOSITY=1;;
2696    *) AM_DEFAULT_VERBOSITY=1;;
2697esac
2698am_make=${MAKE-make}
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2700$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2701if ${am_cv_make_support_nested_variables+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if $as_echo 'TRUE=$(BAR$(V))
2705BAR0=false
2706BAR1=true
2707V=1
2708am__doit:
2709	@$(TRUE)
2710.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2711  am_cv_make_support_nested_variables=yes
2712else
2713  am_cv_make_support_nested_variables=no
2714fi
2715fi
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2717$as_echo "$am_cv_make_support_nested_variables" >&6; }
2718if test $am_cv_make_support_nested_variables = yes; then
2719    AM_V='$(V)'
2720  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2721else
2722  AM_V=$AM_DEFAULT_VERBOSITY
2723  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2724fi
2725AM_BACKSLASH='\'
2726
2727if test "`cd $srcdir && pwd`" != "`pwd`"; then
2728  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2729  # is not polluted with repeated "-I."
2730  am__isrc=' -I$(srcdir)'
2731  # test to see if srcdir already configured
2732  if test -f $srcdir/config.status; then
2733    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2734  fi
2735fi
2736
2737# test whether we have cygpath
2738if test -z "$CYGPATH_W"; then
2739  if (cygpath --version) >/dev/null 2>/dev/null; then
2740    CYGPATH_W='cygpath -w'
2741  else
2742    CYGPATH_W=echo
2743  fi
2744fi
2745
2746
2747# Define the identity of the package.
2748 PACKAGE='xf86-input-keyboard'
2749 VERSION='1.9.0'
2750
2751
2752cat >>confdefs.h <<_ACEOF
2753#define PACKAGE "$PACKAGE"
2754_ACEOF
2755
2756
2757cat >>confdefs.h <<_ACEOF
2758#define VERSION "$VERSION"
2759_ACEOF
2760
2761# Some tools Automake needs.
2762
2763ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2764
2765
2766AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2767
2768
2769AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2770
2771
2772AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2773
2774
2775MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2776
2777# For better backward compatibility.  To be removed once Automake 1.9.x
2778# dies out for good.  For more background, see:
2779# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2780# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2781mkdir_p='$(MKDIR_P)'
2782
2783# We need awk for the "check" target (and possibly the TAP driver).  The
2784# system "awk" is bad on some platforms.
2785# Always define AMTAR for backward compatibility.  Yes, it's still used
2786# in the wild :-(  We should find a proper way to deprecate it ...
2787AMTAR='$${TAR-tar}'
2788
2789
2790# We'll loop over all known methods to create a tar archive until one works.
2791_am_tools='gnutar  pax cpio none'
2792
2793am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
2795
2796
2797
2798
2799
2800# POSIX will say in a future version that running "rm -f" with no argument
2801# is OK; and we want to be able to make that assumption in our Makefile
2802# recipes.  So use an aggressive probe to check that the usage we want is
2803# actually supported "in the wild" to an acceptable degree.
2804# See automake bug#10828.
2805# To make any issue more visible, cause the running configure to be aborted
2806# by default if the 'rm' program in use doesn't match our expectations; the
2807# user can still override this though.
2808if rm -f && rm -fr && rm -rf; then : OK; else
2809  cat >&2 <<'END'
2810Oops!
2811
2812Your 'rm' program seems unable to run without file operands specified
2813on the command line, even when the '-f' option is present.  This is contrary
2814to the behaviour of most rm programs out there, and not conforming with
2815the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2816
2817Please tell bug-automake@gnu.org about your system, including the value
2818of your $PATH and any error possibly output before this message.  This
2819can help us improve future automake versions.
2820
2821END
2822  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2823    echo 'Configuration will proceed anyway, since you have set the' >&2
2824    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2825    echo >&2
2826  else
2827    cat >&2 <<'END'
2828Aborting the configuration process, to ensure you take notice of the issue.
2829
2830You can download and install GNU coreutils to get an 'rm' implementation
2831that behaves properly: <http://www.gnu.org/software/coreutils/>.
2832
2833If you want to complete the configuration process using your problematic
2834'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2835to "yes", and re-run configure.
2836
2837END
2838    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2839  fi
2840fi
2841
2842
2843# Initialize libtool
2844# Check whether --enable-static was given.
2845if test "${enable_static+set}" = set; then :
2846  enableval=$enable_static; p=${PACKAGE-default}
2847    case $enableval in
2848    yes) enable_static=yes ;;
2849    no) enable_static=no ;;
2850    *)
2851     enable_static=no
2852      # Look at the argument we got.  We use all the common list separators.
2853      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2854      for pkg in $enableval; do
2855	IFS=$lt_save_ifs
2856	if test "X$pkg" = "X$p"; then
2857	  enable_static=yes
2858	fi
2859      done
2860      IFS=$lt_save_ifs
2861      ;;
2862    esac
2863else
2864  enable_static=no
2865fi
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875case `pwd` in
2876  *\ * | *\	*)
2877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2878$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2879esac
2880
2881
2882
2883macro_version='2.4.6'
2884macro_revision='2.4.6'
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898ltmain=$ac_aux_dir/ltmain.sh
2899
2900# Make sure we can run config.sub.
2901$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2902  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2903
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2905$as_echo_n "checking build system type... " >&6; }
2906if ${ac_cv_build+:} false; then :
2907  $as_echo_n "(cached) " >&6
2908else
2909  ac_build_alias=$build_alias
2910test "x$ac_build_alias" = x &&
2911  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2912test "x$ac_build_alias" = x &&
2913  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2914ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2915  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2916
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2919$as_echo "$ac_cv_build" >&6; }
2920case $ac_cv_build in
2921*-*-*) ;;
2922*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2923esac
2924build=$ac_cv_build
2925ac_save_IFS=$IFS; IFS='-'
2926set x $ac_cv_build
2927shift
2928build_cpu=$1
2929build_vendor=$2
2930shift; shift
2931# Remember, the first character of IFS is used to create $*,
2932# except with old shells:
2933build_os=$*
2934IFS=$ac_save_IFS
2935case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2936
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2939$as_echo_n "checking host system type... " >&6; }
2940if ${ac_cv_host+:} false; then :
2941  $as_echo_n "(cached) " >&6
2942else
2943  if test "x$host_alias" = x; then
2944  ac_cv_host=$ac_cv_build
2945else
2946  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2947    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2948fi
2949
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2952$as_echo "$ac_cv_host" >&6; }
2953case $ac_cv_host in
2954*-*-*) ;;
2955*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2956esac
2957host=$ac_cv_host
2958ac_save_IFS=$IFS; IFS='-'
2959set x $ac_cv_host
2960shift
2961host_cpu=$1
2962host_vendor=$2
2963shift; shift
2964# Remember, the first character of IFS is used to create $*,
2965# except with old shells:
2966host_os=$*
2967IFS=$ac_save_IFS
2968case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2969
2970
2971# Backslashify metacharacters that are still active within
2972# double-quoted strings.
2973sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2974
2975# Same as above, but do not quote variable references.
2976double_quote_subst='s/\(["`\\]\)/\\\1/g'
2977
2978# Sed substitution to delay expansion of an escaped shell variable in a
2979# double_quote_subst'ed string.
2980delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2981
2982# Sed substitution to delay expansion of an escaped single quote.
2983delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2984
2985# Sed substitution to avoid accidental globbing in evaled expressions
2986no_glob_subst='s/\*/\\\*/g'
2987
2988ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2989ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2990ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2993$as_echo_n "checking how to print strings... " >&6; }
2994# Test print first, because it will be a builtin if present.
2995if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2996   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2997  ECHO='print -r --'
2998elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2999  ECHO='printf %s\n'
3000else
3001  # Use this function as a fallback that always works.
3002  func_fallback_echo ()
3003  {
3004    eval 'cat <<_LTECHO_EOF
3005$1
3006_LTECHO_EOF'
3007  }
3008  ECHO='func_fallback_echo'
3009fi
3010
3011# func_echo_all arg...
3012# Invoke $ECHO with all args, space-separated.
3013func_echo_all ()
3014{
3015    $ECHO ""
3016}
3017
3018case $ECHO in
3019  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3020$as_echo "printf" >&6; } ;;
3021  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3022$as_echo "print -r" >&6; } ;;
3023  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3024$as_echo "cat" >&6; } ;;
3025esac
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040DEPDIR="${am__leading_dot}deps"
3041
3042ac_config_commands="$ac_config_commands depfiles"
3043
3044
3045am_make=${MAKE-make}
3046cat > confinc << 'END'
3047am__doit:
3048	@echo this is the am__doit target
3049.PHONY: am__doit
3050END
3051# If we don't find an include directive, just comment out the code.
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3053$as_echo_n "checking for style of include used by $am_make... " >&6; }
3054am__include="#"
3055am__quote=
3056_am_result=none
3057# First try GNU make style include.
3058echo "include confinc" > confmf
3059# Ignore all kinds of additional output from 'make'.
3060case `$am_make -s -f confmf 2> /dev/null` in #(
3061*the\ am__doit\ target*)
3062  am__include=include
3063  am__quote=
3064  _am_result=GNU
3065  ;;
3066esac
3067# Now try BSD make style include.
3068if test "$am__include" = "#"; then
3069   echo '.include "confinc"' > confmf
3070   case `$am_make -s -f confmf 2> /dev/null` in #(
3071   *the\ am__doit\ target*)
3072     am__include=.include
3073     am__quote="\""
3074     _am_result=BSD
3075     ;;
3076   esac
3077fi
3078
3079
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3081$as_echo "$_am_result" >&6; }
3082rm -f confinc confmf
3083
3084# Check whether --enable-dependency-tracking was given.
3085if test "${enable_dependency_tracking+set}" = set; then :
3086  enableval=$enable_dependency_tracking;
3087fi
3088
3089if test "x$enable_dependency_tracking" != xno; then
3090  am_depcomp="$ac_aux_dir/depcomp"
3091  AMDEPBACKSLASH='\'
3092  am__nodep='_no'
3093fi
3094 if test "x$enable_dependency_tracking" != xno; then
3095  AMDEP_TRUE=
3096  AMDEP_FALSE='#'
3097else
3098  AMDEP_TRUE='#'
3099  AMDEP_FALSE=
3100fi
3101
3102
3103ac_ext=c
3104ac_cpp='$CPP $CPPFLAGS'
3105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108if test -n "$ac_tool_prefix"; then
3109  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3110set dummy ${ac_tool_prefix}gcc; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if ${ac_cv_prog_CC+:} false; then :
3114  $as_echo_n "(cached) " >&6
3115else
3116  if test -n "$CC"; then
3117  ac_cv_prog_CC="$CC" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124    for ac_exec_ext in '' $ac_executable_extensions; do
3125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128    break 2
3129  fi
3130done
3131  done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136CC=$ac_cv_prog_CC
3137if test -n "$CC"; then
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139$as_echo "$CC" >&6; }
3140else
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145
3146fi
3147if test -z "$ac_cv_prog_CC"; then
3148  ac_ct_CC=$CC
3149  # Extract the first word of "gcc", so it can be a program name with args.
3150set dummy gcc; ac_word=$2
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152$as_echo_n "checking for $ac_word... " >&6; }
3153if ${ac_cv_prog_ac_ct_CC+:} false; then :
3154  $as_echo_n "(cached) " >&6
3155else
3156  if test -n "$ac_ct_CC"; then
3157  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164    for ac_exec_ext in '' $ac_executable_extensions; do
3165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_ac_ct_CC="gcc"
3167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171  done
3172IFS=$as_save_IFS
3173
3174fi
3175fi
3176ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177if test -n "$ac_ct_CC"; then
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179$as_echo "$ac_ct_CC" >&6; }
3180else
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
3183fi
3184
3185  if test "x$ac_ct_CC" = x; then
3186    CC=""
3187  else
3188    case $cross_compiling:$ac_tool_warned in
3189yes:)
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192ac_tool_warned=yes ;;
3193esac
3194    CC=$ac_ct_CC
3195  fi
3196else
3197  CC="$ac_cv_prog_CC"
3198fi
3199
3200if test -z "$CC"; then
3201          if test -n "$ac_tool_prefix"; then
3202    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3203set dummy ${ac_tool_prefix}cc; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if ${ac_cv_prog_CC+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  if test -n "$CC"; then
3210  ac_cv_prog_CC="$CC" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217    for ac_exec_ext in '' $ac_executable_extensions; do
3218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_CC="${ac_tool_prefix}cc"
3220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224  done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229CC=$ac_cv_prog_CC
3230if test -n "$CC"; then
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232$as_echo "$CC" >&6; }
3233else
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239  fi
3240fi
3241if test -z "$CC"; then
3242  # Extract the first word of "cc", so it can be a program name with args.
3243set dummy cc; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_CC+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$CC"; then
3250  ac_cv_prog_CC="$CC" # Let the user override the test.
3251else
3252  ac_prog_rejected=no
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    for ac_exec_ext in '' $ac_executable_extensions; do
3259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261       ac_prog_rejected=yes
3262       continue
3263     fi
3264    ac_cv_prog_CC="cc"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272if test $ac_prog_rejected = yes; then
3273  # We found a bogon in the path, so make sure we never use it.
3274  set dummy $ac_cv_prog_CC
3275  shift
3276  if test $# != 0; then
3277    # We chose a different compiler from the bogus one.
3278    # However, it has the same basename, so the bogon will be chosen
3279    # first if we set CC to just the basename; use the full file name.
3280    shift
3281    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282  fi
3283fi
3284fi
3285fi
3286CC=$ac_cv_prog_CC
3287if test -n "$CC"; then
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289$as_echo "$CC" >&6; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296fi
3297if test -z "$CC"; then
3298  if test -n "$ac_tool_prefix"; then
3299  for ac_prog in cl.exe
3300  do
3301    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if ${ac_cv_prog_CC+:} false; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  if test -n "$CC"; then
3309  ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323  done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331$as_echo "$CC" >&6; }
3332else
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337
3338    test -n "$CC" && break
3339  done
3340fi
3341if test -z "$CC"; then
3342  ac_ct_CC=$CC
3343  for ac_prog in cl.exe
3344do
3345  # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if ${ac_cv_prog_ac_ct_CC+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test -n "$ac_ct_CC"; then
3353  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_ac_ct_CC="$ac_prog"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373if test -n "$ac_ct_CC"; then
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375$as_echo "$ac_ct_CC" >&6; }
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382  test -n "$ac_ct_CC" && break
3383done
3384
3385  if test "x$ac_ct_CC" = x; then
3386    CC=""
3387  else
3388    case $cross_compiling:$ac_tool_warned in
3389yes:)
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392ac_tool_warned=yes ;;
3393esac
3394    CC=$ac_ct_CC
3395  fi
3396fi
3397
3398fi
3399
3400
3401test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error $? "no acceptable C compiler found in \$PATH
3404See \`config.log' for more details" "$LINENO" 5; }
3405
3406# Provide some information about the compiler.
3407$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3408set X $ac_compile
3409ac_compiler=$2
3410for ac_option in --version -v -V -qversion; do
3411  { { ac_try="$ac_compiler $ac_option >&5"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3419  ac_status=$?
3420  if test -s conftest.err; then
3421    sed '10a\
3422... rest of stderr output deleted ...
3423         10q' conftest.err >conftest.er1
3424    cat conftest.er1 >&5
3425  fi
3426  rm -f conftest.er1 conftest.err
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }
3429done
3430
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433
3434int
3435main ()
3436{
3437
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442ac_clean_files_save=$ac_clean_files
3443ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3444# Try to create an executable without -o first, disregard a.out.
3445# It will help us diagnose broken compilers, and finding out an intuition
3446# of exeext.
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3448$as_echo_n "checking whether the C compiler works... " >&6; }
3449ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3450
3451# The possible output files:
3452ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3453
3454ac_rmfiles=
3455for ac_file in $ac_files
3456do
3457  case $ac_file in
3458    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3460  esac
3461done
3462rm -f $ac_rmfiles
3463
3464if { { ac_try="$ac_link_default"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471  (eval "$ac_link_default") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }; then :
3475  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3476# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3477# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3478# so that the user can short-circuit this test for compilers unknown to
3479# Autoconf.
3480for ac_file in $ac_files ''
3481do
3482  test -f "$ac_file" || continue
3483  case $ac_file in
3484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3485	;;
3486    [ab].out )
3487	# We found the default executable, but exeext='' is most
3488	# certainly right.
3489	break;;
3490    *.* )
3491	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3492	then :; else
3493	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494	fi
3495	# We set ac_cv_exeext here because the later test for it is not
3496	# safe: cross compilers may not add the suffix if given an `-o'
3497	# argument, so we may need to know it at that point already.
3498	# Even if this section looks crufty: it has the advantage of
3499	# actually working.
3500	break;;
3501    * )
3502	break;;
3503  esac
3504done
3505test "$ac_cv_exeext" = no && ac_cv_exeext=
3506
3507else
3508  ac_file=''
3509fi
3510if test -z "$ac_file"; then :
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513$as_echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error 77 "C compiler cannot create executables
3519See \`config.log' for more details" "$LINENO" 5; }
3520else
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522$as_echo "yes" >&6; }
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3525$as_echo_n "checking for C compiler default output file name... " >&6; }
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3527$as_echo "$ac_file" >&6; }
3528ac_exeext=$ac_cv_exeext
3529
3530rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3531ac_clean_files=$ac_clean_files_save
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3533$as_echo_n "checking for suffix of executables... " >&6; }
3534if { { ac_try="$ac_link"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540$as_echo "$ac_try_echo"; } >&5
3541  (eval "$ac_link") 2>&5
3542  ac_status=$?
3543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544  test $ac_status = 0; }; then :
3545  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3546# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3547# work properly (i.e., refer to `conftest.exe'), while it won't with
3548# `rm'.
3549for ac_file in conftest.exe conftest conftest.*; do
3550  test -f "$ac_file" || continue
3551  case $ac_file in
3552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554	  break;;
3555    * ) break;;
3556  esac
3557done
3558else
3559  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3562See \`config.log' for more details" "$LINENO" 5; }
3563fi
3564rm -f conftest conftest$ac_cv_exeext
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3566$as_echo "$ac_cv_exeext" >&6; }
3567
3568rm -f conftest.$ac_ext
3569EXEEXT=$ac_cv_exeext
3570ac_exeext=$EXEEXT
3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573#include <stdio.h>
3574int
3575main ()
3576{
3577FILE *f = fopen ("conftest.out", "w");
3578 return ferror (f) || fclose (f) != 0;
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584ac_clean_files="$ac_clean_files conftest.out"
3585# Check that the compiler produces executables we can run.  If not, either
3586# the compiler is broken, or we cross compile.
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3588$as_echo_n "checking whether we are cross compiling... " >&6; }
3589if test "$cross_compiling" != yes; then
3590  { { ac_try="$ac_link"
3591case "(($ac_try" in
3592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593  *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596$as_echo "$ac_try_echo"; } >&5
3597  (eval "$ac_link") 2>&5
3598  ac_status=$?
3599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600  test $ac_status = 0; }
3601  if { ac_try='./conftest$ac_cv_exeext'
3602  { { case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608  (eval "$ac_try") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611  test $ac_status = 0; }; }; then
3612    cross_compiling=no
3613  else
3614    if test "$cross_compiling" = maybe; then
3615	cross_compiling=yes
3616    else
3617	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619as_fn_error $? "cannot run C compiled programs.
3620If you meant to cross compile, use \`--host'.
3621See \`config.log' for more details" "$LINENO" 5; }
3622    fi
3623  fi
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3626$as_echo "$cross_compiling" >&6; }
3627
3628rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3629ac_clean_files=$ac_clean_files_save
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3631$as_echo_n "checking for suffix of object files... " >&6; }
3632if ${ac_cv_objext+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main ()
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646rm -f conftest.o conftest.obj
3647if { { ac_try="$ac_compile"
3648case "(($ac_try" in
3649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650  *) ac_try_echo=$ac_try;;
3651esac
3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653$as_echo "$ac_try_echo"; } >&5
3654  (eval "$ac_compile") 2>&5
3655  ac_status=$?
3656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657  test $ac_status = 0; }; then :
3658  for ac_file in conftest.o conftest.obj conftest.*; do
3659  test -f "$ac_file" || continue;
3660  case $ac_file in
3661    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3662    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3663       break;;
3664  esac
3665done
3666else
3667  $as_echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672as_fn_error $? "cannot compute suffix of object files: cannot compile
3673See \`config.log' for more details" "$LINENO" 5; }
3674fi
3675rm -f conftest.$ac_cv_objext conftest.$ac_ext
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3678$as_echo "$ac_cv_objext" >&6; }
3679OBJEXT=$ac_cv_objext
3680ac_objext=$OBJEXT
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3682$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3683if ${ac_cv_c_compiler_gnu+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692#ifndef __GNUC__
3693       choke me
3694#endif
3695
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_compile "$LINENO"; then :
3701  ac_compiler_gnu=yes
3702else
3703  ac_compiler_gnu=no
3704fi
3705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706ac_cv_c_compiler_gnu=$ac_compiler_gnu
3707
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3710$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3711if test $ac_compiler_gnu = yes; then
3712  GCC=yes
3713else
3714  GCC=
3715fi
3716ac_test_CFLAGS=${CFLAGS+set}
3717ac_save_CFLAGS=$CFLAGS
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3719$as_echo_n "checking whether $CC accepts -g... " >&6; }
3720if ${ac_cv_prog_cc_g+:} false; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  ac_save_c_werror_flag=$ac_c_werror_flag
3724   ac_c_werror_flag=yes
3725   ac_cv_prog_cc_g=no
3726   CFLAGS="-g"
3727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729
3730int
3731main ()
3732{
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"; then :
3739  ac_cv_prog_cc_g=yes
3740else
3741  CFLAGS=""
3742      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744
3745int
3746main ()
3747{
3748
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753if ac_fn_c_try_compile "$LINENO"; then :
3754
3755else
3756  ac_c_werror_flag=$ac_save_c_werror_flag
3757	 CFLAGS="-g"
3758	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760
3761int
3762main ()
3763{
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770  ac_cv_prog_cc_g=yes
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775fi
3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777   ac_c_werror_flag=$ac_save_c_werror_flag
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3780$as_echo "$ac_cv_prog_cc_g" >&6; }
3781if test "$ac_test_CFLAGS" = set; then
3782  CFLAGS=$ac_save_CFLAGS
3783elif test $ac_cv_prog_cc_g = yes; then
3784  if test "$GCC" = yes; then
3785    CFLAGS="-g -O2"
3786  else
3787    CFLAGS="-g"
3788  fi
3789else
3790  if test "$GCC" = yes; then
3791    CFLAGS="-O2"
3792  else
3793    CFLAGS=
3794  fi
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3797$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3798if ${ac_cv_prog_cc_c89+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  ac_cv_prog_cc_c89=no
3802ac_save_CC=$CC
3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805#include <stdarg.h>
3806#include <stdio.h>
3807struct stat;
3808/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3809struct buf { int x; };
3810FILE * (*rcsopen) (struct buf *, struct stat *, int);
3811static char *e (p, i)
3812     char **p;
3813     int i;
3814{
3815  return p[i];
3816}
3817static char *f (char * (*g) (char **, int), char **p, ...)
3818{
3819  char *s;
3820  va_list v;
3821  va_start (v,p);
3822  s = g (p, va_arg (v,int));
3823  va_end (v);
3824  return s;
3825}
3826
3827/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3828   function prototypes and stuff, but not '\xHH' hex character constants.
3829   These don't provoke an error unfortunately, instead are silently treated
3830   as 'x'.  The following induces an error, until -std is added to get
3831   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3832   array size at least.  It's necessary to write '\x00'==0 to get something
3833   that's true only with -std.  */
3834int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3835
3836/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3837   inside strings and character constants.  */
3838#define FOO(x) 'x'
3839int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3840
3841int test (int i, double x);
3842struct s1 {int (*f) (int a);};
3843struct s2 {int (*f) (double a);};
3844int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3845int argc;
3846char **argv;
3847int
3848main ()
3849{
3850return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3856	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3857do
3858  CC="$ac_save_CC $ac_arg"
3859  if ac_fn_c_try_compile "$LINENO"; then :
3860  ac_cv_prog_cc_c89=$ac_arg
3861fi
3862rm -f core conftest.err conftest.$ac_objext
3863  test "x$ac_cv_prog_cc_c89" != "xno" && break
3864done
3865rm -f conftest.$ac_ext
3866CC=$ac_save_CC
3867
3868fi
3869# AC_CACHE_VAL
3870case "x$ac_cv_prog_cc_c89" in
3871  x)
3872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3873$as_echo "none needed" >&6; } ;;
3874  xno)
3875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3876$as_echo "unsupported" >&6; } ;;
3877  *)
3878    CC="$CC $ac_cv_prog_cc_c89"
3879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3880$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3881esac
3882if test "x$ac_cv_prog_cc_c89" != xno; then :
3883
3884fi
3885
3886ac_ext=c
3887ac_cpp='$CPP $CPPFLAGS'
3888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3898$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3899if ${am_cv_prog_cc_c_o+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904
3905int
3906main ()
3907{
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913  # Make sure it works both with $CC and with simple cc.
3914  # Following AC_PROG_CC_C_O, we do the test twice because some
3915  # compilers refuse to overwrite an existing .o file with -o,
3916  # though they will create one.
3917  am_cv_prog_cc_c_o=yes
3918  for am_i in 1 2; do
3919    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3920   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); } \
3924         && test -f conftest2.$ac_objext; then
3925      : OK
3926    else
3927      am_cv_prog_cc_c_o=no
3928      break
3929    fi
3930  done
3931  rm -f core conftest*
3932  unset am_i
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3935$as_echo "$am_cv_prog_cc_c_o" >&6; }
3936if test "$am_cv_prog_cc_c_o" != yes; then
3937   # Losing compiler, so override with the script.
3938   # FIXME: It is wrong to rewrite CC.
3939   # But if we don't then we get into trouble of one sort or another.
3940   # A longer-term fix would be to have automake use am__CC in this case,
3941   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3942   CC="$am_aux_dir/compile $CC"
3943fi
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951depcc="$CC"   am_compiler_list=
3952
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3954$as_echo_n "checking dependency style of $depcc... " >&6; }
3955if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3959  # We make a subdir and do the tests there.  Otherwise we can end up
3960  # making bogus files that we don't know about and never remove.  For
3961  # instance it was reported that on HP-UX the gcc test will end up
3962  # making a dummy file named 'D' -- because '-MD' means "put the output
3963  # in D".
3964  rm -rf conftest.dir
3965  mkdir conftest.dir
3966  # Copy depcomp to subdir because otherwise we won't find it if we're
3967  # using a relative directory.
3968  cp "$am_depcomp" conftest.dir
3969  cd conftest.dir
3970  # We will build objects and dependencies in a subdirectory because
3971  # it helps to detect inapplicable dependency modes.  For instance
3972  # both Tru64's cc and ICC support -MD to output dependencies as a
3973  # side effect of compilation, but ICC will put the dependencies in
3974  # the current directory while Tru64 will put them in the object
3975  # directory.
3976  mkdir sub
3977
3978  am_cv_CC_dependencies_compiler_type=none
3979  if test "$am_compiler_list" = ""; then
3980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3981  fi
3982  am__universal=false
3983  case " $depcc " in #(
3984     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3985     esac
3986
3987  for depmode in $am_compiler_list; do
3988    # Setup a source with many dependencies, because some compilers
3989    # like to wrap large dependency lists on column 80 (with \), and
3990    # we should not choose a depcomp mode which is confused by this.
3991    #
3992    # We need to recreate these files for each test, as the compiler may
3993    # overwrite some of them when testing with obscure command lines.
3994    # This happens at least with the AIX C compiler.
3995    : > sub/conftest.c
3996    for i in 1 2 3 4 5 6; do
3997      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3998      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3999      # Solaris 10 /bin/sh.
4000      echo '/* dummy */' > sub/conftst$i.h
4001    done
4002    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4003
4004    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4005    # mode.  It turns out that the SunPro C++ compiler does not properly
4006    # handle '-M -o', and we need to detect this.  Also, some Intel
4007    # versions had trouble with output in subdirs.
4008    am__obj=sub/conftest.${OBJEXT-o}
4009    am__minus_obj="-o $am__obj"
4010    case $depmode in
4011    gcc)
4012      # This depmode causes a compiler race in universal mode.
4013      test "$am__universal" = false || continue
4014      ;;
4015    nosideeffect)
4016      # After this tag, mechanisms are not by side-effect, so they'll
4017      # only be used when explicitly requested.
4018      if test "x$enable_dependency_tracking" = xyes; then
4019	continue
4020      else
4021	break
4022      fi
4023      ;;
4024    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4025      # This compiler won't grok '-c -o', but also, the minuso test has
4026      # not run yet.  These depmodes are late enough in the game, and
4027      # so weak that their functioning should not be impacted.
4028      am__obj=conftest.${OBJEXT-o}
4029      am__minus_obj=
4030      ;;
4031    none) break ;;
4032    esac
4033    if depmode=$depmode \
4034       source=sub/conftest.c object=$am__obj \
4035       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4036       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4037         >/dev/null 2>conftest.err &&
4038       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4039       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4040       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4041       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4042      # icc doesn't choke on unknown options, it will just issue warnings
4043      # or remarks (even with -Werror).  So we grep stderr for any message
4044      # that says an option was ignored or not supported.
4045      # When given -MP, icc 7.0 and 7.1 complain thusly:
4046      #   icc: Command line warning: ignoring option '-M'; no argument required
4047      # The diagnosis changed in icc 8.0:
4048      #   icc: Command line remark: option '-MP' not supported
4049      if (grep 'ignoring option' conftest.err ||
4050          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4051        am_cv_CC_dependencies_compiler_type=$depmode
4052        break
4053      fi
4054    fi
4055  done
4056
4057  cd ..
4058  rm -rf conftest.dir
4059else
4060  am_cv_CC_dependencies_compiler_type=none
4061fi
4062
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4065$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4066CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4067
4068 if
4069  test "x$enable_dependency_tracking" != xno \
4070  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4071  am__fastdepCC_TRUE=
4072  am__fastdepCC_FALSE='#'
4073else
4074  am__fastdepCC_TRUE='#'
4075  am__fastdepCC_FALSE=
4076fi
4077
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4080$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4081if ${ac_cv_path_SED+:} false; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4085     for ac_i in 1 2 3 4 5 6 7; do
4086       ac_script="$ac_script$as_nl$ac_script"
4087     done
4088     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4089     { ac_script=; unset ac_script;}
4090     if test -z "$SED"; then
4091  ac_path_SED_found=false
4092  # Loop through the user's path and test for each of PROGNAME-LIST
4093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098    for ac_prog in sed gsed; do
4099    for ac_exec_ext in '' $ac_executable_extensions; do
4100      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4101      as_fn_executable_p "$ac_path_SED" || continue
4102# Check for GNU ac_path_SED and select it if it is found.
4103  # Check for GNU $ac_path_SED
4104case `"$ac_path_SED" --version 2>&1` in
4105*GNU*)
4106  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4107*)
4108  ac_count=0
4109  $as_echo_n 0123456789 >"conftest.in"
4110  while :
4111  do
4112    cat "conftest.in" "conftest.in" >"conftest.tmp"
4113    mv "conftest.tmp" "conftest.in"
4114    cp "conftest.in" "conftest.nl"
4115    $as_echo '' >> "conftest.nl"
4116    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118    as_fn_arith $ac_count + 1 && ac_count=$as_val
4119    if test $ac_count -gt ${ac_path_SED_max-0}; then
4120      # Best one so far, save it but keep looking for a better one
4121      ac_cv_path_SED="$ac_path_SED"
4122      ac_path_SED_max=$ac_count
4123    fi
4124    # 10*(2^10) chars as input seems more than enough
4125    test $ac_count -gt 10 && break
4126  done
4127  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128esac
4129
4130      $ac_path_SED_found && break 3
4131    done
4132  done
4133  done
4134IFS=$as_save_IFS
4135  if test -z "$ac_cv_path_SED"; then
4136    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4137  fi
4138else
4139  ac_cv_path_SED=$SED
4140fi
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4144$as_echo "$ac_cv_path_SED" >&6; }
4145 SED="$ac_cv_path_SED"
4146  rm -f conftest.sed
4147
4148test -z "$SED" && SED=sed
4149Xsed="$SED -e 1s/^X//"
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4162$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4163if ${ac_cv_path_GREP+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  if test -z "$GREP"; then
4167  ac_path_GREP_found=false
4168  # Loop through the user's path and test for each of PROGNAME-LIST
4169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171do
4172  IFS=$as_save_IFS
4173  test -z "$as_dir" && as_dir=.
4174    for ac_prog in grep ggrep; do
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4177      as_fn_executable_p "$ac_path_GREP" || continue
4178# Check for GNU ac_path_GREP and select it if it is found.
4179  # Check for GNU $ac_path_GREP
4180case `"$ac_path_GREP" --version 2>&1` in
4181*GNU*)
4182  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4183*)
4184  ac_count=0
4185  $as_echo_n 0123456789 >"conftest.in"
4186  while :
4187  do
4188    cat "conftest.in" "conftest.in" >"conftest.tmp"
4189    mv "conftest.tmp" "conftest.in"
4190    cp "conftest.in" "conftest.nl"
4191    $as_echo 'GREP' >> "conftest.nl"
4192    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194    as_fn_arith $ac_count + 1 && ac_count=$as_val
4195    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4196      # Best one so far, save it but keep looking for a better one
4197      ac_cv_path_GREP="$ac_path_GREP"
4198      ac_path_GREP_max=$ac_count
4199    fi
4200    # 10*(2^10) chars as input seems more than enough
4201    test $ac_count -gt 10 && break
4202  done
4203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204esac
4205
4206      $ac_path_GREP_found && break 3
4207    done
4208  done
4209  done
4210IFS=$as_save_IFS
4211  if test -z "$ac_cv_path_GREP"; then
4212    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4213  fi
4214else
4215  ac_cv_path_GREP=$GREP
4216fi
4217
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4220$as_echo "$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4222
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4225$as_echo_n "checking for egrep... " >&6; }
4226if ${ac_cv_path_EGREP+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230   then ac_cv_path_EGREP="$GREP -E"
4231   else
4232     if test -z "$EGREP"; then
4233  ac_path_EGREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in egrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4243      as_fn_executable_p "$ac_path_EGREP" || continue
4244# Check for GNU ac_path_EGREP and select it if it is found.
4245  # Check for GNU $ac_path_EGREP
4246case `"$ac_path_EGREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'EGREP' >> "conftest.nl"
4258    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_EGREP="$ac_path_EGREP"
4264      ac_path_EGREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_EGREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_EGREP"; then
4278    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_EGREP=$EGREP
4282fi
4283
4284   fi
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4287$as_echo "$ac_cv_path_EGREP" >&6; }
4288 EGREP="$ac_cv_path_EGREP"
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4292$as_echo_n "checking for fgrep... " >&6; }
4293if ${ac_cv_path_FGREP+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4297   then ac_cv_path_FGREP="$GREP -F"
4298   else
4299     if test -z "$FGREP"; then
4300  ac_path_FGREP_found=false
4301  # Loop through the user's path and test for each of PROGNAME-LIST
4302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304do
4305  IFS=$as_save_IFS
4306  test -z "$as_dir" && as_dir=.
4307    for ac_prog in fgrep; do
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4310      as_fn_executable_p "$ac_path_FGREP" || continue
4311# Check for GNU ac_path_FGREP and select it if it is found.
4312  # Check for GNU $ac_path_FGREP
4313case `"$ac_path_FGREP" --version 2>&1` in
4314*GNU*)
4315  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4316*)
4317  ac_count=0
4318  $as_echo_n 0123456789 >"conftest.in"
4319  while :
4320  do
4321    cat "conftest.in" "conftest.in" >"conftest.tmp"
4322    mv "conftest.tmp" "conftest.in"
4323    cp "conftest.in" "conftest.nl"
4324    $as_echo 'FGREP' >> "conftest.nl"
4325    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327    as_fn_arith $ac_count + 1 && ac_count=$as_val
4328    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4329      # Best one so far, save it but keep looking for a better one
4330      ac_cv_path_FGREP="$ac_path_FGREP"
4331      ac_path_FGREP_max=$ac_count
4332    fi
4333    # 10*(2^10) chars as input seems more than enough
4334    test $ac_count -gt 10 && break
4335  done
4336  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337esac
4338
4339      $ac_path_FGREP_found && break 3
4340    done
4341  done
4342  done
4343IFS=$as_save_IFS
4344  if test -z "$ac_cv_path_FGREP"; then
4345    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346  fi
4347else
4348  ac_cv_path_FGREP=$FGREP
4349fi
4350
4351   fi
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4354$as_echo "$ac_cv_path_FGREP" >&6; }
4355 FGREP="$ac_cv_path_FGREP"
4356
4357
4358test -z "$GREP" && GREP=grep
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378# Check whether --with-gnu-ld was given.
4379if test "${with_gnu_ld+set}" = set; then :
4380  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4381else
4382  with_gnu_ld=no
4383fi
4384
4385ac_prog=ld
4386if test yes = "$GCC"; then
4387  # Check if gcc -print-prog-name=ld gives a path.
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4389$as_echo_n "checking for ld used by $CC... " >&6; }
4390  case $host in
4391  *-*-mingw*)
4392    # gcc leaves a trailing carriage return, which upsets mingw
4393    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4394  *)
4395    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4396  esac
4397  case $ac_prog in
4398    # Accept absolute paths.
4399    [\\/]* | ?:[\\/]*)
4400      re_direlt='/[^/][^/]*/\.\./'
4401      # Canonicalize the pathname of ld
4402      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4403      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4404	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4405      done
4406      test -z "$LD" && LD=$ac_prog
4407      ;;
4408  "")
4409    # If it fails, then pretend we aren't using GCC.
4410    ac_prog=ld
4411    ;;
4412  *)
4413    # If it is relative, then search for the first ld in PATH.
4414    with_gnu_ld=unknown
4415    ;;
4416  esac
4417elif test yes = "$with_gnu_ld"; then
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4419$as_echo_n "checking for GNU ld... " >&6; }
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4422$as_echo_n "checking for non-GNU ld... " >&6; }
4423fi
4424if ${lt_cv_path_LD+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  if test -z "$LD"; then
4428  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4429  for ac_dir in $PATH; do
4430    IFS=$lt_save_ifs
4431    test -z "$ac_dir" && ac_dir=.
4432    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4433      lt_cv_path_LD=$ac_dir/$ac_prog
4434      # Check to see if the program is GNU ld.  I'd rather use --version,
4435      # but apparently some variants of GNU ld only accept -v.
4436      # Break only if it was the GNU/non-GNU ld that we prefer.
4437      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4438      *GNU* | *'with BFD'*)
4439	test no != "$with_gnu_ld" && break
4440	;;
4441      *)
4442	test yes != "$with_gnu_ld" && break
4443	;;
4444      esac
4445    fi
4446  done
4447  IFS=$lt_save_ifs
4448else
4449  lt_cv_path_LD=$LD # Let the user override the test with a path.
4450fi
4451fi
4452
4453LD=$lt_cv_path_LD
4454if test -n "$LD"; then
4455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4456$as_echo "$LD" >&6; }
4457else
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459$as_echo "no" >&6; }
4460fi
4461test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4463$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4464if ${lt_cv_prog_gnu_ld+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4468case `$LD -v 2>&1 </dev/null` in
4469*GNU* | *'with BFD'*)
4470  lt_cv_prog_gnu_ld=yes
4471  ;;
4472*)
4473  lt_cv_prog_gnu_ld=no
4474  ;;
4475esac
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4478$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4479with_gnu_ld=$lt_cv_prog_gnu_ld
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4490$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4491if ${lt_cv_path_NM+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  if test -n "$NM"; then
4495  # Let the user override the test.
4496  lt_cv_path_NM=$NM
4497else
4498  lt_nm_to_check=${ac_tool_prefix}nm
4499  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4500    lt_nm_to_check="$lt_nm_to_check nm"
4501  fi
4502  for lt_tmp_nm in $lt_nm_to_check; do
4503    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4504    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4505      IFS=$lt_save_ifs
4506      test -z "$ac_dir" && ac_dir=.
4507      tmp_nm=$ac_dir/$lt_tmp_nm
4508      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4509	# Check to see if the nm accepts a BSD-compat flag.
4510	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4511	#   nm: unknown option "B" ignored
4512	# Tru64's nm complains that /dev/null is an invalid object file
4513	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4514	case $build_os in
4515	mingw*) lt_bad_file=conftest.nm/nofile ;;
4516	*) lt_bad_file=/dev/null ;;
4517	esac
4518	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4519	*$lt_bad_file* | *'Invalid file or object type'*)
4520	  lt_cv_path_NM="$tmp_nm -B"
4521	  break 2
4522	  ;;
4523	*)
4524	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4525	  */dev/null*)
4526	    lt_cv_path_NM="$tmp_nm -p"
4527	    break 2
4528	    ;;
4529	  *)
4530	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531	    continue # so that we can try to find one that supports BSD flags
4532	    ;;
4533	  esac
4534	  ;;
4535	esac
4536      fi
4537    done
4538    IFS=$lt_save_ifs
4539  done
4540  : ${lt_cv_path_NM=no}
4541fi
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4544$as_echo "$lt_cv_path_NM" >&6; }
4545if test no != "$lt_cv_path_NM"; then
4546  NM=$lt_cv_path_NM
4547else
4548  # Didn't find any BSD compatible name lister, look for dumpbin.
4549  if test -n "$DUMPBIN"; then :
4550    # Let the user override the test.
4551  else
4552    if test -n "$ac_tool_prefix"; then
4553  for ac_prog in dumpbin "link -dump"
4554  do
4555    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if ${ac_cv_prog_DUMPBIN+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  if test -n "$DUMPBIN"; then
4563  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568  IFS=$as_save_IFS
4569  test -z "$as_dir" && as_dir=.
4570    for ac_exec_ext in '' $ac_executable_extensions; do
4571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574    break 2
4575  fi
4576done
4577  done
4578IFS=$as_save_IFS
4579
4580fi
4581fi
4582DUMPBIN=$ac_cv_prog_DUMPBIN
4583if test -n "$DUMPBIN"; then
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4585$as_echo "$DUMPBIN" >&6; }
4586else
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
4592    test -n "$DUMPBIN" && break
4593  done
4594fi
4595if test -z "$DUMPBIN"; then
4596  ac_ct_DUMPBIN=$DUMPBIN
4597  for ac_prog in dumpbin "link -dump"
4598do
4599  # Extract the first word of "$ac_prog", so it can be a program name with args.
4600set dummy $ac_prog; ac_word=$2
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
4603if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  if test -n "$ac_ct_DUMPBIN"; then
4607  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612  IFS=$as_save_IFS
4613  test -z "$as_dir" && as_dir=.
4614    for ac_exec_ext in '' $ac_executable_extensions; do
4615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618    break 2
4619  fi
4620done
4621  done
4622IFS=$as_save_IFS
4623
4624fi
4625fi
4626ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4627if test -n "$ac_ct_DUMPBIN"; then
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4629$as_echo "$ac_ct_DUMPBIN" >&6; }
4630else
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634
4635
4636  test -n "$ac_ct_DUMPBIN" && break
4637done
4638
4639  if test "x$ac_ct_DUMPBIN" = x; then
4640    DUMPBIN=":"
4641  else
4642    case $cross_compiling:$ac_tool_warned in
4643yes:)
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646ac_tool_warned=yes ;;
4647esac
4648    DUMPBIN=$ac_ct_DUMPBIN
4649  fi
4650fi
4651
4652    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4653    *COFF*)
4654      DUMPBIN="$DUMPBIN -symbols -headers"
4655      ;;
4656    *)
4657      DUMPBIN=:
4658      ;;
4659    esac
4660  fi
4661
4662  if test : != "$DUMPBIN"; then
4663    NM=$DUMPBIN
4664  fi
4665fi
4666test -z "$NM" && NM=nm
4667
4668
4669
4670
4671
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4674$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4675if ${lt_cv_nm_interface+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  lt_cv_nm_interface="BSD nm"
4679  echo "int some_variable = 0;" > conftest.$ac_ext
4680  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4681  (eval "$ac_compile" 2>conftest.err)
4682  cat conftest.err >&5
4683  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4684  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4685  cat conftest.err >&5
4686  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4687  cat conftest.out >&5
4688  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4689    lt_cv_nm_interface="MS dumpbin"
4690  fi
4691  rm -f conftest*
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4694$as_echo "$lt_cv_nm_interface" >&6; }
4695
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4697$as_echo_n "checking whether ln -s works... " >&6; }
4698LN_S=$as_ln_s
4699if test "$LN_S" = "ln -s"; then
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701$as_echo "yes" >&6; }
4702else
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4704$as_echo "no, using $LN_S" >&6; }
4705fi
4706
4707# find the maximum length of command line arguments
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4709$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4710if ${lt_cv_sys_max_cmd_len+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713    i=0
4714  teststring=ABCD
4715
4716  case $build_os in
4717  msdosdjgpp*)
4718    # On DJGPP, this test can blow up pretty badly due to problems in libc
4719    # (any single argument exceeding 2000 bytes causes a buffer overrun
4720    # during glob expansion).  Even if it were fixed, the result of this
4721    # check would be larger than it should be.
4722    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4723    ;;
4724
4725  gnu*)
4726    # Under GNU Hurd, this test is not required because there is
4727    # no limit to the length of command line arguments.
4728    # Libtool will interpret -1 as no limit whatsoever
4729    lt_cv_sys_max_cmd_len=-1;
4730    ;;
4731
4732  cygwin* | mingw* | cegcc*)
4733    # On Win9x/ME, this test blows up -- it succeeds, but takes
4734    # about 5 minutes as the teststring grows exponentially.
4735    # Worse, since 9x/ME are not pre-emptively multitasking,
4736    # you end up with a "frozen" computer, even though with patience
4737    # the test eventually succeeds (with a max line length of 256k).
4738    # Instead, let's just punt: use the minimum linelength reported by
4739    # all of the supported platforms: 8192 (on NT/2K/XP).
4740    lt_cv_sys_max_cmd_len=8192;
4741    ;;
4742
4743  mint*)
4744    # On MiNT this can take a long time and run out of memory.
4745    lt_cv_sys_max_cmd_len=8192;
4746    ;;
4747
4748  amigaos*)
4749    # On AmigaOS with pdksh, this test takes hours, literally.
4750    # So we just punt and use a minimum line length of 8192.
4751    lt_cv_sys_max_cmd_len=8192;
4752    ;;
4753
4754  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4755    # This has been around since 386BSD, at least.  Likely further.
4756    if test -x /sbin/sysctl; then
4757      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4758    elif test -x /usr/sbin/sysctl; then
4759      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4760    else
4761      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4762    fi
4763    # And add a safety zone
4764    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4765    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4766    ;;
4767
4768  interix*)
4769    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4770    lt_cv_sys_max_cmd_len=196608
4771    ;;
4772
4773  os2*)
4774    # The test takes a long time on OS/2.
4775    lt_cv_sys_max_cmd_len=8192
4776    ;;
4777
4778  osf*)
4779    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4780    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4781    # nice to cause kernel panics so lets avoid the loop below.
4782    # First set a reasonable default.
4783    lt_cv_sys_max_cmd_len=16384
4784    #
4785    if test -x /sbin/sysconfig; then
4786      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4787        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4788      esac
4789    fi
4790    ;;
4791  sco3.2v5*)
4792    lt_cv_sys_max_cmd_len=102400
4793    ;;
4794  sysv5* | sco5v6* | sysv4.2uw2*)
4795    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4796    if test -n "$kargmax"; then
4797      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4798    else
4799      lt_cv_sys_max_cmd_len=32768
4800    fi
4801    ;;
4802  *)
4803    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4804    if test -n "$lt_cv_sys_max_cmd_len" && \
4805       test undefined != "$lt_cv_sys_max_cmd_len"; then
4806      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4807      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4808    else
4809      # Make teststring a little bigger before we do anything with it.
4810      # a 1K string should be a reasonable start.
4811      for i in 1 2 3 4 5 6 7 8; do
4812        teststring=$teststring$teststring
4813      done
4814      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4815      # If test is not a shell built-in, we'll probably end up computing a
4816      # maximum length that is only half of the actual maximum length, but
4817      # we can't tell.
4818      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4819	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4820	      test 17 != "$i" # 1/2 MB should be enough
4821      do
4822        i=`expr $i + 1`
4823        teststring=$teststring$teststring
4824      done
4825      # Only check the string length outside the loop.
4826      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4827      teststring=
4828      # Add a significant safety factor because C++ compilers can tack on
4829      # massive amounts of additional arguments before passing them to the
4830      # linker.  It appears as though 1/2 is a usable value.
4831      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4832    fi
4833    ;;
4834  esac
4835
4836fi
4837
4838if test -n "$lt_cv_sys_max_cmd_len"; then
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4840$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4841else
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4843$as_echo "none" >&6; }
4844fi
4845max_cmd_len=$lt_cv_sys_max_cmd_len
4846
4847
4848
4849
4850
4851
4852: ${CP="cp -f"}
4853: ${MV="mv -f"}
4854: ${RM="rm -f"}
4855
4856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857  lt_unset=unset
4858else
4859  lt_unset=false
4860fi
4861
4862
4863
4864
4865
4866# test EBCDIC or ASCII
4867case `echo X|tr X '\101'` in
4868 A) # ASCII based system
4869    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870  lt_SP2NL='tr \040 \012'
4871  lt_NL2SP='tr \015\012 \040\040'
4872  ;;
4873 *) # EBCDIC based system
4874  lt_SP2NL='tr \100 \n'
4875  lt_NL2SP='tr \r\n \100\100'
4876  ;;
4877esac
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4888$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4889if ${lt_cv_to_host_file_cmd+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  case $host in
4893  *-*-mingw* )
4894    case $build in
4895      *-*-mingw* ) # actually msys
4896        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4897        ;;
4898      *-*-cygwin* )
4899        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4900        ;;
4901      * ) # otherwise, assume *nix
4902        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4903        ;;
4904    esac
4905    ;;
4906  *-*-cygwin* )
4907    case $build in
4908      *-*-mingw* ) # actually msys
4909        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4910        ;;
4911      *-*-cygwin* )
4912        lt_cv_to_host_file_cmd=func_convert_file_noop
4913        ;;
4914      * ) # otherwise, assume *nix
4915        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4916        ;;
4917    esac
4918    ;;
4919  * ) # unhandled hosts (and "normal" native builds)
4920    lt_cv_to_host_file_cmd=func_convert_file_noop
4921    ;;
4922esac
4923
4924fi
4925
4926to_host_file_cmd=$lt_cv_to_host_file_cmd
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4928$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4929
4930
4931
4932
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4935$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4936if ${lt_cv_to_tool_file_cmd+:} false; then :
4937  $as_echo_n "(cached) " >&6
4938else
4939  #assume ordinary cross tools, or native build.
4940lt_cv_to_tool_file_cmd=func_convert_file_noop
4941case $host in
4942  *-*-mingw* )
4943    case $build in
4944      *-*-mingw* ) # actually msys
4945        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4946        ;;
4947    esac
4948    ;;
4949esac
4950
4951fi
4952
4953to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4955$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4956
4957
4958
4959
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4962$as_echo_n "checking for $LD option to reload object files... " >&6; }
4963if ${lt_cv_ld_reload_flag+:} false; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  lt_cv_ld_reload_flag='-r'
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4969$as_echo "$lt_cv_ld_reload_flag" >&6; }
4970reload_flag=$lt_cv_ld_reload_flag
4971case $reload_flag in
4972"" | " "*) ;;
4973*) reload_flag=" $reload_flag" ;;
4974esac
4975reload_cmds='$LD$reload_flag -o $output$reload_objs'
4976case $host_os in
4977  cygwin* | mingw* | pw32* | cegcc*)
4978    if test yes != "$GCC"; then
4979      reload_cmds=false
4980    fi
4981    ;;
4982  darwin*)
4983    if test yes = "$GCC"; then
4984      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4985    else
4986      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4987    fi
4988    ;;
4989esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999if test -n "$ac_tool_prefix"; then
5000  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5001set dummy ${ac_tool_prefix}objdump; ac_word=$2
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if ${ac_cv_prog_OBJDUMP+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  if test -n "$OBJDUMP"; then
5008  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013  IFS=$as_save_IFS
5014  test -z "$as_dir" && as_dir=.
5015    for ac_exec_ext in '' $ac_executable_extensions; do
5016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019    break 2
5020  fi
5021done
5022  done
5023IFS=$as_save_IFS
5024
5025fi
5026fi
5027OBJDUMP=$ac_cv_prog_OBJDUMP
5028if test -n "$OBJDUMP"; then
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5030$as_echo "$OBJDUMP" >&6; }
5031else
5032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034fi
5035
5036
5037fi
5038if test -z "$ac_cv_prog_OBJDUMP"; then
5039  ac_ct_OBJDUMP=$OBJDUMP
5040  # Extract the first word of "objdump", so it can be a program name with args.
5041set dummy objdump; ac_word=$2
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  if test -n "$ac_ct_OBJDUMP"; then
5048  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055    for ac_exec_ext in '' $ac_executable_extensions; do
5056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059    break 2
5060  fi
5061done
5062  done
5063IFS=$as_save_IFS
5064
5065fi
5066fi
5067ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5068if test -n "$ac_ct_OBJDUMP"; then
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5070$as_echo "$ac_ct_OBJDUMP" >&6; }
5071else
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
5074fi
5075
5076  if test "x$ac_ct_OBJDUMP" = x; then
5077    OBJDUMP="false"
5078  else
5079    case $cross_compiling:$ac_tool_warned in
5080yes:)
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083ac_tool_warned=yes ;;
5084esac
5085    OBJDUMP=$ac_ct_OBJDUMP
5086  fi
5087else
5088  OBJDUMP="$ac_cv_prog_OBJDUMP"
5089fi
5090
5091test -z "$OBJDUMP" && OBJDUMP=objdump
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5102$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5103if ${lt_cv_deplibs_check_method+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  lt_cv_file_magic_cmd='$MAGIC_CMD'
5107lt_cv_file_magic_test_file=
5108lt_cv_deplibs_check_method='unknown'
5109# Need to set the preceding variable on all platforms that support
5110# interlibrary dependencies.
5111# 'none' -- dependencies not supported.
5112# 'unknown' -- same as none, but documents that we really don't know.
5113# 'pass_all' -- all dependencies passed with no checks.
5114# 'test_compile' -- check by making test program.
5115# 'file_magic [[regex]]' -- check by looking for files in library path
5116# that responds to the $file_magic_cmd with a given extended regex.
5117# If you have 'file' or equivalent on your system and you're not sure
5118# whether 'pass_all' will *always* work, you probably want this one.
5119
5120case $host_os in
5121aix[4-9]*)
5122  lt_cv_deplibs_check_method=pass_all
5123  ;;
5124
5125beos*)
5126  lt_cv_deplibs_check_method=pass_all
5127  ;;
5128
5129bsdi[45]*)
5130  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5131  lt_cv_file_magic_cmd='/usr/bin/file -L'
5132  lt_cv_file_magic_test_file=/shlib/libc.so
5133  ;;
5134
5135cygwin*)
5136  # func_win32_libid is a shell function defined in ltmain.sh
5137  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5138  lt_cv_file_magic_cmd='func_win32_libid'
5139  ;;
5140
5141mingw* | pw32*)
5142  # Base MSYS/MinGW do not provide the 'file' command needed by
5143  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5144  # unless we find 'file', for example because we are cross-compiling.
5145  if ( file / ) >/dev/null 2>&1; then
5146    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5147    lt_cv_file_magic_cmd='func_win32_libid'
5148  else
5149    # Keep this pattern in sync with the one in func_win32_libid.
5150    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5151    lt_cv_file_magic_cmd='$OBJDUMP -f'
5152  fi
5153  ;;
5154
5155cegcc*)
5156  # use the weaker test based on 'objdump'. See mingw*.
5157  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5158  lt_cv_file_magic_cmd='$OBJDUMP -f'
5159  ;;
5160
5161darwin* | rhapsody*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164
5165freebsd* | dragonfly*)
5166  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5167    case $host_cpu in
5168    i*86 )
5169      # Not sure whether the presence of OpenBSD here was a mistake.
5170      # Let's accept both of them until this is cleared up.
5171      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5172      lt_cv_file_magic_cmd=/usr/bin/file
5173      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5174      ;;
5175    esac
5176  else
5177    lt_cv_deplibs_check_method=pass_all
5178  fi
5179  ;;
5180
5181haiku*)
5182  lt_cv_deplibs_check_method=pass_all
5183  ;;
5184
5185hpux10.20* | hpux11*)
5186  lt_cv_file_magic_cmd=/usr/bin/file
5187  case $host_cpu in
5188  ia64*)
5189    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5190    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5191    ;;
5192  hppa*64*)
5193    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]'
5194    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5195    ;;
5196  *)
5197    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5198    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5199    ;;
5200  esac
5201  ;;
5202
5203interix[3-9]*)
5204  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5205  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5206  ;;
5207
5208irix5* | irix6* | nonstopux*)
5209  case $LD in
5210  *-32|*"-32 ") libmagic=32-bit;;
5211  *-n32|*"-n32 ") libmagic=N32;;
5212  *-64|*"-64 ") libmagic=64-bit;;
5213  *) libmagic=never-match;;
5214  esac
5215  lt_cv_deplibs_check_method=pass_all
5216  ;;
5217
5218# This must be glibc/ELF.
5219linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5220  lt_cv_deplibs_check_method=pass_all
5221  ;;
5222
5223netbsd*)
5224  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5226  else
5227    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5228  fi
5229  ;;
5230
5231newos6*)
5232  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5233  lt_cv_file_magic_cmd=/usr/bin/file
5234  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5235  ;;
5236
5237*nto* | *qnx*)
5238  lt_cv_deplibs_check_method=pass_all
5239  ;;
5240
5241openbsd* | bitrig*)
5242  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5243    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5244  else
5245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5246  fi
5247  ;;
5248
5249osf3* | osf4* | osf5*)
5250  lt_cv_deplibs_check_method=pass_all
5251  ;;
5252
5253rdos*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257solaris*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5262  lt_cv_deplibs_check_method=pass_all
5263  ;;
5264
5265sysv4 | sysv4.3*)
5266  case $host_vendor in
5267  motorola)
5268    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]'
5269    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5270    ;;
5271  ncr)
5272    lt_cv_deplibs_check_method=pass_all
5273    ;;
5274  sequent)
5275    lt_cv_file_magic_cmd='/bin/file'
5276    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5277    ;;
5278  sni)
5279    lt_cv_file_magic_cmd='/bin/file'
5280    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5281    lt_cv_file_magic_test_file=/lib/libc.so
5282    ;;
5283  siemens)
5284    lt_cv_deplibs_check_method=pass_all
5285    ;;
5286  pc)
5287    lt_cv_deplibs_check_method=pass_all
5288    ;;
5289  esac
5290  ;;
5291
5292tpf*)
5293  lt_cv_deplibs_check_method=pass_all
5294  ;;
5295os2*)
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298esac
5299
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5302$as_echo "$lt_cv_deplibs_check_method" >&6; }
5303
5304file_magic_glob=
5305want_nocaseglob=no
5306if test "$build" = "$host"; then
5307  case $host_os in
5308  mingw* | pw32*)
5309    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5310      want_nocaseglob=yes
5311    else
5312      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5313    fi
5314    ;;
5315  esac
5316fi
5317
5318file_magic_cmd=$lt_cv_file_magic_cmd
5319deplibs_check_method=$lt_cv_deplibs_check_method
5320test -z "$deplibs_check_method" && deplibs_check_method=unknown
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343if test -n "$ac_tool_prefix"; then
5344  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5345set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347$as_echo_n "checking for $ac_word... " >&6; }
5348if ${ac_cv_prog_DLLTOOL+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  if test -n "$DLLTOOL"; then
5352  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357  IFS=$as_save_IFS
5358  test -z "$as_dir" && as_dir=.
5359    for ac_exec_ext in '' $ac_executable_extensions; do
5360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363    break 2
5364  fi
5365done
5366  done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371DLLTOOL=$ac_cv_prog_DLLTOOL
5372if test -n "$DLLTOOL"; then
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5374$as_echo "$DLLTOOL" >&6; }
5375else
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377$as_echo "no" >&6; }
5378fi
5379
5380
5381fi
5382if test -z "$ac_cv_prog_DLLTOOL"; then
5383  ac_ct_DLLTOOL=$DLLTOOL
5384  # Extract the first word of "dlltool", so it can be a program name with args.
5385set dummy dlltool; ac_word=$2
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387$as_echo_n "checking for $ac_word... " >&6; }
5388if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  if test -n "$ac_ct_DLLTOOL"; then
5392  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399    for ac_exec_ext in '' $ac_executable_extensions; do
5400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406  done
5407IFS=$as_save_IFS
5408
5409fi
5410fi
5411ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5412if test -n "$ac_ct_DLLTOOL"; then
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5414$as_echo "$ac_ct_DLLTOOL" >&6; }
5415else
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417$as_echo "no" >&6; }
5418fi
5419
5420  if test "x$ac_ct_DLLTOOL" = x; then
5421    DLLTOOL="false"
5422  else
5423    case $cross_compiling:$ac_tool_warned in
5424yes:)
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427ac_tool_warned=yes ;;
5428esac
5429    DLLTOOL=$ac_ct_DLLTOOL
5430  fi
5431else
5432  DLLTOOL="$ac_cv_prog_DLLTOOL"
5433fi
5434
5435test -z "$DLLTOOL" && DLLTOOL=dlltool
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5447$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5448if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  lt_cv_sharedlib_from_linklib_cmd='unknown'
5452
5453case $host_os in
5454cygwin* | mingw* | pw32* | cegcc*)
5455  # two different shell functions defined in ltmain.sh;
5456  # decide which one to use based on capabilities of $DLLTOOL
5457  case `$DLLTOOL --help 2>&1` in
5458  *--identify-strict*)
5459    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5460    ;;
5461  *)
5462    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5463    ;;
5464  esac
5465  ;;
5466*)
5467  # fallback: assume linklib IS sharedlib
5468  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5469  ;;
5470esac
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5474$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5475sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5476test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5477
5478
5479
5480
5481
5482
5483
5484
5485if test -n "$ac_tool_prefix"; then
5486  for ac_prog in ar
5487  do
5488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_AR+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$AR"; then
5496  ac_cv_prog_AR="$AR" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515AR=$ac_cv_prog_AR
5516if test -n "$AR"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5518$as_echo "$AR" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524
5525    test -n "$AR" && break
5526  done
5527fi
5528if test -z "$AR"; then
5529  ac_ct_AR=$AR
5530  for ac_prog in ar
5531do
5532  # Extract the first word of "$ac_prog", so it can be a program name with args.
5533set dummy $ac_prog; ac_word=$2
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535$as_echo_n "checking for $ac_word... " >&6; }
5536if ${ac_cv_prog_ac_ct_AR+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  if test -n "$ac_ct_AR"; then
5540  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5541else
5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545  IFS=$as_save_IFS
5546  test -z "$as_dir" && as_dir=.
5547    for ac_exec_ext in '' $ac_executable_extensions; do
5548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549    ac_cv_prog_ac_ct_AR="$ac_prog"
5550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551    break 2
5552  fi
5553done
5554  done
5555IFS=$as_save_IFS
5556
5557fi
5558fi
5559ac_ct_AR=$ac_cv_prog_ac_ct_AR
5560if test -n "$ac_ct_AR"; then
5561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5562$as_echo "$ac_ct_AR" >&6; }
5563else
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565$as_echo "no" >&6; }
5566fi
5567
5568
5569  test -n "$ac_ct_AR" && break
5570done
5571
5572  if test "x$ac_ct_AR" = x; then
5573    AR="false"
5574  else
5575    case $cross_compiling:$ac_tool_warned in
5576yes:)
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581    AR=$ac_ct_AR
5582  fi
5583fi
5584
5585: ${AR=ar}
5586: ${AR_FLAGS=cru}
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5599$as_echo_n "checking for archiver @FILE support... " >&6; }
5600if ${lt_cv_ar_at_file+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  lt_cv_ar_at_file=no
5604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606
5607int
5608main ()
5609{
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616  echo conftest.$ac_objext > conftest.lst
5617      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5618      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5619  (eval $lt_ar_try) 2>&5
5620  ac_status=$?
5621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622  test $ac_status = 0; }
5623      if test 0 -eq "$ac_status"; then
5624	# Ensure the archiver fails upon bogus file names.
5625	rm -f conftest.$ac_objext libconftest.a
5626	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5627  (eval $lt_ar_try) 2>&5
5628  ac_status=$?
5629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630  test $ac_status = 0; }
5631	if test 0 -ne "$ac_status"; then
5632          lt_cv_ar_at_file=@
5633        fi
5634      fi
5635      rm -f conftest.* libconftest.a
5636
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5642$as_echo "$lt_cv_ar_at_file" >&6; }
5643
5644if test no = "$lt_cv_ar_at_file"; then
5645  archiver_list_spec=
5646else
5647  archiver_list_spec=$lt_cv_ar_at_file
5648fi
5649
5650
5651
5652
5653
5654
5655
5656if test -n "$ac_tool_prefix"; then
5657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5658set dummy ${ac_tool_prefix}strip; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_prog_STRIP+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -n "$STRIP"; then
5665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684STRIP=$ac_cv_prog_STRIP
5685if test -n "$STRIP"; then
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5687$as_echo "$STRIP" >&6; }
5688else
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693
5694fi
5695if test -z "$ac_cv_prog_STRIP"; then
5696  ac_ct_STRIP=$STRIP
5697  # Extract the first word of "strip", so it can be a program name with args.
5698set dummy strip; ac_word=$2
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
5701if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  if test -n "$ac_ct_STRIP"; then
5705  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712    for ac_exec_ext in '' $ac_executable_extensions; do
5713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714    ac_cv_prog_ac_ct_STRIP="strip"
5715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716    break 2
5717  fi
5718done
5719  done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5725if test -n "$ac_ct_STRIP"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5727$as_echo "$ac_ct_STRIP" >&6; }
5728else
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733  if test "x$ac_ct_STRIP" = x; then
5734    STRIP=":"
5735  else
5736    case $cross_compiling:$ac_tool_warned in
5737yes:)
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740ac_tool_warned=yes ;;
5741esac
5742    STRIP=$ac_ct_STRIP
5743  fi
5744else
5745  STRIP="$ac_cv_prog_STRIP"
5746fi
5747
5748test -z "$STRIP" && STRIP=:
5749
5750
5751
5752
5753
5754
5755if test -n "$ac_tool_prefix"; then
5756  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759$as_echo_n "checking for $ac_word... " >&6; }
5760if ${ac_cv_prog_RANLIB+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -n "$RANLIB"; then
5764  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769  IFS=$as_save_IFS
5770  test -z "$as_dir" && as_dir=.
5771    for ac_exec_ext in '' $ac_executable_extensions; do
5772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778  done
5779IFS=$as_save_IFS
5780
5781fi
5782fi
5783RANLIB=$ac_cv_prog_RANLIB
5784if test -n "$RANLIB"; then
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5786$as_echo "$RANLIB" >&6; }
5787else
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790fi
5791
5792
5793fi
5794if test -z "$ac_cv_prog_RANLIB"; then
5795  ac_ct_RANLIB=$RANLIB
5796  # Extract the first word of "ranlib", so it can be a program name with args.
5797set dummy ranlib; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$ac_ct_RANLIB"; then
5804  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_ac_ct_RANLIB="ranlib"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5824if test -n "$ac_ct_RANLIB"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5826$as_echo "$ac_ct_RANLIB" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832  if test "x$ac_ct_RANLIB" = x; then
5833    RANLIB=":"
5834  else
5835    case $cross_compiling:$ac_tool_warned in
5836yes:)
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841    RANLIB=$ac_ct_RANLIB
5842  fi
5843else
5844  RANLIB="$ac_cv_prog_RANLIB"
5845fi
5846
5847test -z "$RANLIB" && RANLIB=:
5848
5849
5850
5851
5852
5853
5854# Determine commands to create old-style static archives.
5855old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5856old_postinstall_cmds='chmod 644 $oldlib'
5857old_postuninstall_cmds=
5858
5859if test -n "$RANLIB"; then
5860  case $host_os in
5861  bitrig* | openbsd*)
5862    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5863    ;;
5864  *)
5865    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5866    ;;
5867  esac
5868  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5869fi
5870
5871case $host_os in
5872  darwin*)
5873    lock_old_archive_extraction=yes ;;
5874  *)
5875    lock_old_archive_extraction=no ;;
5876esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
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# If no C compiler was specified, use CC.
5917LTCC=${LTCC-"$CC"}
5918
5919# If no C compiler flags were specified, use CFLAGS.
5920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5921
5922# Allow CC to be a program name with arguments.
5923compiler=$CC
5924
5925
5926# Check for command to grab the raw symbol name followed by C symbol from nm.
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5928$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5929if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932
5933# These are sane defaults that work on at least a few old systems.
5934# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5935
5936# Character class describing NM global symbol codes.
5937symcode='[BCDEGRST]'
5938
5939# Regexp to match symbols that can be accessed directly from C.
5940sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5941
5942# Define system-specific variables.
5943case $host_os in
5944aix*)
5945  symcode='[BCDT]'
5946  ;;
5947cygwin* | mingw* | pw32* | cegcc*)
5948  symcode='[ABCDGISTW]'
5949  ;;
5950hpux*)
5951  if test ia64 = "$host_cpu"; then
5952    symcode='[ABCDEGRST]'
5953  fi
5954  ;;
5955irix* | nonstopux*)
5956  symcode='[BCDEGRST]'
5957  ;;
5958osf*)
5959  symcode='[BCDEGQRST]'
5960  ;;
5961solaris*)
5962  symcode='[BDRT]'
5963  ;;
5964sco3.2v5*)
5965  symcode='[DT]'
5966  ;;
5967sysv4.2uw2*)
5968  symcode='[DT]'
5969  ;;
5970sysv5* | sco5v6* | unixware* | OpenUNIX*)
5971  symcode='[ABDT]'
5972  ;;
5973sysv4)
5974  symcode='[DFNSTU]'
5975  ;;
5976esac
5977
5978# If we're using GNU nm, then use its standard symbol codes.
5979case `$NM -V 2>&1` in
5980*GNU* | *'with BFD'*)
5981  symcode='[ABCDGIRSTW]' ;;
5982esac
5983
5984if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985  # Gets list of data symbols to import.
5986  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5987  # Adjust the below global symbol transforms to fixup imported variables.
5988  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5989  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5990  lt_c_name_lib_hook="\
5991  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5992  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5993else
5994  # Disable hooks by default.
5995  lt_cv_sys_global_symbol_to_import=
5996  lt_cdecl_hook=
5997  lt_c_name_hook=
5998  lt_c_name_lib_hook=
5999fi
6000
6001# Transform an extracted symbol line into a proper C declaration.
6002# Some systems (esp. on ia64) link data and code symbols differently,
6003# so use this general approach.
6004lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6005$lt_cdecl_hook\
6006" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6007" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6008
6009# Transform an extracted symbol line into symbol name and symbol address
6010lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6011$lt_c_name_hook\
6012" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6013" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6014
6015# Transform an extracted symbol line into symbol name with lib prefix and
6016# symbol address.
6017lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6018$lt_c_name_lib_hook\
6019" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6020" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6021" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6022
6023# Handle CRLF in mingw tool chain
6024opt_cr=
6025case $build_os in
6026mingw*)
6027  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6028  ;;
6029esac
6030
6031# Try without a prefix underscore, then with it.
6032for ac_symprfx in "" "_"; do
6033
6034  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6035  symxfrm="\\1 $ac_symprfx\\2 \\2"
6036
6037  # Write the raw and C identifiers.
6038  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6039    # Fake it for dumpbin and say T for any non-static function,
6040    # D for any global variable and I for any imported variable.
6041    # Also find C++ and __fastcall symbols from MSVC++,
6042    # which start with @ or ?.
6043    lt_cv_sys_global_symbol_pipe="$AWK '"\
6044"     {last_section=section; section=\$ 3};"\
6045"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6046"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6047"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6048"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6049"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6050"     \$ 0!~/External *\|/{next};"\
6051"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6052"     {if(hide[section]) next};"\
6053"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6054"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6055"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6056"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6057"     ' prfx=^$ac_symprfx"
6058  else
6059    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6060  fi
6061  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6062
6063  # Check to see that the pipe works correctly.
6064  pipe_works=no
6065
6066  rm -f conftest*
6067  cat > conftest.$ac_ext <<_LT_EOF
6068#ifdef __cplusplus
6069extern "C" {
6070#endif
6071char nm_test_var;
6072void nm_test_func(void);
6073void nm_test_func(void){}
6074#ifdef __cplusplus
6075}
6076#endif
6077int main(){nm_test_var='a';nm_test_func();return(0);}
6078_LT_EOF
6079
6080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6081  (eval $ac_compile) 2>&5
6082  ac_status=$?
6083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084  test $ac_status = 0; }; then
6085    # Now try to grab the symbols.
6086    nlist=conftest.nm
6087    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6088  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6089  ac_status=$?
6090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091  test $ac_status = 0; } && test -s "$nlist"; then
6092      # Try sorting and uniquifying the output.
6093      if sort "$nlist" | uniq > "$nlist"T; then
6094	mv -f "$nlist"T "$nlist"
6095      else
6096	rm -f "$nlist"T
6097      fi
6098
6099      # Make sure that we snagged all the symbols we need.
6100      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6101	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6102	  cat <<_LT_EOF > conftest.$ac_ext
6103/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6104#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6105/* DATA imports from DLLs on WIN32 can't be const, because runtime
6106   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6107# define LT_DLSYM_CONST
6108#elif defined __osf__
6109/* This system does not cope well with relocations in const data.  */
6110# define LT_DLSYM_CONST
6111#else
6112# define LT_DLSYM_CONST const
6113#endif
6114
6115#ifdef __cplusplus
6116extern "C" {
6117#endif
6118
6119_LT_EOF
6120	  # Now generate the symbol file.
6121	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6122
6123	  cat <<_LT_EOF >> conftest.$ac_ext
6124
6125/* The mapping between symbol names and symbols.  */
6126LT_DLSYM_CONST struct {
6127  const char *name;
6128  void       *address;
6129}
6130lt__PROGRAM__LTX_preloaded_symbols[] =
6131{
6132  { "@PROGRAM@", (void *) 0 },
6133_LT_EOF
6134	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6135	  cat <<\_LT_EOF >> conftest.$ac_ext
6136  {0, (void *) 0}
6137};
6138
6139/* This works around a problem in FreeBSD linker */
6140#ifdef FREEBSD_WORKAROUND
6141static const void *lt_preloaded_setup() {
6142  return lt__PROGRAM__LTX_preloaded_symbols;
6143}
6144#endif
6145
6146#ifdef __cplusplus
6147}
6148#endif
6149_LT_EOF
6150	  # Now try linking the two files.
6151	  mv conftest.$ac_objext conftstm.$ac_objext
6152	  lt_globsym_save_LIBS=$LIBS
6153	  lt_globsym_save_CFLAGS=$CFLAGS
6154	  LIBS=conftstm.$ac_objext
6155	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6156	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6157  (eval $ac_link) 2>&5
6158  ac_status=$?
6159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6161	    pipe_works=yes
6162	  fi
6163	  LIBS=$lt_globsym_save_LIBS
6164	  CFLAGS=$lt_globsym_save_CFLAGS
6165	else
6166	  echo "cannot find nm_test_func in $nlist" >&5
6167	fi
6168      else
6169	echo "cannot find nm_test_var in $nlist" >&5
6170      fi
6171    else
6172      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6173    fi
6174  else
6175    echo "$progname: failed program was:" >&5
6176    cat conftest.$ac_ext >&5
6177  fi
6178  rm -rf conftest* conftst*
6179
6180  # Do not use the global_symbol_pipe unless it works.
6181  if test yes = "$pipe_works"; then
6182    break
6183  else
6184    lt_cv_sys_global_symbol_pipe=
6185  fi
6186done
6187
6188fi
6189
6190if test -z "$lt_cv_sys_global_symbol_pipe"; then
6191  lt_cv_sys_global_symbol_to_cdecl=
6192fi
6193if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6195$as_echo "failed" >&6; }
6196else
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6198$as_echo "ok" >&6; }
6199fi
6200
6201# Response file support.
6202if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6203  nm_file_list_spec='@'
6204elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6205  nm_file_list_spec='@'
6206fi
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6245$as_echo_n "checking for sysroot... " >&6; }
6246
6247# Check whether --with-sysroot was given.
6248if test "${with_sysroot+set}" = set; then :
6249  withval=$with_sysroot;
6250else
6251  with_sysroot=no
6252fi
6253
6254
6255lt_sysroot=
6256case $with_sysroot in #(
6257 yes)
6258   if test yes = "$GCC"; then
6259     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6260   fi
6261   ;; #(
6262 /*)
6263   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6264   ;; #(
6265 no|'')
6266   ;; #(
6267 *)
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6269$as_echo "$with_sysroot" >&6; }
6270   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6271   ;;
6272esac
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6275$as_echo "${lt_sysroot:-no}" >&6; }
6276
6277
6278
6279
6280
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6282$as_echo_n "checking for a working dd... " >&6; }
6283if ${ac_cv_path_lt_DD+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  printf 0123456789abcdef0123456789abcdef >conftest.i
6287cat conftest.i conftest.i >conftest2.i
6288: ${lt_DD:=$DD}
6289if test -z "$lt_DD"; then
6290  ac_path_lt_DD_found=false
6291  # Loop through the user's path and test for each of PROGNAME-LIST
6292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295  IFS=$as_save_IFS
6296  test -z "$as_dir" && as_dir=.
6297    for ac_prog in dd; do
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6300      as_fn_executable_p "$ac_path_lt_DD" || continue
6301if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6302  cmp -s conftest.i conftest.out \
6303  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6304fi
6305      $ac_path_lt_DD_found && break 3
6306    done
6307  done
6308  done
6309IFS=$as_save_IFS
6310  if test -z "$ac_cv_path_lt_DD"; then
6311    :
6312  fi
6313else
6314  ac_cv_path_lt_DD=$lt_DD
6315fi
6316
6317rm -f conftest.i conftest2.i conftest.out
6318fi
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6320$as_echo "$ac_cv_path_lt_DD" >&6; }
6321
6322
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6324$as_echo_n "checking how to truncate binary pipes... " >&6; }
6325if ${lt_cv_truncate_bin+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  printf 0123456789abcdef0123456789abcdef >conftest.i
6329cat conftest.i conftest.i >conftest2.i
6330lt_cv_truncate_bin=
6331if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6332  cmp -s conftest.i conftest.out \
6333  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6334fi
6335rm -f conftest.i conftest2.i conftest.out
6336test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6339$as_echo "$lt_cv_truncate_bin" >&6; }
6340
6341
6342
6343
6344
6345
6346
6347# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6348func_cc_basename ()
6349{
6350    for cc_temp in $*""; do
6351      case $cc_temp in
6352        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6353        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6354        \-*) ;;
6355        *) break;;
6356      esac
6357    done
6358    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6359}
6360
6361# Check whether --enable-libtool-lock was given.
6362if test "${enable_libtool_lock+set}" = set; then :
6363  enableval=$enable_libtool_lock;
6364fi
6365
6366test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6367
6368# Some flags need to be propagated to the compiler or linker for good
6369# libtool support.
6370case $host in
6371ia64-*-hpux*)
6372  # Find out what ABI is being produced by ac_compile, and set mode
6373  # options accordingly.
6374  echo 'int i;' > conftest.$ac_ext
6375  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376  (eval $ac_compile) 2>&5
6377  ac_status=$?
6378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379  test $ac_status = 0; }; then
6380    case `/usr/bin/file conftest.$ac_objext` in
6381      *ELF-32*)
6382	HPUX_IA64_MODE=32
6383	;;
6384      *ELF-64*)
6385	HPUX_IA64_MODE=64
6386	;;
6387    esac
6388  fi
6389  rm -rf conftest*
6390  ;;
6391*-*-irix6*)
6392  # Find out what ABI is being produced by ac_compile, and set linker
6393  # options accordingly.
6394  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396  (eval $ac_compile) 2>&5
6397  ac_status=$?
6398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399  test $ac_status = 0; }; then
6400    if test yes = "$lt_cv_prog_gnu_ld"; then
6401      case `/usr/bin/file conftest.$ac_objext` in
6402	*32-bit*)
6403	  LD="${LD-ld} -melf32bsmip"
6404	  ;;
6405	*N32*)
6406	  LD="${LD-ld} -melf32bmipn32"
6407	  ;;
6408	*64-bit*)
6409	  LD="${LD-ld} -melf64bmip"
6410	;;
6411      esac
6412    else
6413      case `/usr/bin/file conftest.$ac_objext` in
6414	*32-bit*)
6415	  LD="${LD-ld} -32"
6416	  ;;
6417	*N32*)
6418	  LD="${LD-ld} -n32"
6419	  ;;
6420	*64-bit*)
6421	  LD="${LD-ld} -64"
6422	  ;;
6423      esac
6424    fi
6425  fi
6426  rm -rf conftest*
6427  ;;
6428
6429mips64*-*linux*)
6430  # Find out what ABI is being produced by ac_compile, and set linker
6431  # options accordingly.
6432  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6434  (eval $ac_compile) 2>&5
6435  ac_status=$?
6436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437  test $ac_status = 0; }; then
6438    emul=elf
6439    case `/usr/bin/file conftest.$ac_objext` in
6440      *32-bit*)
6441	emul="${emul}32"
6442	;;
6443      *64-bit*)
6444	emul="${emul}64"
6445	;;
6446    esac
6447    case `/usr/bin/file conftest.$ac_objext` in
6448      *MSB*)
6449	emul="${emul}btsmip"
6450	;;
6451      *LSB*)
6452	emul="${emul}ltsmip"
6453	;;
6454    esac
6455    case `/usr/bin/file conftest.$ac_objext` in
6456      *N32*)
6457	emul="${emul}n32"
6458	;;
6459    esac
6460    LD="${LD-ld} -m $emul"
6461  fi
6462  rm -rf conftest*
6463  ;;
6464
6465x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6466s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6467  # Find out what ABI is being produced by ac_compile, and set linker
6468  # options accordingly.  Note that the listed cases only cover the
6469  # situations where additional linker options are needed (such as when
6470  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6471  # vice versa); the common cases where no linker options are needed do
6472  # not appear in the list.
6473  echo 'int i;' > conftest.$ac_ext
6474  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475  (eval $ac_compile) 2>&5
6476  ac_status=$?
6477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478  test $ac_status = 0; }; then
6479    case `/usr/bin/file conftest.o` in
6480      *32-bit*)
6481	case $host in
6482	  x86_64-*kfreebsd*-gnu)
6483	    LD="${LD-ld} -m elf_i386_fbsd"
6484	    ;;
6485	  x86_64-*linux*)
6486	    case `/usr/bin/file conftest.o` in
6487	      *x86-64*)
6488		LD="${LD-ld} -m elf32_x86_64"
6489		;;
6490	      *)
6491		LD="${LD-ld} -m elf_i386"
6492		;;
6493	    esac
6494	    ;;
6495	  powerpc64le-*linux*)
6496	    LD="${LD-ld} -m elf32lppclinux"
6497	    ;;
6498	  powerpc64-*linux*)
6499	    LD="${LD-ld} -m elf32ppclinux"
6500	    ;;
6501	  s390x-*linux*)
6502	    LD="${LD-ld} -m elf_s390"
6503	    ;;
6504	  sparc64-*linux*)
6505	    LD="${LD-ld} -m elf32_sparc"
6506	    ;;
6507	esac
6508	;;
6509      *64-bit*)
6510	case $host in
6511	  x86_64-*kfreebsd*-gnu)
6512	    LD="${LD-ld} -m elf_x86_64_fbsd"
6513	    ;;
6514	  x86_64-*linux*)
6515	    LD="${LD-ld} -m elf_x86_64"
6516	    ;;
6517	  powerpcle-*linux*)
6518	    LD="${LD-ld} -m elf64lppc"
6519	    ;;
6520	  powerpc-*linux*)
6521	    LD="${LD-ld} -m elf64ppc"
6522	    ;;
6523	  s390*-*linux*|s390*-*tpf*)
6524	    LD="${LD-ld} -m elf64_s390"
6525	    ;;
6526	  sparc*-*linux*)
6527	    LD="${LD-ld} -m elf64_sparc"
6528	    ;;
6529	esac
6530	;;
6531    esac
6532  fi
6533  rm -rf conftest*
6534  ;;
6535
6536*-*-sco3.2v5*)
6537  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6538  SAVE_CFLAGS=$CFLAGS
6539  CFLAGS="$CFLAGS -belf"
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6541$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6542if ${lt_cv_cc_needs_belf+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  ac_ext=c
6546ac_cpp='$CPP $CPPFLAGS'
6547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550
6551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553
6554int
6555main ()
6556{
6557
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  lt_cv_cc_needs_belf=yes
6564else
6565  lt_cv_cc_needs_belf=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext \
6568    conftest$ac_exeext conftest.$ac_ext
6569     ac_ext=c
6570ac_cpp='$CPP $CPPFLAGS'
6571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
6575fi
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6577$as_echo "$lt_cv_cc_needs_belf" >&6; }
6578  if test yes != "$lt_cv_cc_needs_belf"; then
6579    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6580    CFLAGS=$SAVE_CFLAGS
6581  fi
6582  ;;
6583*-*solaris*)
6584  # Find out what ABI is being produced by ac_compile, and set linker
6585  # options accordingly.
6586  echo 'int i;' > conftest.$ac_ext
6587  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588  (eval $ac_compile) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591  test $ac_status = 0; }; then
6592    case `/usr/bin/file conftest.o` in
6593    *64-bit*)
6594      case $lt_cv_prog_gnu_ld in
6595      yes*)
6596        case $host in
6597        i?86-*-solaris*|x86_64-*-solaris*)
6598          LD="${LD-ld} -m elf_x86_64"
6599          ;;
6600        sparc*-*-solaris*)
6601          LD="${LD-ld} -m elf64_sparc"
6602          ;;
6603        esac
6604        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6605        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6606          LD=${LD-ld}_sol2
6607        fi
6608        ;;
6609      *)
6610	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6611	  LD="${LD-ld} -64"
6612	fi
6613	;;
6614      esac
6615      ;;
6616    esac
6617  fi
6618  rm -rf conftest*
6619  ;;
6620esac
6621
6622need_locks=$enable_libtool_lock
6623
6624if test -n "$ac_tool_prefix"; then
6625  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}mt; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  if test -n "$MANIFEST_TOOL"; then
6633  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638  IFS=$as_save_IFS
6639  test -z "$as_dir" && as_dir=.
6640    for ac_exec_ext in '' $ac_executable_extensions; do
6641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644    break 2
6645  fi
6646done
6647  done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6653if test -n "$MANIFEST_TOOL"; then
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6655$as_echo "$MANIFEST_TOOL" >&6; }
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6664  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6665  # Extract the first word of "mt", so it can be a program name with args.
6666set dummy mt; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  if test -n "$ac_ct_MANIFEST_TOOL"; then
6673  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678  IFS=$as_save_IFS
6679  test -z "$as_dir" && as_dir=.
6680    for ac_exec_ext in '' $ac_executable_extensions; do
6681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687  done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6693if test -n "$ac_ct_MANIFEST_TOOL"; then
6694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6695$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6696else
6697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
6699fi
6700
6701  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6702    MANIFEST_TOOL=":"
6703  else
6704    case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6711  fi
6712else
6713  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6714fi
6715
6716test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6718$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6719if ${lt_cv_path_mainfest_tool+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  lt_cv_path_mainfest_tool=no
6723  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6724  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6725  cat conftest.err >&5
6726  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6727    lt_cv_path_mainfest_tool=yes
6728  fi
6729  rm -f conftest*
6730fi
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6732$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6733if test yes != "$lt_cv_path_mainfest_tool"; then
6734  MANIFEST_TOOL=:
6735fi
6736
6737
6738
6739
6740
6741
6742  case $host_os in
6743    rhapsody* | darwin*)
6744    if test -n "$ac_tool_prefix"; then
6745  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if ${ac_cv_prog_DSYMUTIL+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  if test -n "$DSYMUTIL"; then
6753  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760    for ac_exec_ext in '' $ac_executable_extensions; do
6761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767  done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772DSYMUTIL=$ac_cv_prog_DSYMUTIL
6773if test -n "$DSYMUTIL"; then
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6775$as_echo "$DSYMUTIL" >&6; }
6776else
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781
6782fi
6783if test -z "$ac_cv_prog_DSYMUTIL"; then
6784  ac_ct_DSYMUTIL=$DSYMUTIL
6785  # Extract the first word of "dsymutil", so it can be a program name with args.
6786set dummy dsymutil; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  if test -n "$ac_ct_DSYMUTIL"; then
6793  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798  IFS=$as_save_IFS
6799  test -z "$as_dir" && as_dir=.
6800    for ac_exec_ext in '' $ac_executable_extensions; do
6801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804    break 2
6805  fi
6806done
6807  done
6808IFS=$as_save_IFS
6809
6810fi
6811fi
6812ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6813if test -n "$ac_ct_DSYMUTIL"; then
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6815$as_echo "$ac_ct_DSYMUTIL" >&6; }
6816else
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
6819fi
6820
6821  if test "x$ac_ct_DSYMUTIL" = x; then
6822    DSYMUTIL=":"
6823  else
6824    case $cross_compiling:$ac_tool_warned in
6825yes:)
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828ac_tool_warned=yes ;;
6829esac
6830    DSYMUTIL=$ac_ct_DSYMUTIL
6831  fi
6832else
6833  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6834fi
6835
6836    if test -n "$ac_tool_prefix"; then
6837  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6838set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if ${ac_cv_prog_NMEDIT+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  if test -n "$NMEDIT"; then
6845  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852    for ac_exec_ext in '' $ac_executable_extensions; do
6853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859  done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864NMEDIT=$ac_cv_prog_NMEDIT
6865if test -n "$NMEDIT"; then
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6867$as_echo "$NMEDIT" >&6; }
6868else
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873
6874fi
6875if test -z "$ac_cv_prog_NMEDIT"; then
6876  ac_ct_NMEDIT=$NMEDIT
6877  # Extract the first word of "nmedit", so it can be a program name with args.
6878set dummy nmedit; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884  if test -n "$ac_ct_NMEDIT"; then
6885  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  test -z "$as_dir" && as_dir=.
6892    for ac_exec_ext in '' $ac_executable_extensions; do
6893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899  done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6905if test -n "$ac_ct_NMEDIT"; then
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6907$as_echo "$ac_ct_NMEDIT" >&6; }
6908else
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913  if test "x$ac_ct_NMEDIT" = x; then
6914    NMEDIT=":"
6915  else
6916    case $cross_compiling:$ac_tool_warned in
6917yes:)
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920ac_tool_warned=yes ;;
6921esac
6922    NMEDIT=$ac_ct_NMEDIT
6923  fi
6924else
6925  NMEDIT="$ac_cv_prog_NMEDIT"
6926fi
6927
6928    if test -n "$ac_tool_prefix"; then
6929  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6930set dummy ${ac_tool_prefix}lipo; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if ${ac_cv_prog_LIPO+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  if test -n "$LIPO"; then
6937  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944    for ac_exec_ext in '' $ac_executable_extensions; do
6945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951  done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956LIPO=$ac_cv_prog_LIPO
6957if test -n "$LIPO"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6959$as_echo "$LIPO" >&6; }
6960else
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965
6966fi
6967if test -z "$ac_cv_prog_LIPO"; then
6968  ac_ct_LIPO=$LIPO
6969  # Extract the first word of "lipo", so it can be a program name with args.
6970set dummy lipo; ac_word=$2
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
6973if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  if test -n "$ac_ct_LIPO"; then
6977  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982  IFS=$as_save_IFS
6983  test -z "$as_dir" && as_dir=.
6984    for ac_exec_ext in '' $ac_executable_extensions; do
6985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986    ac_cv_prog_ac_ct_LIPO="lipo"
6987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988    break 2
6989  fi
6990done
6991  done
6992IFS=$as_save_IFS
6993
6994fi
6995fi
6996ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6997if test -n "$ac_ct_LIPO"; then
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6999$as_echo "$ac_ct_LIPO" >&6; }
7000else
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
7003fi
7004
7005  if test "x$ac_ct_LIPO" = x; then
7006    LIPO=":"
7007  else
7008    case $cross_compiling:$ac_tool_warned in
7009yes:)
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012ac_tool_warned=yes ;;
7013esac
7014    LIPO=$ac_ct_LIPO
7015  fi
7016else
7017  LIPO="$ac_cv_prog_LIPO"
7018fi
7019
7020    if test -n "$ac_tool_prefix"; then
7021  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}otool; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_OTOOL+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$OTOOL"; then
7029  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048OTOOL=$ac_cv_prog_OTOOL
7049if test -n "$OTOOL"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7051$as_echo "$OTOOL" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_OTOOL"; then
7060  ac_ct_OTOOL=$OTOOL
7061  # Extract the first word of "otool", so it can be a program name with args.
7062set dummy otool; ac_word=$2
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  if test -n "$ac_ct_OTOOL"; then
7069  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076    for ac_exec_ext in '' $ac_executable_extensions; do
7077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078    ac_cv_prog_ac_ct_OTOOL="otool"
7079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083  done
7084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7089if test -n "$ac_ct_OTOOL"; then
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7091$as_echo "$ac_ct_OTOOL" >&6; }
7092else
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
7095fi
7096
7097  if test "x$ac_ct_OTOOL" = x; then
7098    OTOOL=":"
7099  else
7100    case $cross_compiling:$ac_tool_warned in
7101yes:)
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104ac_tool_warned=yes ;;
7105esac
7106    OTOOL=$ac_ct_OTOOL
7107  fi
7108else
7109  OTOOL="$ac_cv_prog_OTOOL"
7110fi
7111
7112    if test -n "$ac_tool_prefix"; then
7113  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7114set dummy ${ac_tool_prefix}otool64; ac_word=$2
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if ${ac_cv_prog_OTOOL64+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  if test -n "$OTOOL64"; then
7121  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135  done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140OTOOL64=$ac_cv_prog_OTOOL64
7141if test -n "$OTOOL64"; then
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7143$as_echo "$OTOOL64" >&6; }
7144else
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149
7150fi
7151if test -z "$ac_cv_prog_OTOOL64"; then
7152  ac_ct_OTOOL64=$OTOOL64
7153  # Extract the first word of "otool64", so it can be a program name with args.
7154set dummy otool64; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$ac_ct_OTOOL64"; then
7161  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_ac_ct_OTOOL64="otool64"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7181if test -n "$ac_ct_OTOOL64"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7183$as_echo "$ac_ct_OTOOL64" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189  if test "x$ac_ct_OTOOL64" = x; then
7190    OTOOL64=":"
7191  else
7192    case $cross_compiling:$ac_tool_warned in
7193yes:)
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196ac_tool_warned=yes ;;
7197esac
7198    OTOOL64=$ac_ct_OTOOL64
7199  fi
7200else
7201  OTOOL64="$ac_cv_prog_OTOOL64"
7202fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7231$as_echo_n "checking for -single_module linker flag... " >&6; }
7232if ${lt_cv_apple_cc_single_mod+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  lt_cv_apple_cc_single_mod=no
7236      if test -z "$LT_MULTI_MODULE"; then
7237	# By default we will add the -single_module flag. You can override
7238	# by either setting the environment variable LT_MULTI_MODULE
7239	# non-empty at configure time, or by adding -multi_module to the
7240	# link flags.
7241	rm -rf libconftest.dylib*
7242	echo "int foo(void){return 1;}" > conftest.c
7243	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7244-dynamiclib -Wl,-single_module conftest.c" >&5
7245	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7246	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7247        _lt_result=$?
7248	# If there is a non-empty error log, and "single_module"
7249	# appears in it, assume the flag caused a linker warning
7250        if test -s conftest.err && $GREP single_module conftest.err; then
7251	  cat conftest.err >&5
7252	# Otherwise, if the output was created with a 0 exit code from
7253	# the compiler, it worked.
7254	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7255	  lt_cv_apple_cc_single_mod=yes
7256	else
7257	  cat conftest.err >&5
7258	fi
7259	rm -rf libconftest.dylib*
7260	rm -f conftest.*
7261      fi
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7264$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7265
7266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7267$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7268if ${lt_cv_ld_exported_symbols_list+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  lt_cv_ld_exported_symbols_list=no
7272      save_LDFLAGS=$LDFLAGS
7273      echo "_main" > conftest.sym
7274      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277
7278int
7279main ()
7280{
7281
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287  lt_cv_ld_exported_symbols_list=yes
7288else
7289  lt_cv_ld_exported_symbols_list=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293	LDFLAGS=$save_LDFLAGS
7294
7295fi
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7297$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7298
7299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7300$as_echo_n "checking for -force_load linker flag... " >&6; }
7301if ${lt_cv_ld_force_load+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  lt_cv_ld_force_load=no
7305      cat > conftest.c << _LT_EOF
7306int forced_loaded() { return 2;}
7307_LT_EOF
7308      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7309      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7310      echo "$AR cru libconftest.a conftest.o" >&5
7311      $AR cru libconftest.a conftest.o 2>&5
7312      echo "$RANLIB libconftest.a" >&5
7313      $RANLIB libconftest.a 2>&5
7314      cat > conftest.c << _LT_EOF
7315int main() { return 0;}
7316_LT_EOF
7317      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7318      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7319      _lt_result=$?
7320      if test -s conftest.err && $GREP force_load conftest.err; then
7321	cat conftest.err >&5
7322      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7323	lt_cv_ld_force_load=yes
7324      else
7325	cat conftest.err >&5
7326      fi
7327        rm -f conftest.err libconftest.a conftest conftest.c
7328        rm -rf conftest.dSYM
7329
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7332$as_echo "$lt_cv_ld_force_load" >&6; }
7333    case $host_os in
7334    rhapsody* | darwin1.[012])
7335      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7336    darwin1.*)
7337      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7338    darwin*) # darwin 5.x on
7339      # if running on 10.5 or later, the deployment target defaults
7340      # to the OS version, if on x86, and 10.4, the deployment
7341      # target defaults to 10.4. Don't you love it?
7342      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7343	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7344	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7345	10.[012][,.]*)
7346	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7347	10.*)
7348	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7349      esac
7350    ;;
7351  esac
7352    if test yes = "$lt_cv_apple_cc_single_mod"; then
7353      _lt_dar_single_mod='$single_module'
7354    fi
7355    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7356      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7357    else
7358      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7359    fi
7360    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7361      _lt_dsymutil='~$DSYMUTIL $lib || :'
7362    else
7363      _lt_dsymutil=
7364    fi
7365    ;;
7366  esac
7367
7368# func_munge_path_list VARIABLE PATH
7369# -----------------------------------
7370# VARIABLE is name of variable containing _space_ separated list of
7371# directories to be munged by the contents of PATH, which is string
7372# having a format:
7373# "DIR[:DIR]:"
7374#       string "DIR[ DIR]" will be prepended to VARIABLE
7375# ":DIR[:DIR]"
7376#       string "DIR[ DIR]" will be appended to VARIABLE
7377# "DIRP[:DIRP]::[DIRA:]DIRA"
7378#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7379#       "DIRA[ DIRA]" will be appended to VARIABLE
7380# "DIR[:DIR]"
7381#       VARIABLE will be replaced by "DIR[ DIR]"
7382func_munge_path_list ()
7383{
7384    case x$2 in
7385    x)
7386        ;;
7387    *:)
7388        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7389        ;;
7390    x:*)
7391        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7392        ;;
7393    *::*)
7394        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7395        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7396        ;;
7397    *)
7398        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7399        ;;
7400    esac
7401}
7402
7403ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7409$as_echo_n "checking how to run the C preprocessor... " >&6; }
7410# On Suns, sometimes $CPP names a directory.
7411if test -n "$CPP" && test -d "$CPP"; then
7412  CPP=
7413fi
7414if test -z "$CPP"; then
7415  if ${ac_cv_prog_CPP+:} false; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418      # Double quotes because CPP needs to be expanded
7419    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7420    do
7421      ac_preproc_ok=false
7422for ac_c_preproc_warn_flag in '' yes
7423do
7424  # Use a header file that comes with gcc, so configuring glibc
7425  # with a fresh cross-compiler works.
7426  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7427  # <limits.h> exists even on freestanding compilers.
7428  # On the NeXT, cc -E runs the code through the compiler's parser,
7429  # not just through cpp. "Syntax error" is here to catch this case.
7430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h.  */
7432#ifdef __STDC__
7433# include <limits.h>
7434#else
7435# include <assert.h>
7436#endif
7437		     Syntax error
7438_ACEOF
7439if ac_fn_c_try_cpp "$LINENO"; then :
7440
7441else
7442  # Broken: fails on valid input.
7443continue
7444fi
7445rm -f conftest.err conftest.i conftest.$ac_ext
7446
7447  # OK, works on sane cases.  Now check whether nonexistent headers
7448  # can be detected and how.
7449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451#include <ac_nonexistent.h>
7452_ACEOF
7453if ac_fn_c_try_cpp "$LINENO"; then :
7454  # Broken: success on invalid input.
7455continue
7456else
7457  # Passes both tests.
7458ac_preproc_ok=:
7459break
7460fi
7461rm -f conftest.err conftest.i conftest.$ac_ext
7462
7463done
7464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7465rm -f conftest.i conftest.err conftest.$ac_ext
7466if $ac_preproc_ok; then :
7467  break
7468fi
7469
7470    done
7471    ac_cv_prog_CPP=$CPP
7472
7473fi
7474  CPP=$ac_cv_prog_CPP
7475else
7476  ac_cv_prog_CPP=$CPP
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7479$as_echo "$CPP" >&6; }
7480ac_preproc_ok=false
7481for ac_c_preproc_warn_flag in '' yes
7482do
7483  # Use a header file that comes with gcc, so configuring glibc
7484  # with a fresh cross-compiler works.
7485  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7486  # <limits.h> exists even on freestanding compilers.
7487  # On the NeXT, cc -E runs the code through the compiler's parser,
7488  # not just through cpp. "Syntax error" is here to catch this case.
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491#ifdef __STDC__
7492# include <limits.h>
7493#else
7494# include <assert.h>
7495#endif
7496		     Syntax error
7497_ACEOF
7498if ac_fn_c_try_cpp "$LINENO"; then :
7499
7500else
7501  # Broken: fails on valid input.
7502continue
7503fi
7504rm -f conftest.err conftest.i conftest.$ac_ext
7505
7506  # OK, works on sane cases.  Now check whether nonexistent headers
7507  # can be detected and how.
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510#include <ac_nonexistent.h>
7511_ACEOF
7512if ac_fn_c_try_cpp "$LINENO"; then :
7513  # Broken: success on invalid input.
7514continue
7515else
7516  # Passes both tests.
7517ac_preproc_ok=:
7518break
7519fi
7520rm -f conftest.err conftest.i conftest.$ac_ext
7521
7522done
7523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7524rm -f conftest.i conftest.err conftest.$ac_ext
7525if $ac_preproc_ok; then :
7526
7527else
7528  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7530as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7531See \`config.log' for more details" "$LINENO" 5; }
7532fi
7533
7534ac_ext=c
7535ac_cpp='$CPP $CPPFLAGS'
7536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539
7540
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7542$as_echo_n "checking for ANSI C header files... " >&6; }
7543if ${ac_cv_header_stdc+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548#include <stdlib.h>
7549#include <stdarg.h>
7550#include <string.h>
7551#include <float.h>
7552
7553int
7554main ()
7555{
7556
7557  ;
7558  return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_compile "$LINENO"; then :
7562  ac_cv_header_stdc=yes
7563else
7564  ac_cv_header_stdc=no
7565fi
7566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567
7568if test $ac_cv_header_stdc = yes; then
7569  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572#include <string.h>
7573
7574_ACEOF
7575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576  $EGREP "memchr" >/dev/null 2>&1; then :
7577
7578else
7579  ac_cv_header_stdc=no
7580fi
7581rm -f conftest*
7582
7583fi
7584
7585if test $ac_cv_header_stdc = yes; then
7586  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h.  */
7589#include <stdlib.h>
7590
7591_ACEOF
7592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7593  $EGREP "free" >/dev/null 2>&1; then :
7594
7595else
7596  ac_cv_header_stdc=no
7597fi
7598rm -f conftest*
7599
7600fi
7601
7602if test $ac_cv_header_stdc = yes; then
7603  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7604  if test "$cross_compiling" = yes; then :
7605  :
7606else
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609#include <ctype.h>
7610#include <stdlib.h>
7611#if ((' ' & 0x0FF) == 0x020)
7612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7614#else
7615# define ISLOWER(c) \
7616		   (('a' <= (c) && (c) <= 'i') \
7617		     || ('j' <= (c) && (c) <= 'r') \
7618		     || ('s' <= (c) && (c) <= 'z'))
7619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7620#endif
7621
7622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623int
7624main ()
7625{
7626  int i;
7627  for (i = 0; i < 256; i++)
7628    if (XOR (islower (i), ISLOWER (i))
7629	|| toupper (i) != TOUPPER (i))
7630      return 2;
7631  return 0;
7632}
7633_ACEOF
7634if ac_fn_c_try_run "$LINENO"; then :
7635
7636else
7637  ac_cv_header_stdc=no
7638fi
7639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7640  conftest.$ac_objext conftest.beam conftest.$ac_ext
7641fi
7642
7643fi
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7646$as_echo "$ac_cv_header_stdc" >&6; }
7647if test $ac_cv_header_stdc = yes; then
7648
7649$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7650
7651fi
7652
7653# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7654for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7655		  inttypes.h stdint.h unistd.h
7656do :
7657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7658ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7659"
7660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7661  cat >>confdefs.h <<_ACEOF
7662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663_ACEOF
7664
7665fi
7666
7667done
7668
7669
7670for ac_header in dlfcn.h
7671do :
7672  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7673"
7674if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7675  cat >>confdefs.h <<_ACEOF
7676#define HAVE_DLFCN_H 1
7677_ACEOF
7678
7679fi
7680
7681done
7682
7683
7684
7685
7686
7687# Set options
7688
7689
7690
7691        enable_dlopen=no
7692
7693
7694  enable_win32_dll=no
7695
7696
7697            # Check whether --enable-shared was given.
7698if test "${enable_shared+set}" = set; then :
7699  enableval=$enable_shared; p=${PACKAGE-default}
7700    case $enableval in
7701    yes) enable_shared=yes ;;
7702    no) enable_shared=no ;;
7703    *)
7704      enable_shared=no
7705      # Look at the argument we got.  We use all the common list separators.
7706      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7707      for pkg in $enableval; do
7708	IFS=$lt_save_ifs
7709	if test "X$pkg" = "X$p"; then
7710	  enable_shared=yes
7711	fi
7712      done
7713      IFS=$lt_save_ifs
7714      ;;
7715    esac
7716else
7717  enable_shared=yes
7718fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730# Check whether --with-pic was given.
7731if test "${with_pic+set}" = set; then :
7732  withval=$with_pic; lt_p=${PACKAGE-default}
7733    case $withval in
7734    yes|no) pic_mode=$withval ;;
7735    *)
7736      pic_mode=default
7737      # Look at the argument we got.  We use all the common list separators.
7738      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7739      for lt_pkg in $withval; do
7740	IFS=$lt_save_ifs
7741	if test "X$lt_pkg" = "X$lt_p"; then
7742	  pic_mode=yes
7743	fi
7744      done
7745      IFS=$lt_save_ifs
7746      ;;
7747    esac
7748else
7749  pic_mode=default
7750fi
7751
7752
7753
7754
7755
7756
7757
7758
7759  # Check whether --enable-fast-install was given.
7760if test "${enable_fast_install+set}" = set; then :
7761  enableval=$enable_fast_install; p=${PACKAGE-default}
7762    case $enableval in
7763    yes) enable_fast_install=yes ;;
7764    no) enable_fast_install=no ;;
7765    *)
7766      enable_fast_install=no
7767      # Look at the argument we got.  We use all the common list separators.
7768      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7769      for pkg in $enableval; do
7770	IFS=$lt_save_ifs
7771	if test "X$pkg" = "X$p"; then
7772	  enable_fast_install=yes
7773	fi
7774      done
7775      IFS=$lt_save_ifs
7776      ;;
7777    esac
7778else
7779  enable_fast_install=yes
7780fi
7781
7782
7783
7784
7785
7786
7787
7788
7789  shared_archive_member_spec=
7790case $host,$enable_shared in
7791power*-*-aix[5-9]*,yes)
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7793$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7794
7795# Check whether --with-aix-soname was given.
7796if test "${with_aix_soname+set}" = set; then :
7797  withval=$with_aix_soname; case $withval in
7798    aix|svr4|both)
7799      ;;
7800    *)
7801      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7802      ;;
7803    esac
7804    lt_cv_with_aix_soname=$with_aix_soname
7805else
7806  if ${lt_cv_with_aix_soname+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  lt_cv_with_aix_soname=aix
7810fi
7811
7812    with_aix_soname=$lt_cv_with_aix_soname
7813fi
7814
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7816$as_echo "$with_aix_soname" >&6; }
7817  if test aix != "$with_aix_soname"; then
7818    # For the AIX way of multilib, we name the shared archive member
7819    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7820    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7821    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7822    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7823    if test 64 = "${OBJECT_MODE-32}"; then
7824      shared_archive_member_spec=shr_64
7825    else
7826      shared_archive_member_spec=shr
7827    fi
7828  fi
7829  ;;
7830*)
7831  with_aix_soname=aix
7832  ;;
7833esac
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844# This can be used to rebuild libtool when needed
7845LIBTOOL_DEPS=$ltmain
7846
7847# Always use our own libtool.
7848LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879test -z "$LN_S" && LN_S="ln -s"
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894if test -n "${ZSH_VERSION+set}"; then
7895   setopt NO_GLOB_SUBST
7896fi
7897
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7899$as_echo_n "checking for objdir... " >&6; }
7900if ${lt_cv_objdir+:} false; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  rm -f .libs 2>/dev/null
7904mkdir .libs 2>/dev/null
7905if test -d .libs; then
7906  lt_cv_objdir=.libs
7907else
7908  # MS-DOS does not allow filenames that begin with a dot.
7909  lt_cv_objdir=_libs
7910fi
7911rmdir .libs 2>/dev/null
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7914$as_echo "$lt_cv_objdir" >&6; }
7915objdir=$lt_cv_objdir
7916
7917
7918
7919
7920
7921cat >>confdefs.h <<_ACEOF
7922#define LT_OBJDIR "$lt_cv_objdir/"
7923_ACEOF
7924
7925
7926
7927
7928case $host_os in
7929aix3*)
7930  # AIX sometimes has problems with the GCC collect2 program.  For some
7931  # reason, if we set the COLLECT_NAMES environment variable, the problems
7932  # vanish in a puff of smoke.
7933  if test set != "${COLLECT_NAMES+set}"; then
7934    COLLECT_NAMES=
7935    export COLLECT_NAMES
7936  fi
7937  ;;
7938esac
7939
7940# Global variables:
7941ofile=libtool
7942can_build_shared=yes
7943
7944# All known linkers require a '.a' archive for static linking (except MSVC,
7945# which needs '.lib').
7946libext=a
7947
7948with_gnu_ld=$lt_cv_prog_gnu_ld
7949
7950old_CC=$CC
7951old_CFLAGS=$CFLAGS
7952
7953# Set sane defaults for various variables
7954test -z "$CC" && CC=cc
7955test -z "$LTCC" && LTCC=$CC
7956test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7957test -z "$LD" && LD=ld
7958test -z "$ac_objext" && ac_objext=o
7959
7960func_cc_basename $compiler
7961cc_basename=$func_cc_basename_result
7962
7963
7964# Only perform the check for file, if the check method requires it
7965test -z "$MAGIC_CMD" && MAGIC_CMD=file
7966case $deplibs_check_method in
7967file_magic*)
7968  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7970$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7971if ${lt_cv_path_MAGIC_CMD+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  case $MAGIC_CMD in
7975[\\/*] |  ?:[\\/]*)
7976  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7977  ;;
7978*)
7979  lt_save_MAGIC_CMD=$MAGIC_CMD
7980  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7981  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982  for ac_dir in $ac_dummy; do
7983    IFS=$lt_save_ifs
7984    test -z "$ac_dir" && ac_dir=.
7985    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7986      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7987      if test -n "$file_magic_test_file"; then
7988	case $deplibs_check_method in
7989	"file_magic "*)
7990	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7992	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993	    $EGREP "$file_magic_regex" > /dev/null; then
7994	    :
7995	  else
7996	    cat <<_LT_EOF 1>&2
7997
7998*** Warning: the command libtool uses to detect shared libraries,
7999*** $file_magic_cmd, produces output that libtool cannot recognize.
8000*** The result is that libtool may fail to recognize shared libraries
8001*** as such.  This will affect the creation of libtool libraries that
8002*** depend on shared libraries, but programs linked with such libtool
8003*** libraries will work regardless of this problem.  Nevertheless, you
8004*** may want to report the problem to your system manager and/or to
8005*** bug-libtool@gnu.org
8006
8007_LT_EOF
8008	  fi ;;
8009	esac
8010      fi
8011      break
8012    fi
8013  done
8014  IFS=$lt_save_ifs
8015  MAGIC_CMD=$lt_save_MAGIC_CMD
8016  ;;
8017esac
8018fi
8019
8020MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8021if test -n "$MAGIC_CMD"; then
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023$as_echo "$MAGIC_CMD" >&6; }
8024else
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030
8031
8032
8033if test -z "$lt_cv_path_MAGIC_CMD"; then
8034  if test -n "$ac_tool_prefix"; then
8035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8036$as_echo_n "checking for file... " >&6; }
8037if ${lt_cv_path_MAGIC_CMD+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  case $MAGIC_CMD in
8041[\\/*] |  ?:[\\/]*)
8042  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8043  ;;
8044*)
8045  lt_save_MAGIC_CMD=$MAGIC_CMD
8046  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8047  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8048  for ac_dir in $ac_dummy; do
8049    IFS=$lt_save_ifs
8050    test -z "$ac_dir" && ac_dir=.
8051    if test -f "$ac_dir/file"; then
8052      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8053      if test -n "$file_magic_test_file"; then
8054	case $deplibs_check_method in
8055	"file_magic "*)
8056	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8057	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8058	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8059	    $EGREP "$file_magic_regex" > /dev/null; then
8060	    :
8061	  else
8062	    cat <<_LT_EOF 1>&2
8063
8064*** Warning: the command libtool uses to detect shared libraries,
8065*** $file_magic_cmd, produces output that libtool cannot recognize.
8066*** The result is that libtool may fail to recognize shared libraries
8067*** as such.  This will affect the creation of libtool libraries that
8068*** depend on shared libraries, but programs linked with such libtool
8069*** libraries will work regardless of this problem.  Nevertheless, you
8070*** may want to report the problem to your system manager and/or to
8071*** bug-libtool@gnu.org
8072
8073_LT_EOF
8074	  fi ;;
8075	esac
8076      fi
8077      break
8078    fi
8079  done
8080  IFS=$lt_save_ifs
8081  MAGIC_CMD=$lt_save_MAGIC_CMD
8082  ;;
8083esac
8084fi
8085
8086MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8087if test -n "$MAGIC_CMD"; then
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8089$as_echo "$MAGIC_CMD" >&6; }
8090else
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
8093fi
8094
8095
8096  else
8097    MAGIC_CMD=:
8098  fi
8099fi
8100
8101  fi
8102  ;;
8103esac
8104
8105# Use C for the default configuration in the libtool script
8106
8107lt_save_CC=$CC
8108ac_ext=c
8109ac_cpp='$CPP $CPPFLAGS'
8110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113
8114
8115# Source file extension for C test sources.
8116ac_ext=c
8117
8118# Object file extension for compiled C test sources.
8119objext=o
8120objext=$objext
8121
8122# Code to be used in simple compile tests
8123lt_simple_compile_test_code="int some_variable = 0;"
8124
8125# Code to be used in simple link tests
8126lt_simple_link_test_code='int main(){return(0);}'
8127
8128
8129
8130
8131
8132
8133
8134# If no C compiler was specified, use CC.
8135LTCC=${LTCC-"$CC"}
8136
8137# If no C compiler flags were specified, use CFLAGS.
8138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8139
8140# Allow CC to be a program name with arguments.
8141compiler=$CC
8142
8143# Save the default compiler, since it gets overwritten when the other
8144# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8145compiler_DEFAULT=$CC
8146
8147# save warnings/boilerplate of simple test code
8148ac_outfile=conftest.$ac_objext
8149echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8150eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8151_lt_compiler_boilerplate=`cat conftest.err`
8152$RM conftest*
8153
8154ac_outfile=conftest.$ac_objext
8155echo "$lt_simple_link_test_code" >conftest.$ac_ext
8156eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8157_lt_linker_boilerplate=`cat conftest.err`
8158$RM -r conftest*
8159
8160
8161if test -n "$compiler"; then
8162
8163lt_prog_compiler_no_builtin_flag=
8164
8165if test yes = "$GCC"; then
8166  case $cc_basename in
8167  nvcc*)
8168    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8169  *)
8170    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8171  esac
8172
8173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8174$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8175if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8176  $as_echo_n "(cached) " >&6
8177else
8178  lt_cv_prog_compiler_rtti_exceptions=no
8179   ac_outfile=conftest.$ac_objext
8180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8181   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8182   # Insert the option either (1) after the last *FLAGS variable, or
8183   # (2) before a word containing "conftest.", or (3) at the end.
8184   # Note that $ac_compile itself does not contain backslashes and begins
8185   # with a dollar sign (not a hyphen), so the echo should work correctly.
8186   # The option is referenced via a variable to avoid confusing sed.
8187   lt_compile=`echo "$ac_compile" | $SED \
8188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190   -e 's:$: $lt_compiler_flag:'`
8191   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8192   (eval "$lt_compile" 2>conftest.err)
8193   ac_status=$?
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   if (exit $ac_status) && test -s "$ac_outfile"; then
8197     # The compiler can only warn and ignore the option if not recognized
8198     # So say no if there are warnings other than the usual output.
8199     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8202       lt_cv_prog_compiler_rtti_exceptions=yes
8203     fi
8204   fi
8205   $RM conftest*
8206
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8209$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8210
8211if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8213else
8214    :
8215fi
8216
8217fi
8218
8219
8220
8221
8222
8223
8224  lt_prog_compiler_wl=
8225lt_prog_compiler_pic=
8226lt_prog_compiler_static=
8227
8228
8229  if test yes = "$GCC"; then
8230    lt_prog_compiler_wl='-Wl,'
8231    lt_prog_compiler_static='-static'
8232
8233    case $host_os in
8234      aix*)
8235      # All AIX code is PIC.
8236      if test ia64 = "$host_cpu"; then
8237	# AIX 5 now supports IA64 processor
8238	lt_prog_compiler_static='-Bstatic'
8239      fi
8240      lt_prog_compiler_pic='-fPIC'
8241      ;;
8242
8243    amigaos*)
8244      case $host_cpu in
8245      powerpc)
8246            # see comment about AmigaOS4 .so support
8247            lt_prog_compiler_pic='-fPIC'
8248        ;;
8249      m68k)
8250            # FIXME: we need at least 68020 code to build shared libraries, but
8251            # adding the '-m68020' flag to GCC prevents building anything better,
8252            # like '-m68040'.
8253            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8254        ;;
8255      esac
8256      ;;
8257
8258    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8259      # PIC is the default for these OSes.
8260      ;;
8261
8262    mingw* | cygwin* | pw32* | os2* | cegcc*)
8263      # This hack is so that the source file can tell whether it is being
8264      # built for inclusion in a dll (and should export symbols for example).
8265      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8266      # (--disable-auto-import) libraries
8267      lt_prog_compiler_pic='-DDLL_EXPORT'
8268      case $host_os in
8269      os2*)
8270	lt_prog_compiler_static='$wl-static'
8271	;;
8272      esac
8273      ;;
8274
8275    darwin* | rhapsody*)
8276      # PIC is the default on this platform
8277      # Common symbols not allowed in MH_DYLIB files
8278      lt_prog_compiler_pic='-fno-common'
8279      ;;
8280
8281    haiku*)
8282      # PIC is the default for Haiku.
8283      # The "-static" flag exists, but is broken.
8284      lt_prog_compiler_static=
8285      ;;
8286
8287    hpux*)
8288      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8289      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8290      # sets the default TLS model and affects inlining.
8291      case $host_cpu in
8292      hppa*64*)
8293	# +Z the default
8294	;;
8295      *)
8296	lt_prog_compiler_pic='-fPIC'
8297	;;
8298      esac
8299      ;;
8300
8301    interix[3-9]*)
8302      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8303      # Instead, we relocate shared libraries at runtime.
8304      ;;
8305
8306    msdosdjgpp*)
8307      # Just because we use GCC doesn't mean we suddenly get shared libraries
8308      # on systems that don't support them.
8309      lt_prog_compiler_can_build_shared=no
8310      enable_shared=no
8311      ;;
8312
8313    *nto* | *qnx*)
8314      # QNX uses GNU C++, but need to define -shared option too, otherwise
8315      # it will coredump.
8316      lt_prog_compiler_pic='-fPIC -shared'
8317      ;;
8318
8319    sysv4*MP*)
8320      if test -d /usr/nec; then
8321	lt_prog_compiler_pic=-Kconform_pic
8322      fi
8323      ;;
8324
8325    *)
8326      lt_prog_compiler_pic='-fPIC'
8327      ;;
8328    esac
8329
8330    case $cc_basename in
8331    nvcc*) # Cuda Compiler Driver 2.2
8332      lt_prog_compiler_wl='-Xlinker '
8333      if test -n "$lt_prog_compiler_pic"; then
8334        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8335      fi
8336      ;;
8337    esac
8338  else
8339    # PORTME Check for flag to pass linker flags through the system compiler.
8340    case $host_os in
8341    aix*)
8342      lt_prog_compiler_wl='-Wl,'
8343      if test ia64 = "$host_cpu"; then
8344	# AIX 5 now supports IA64 processor
8345	lt_prog_compiler_static='-Bstatic'
8346      else
8347	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8348      fi
8349      ;;
8350
8351    darwin* | rhapsody*)
8352      # PIC is the default on this platform
8353      # Common symbols not allowed in MH_DYLIB files
8354      lt_prog_compiler_pic='-fno-common'
8355      case $cc_basename in
8356      nagfor*)
8357        # NAG Fortran compiler
8358        lt_prog_compiler_wl='-Wl,-Wl,,'
8359        lt_prog_compiler_pic='-PIC'
8360        lt_prog_compiler_static='-Bstatic'
8361        ;;
8362      esac
8363      ;;
8364
8365    mingw* | cygwin* | pw32* | os2* | cegcc*)
8366      # This hack is so that the source file can tell whether it is being
8367      # built for inclusion in a dll (and should export symbols for example).
8368      lt_prog_compiler_pic='-DDLL_EXPORT'
8369      case $host_os in
8370      os2*)
8371	lt_prog_compiler_static='$wl-static'
8372	;;
8373      esac
8374      ;;
8375
8376    hpux9* | hpux10* | hpux11*)
8377      lt_prog_compiler_wl='-Wl,'
8378      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8379      # not for PA HP-UX.
8380      case $host_cpu in
8381      hppa*64*|ia64*)
8382	# +Z the default
8383	;;
8384      *)
8385	lt_prog_compiler_pic='+Z'
8386	;;
8387      esac
8388      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8389      lt_prog_compiler_static='$wl-a ${wl}archive'
8390      ;;
8391
8392    irix5* | irix6* | nonstopux*)
8393      lt_prog_compiler_wl='-Wl,'
8394      # PIC (with -KPIC) is the default.
8395      lt_prog_compiler_static='-non_shared'
8396      ;;
8397
8398    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8399      case $cc_basename in
8400      # old Intel for x86_64, which still supported -KPIC.
8401      ecc*)
8402	lt_prog_compiler_wl='-Wl,'
8403	lt_prog_compiler_pic='-KPIC'
8404	lt_prog_compiler_static='-static'
8405        ;;
8406      # icc used to be incompatible with GCC.
8407      # ICC 10 doesn't accept -KPIC any more.
8408      icc* | ifort*)
8409	lt_prog_compiler_wl='-Wl,'
8410	lt_prog_compiler_pic='-fPIC'
8411	lt_prog_compiler_static='-static'
8412        ;;
8413      # Lahey Fortran 8.1.
8414      lf95*)
8415	lt_prog_compiler_wl='-Wl,'
8416	lt_prog_compiler_pic='--shared'
8417	lt_prog_compiler_static='--static'
8418	;;
8419      nagfor*)
8420	# NAG Fortran compiler
8421	lt_prog_compiler_wl='-Wl,-Wl,,'
8422	lt_prog_compiler_pic='-PIC'
8423	lt_prog_compiler_static='-Bstatic'
8424	;;
8425      tcc*)
8426	# Fabrice Bellard et al's Tiny C Compiler
8427	lt_prog_compiler_wl='-Wl,'
8428	lt_prog_compiler_pic='-fPIC'
8429	lt_prog_compiler_static='-static'
8430	;;
8431      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8432        # Portland Group compilers (*not* the Pentium gcc compiler,
8433	# which looks to be a dead project)
8434	lt_prog_compiler_wl='-Wl,'
8435	lt_prog_compiler_pic='-fpic'
8436	lt_prog_compiler_static='-Bstatic'
8437        ;;
8438      ccc*)
8439        lt_prog_compiler_wl='-Wl,'
8440        # All Alpha code is PIC.
8441        lt_prog_compiler_static='-non_shared'
8442        ;;
8443      xl* | bgxl* | bgf* | mpixl*)
8444	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8445	lt_prog_compiler_wl='-Wl,'
8446	lt_prog_compiler_pic='-qpic'
8447	lt_prog_compiler_static='-qstaticlink'
8448	;;
8449      *)
8450	case `$CC -V 2>&1 | sed 5q` in
8451	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8452	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8453	  lt_prog_compiler_pic='-KPIC'
8454	  lt_prog_compiler_static='-Bstatic'
8455	  lt_prog_compiler_wl=''
8456	  ;;
8457	*Sun\ F* | *Sun*Fortran*)
8458	  lt_prog_compiler_pic='-KPIC'
8459	  lt_prog_compiler_static='-Bstatic'
8460	  lt_prog_compiler_wl='-Qoption ld '
8461	  ;;
8462	*Sun\ C*)
8463	  # Sun C 5.9
8464	  lt_prog_compiler_pic='-KPIC'
8465	  lt_prog_compiler_static='-Bstatic'
8466	  lt_prog_compiler_wl='-Wl,'
8467	  ;;
8468        *Intel*\ [CF]*Compiler*)
8469	  lt_prog_compiler_wl='-Wl,'
8470	  lt_prog_compiler_pic='-fPIC'
8471	  lt_prog_compiler_static='-static'
8472	  ;;
8473	*Portland\ Group*)
8474	  lt_prog_compiler_wl='-Wl,'
8475	  lt_prog_compiler_pic='-fpic'
8476	  lt_prog_compiler_static='-Bstatic'
8477	  ;;
8478	esac
8479	;;
8480      esac
8481      ;;
8482
8483    newsos6)
8484      lt_prog_compiler_pic='-KPIC'
8485      lt_prog_compiler_static='-Bstatic'
8486      ;;
8487
8488    *nto* | *qnx*)
8489      # QNX uses GNU C++, but need to define -shared option too, otherwise
8490      # it will coredump.
8491      lt_prog_compiler_pic='-fPIC -shared'
8492      ;;
8493
8494    osf3* | osf4* | osf5*)
8495      lt_prog_compiler_wl='-Wl,'
8496      # All OSF/1 code is PIC.
8497      lt_prog_compiler_static='-non_shared'
8498      ;;
8499
8500    rdos*)
8501      lt_prog_compiler_static='-non_shared'
8502      ;;
8503
8504    solaris*)
8505      lt_prog_compiler_pic='-KPIC'
8506      lt_prog_compiler_static='-Bstatic'
8507      case $cc_basename in
8508      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8509	lt_prog_compiler_wl='-Qoption ld ';;
8510      *)
8511	lt_prog_compiler_wl='-Wl,';;
8512      esac
8513      ;;
8514
8515    sunos4*)
8516      lt_prog_compiler_wl='-Qoption ld '
8517      lt_prog_compiler_pic='-PIC'
8518      lt_prog_compiler_static='-Bstatic'
8519      ;;
8520
8521    sysv4 | sysv4.2uw2* | sysv4.3*)
8522      lt_prog_compiler_wl='-Wl,'
8523      lt_prog_compiler_pic='-KPIC'
8524      lt_prog_compiler_static='-Bstatic'
8525      ;;
8526
8527    sysv4*MP*)
8528      if test -d /usr/nec; then
8529	lt_prog_compiler_pic='-Kconform_pic'
8530	lt_prog_compiler_static='-Bstatic'
8531      fi
8532      ;;
8533
8534    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8535      lt_prog_compiler_wl='-Wl,'
8536      lt_prog_compiler_pic='-KPIC'
8537      lt_prog_compiler_static='-Bstatic'
8538      ;;
8539
8540    unicos*)
8541      lt_prog_compiler_wl='-Wl,'
8542      lt_prog_compiler_can_build_shared=no
8543      ;;
8544
8545    uts4*)
8546      lt_prog_compiler_pic='-pic'
8547      lt_prog_compiler_static='-Bstatic'
8548      ;;
8549
8550    *)
8551      lt_prog_compiler_can_build_shared=no
8552      ;;
8553    esac
8554  fi
8555
8556case $host_os in
8557  # For platforms that do not support PIC, -DPIC is meaningless:
8558  *djgpp*)
8559    lt_prog_compiler_pic=
8560    ;;
8561  *)
8562    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8563    ;;
8564esac
8565
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8567$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8568if ${lt_cv_prog_compiler_pic+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8574$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8575lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8576
8577#
8578# Check to make sure the PIC flag actually works.
8579#
8580if test -n "$lt_prog_compiler_pic"; then
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8583if ${lt_cv_prog_compiler_pic_works+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  lt_cv_prog_compiler_pic_works=no
8587   ac_outfile=conftest.$ac_objext
8588   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8589   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8590   # Insert the option either (1) after the last *FLAGS variable, or
8591   # (2) before a word containing "conftest.", or (3) at the end.
8592   # Note that $ac_compile itself does not contain backslashes and begins
8593   # with a dollar sign (not a hyphen), so the echo should work correctly.
8594   # The option is referenced via a variable to avoid confusing sed.
8595   lt_compile=`echo "$ac_compile" | $SED \
8596   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598   -e 's:$: $lt_compiler_flag:'`
8599   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600   (eval "$lt_compile" 2>conftest.err)
8601   ac_status=$?
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   if (exit $ac_status) && test -s "$ac_outfile"; then
8605     # The compiler can only warn and ignore the option if not recognized
8606     # So say no if there are warnings other than the usual output.
8607     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8608     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8609     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8610       lt_cv_prog_compiler_pic_works=yes
8611     fi
8612   fi
8613   $RM conftest*
8614
8615fi
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8617$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8618
8619if test yes = "$lt_cv_prog_compiler_pic_works"; then
8620    case $lt_prog_compiler_pic in
8621     "" | " "*) ;;
8622     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8623     esac
8624else
8625    lt_prog_compiler_pic=
8626     lt_prog_compiler_can_build_shared=no
8627fi
8628
8629fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641#
8642# Check to make sure the static flag actually works.
8643#
8644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8647if ${lt_cv_prog_compiler_static_works+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  lt_cv_prog_compiler_static_works=no
8651   save_LDFLAGS=$LDFLAGS
8652   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8653   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8655     # The linker can only warn and ignore the option if not recognized
8656     # So say no if there are warnings
8657     if test -s conftest.err; then
8658       # Append any errors to the config.log.
8659       cat conftest.err 1>&5
8660       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8661       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8662       if diff conftest.exp conftest.er2 >/dev/null; then
8663         lt_cv_prog_compiler_static_works=yes
8664       fi
8665     else
8666       lt_cv_prog_compiler_static_works=yes
8667     fi
8668   fi
8669   $RM -r conftest*
8670   LDFLAGS=$save_LDFLAGS
8671
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8674$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8675
8676if test yes = "$lt_cv_prog_compiler_static_works"; then
8677    :
8678else
8679    lt_prog_compiler_static=
8680fi
8681
8682
8683
8684
8685
8686
8687
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8690if ${lt_cv_prog_compiler_c_o+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  lt_cv_prog_compiler_c_o=no
8694   $RM -r conftest 2>/dev/null
8695   mkdir conftest
8696   cd conftest
8697   mkdir out
8698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8699
8700   lt_compiler_flag="-o out/conftest2.$ac_objext"
8701   # Insert the option either (1) after the last *FLAGS variable, or
8702   # (2) before a word containing "conftest.", or (3) at the end.
8703   # Note that $ac_compile itself does not contain backslashes and begins
8704   # with a dollar sign (not a hyphen), so the echo should work correctly.
8705   lt_compile=`echo "$ac_compile" | $SED \
8706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8708   -e 's:$: $lt_compiler_flag:'`
8709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8710   (eval "$lt_compile" 2>out/conftest.err)
8711   ac_status=$?
8712   cat out/conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8715   then
8716     # The compiler can only warn and ignore the option if not recognized
8717     # So say no if there are warnings
8718     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8719     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8720     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8721       lt_cv_prog_compiler_c_o=yes
8722     fi
8723   fi
8724   chmod u+w . 2>&5
8725   $RM conftest*
8726   # SGI C++ compiler will create directory out/ii_files/ for
8727   # template instantiation
8728   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8729   $RM out/* && rmdir out
8730   cd ..
8731   $RM -r conftest
8732   $RM conftest*
8733
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737
8738
8739
8740
8741
8742
8743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8745if ${lt_cv_prog_compiler_c_o+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  lt_cv_prog_compiler_c_o=no
8749   $RM -r conftest 2>/dev/null
8750   mkdir conftest
8751   cd conftest
8752   mkdir out
8753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754
8755   lt_compiler_flag="-o out/conftest2.$ac_objext"
8756   # Insert the option either (1) after the last *FLAGS variable, or
8757   # (2) before a word containing "conftest.", or (3) at the end.
8758   # Note that $ac_compile itself does not contain backslashes and begins
8759   # with a dollar sign (not a hyphen), so the echo should work correctly.
8760   lt_compile=`echo "$ac_compile" | $SED \
8761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763   -e 's:$: $lt_compiler_flag:'`
8764   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8765   (eval "$lt_compile" 2>out/conftest.err)
8766   ac_status=$?
8767   cat out/conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8770   then
8771     # The compiler can only warn and ignore the option if not recognized
8772     # So say no if there are warnings
8773     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8776       lt_cv_prog_compiler_c_o=yes
8777     fi
8778   fi
8779   chmod u+w . 2>&5
8780   $RM conftest*
8781   # SGI C++ compiler will create directory out/ii_files/ for
8782   # template instantiation
8783   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8784   $RM out/* && rmdir out
8785   cd ..
8786   $RM -r conftest
8787   $RM conftest*
8788
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8792
8793
8794
8795
8796hard_links=nottested
8797if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8798  # do not overwrite the value of need_locks provided by the user
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8800$as_echo_n "checking if we can lock with hard links... " >&6; }
8801  hard_links=yes
8802  $RM conftest*
8803  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8804  touch conftest.a
8805  ln conftest.a conftest.b 2>&5 || hard_links=no
8806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8808$as_echo "$hard_links" >&6; }
8809  if test no = "$hard_links"; then
8810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8811$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8812    need_locks=warn
8813  fi
8814else
8815  need_locks=no
8816fi
8817
8818
8819
8820
8821
8822
8823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8825
8826  runpath_var=
8827  allow_undefined_flag=
8828  always_export_symbols=no
8829  archive_cmds=
8830  archive_expsym_cmds=
8831  compiler_needs_object=no
8832  enable_shared_with_static_runtimes=no
8833  export_dynamic_flag_spec=
8834  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8835  hardcode_automatic=no
8836  hardcode_direct=no
8837  hardcode_direct_absolute=no
8838  hardcode_libdir_flag_spec=
8839  hardcode_libdir_separator=
8840  hardcode_minus_L=no
8841  hardcode_shlibpath_var=unsupported
8842  inherit_rpath=no
8843  link_all_deplibs=unknown
8844  module_cmds=
8845  module_expsym_cmds=
8846  old_archive_from_new_cmds=
8847  old_archive_from_expsyms_cmds=
8848  thread_safe_flag_spec=
8849  whole_archive_flag_spec=
8850  # include_expsyms should be a list of space-separated symbols to be *always*
8851  # included in the symbol list
8852  include_expsyms=
8853  # exclude_expsyms can be an extended regexp of symbols to exclude
8854  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8855  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8856  # as well as any symbol that contains 'd'.
8857  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8858  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8859  # platforms (ab)use it in PIC code, but their linkers get confused if
8860  # the symbol is explicitly referenced.  Since portable code cannot
8861  # rely on this symbol name, it's probably fine to never include it in
8862  # preloaded symbol tables.
8863  # Exclude shared library initialization/finalization symbols.
8864  extract_expsyms_cmds=
8865
8866  case $host_os in
8867  cygwin* | mingw* | pw32* | cegcc*)
8868    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8869    # When not using gcc, we currently assume that we are using
8870    # Microsoft Visual C++.
8871    if test yes != "$GCC"; then
8872      with_gnu_ld=no
8873    fi
8874    ;;
8875  interix*)
8876    # we just hope/assume this is gcc and not c89 (= MSVC++)
8877    with_gnu_ld=yes
8878    ;;
8879  openbsd* | bitrig*)
8880    with_gnu_ld=no
8881    ;;
8882  esac
8883
8884  ld_shlibs=yes
8885
8886  # On some targets, GNU ld is compatible enough with the native linker
8887  # that we're better off using the native interface for both.
8888  lt_use_gnu_ld_interface=no
8889  if test yes = "$with_gnu_ld"; then
8890    case $host_os in
8891      aix*)
8892	# The AIX port of GNU ld has always aspired to compatibility
8893	# with the native linker.  However, as the warning in the GNU ld
8894	# block says, versions before 2.19.5* couldn't really create working
8895	# shared libraries, regardless of the interface used.
8896	case `$LD -v 2>&1` in
8897	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8898	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8899	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8900	  *)
8901	    lt_use_gnu_ld_interface=yes
8902	    ;;
8903	esac
8904	;;
8905      *)
8906	lt_use_gnu_ld_interface=yes
8907	;;
8908    esac
8909  fi
8910
8911  if test yes = "$lt_use_gnu_ld_interface"; then
8912    # If archive_cmds runs LD, not CC, wlarc should be empty
8913    wlarc='$wl'
8914
8915    # Set some defaults for GNU ld with shared library support. These
8916    # are reset later if shared libraries are not supported. Putting them
8917    # here allows them to be overridden if necessary.
8918    runpath_var=LD_RUN_PATH
8919    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8920    export_dynamic_flag_spec='$wl--export-dynamic'
8921    # ancient GNU ld didn't support --whole-archive et. al.
8922    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8923      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8924    else
8925      whole_archive_flag_spec=
8926    fi
8927    supports_anon_versioning=no
8928    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8929      *GNU\ gold*) supports_anon_versioning=yes ;;
8930      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8931      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8932      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8933      *\ 2.11.*) ;; # other 2.11 versions
8934      *) supports_anon_versioning=yes ;;
8935    esac
8936
8937    # See if GNU ld supports shared libraries.
8938    case $host_os in
8939    aix[3-9]*)
8940      # On AIX/PPC, the GNU linker is very broken
8941      if test ia64 != "$host_cpu"; then
8942	ld_shlibs=no
8943	cat <<_LT_EOF 1>&2
8944
8945*** Warning: the GNU linker, at least up to release 2.19, is reported
8946*** to be unable to reliably create shared libraries on AIX.
8947*** Therefore, libtool is disabling shared libraries support.  If you
8948*** really care for shared libraries, you may want to install binutils
8949*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8950*** You will then need to restart the configuration process.
8951
8952_LT_EOF
8953      fi
8954      ;;
8955
8956    amigaos*)
8957      case $host_cpu in
8958      powerpc)
8959            # see comment about AmigaOS4 .so support
8960            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8961            archive_expsym_cmds=''
8962        ;;
8963      m68k)
8964            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)'
8965            hardcode_libdir_flag_spec='-L$libdir'
8966            hardcode_minus_L=yes
8967        ;;
8968      esac
8969      ;;
8970
8971    beos*)
8972      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973	allow_undefined_flag=unsupported
8974	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8975	# support --undefined.  This deserves some investigation.  FIXME
8976	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8977      else
8978	ld_shlibs=no
8979      fi
8980      ;;
8981
8982    cygwin* | mingw* | pw32* | cegcc*)
8983      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8984      # as there is no search path for DLLs.
8985      hardcode_libdir_flag_spec='-L$libdir'
8986      export_dynamic_flag_spec='$wl--export-all-symbols'
8987      allow_undefined_flag=unsupported
8988      always_export_symbols=no
8989      enable_shared_with_static_runtimes=yes
8990      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'
8991      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8992
8993      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8994        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995	# If the export-symbols file already is a .def file, use it as
8996	# is; otherwise, prepend EXPORTS...
8997	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8998          cp $export_symbols $output_objdir/$soname.def;
8999        else
9000          echo EXPORTS > $output_objdir/$soname.def;
9001          cat $export_symbols >> $output_objdir/$soname.def;
9002        fi~
9003        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004      else
9005	ld_shlibs=no
9006      fi
9007      ;;
9008
9009    haiku*)
9010      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9011      link_all_deplibs=yes
9012      ;;
9013
9014    os2*)
9015      hardcode_libdir_flag_spec='-L$libdir'
9016      hardcode_minus_L=yes
9017      allow_undefined_flag=unsupported
9018      shrext_cmds=.dll
9019      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9020	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9021	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9022	$ECHO EXPORTS >> $output_objdir/$libname.def~
9023	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9024	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9025	emximp -o $lib $output_objdir/$libname.def'
9026      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9027	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9028	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9029	$ECHO EXPORTS >> $output_objdir/$libname.def~
9030	prefix_cmds="$SED"~
9031	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9032	  prefix_cmds="$prefix_cmds -e 1d";
9033	fi~
9034	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9035	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9036	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9037	emximp -o $lib $output_objdir/$libname.def'
9038      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9039      enable_shared_with_static_runtimes=yes
9040      ;;
9041
9042    interix[3-9]*)
9043      hardcode_direct=no
9044      hardcode_shlibpath_var=no
9045      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9046      export_dynamic_flag_spec='$wl-E'
9047      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9048      # Instead, shared libraries are loaded at an image base (0x10000000 by
9049      # default) and relocated if they conflict, which is a slow very memory
9050      # consuming and fragmenting process.  To avoid this, we pick a random,
9051      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9052      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9053      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9054      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'
9055      ;;
9056
9057    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9058      tmp_diet=no
9059      if test linux-dietlibc = "$host_os"; then
9060	case $cc_basename in
9061	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9062	esac
9063      fi
9064      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9065	 && test no = "$tmp_diet"
9066      then
9067	tmp_addflag=' $pic_flag'
9068	tmp_sharedflag='-shared'
9069	case $cc_basename,$host_cpu in
9070        pgcc*)				# Portland Group C compiler
9071	  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'
9072	  tmp_addflag=' $pic_flag'
9073	  ;;
9074	pgf77* | pgf90* | pgf95* | pgfortran*)
9075					# Portland Group f77 and f90 compilers
9076	  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'
9077	  tmp_addflag=' $pic_flag -Mnomain' ;;
9078	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9079	  tmp_addflag=' -i_dynamic' ;;
9080	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9081	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9082	ifc* | ifort*)			# Intel Fortran compiler
9083	  tmp_addflag=' -nofor_main' ;;
9084	lf95*)				# Lahey Fortran 8.1
9085	  whole_archive_flag_spec=
9086	  tmp_sharedflag='--shared' ;;
9087        nagfor*)                        # NAGFOR 5.3
9088          tmp_sharedflag='-Wl,-shared' ;;
9089	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9090	  tmp_sharedflag='-qmkshrobj'
9091	  tmp_addflag= ;;
9092	nvcc*)	# Cuda Compiler Driver 2.2
9093	  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'
9094	  compiler_needs_object=yes
9095	  ;;
9096	esac
9097	case `$CC -V 2>&1 | sed 5q` in
9098	*Sun\ C*)			# Sun C 5.9
9099	  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'
9100	  compiler_needs_object=yes
9101	  tmp_sharedflag='-G' ;;
9102	*Sun\ F*)			# Sun Fortran 8.3
9103	  tmp_sharedflag='-G' ;;
9104	esac
9105	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9106
9107        if test yes = "$supports_anon_versioning"; then
9108          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110            echo "local: *; };" >> $output_objdir/$libname.ver~
9111            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9112        fi
9113
9114	case $cc_basename in
9115	tcc*)
9116	  export_dynamic_flag_spec='-rdynamic'
9117	  ;;
9118	xlf* | bgf* | bgxlf* | mpixlf*)
9119	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9120	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9121	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9122	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9123	  if test yes = "$supports_anon_versioning"; then
9124	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9125              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9126              echo "local: *; };" >> $output_objdir/$libname.ver~
9127              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9128	  fi
9129	  ;;
9130	esac
9131      else
9132        ld_shlibs=no
9133      fi
9134      ;;
9135
9136    netbsd*)
9137      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9138	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9139	wlarc=
9140      else
9141	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9142	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9143      fi
9144      ;;
9145
9146    solaris*)
9147      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9148	ld_shlibs=no
9149	cat <<_LT_EOF 1>&2
9150
9151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9152*** create shared libraries on Solaris systems.  Therefore, libtool
9153*** is disabling shared libraries support.  We urge you to upgrade GNU
9154*** binutils to release 2.9.1 or newer.  Another option is to modify
9155*** your PATH or compiler configuration so that the native linker is
9156*** used, and then restart.
9157
9158_LT_EOF
9159      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9160	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9162      else
9163	ld_shlibs=no
9164      fi
9165      ;;
9166
9167    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9168      case `$LD -v 2>&1` in
9169        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9170	ld_shlibs=no
9171	cat <<_LT_EOF 1>&2
9172
9173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9174*** reliably create shared libraries on SCO systems.  Therefore, libtool
9175*** is disabling shared libraries support.  We urge you to upgrade GNU
9176*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9177*** your PATH or compiler configuration so that the native linker is
9178*** used, and then restart.
9179
9180_LT_EOF
9181	;;
9182	*)
9183	  # For security reasons, it is highly recommended that you always
9184	  # use absolute paths for naming shared libraries, and exclude the
9185	  # DT_RUNPATH tag from executables and libraries.  But doing so
9186	  # requires that you compile everything twice, which is a pain.
9187	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9188	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9189	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9190	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9191	  else
9192	    ld_shlibs=no
9193	  fi
9194	;;
9195      esac
9196      ;;
9197
9198    sunos4*)
9199      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9200      wlarc=
9201      hardcode_direct=yes
9202      hardcode_shlibpath_var=no
9203      ;;
9204
9205    *)
9206      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9207	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9208	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9209      else
9210	ld_shlibs=no
9211      fi
9212      ;;
9213    esac
9214
9215    if test no = "$ld_shlibs"; then
9216      runpath_var=
9217      hardcode_libdir_flag_spec=
9218      export_dynamic_flag_spec=
9219      whole_archive_flag_spec=
9220    fi
9221  else
9222    # PORTME fill in a description of your system's linker (not GNU ld)
9223    case $host_os in
9224    aix3*)
9225      allow_undefined_flag=unsupported
9226      always_export_symbols=yes
9227      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'
9228      # Note: this linker hardcodes the directories in LIBPATH if there
9229      # are no directories specified by -L.
9230      hardcode_minus_L=yes
9231      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9232	# Neither direct hardcoding nor static linking is supported with a
9233	# broken collect2.
9234	hardcode_direct=unsupported
9235      fi
9236      ;;
9237
9238    aix[4-9]*)
9239      if test ia64 = "$host_cpu"; then
9240	# On IA64, the linker does run time linking by default, so we don't
9241	# have to do anything special.
9242	aix_use_runtimelinking=no
9243	exp_sym_flag='-Bexport'
9244	no_entry_flag=
9245      else
9246	# If we're using GNU nm, then we don't want the "-C" option.
9247	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9248	# Without the "-l" option, or with the "-B" option, AIX nm treats
9249	# weak defined symbols like other global defined symbols, whereas
9250	# GNU nm marks them as "W".
9251	# While the 'weak' keyword is ignored in the Export File, we need
9252	# it in the Import File for the 'aix-soname' feature, so we have
9253	# to replace the "-B" option with "-P" for AIX nm.
9254	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9255	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9256	else
9257	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9258	fi
9259	aix_use_runtimelinking=no
9260
9261	# Test if we are trying to use run time linking or normal
9262	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9263	# have runtime linking enabled, and use it for executables.
9264	# For shared libraries, we enable/disable runtime linking
9265	# depending on the kind of the shared library created -
9266	# when "with_aix_soname,aix_use_runtimelinking" is:
9267	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9268	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9269	#            lib.a           static archive
9270	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9271	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9272	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9273	#            lib.a(lib.so.V) shared, rtl:no
9274	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9275	#            lib.a           static archive
9276	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9277	  for ld_flag in $LDFLAGS; do
9278	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9279	    aix_use_runtimelinking=yes
9280	    break
9281	  fi
9282	  done
9283	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9284	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9285	    # so we don't have lib.a shared libs to link our executables.
9286	    # We have to force runtime linking in this case.
9287	    aix_use_runtimelinking=yes
9288	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9289	  fi
9290	  ;;
9291	esac
9292
9293	exp_sym_flag='-bexport'
9294	no_entry_flag='-bnoentry'
9295      fi
9296
9297      # When large executables or shared objects are built, AIX ld can
9298      # have problems creating the table of contents.  If linking a library
9299      # or program results in "error TOC overflow" add -mminimal-toc to
9300      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9301      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9302
9303      archive_cmds=''
9304      hardcode_direct=yes
9305      hardcode_direct_absolute=yes
9306      hardcode_libdir_separator=':'
9307      link_all_deplibs=yes
9308      file_list_spec='$wl-f,'
9309      case $with_aix_soname,$aix_use_runtimelinking in
9310      aix,*) ;; # traditional, no import file
9311      svr4,* | *,yes) # use import file
9312	# The Import File defines what to hardcode.
9313	hardcode_direct=no
9314	hardcode_direct_absolute=no
9315	;;
9316      esac
9317
9318      if test yes = "$GCC"; then
9319	case $host_os in aix4.[012]|aix4.[012].*)
9320	# We only want to do this on AIX 4.2 and lower, the check
9321	# below for broken collect2 doesn't work under 4.3+
9322	  collect2name=`$CC -print-prog-name=collect2`
9323	  if test -f "$collect2name" &&
9324	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9325	  then
9326	  # We have reworked collect2
9327	  :
9328	  else
9329	  # We have old collect2
9330	  hardcode_direct=unsupported
9331	  # It fails to find uninstalled libraries when the uninstalled
9332	  # path is not listed in the libpath.  Setting hardcode_minus_L
9333	  # to unsupported forces relinking
9334	  hardcode_minus_L=yes
9335	  hardcode_libdir_flag_spec='-L$libdir'
9336	  hardcode_libdir_separator=
9337	  fi
9338	  ;;
9339	esac
9340	shared_flag='-shared'
9341	if test yes = "$aix_use_runtimelinking"; then
9342	  shared_flag="$shared_flag "'$wl-G'
9343	fi
9344	# Need to ensure runtime linking is disabled for the traditional
9345	# shared library, or the linker may eventually find shared libraries
9346	# /with/ Import File - we do not want to mix them.
9347	shared_flag_aix='-shared'
9348	shared_flag_svr4='-shared $wl-G'
9349      else
9350	# not using gcc
9351	if test ia64 = "$host_cpu"; then
9352	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9353	# chokes on -Wl,-G. The following line is correct:
9354	  shared_flag='-G'
9355	else
9356	  if test yes = "$aix_use_runtimelinking"; then
9357	    shared_flag='$wl-G'
9358	  else
9359	    shared_flag='$wl-bM:SRE'
9360	  fi
9361	  shared_flag_aix='$wl-bM:SRE'
9362	  shared_flag_svr4='$wl-G'
9363	fi
9364      fi
9365
9366      export_dynamic_flag_spec='$wl-bexpall'
9367      # It seems that -bexpall does not export symbols beginning with
9368      # underscore (_), so it is better to generate a list of symbols to export.
9369      always_export_symbols=yes
9370      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9371	# Warning - without using the other runtime loading flags (-brtl),
9372	# -berok will link without error, but may produce a broken library.
9373	allow_undefined_flag='-berok'
9374        # Determine the default libpath from the value encoded in an
9375        # empty executable.
9376        if test set = "${lt_cv_aix_libpath+set}"; then
9377  aix_libpath=$lt_cv_aix_libpath
9378else
9379  if ${lt_cv_aix_libpath_+:} false; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394
9395  lt_aix_libpath_sed='
9396      /Import File Strings/,/^$/ {
9397	  /^0/ {
9398	      s/^0  *\([^ ]*\) *$/\1/
9399	      p
9400	  }
9401      }'
9402  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9403  # Check for a 64-bit object if we didn't find anything.
9404  if test -z "$lt_cv_aix_libpath_"; then
9405    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9406  fi
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409    conftest$ac_exeext conftest.$ac_ext
9410  if test -z "$lt_cv_aix_libpath_"; then
9411    lt_cv_aix_libpath_=/usr/lib:/lib
9412  fi
9413
9414fi
9415
9416  aix_libpath=$lt_cv_aix_libpath_
9417fi
9418
9419        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9420        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9421      else
9422	if test ia64 = "$host_cpu"; then
9423	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9424	  allow_undefined_flag="-z nodefs"
9425	  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"
9426	else
9427	 # Determine the default libpath from the value encoded in an
9428	 # empty executable.
9429	 if test set = "${lt_cv_aix_libpath+set}"; then
9430  aix_libpath=$lt_cv_aix_libpath
9431else
9432  if ${lt_cv_aix_libpath_+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437
9438int
9439main ()
9440{
9441
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447
9448  lt_aix_libpath_sed='
9449      /Import File Strings/,/^$/ {
9450	  /^0/ {
9451	      s/^0  *\([^ ]*\) *$/\1/
9452	      p
9453	  }
9454      }'
9455  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456  # Check for a 64-bit object if we didn't find anything.
9457  if test -z "$lt_cv_aix_libpath_"; then
9458    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459  fi
9460fi
9461rm -f core conftest.err conftest.$ac_objext \
9462    conftest$ac_exeext conftest.$ac_ext
9463  if test -z "$lt_cv_aix_libpath_"; then
9464    lt_cv_aix_libpath_=/usr/lib:/lib
9465  fi
9466
9467fi
9468
9469  aix_libpath=$lt_cv_aix_libpath_
9470fi
9471
9472	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9473	  # Warning - without using the other run time loading flags,
9474	  # -berok will link without error, but may produce a broken library.
9475	  no_undefined_flag=' $wl-bernotok'
9476	  allow_undefined_flag=' $wl-berok'
9477	  if test yes = "$with_gnu_ld"; then
9478	    # We only use this code for GNU lds that support --whole-archive.
9479	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9480	  else
9481	    # Exported symbols can be pulled into shared objects from archives
9482	    whole_archive_flag_spec='$convenience'
9483	  fi
9484	  archive_cmds_need_lc=yes
9485	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9486	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9487	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9488	  if test svr4 != "$with_aix_soname"; then
9489	    # This is similar to how AIX traditionally builds its shared libraries.
9490	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9491	  fi
9492	  if test aix != "$with_aix_soname"; then
9493	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9494	  else
9495	    # used by -dlpreopen to get the symbols
9496	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9497	  fi
9498	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9499	fi
9500      fi
9501      ;;
9502
9503    amigaos*)
9504      case $host_cpu in
9505      powerpc)
9506            # see comment about AmigaOS4 .so support
9507            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9508            archive_expsym_cmds=''
9509        ;;
9510      m68k)
9511            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)'
9512            hardcode_libdir_flag_spec='-L$libdir'
9513            hardcode_minus_L=yes
9514        ;;
9515      esac
9516      ;;
9517
9518    bsdi[45]*)
9519      export_dynamic_flag_spec=-rdynamic
9520      ;;
9521
9522    cygwin* | mingw* | pw32* | cegcc*)
9523      # When not using gcc, we currently assume that we are using
9524      # Microsoft Visual C++.
9525      # hardcode_libdir_flag_spec is actually meaningless, as there is
9526      # no search path for DLLs.
9527      case $cc_basename in
9528      cl*)
9529	# Native MSVC
9530	hardcode_libdir_flag_spec=' '
9531	allow_undefined_flag=unsupported
9532	always_export_symbols=yes
9533	file_list_spec='@'
9534	# Tell ltmain to make .lib files, not .a files.
9535	libext=lib
9536	# Tell ltmain to make .dll files, not .so files.
9537	shrext_cmds=.dll
9538	# FIXME: Setting linknames here is a bad hack.
9539	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9540	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9541            cp "$export_symbols" "$output_objdir/$soname.def";
9542            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9543          else
9544            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9545          fi~
9546          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9547          linknames='
9548	# The linker will not automatically build a static lib if we build a DLL.
9549	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9550	enable_shared_with_static_runtimes=yes
9551	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9552	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9553	# Don't use ranlib
9554	old_postinstall_cmds='chmod 644 $oldlib'
9555	postlink_cmds='lt_outputfile="@OUTPUT@"~
9556          lt_tool_outputfile="@TOOL_OUTPUT@"~
9557          case $lt_outputfile in
9558            *.exe|*.EXE) ;;
9559            *)
9560              lt_outputfile=$lt_outputfile.exe
9561              lt_tool_outputfile=$lt_tool_outputfile.exe
9562              ;;
9563          esac~
9564          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9565            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9566            $RM "$lt_outputfile.manifest";
9567          fi'
9568	;;
9569      *)
9570	# Assume MSVC wrapper
9571	hardcode_libdir_flag_spec=' '
9572	allow_undefined_flag=unsupported
9573	# Tell ltmain to make .lib files, not .a files.
9574	libext=lib
9575	# Tell ltmain to make .dll files, not .so files.
9576	shrext_cmds=.dll
9577	# FIXME: Setting linknames here is a bad hack.
9578	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9579	# The linker will automatically build a .lib file if we build a DLL.
9580	old_archive_from_new_cmds='true'
9581	# FIXME: Should let the user specify the lib program.
9582	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9583	enable_shared_with_static_runtimes=yes
9584	;;
9585      esac
9586      ;;
9587
9588    darwin* | rhapsody*)
9589
9590
9591  archive_cmds_need_lc=no
9592  hardcode_direct=no
9593  hardcode_automatic=yes
9594  hardcode_shlibpath_var=unsupported
9595  if test yes = "$lt_cv_ld_force_load"; then
9596    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\"`'
9597
9598  else
9599    whole_archive_flag_spec=''
9600  fi
9601  link_all_deplibs=yes
9602  allow_undefined_flag=$_lt_dar_allow_undefined
9603  case $cc_basename in
9604     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9605     *) _lt_dar_can_shared=$GCC ;;
9606  esac
9607  if test yes = "$_lt_dar_can_shared"; then
9608    output_verbose_link_cmd=func_echo_all
9609    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9610    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9611    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"
9612    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"
9613
9614  else
9615  ld_shlibs=no
9616  fi
9617
9618      ;;
9619
9620    dgux*)
9621      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622      hardcode_libdir_flag_spec='-L$libdir'
9623      hardcode_shlibpath_var=no
9624      ;;
9625
9626    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9627    # support.  Future versions do this automatically, but an explicit c++rt0.o
9628    # does not break anything, and helps significantly (at the cost of a little
9629    # extra space).
9630    freebsd2.2*)
9631      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9632      hardcode_libdir_flag_spec='-R$libdir'
9633      hardcode_direct=yes
9634      hardcode_shlibpath_var=no
9635      ;;
9636
9637    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9638    freebsd2.*)
9639      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640      hardcode_direct=yes
9641      hardcode_minus_L=yes
9642      hardcode_shlibpath_var=no
9643      ;;
9644
9645    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9646    freebsd* | dragonfly*)
9647      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9648      hardcode_libdir_flag_spec='-R$libdir'
9649      hardcode_direct=yes
9650      hardcode_shlibpath_var=no
9651      ;;
9652
9653    hpux9*)
9654      if test yes = "$GCC"; then
9655	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9656      else
9657	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9658      fi
9659      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9660      hardcode_libdir_separator=:
9661      hardcode_direct=yes
9662
9663      # hardcode_minus_L: Not really in the search PATH,
9664      # but as the default location of the library.
9665      hardcode_minus_L=yes
9666      export_dynamic_flag_spec='$wl-E'
9667      ;;
9668
9669    hpux10*)
9670      if test yes,no = "$GCC,$with_gnu_ld"; then
9671	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672      else
9673	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9674      fi
9675      if test no = "$with_gnu_ld"; then
9676	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9677	hardcode_libdir_separator=:
9678	hardcode_direct=yes
9679	hardcode_direct_absolute=yes
9680	export_dynamic_flag_spec='$wl-E'
9681	# hardcode_minus_L: Not really in the search PATH,
9682	# but as the default location of the library.
9683	hardcode_minus_L=yes
9684      fi
9685      ;;
9686
9687    hpux11*)
9688      if test yes,no = "$GCC,$with_gnu_ld"; then
9689	case $host_cpu in
9690	hppa*64*)
9691	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9692	  ;;
9693	ia64*)
9694	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9695	  ;;
9696	*)
9697	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698	  ;;
9699	esac
9700      else
9701	case $host_cpu in
9702	hppa*64*)
9703	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9704	  ;;
9705	ia64*)
9706	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9707	  ;;
9708	*)
9709
9710	  # Older versions of the 11.00 compiler do not understand -b yet
9711	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9712	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9713$as_echo_n "checking if $CC understands -b... " >&6; }
9714if ${lt_cv_prog_compiler__b+:} false; then :
9715  $as_echo_n "(cached) " >&6
9716else
9717  lt_cv_prog_compiler__b=no
9718   save_LDFLAGS=$LDFLAGS
9719   LDFLAGS="$LDFLAGS -b"
9720   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9721   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9722     # The linker can only warn and ignore the option if not recognized
9723     # So say no if there are warnings
9724     if test -s conftest.err; then
9725       # Append any errors to the config.log.
9726       cat conftest.err 1>&5
9727       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9728       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729       if diff conftest.exp conftest.er2 >/dev/null; then
9730         lt_cv_prog_compiler__b=yes
9731       fi
9732     else
9733       lt_cv_prog_compiler__b=yes
9734     fi
9735   fi
9736   $RM -r conftest*
9737   LDFLAGS=$save_LDFLAGS
9738
9739fi
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9741$as_echo "$lt_cv_prog_compiler__b" >&6; }
9742
9743if test yes = "$lt_cv_prog_compiler__b"; then
9744    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9745else
9746    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9747fi
9748
9749	  ;;
9750	esac
9751      fi
9752      if test no = "$with_gnu_ld"; then
9753	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9754	hardcode_libdir_separator=:
9755
9756	case $host_cpu in
9757	hppa*64*|ia64*)
9758	  hardcode_direct=no
9759	  hardcode_shlibpath_var=no
9760	  ;;
9761	*)
9762	  hardcode_direct=yes
9763	  hardcode_direct_absolute=yes
9764	  export_dynamic_flag_spec='$wl-E'
9765
9766	  # hardcode_minus_L: Not really in the search PATH,
9767	  # but as the default location of the library.
9768	  hardcode_minus_L=yes
9769	  ;;
9770	esac
9771      fi
9772      ;;
9773
9774    irix5* | irix6* | nonstopux*)
9775      if test yes = "$GCC"; then
9776	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'
9777	# Try to use the -exported_symbol ld option, if it does not
9778	# work, assume that -exports_file does not work either and
9779	# implicitly export all symbols.
9780	# This should be the same for all languages, so no per-tag cache variable.
9781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9782$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9783if ${lt_cv_irix_exported_symbol+:} false; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  save_LDFLAGS=$LDFLAGS
9787	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9788	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h.  */
9790int foo (void) { return 0; }
9791_ACEOF
9792if ac_fn_c_try_link "$LINENO"; then :
9793  lt_cv_irix_exported_symbol=yes
9794else
9795  lt_cv_irix_exported_symbol=no
9796fi
9797rm -f core conftest.err conftest.$ac_objext \
9798    conftest$ac_exeext conftest.$ac_ext
9799           LDFLAGS=$save_LDFLAGS
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9802$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9803	if test yes = "$lt_cv_irix_exported_symbol"; then
9804          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'
9805	fi
9806      else
9807	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'
9808	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'
9809      fi
9810      archive_cmds_need_lc='no'
9811      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9812      hardcode_libdir_separator=:
9813      inherit_rpath=yes
9814      link_all_deplibs=yes
9815      ;;
9816
9817    linux*)
9818      case $cc_basename in
9819      tcc*)
9820	# Fabrice Bellard et al's Tiny C Compiler
9821	ld_shlibs=yes
9822	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9823	;;
9824      esac
9825      ;;
9826
9827    netbsd*)
9828      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9829	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9830      else
9831	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9832      fi
9833      hardcode_libdir_flag_spec='-R$libdir'
9834      hardcode_direct=yes
9835      hardcode_shlibpath_var=no
9836      ;;
9837
9838    newsos6)
9839      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840      hardcode_direct=yes
9841      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9842      hardcode_libdir_separator=:
9843      hardcode_shlibpath_var=no
9844      ;;
9845
9846    *nto* | *qnx*)
9847      ;;
9848
9849    openbsd* | bitrig*)
9850      if test -f /usr/libexec/ld.so; then
9851	hardcode_direct=yes
9852	hardcode_shlibpath_var=no
9853	hardcode_direct_absolute=yes
9854	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9855	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9856	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9857	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9858	  export_dynamic_flag_spec='$wl-E'
9859	else
9860	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9861	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9862	fi
9863      else
9864	ld_shlibs=no
9865      fi
9866      ;;
9867
9868    os2*)
9869      hardcode_libdir_flag_spec='-L$libdir'
9870      hardcode_minus_L=yes
9871      allow_undefined_flag=unsupported
9872      shrext_cmds=.dll
9873      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9874	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9875	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9876	$ECHO EXPORTS >> $output_objdir/$libname.def~
9877	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9878	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9879	emximp -o $lib $output_objdir/$libname.def'
9880      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9881	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9882	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9883	$ECHO EXPORTS >> $output_objdir/$libname.def~
9884	prefix_cmds="$SED"~
9885	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9886	  prefix_cmds="$prefix_cmds -e 1d";
9887	fi~
9888	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9889	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9890	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9891	emximp -o $lib $output_objdir/$libname.def'
9892      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9893      enable_shared_with_static_runtimes=yes
9894      ;;
9895
9896    osf3*)
9897      if test yes = "$GCC"; then
9898	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9899	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'
9900      else
9901	allow_undefined_flag=' -expect_unresolved \*'
9902	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'
9903      fi
9904      archive_cmds_need_lc='no'
9905      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9906      hardcode_libdir_separator=:
9907      ;;
9908
9909    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9910      if test yes = "$GCC"; then
9911	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9912	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'
9913	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9914      else
9915	allow_undefined_flag=' -expect_unresolved \*'
9916	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'
9917	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~
9918          $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'
9919
9920	# Both c and cxx compiler support -rpath directly
9921	hardcode_libdir_flag_spec='-rpath $libdir'
9922      fi
9923      archive_cmds_need_lc='no'
9924      hardcode_libdir_separator=:
9925      ;;
9926
9927    solaris*)
9928      no_undefined_flag=' -z defs'
9929      if test yes = "$GCC"; then
9930	wlarc='$wl'
9931	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9932	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933          $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'
9934      else
9935	case `$CC -V 2>&1` in
9936	*"Compilers 5.0"*)
9937	  wlarc=''
9938	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9941	  ;;
9942	*)
9943	  wlarc='$wl'
9944	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9947	  ;;
9948	esac
9949      fi
9950      hardcode_libdir_flag_spec='-R$libdir'
9951      hardcode_shlibpath_var=no
9952      case $host_os in
9953      solaris2.[0-5] | solaris2.[0-5].*) ;;
9954      *)
9955	# The compiler driver will combine and reorder linker options,
9956	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9957	# but is careful enough not to reorder.
9958	# Supported since Solaris 2.6 (maybe 2.5.1?)
9959	if test yes = "$GCC"; then
9960	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9961	else
9962	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9963	fi
9964	;;
9965      esac
9966      link_all_deplibs=yes
9967      ;;
9968
9969    sunos4*)
9970      if test sequent = "$host_vendor"; then
9971	# Use $CC to link under sequent, because it throws in some extra .o
9972	# files that make .init and .fini sections work.
9973	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9974      else
9975	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9976      fi
9977      hardcode_libdir_flag_spec='-L$libdir'
9978      hardcode_direct=yes
9979      hardcode_minus_L=yes
9980      hardcode_shlibpath_var=no
9981      ;;
9982
9983    sysv4)
9984      case $host_vendor in
9985	sni)
9986	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987	  hardcode_direct=yes # is this really true???
9988	;;
9989	siemens)
9990	  ## LD is ld it makes a PLAMLIB
9991	  ## CC just makes a GrossModule.
9992	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9993	  reload_cmds='$CC -r -o $output$reload_objs'
9994	  hardcode_direct=no
9995        ;;
9996	motorola)
9997	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9999	;;
10000      esac
10001      runpath_var='LD_RUN_PATH'
10002      hardcode_shlibpath_var=no
10003      ;;
10004
10005    sysv4.3*)
10006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007      hardcode_shlibpath_var=no
10008      export_dynamic_flag_spec='-Bexport'
10009      ;;
10010
10011    sysv4*MP*)
10012      if test -d /usr/nec; then
10013	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014	hardcode_shlibpath_var=no
10015	runpath_var=LD_RUN_PATH
10016	hardcode_runpath_var=yes
10017	ld_shlibs=yes
10018      fi
10019      ;;
10020
10021    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10022      no_undefined_flag='$wl-z,text'
10023      archive_cmds_need_lc=no
10024      hardcode_shlibpath_var=no
10025      runpath_var='LD_RUN_PATH'
10026
10027      if test yes = "$GCC"; then
10028	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030      else
10031	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033      fi
10034      ;;
10035
10036    sysv5* | sco3.2v5* | sco5v6*)
10037      # Note: We CANNOT use -z defs as we might desire, because we do not
10038      # link with -lc, and that would cause any symbols used from libc to
10039      # always be unresolved, which means just about no library would
10040      # ever link correctly.  If we're not using GNU ld we use -z text
10041      # though, which does catch some bad symbols but isn't as heavy-handed
10042      # as -z defs.
10043      no_undefined_flag='$wl-z,text'
10044      allow_undefined_flag='$wl-z,nodefs'
10045      archive_cmds_need_lc=no
10046      hardcode_shlibpath_var=no
10047      hardcode_libdir_flag_spec='$wl-R,$libdir'
10048      hardcode_libdir_separator=':'
10049      link_all_deplibs=yes
10050      export_dynamic_flag_spec='$wl-Bexport'
10051      runpath_var='LD_RUN_PATH'
10052
10053      if test yes = "$GCC"; then
10054	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056      else
10057	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059      fi
10060      ;;
10061
10062    uts4*)
10063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064      hardcode_libdir_flag_spec='-L$libdir'
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    *)
10069      ld_shlibs=no
10070      ;;
10071    esac
10072
10073    if test sni = "$host_vendor"; then
10074      case $host in
10075      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10076	export_dynamic_flag_spec='$wl-Blargedynsym'
10077	;;
10078      esac
10079    fi
10080  fi
10081
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10083$as_echo "$ld_shlibs" >&6; }
10084test no = "$ld_shlibs" && can_build_shared=no
10085
10086with_gnu_ld=$with_gnu_ld
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102#
10103# Do we need to explicitly link libc?
10104#
10105case "x$archive_cmds_need_lc" in
10106x|xyes)
10107  # Assume -lc should be added
10108  archive_cmds_need_lc=yes
10109
10110  if test yes,yes = "$GCC,$enable_shared"; then
10111    case $archive_cmds in
10112    *'~'*)
10113      # FIXME: we may have to deal with multi-command sequences.
10114      ;;
10115    '$CC '*)
10116      # Test whether the compiler implicitly links with -lc since on some
10117      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10118      # to ld, don't add -lc before -lgcc.
10119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10121if ${lt_cv_archive_cmds_need_lc+:} false; then :
10122  $as_echo_n "(cached) " >&6
10123else
10124  $RM conftest*
10125	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126
10127	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10128  (eval $ac_compile) 2>&5
10129  ac_status=$?
10130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131  test $ac_status = 0; } 2>conftest.err; then
10132	  soname=conftest
10133	  lib=conftest
10134	  libobjs=conftest.$ac_objext
10135	  deplibs=
10136	  wl=$lt_prog_compiler_wl
10137	  pic_flag=$lt_prog_compiler_pic
10138	  compiler_flags=-v
10139	  linker_flags=-v
10140	  verstring=
10141	  output_objdir=.
10142	  libname=conftest
10143	  lt_save_allow_undefined_flag=$allow_undefined_flag
10144	  allow_undefined_flag=
10145	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10146  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10147  ac_status=$?
10148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10149  test $ac_status = 0; }
10150	  then
10151	    lt_cv_archive_cmds_need_lc=no
10152	  else
10153	    lt_cv_archive_cmds_need_lc=yes
10154	  fi
10155	  allow_undefined_flag=$lt_save_allow_undefined_flag
10156	else
10157	  cat conftest.err 1>&5
10158	fi
10159	$RM conftest*
10160
10161fi
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10163$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10164      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10165      ;;
10166    esac
10167  fi
10168  ;;
10169esac
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323$as_echo_n "checking dynamic linker characteristics... " >&6; }
10324
10325if test yes = "$GCC"; then
10326  case $host_os in
10327    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10328    *) lt_awk_arg='/^libraries:/' ;;
10329  esac
10330  case $host_os in
10331    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10332    *) lt_sed_strip_eq='s|=/|/|g' ;;
10333  esac
10334  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335  case $lt_search_path_spec in
10336  *\;*)
10337    # if the path contains ";" then we assume it to be the separator
10338    # otherwise default to the standard path separator (i.e. ":") - it is
10339    # assumed that no part of a normal pathname contains ";" but that should
10340    # okay in the real world where ";" in dirpaths is itself problematic.
10341    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342    ;;
10343  *)
10344    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345    ;;
10346  esac
10347  # Ok, now we have the path, separated by spaces, we can step through it
10348  # and add multilib dir if necessary...
10349  lt_tmp_lt_search_path_spec=
10350  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351  # ...but if some path component already ends with the multilib dir we assume
10352  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10353  case "$lt_multi_os_dir; $lt_search_path_spec " in
10354  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10355    lt_multi_os_dir=
10356    ;;
10357  esac
10358  for lt_sys_path in $lt_search_path_spec; do
10359    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10360      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10361    elif test -n "$lt_multi_os_dir"; then
10362      test -d "$lt_sys_path" && \
10363	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10364    fi
10365  done
10366  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10367BEGIN {RS = " "; FS = "/|\n";} {
10368  lt_foo = "";
10369  lt_count = 0;
10370  for (lt_i = NF; lt_i > 0; lt_i--) {
10371    if ($lt_i != "" && $lt_i != ".") {
10372      if ($lt_i == "..") {
10373        lt_count++;
10374      } else {
10375        if (lt_count == 0) {
10376          lt_foo = "/" $lt_i lt_foo;
10377        } else {
10378          lt_count--;
10379        }
10380      }
10381    }
10382  }
10383  if (lt_foo != "") { lt_freq[lt_foo]++; }
10384  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10385}'`
10386  # AWK program above erroneously prepends '/' to C:/dos/paths
10387  # for these hosts.
10388  case $host_os in
10389    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10390      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10391  esac
10392  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10393else
10394  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10395fi
10396library_names_spec=
10397libname_spec='lib$name'
10398soname_spec=
10399shrext_cmds=.so
10400postinstall_cmds=
10401postuninstall_cmds=
10402finish_cmds=
10403finish_eval=
10404shlibpath_var=
10405shlibpath_overrides_runpath=unknown
10406version_type=none
10407dynamic_linker="$host_os ld.so"
10408sys_lib_dlsearch_path_spec="/lib /usr/lib"
10409need_lib_prefix=unknown
10410hardcode_into_libs=no
10411
10412# when you set need_version to no, make sure it does not cause -set_version
10413# flags to be left without arguments
10414need_version=unknown
10415
10416
10417
10418case $host_os in
10419aix3*)
10420  version_type=linux # correct to gnu/linux during the next big refactor
10421  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10422  shlibpath_var=LIBPATH
10423
10424  # AIX 3 has no versioning support, so we append a major version to the name.
10425  soname_spec='$libname$release$shared_ext$major'
10426  ;;
10427
10428aix[4-9]*)
10429  version_type=linux # correct to gnu/linux during the next big refactor
10430  need_lib_prefix=no
10431  need_version=no
10432  hardcode_into_libs=yes
10433  if test ia64 = "$host_cpu"; then
10434    # AIX 5 supports IA64
10435    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10436    shlibpath_var=LD_LIBRARY_PATH
10437  else
10438    # With GCC up to 2.95.x, collect2 would create an import file
10439    # for dependence libraries.  The import file would start with
10440    # the line '#! .'.  This would cause the generated library to
10441    # depend on '.', always an invalid library.  This was fixed in
10442    # development snapshots of GCC prior to 3.0.
10443    case $host_os in
10444      aix4 | aix4.[01] | aix4.[01].*)
10445      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10446	   echo ' yes '
10447	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10448	:
10449      else
10450	can_build_shared=no
10451      fi
10452      ;;
10453    esac
10454    # Using Import Files as archive members, it is possible to support
10455    # filename-based versioning of shared library archives on AIX. While
10456    # this would work for both with and without runtime linking, it will
10457    # prevent static linking of such archives. So we do filename-based
10458    # shared library versioning with .so extension only, which is used
10459    # when both runtime linking and shared linking is enabled.
10460    # Unfortunately, runtime linking may impact performance, so we do
10461    # not want this to be the default eventually. Also, we use the
10462    # versioned .so libs for executables only if there is the -brtl
10463    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10464    # To allow for filename-based versioning support, we need to create
10465    # libNAME.so.V as an archive file, containing:
10466    # *) an Import File, referring to the versioned filename of the
10467    #    archive as well as the shared archive member, telling the
10468    #    bitwidth (32 or 64) of that shared object, and providing the
10469    #    list of exported symbols of that shared object, eventually
10470    #    decorated with the 'weak' keyword
10471    # *) the shared object with the F_LOADONLY flag set, to really avoid
10472    #    it being seen by the linker.
10473    # At run time we better use the real file rather than another symlink,
10474    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10475
10476    case $with_aix_soname,$aix_use_runtimelinking in
10477    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10478    # soname into executable. Probably we can add versioning support to
10479    # collect2, so additional links can be useful in future.
10480    aix,yes) # traditional libtool
10481      dynamic_linker='AIX unversionable lib.so'
10482      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10483      # instead of lib<name>.a to let people know that these are not
10484      # typical AIX shared libraries.
10485      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10486      ;;
10487    aix,no) # traditional AIX only
10488      dynamic_linker='AIX lib.a(lib.so.V)'
10489      # We preserve .a as extension for shared libraries through AIX4.2
10490      # and later when we are not doing run time linking.
10491      library_names_spec='$libname$release.a $libname.a'
10492      soname_spec='$libname$release$shared_ext$major'
10493      ;;
10494    svr4,*) # full svr4 only
10495      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10496      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10497      # We do not specify a path in Import Files, so LIBPATH fires.
10498      shlibpath_overrides_runpath=yes
10499      ;;
10500    *,yes) # both, prefer svr4
10501      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10502      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10503      # unpreferred sharedlib libNAME.a needs extra handling
10504      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10505      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10506      # We do not specify a path in Import Files, so LIBPATH fires.
10507      shlibpath_overrides_runpath=yes
10508      ;;
10509    *,no) # both, prefer aix
10510      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10511      library_names_spec='$libname$release.a $libname.a'
10512      soname_spec='$libname$release$shared_ext$major'
10513      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10514      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10515      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10516      ;;
10517    esac
10518    shlibpath_var=LIBPATH
10519  fi
10520  ;;
10521
10522amigaos*)
10523  case $host_cpu in
10524  powerpc)
10525    # Since July 2007 AmigaOS4 officially supports .so libraries.
10526    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10527    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528    ;;
10529  m68k)
10530    library_names_spec='$libname.ixlibrary $libname.a'
10531    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10532    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10533    ;;
10534  esac
10535  ;;
10536
10537beos*)
10538  library_names_spec='$libname$shared_ext'
10539  dynamic_linker="$host_os ld.so"
10540  shlibpath_var=LIBRARY_PATH
10541  ;;
10542
10543bsdi[45]*)
10544  version_type=linux # correct to gnu/linux during the next big refactor
10545  need_version=no
10546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10547  soname_spec='$libname$release$shared_ext$major'
10548  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10549  shlibpath_var=LD_LIBRARY_PATH
10550  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10551  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10552  # the default ld.so.conf also contains /usr/contrib/lib and
10553  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10554  # libtool to hard-code these into programs
10555  ;;
10556
10557cygwin* | mingw* | pw32* | cegcc*)
10558  version_type=windows
10559  shrext_cmds=.dll
10560  need_version=no
10561  need_lib_prefix=no
10562
10563  case $GCC,$cc_basename in
10564  yes,*)
10565    # gcc
10566    library_names_spec='$libname.dll.a'
10567    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10568    postinstall_cmds='base_file=`basename \$file`~
10569      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10570      dldir=$destdir/`dirname \$dlpath`~
10571      test -d \$dldir || mkdir -p \$dldir~
10572      $install_prog $dir/$dlname \$dldir/$dlname~
10573      chmod a+x \$dldir/$dlname~
10574      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10575        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10576      fi'
10577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10578      dlpath=$dir/\$dldll~
10579       $RM \$dlpath'
10580    shlibpath_overrides_runpath=yes
10581
10582    case $host_os in
10583    cygwin*)
10584      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10585      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10586
10587      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10588      ;;
10589    mingw* | cegcc*)
10590      # MinGW DLLs use traditional 'lib' prefix
10591      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10592      ;;
10593    pw32*)
10594      # pw32 DLLs use 'pw' prefix rather than 'lib'
10595      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10596      ;;
10597    esac
10598    dynamic_linker='Win32 ld.exe'
10599    ;;
10600
10601  *,cl*)
10602    # Native MSVC
10603    libname_spec='$name'
10604    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10605    library_names_spec='$libname.dll.lib'
10606
10607    case $build_os in
10608    mingw*)
10609      sys_lib_search_path_spec=
10610      lt_save_ifs=$IFS
10611      IFS=';'
10612      for lt_path in $LIB
10613      do
10614        IFS=$lt_save_ifs
10615        # Let DOS variable expansion print the short 8.3 style file name.
10616        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10617        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10618      done
10619      IFS=$lt_save_ifs
10620      # Convert to MSYS style.
10621      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10622      ;;
10623    cygwin*)
10624      # Convert to unix form, then to dos form, then back to unix form
10625      # but this time dos style (no spaces!) so that the unix form looks
10626      # like /cygdrive/c/PROGRA~1:/cygdr...
10627      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10628      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10629      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10630      ;;
10631    *)
10632      sys_lib_search_path_spec=$LIB
10633      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10634        # It is most probably a Windows format PATH.
10635        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10636      else
10637        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10638      fi
10639      # FIXME: find the short name or the path components, as spaces are
10640      # common. (e.g. "Program Files" -> "PROGRA~1")
10641      ;;
10642    esac
10643
10644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645    postinstall_cmds='base_file=`basename \$file`~
10646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10647      dldir=$destdir/`dirname \$dlpath`~
10648      test -d \$dldir || mkdir -p \$dldir~
10649      $install_prog $dir/$dlname \$dldir/$dlname'
10650    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651      dlpath=$dir/\$dldll~
10652       $RM \$dlpath'
10653    shlibpath_overrides_runpath=yes
10654    dynamic_linker='Win32 link.exe'
10655    ;;
10656
10657  *)
10658    # Assume MSVC wrapper
10659    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10660    dynamic_linker='Win32 ld.exe'
10661    ;;
10662  esac
10663  # FIXME: first we should search . and the directory the executable is in
10664  shlibpath_var=PATH
10665  ;;
10666
10667darwin* | rhapsody*)
10668  dynamic_linker="$host_os dyld"
10669  version_type=darwin
10670  need_lib_prefix=no
10671  need_version=no
10672  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10673  soname_spec='$libname$release$major$shared_ext'
10674  shlibpath_overrides_runpath=yes
10675  shlibpath_var=DYLD_LIBRARY_PATH
10676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10677
10678  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10679  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10680  ;;
10681
10682dgux*)
10683  version_type=linux # correct to gnu/linux during the next big refactor
10684  need_lib_prefix=no
10685  need_version=no
10686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10687  soname_spec='$libname$release$shared_ext$major'
10688  shlibpath_var=LD_LIBRARY_PATH
10689  ;;
10690
10691freebsd* | dragonfly*)
10692  # DragonFly does not have aout.  When/if they implement a new
10693  # versioning mechanism, adjust this.
10694  if test -x /usr/bin/objformat; then
10695    objformat=`/usr/bin/objformat`
10696  else
10697    case $host_os in
10698    freebsd[23].*) objformat=aout ;;
10699    *) objformat=elf ;;
10700    esac
10701  fi
10702  version_type=freebsd-$objformat
10703  case $version_type in
10704    freebsd-elf*)
10705      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10706      soname_spec='$libname$release$shared_ext$major'
10707      need_version=no
10708      need_lib_prefix=no
10709      ;;
10710    freebsd-*)
10711      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10712      need_version=yes
10713      ;;
10714  esac
10715  shlibpath_var=LD_LIBRARY_PATH
10716  case $host_os in
10717  freebsd2.*)
10718    shlibpath_overrides_runpath=yes
10719    ;;
10720  freebsd3.[01]* | freebsdelf3.[01]*)
10721    shlibpath_overrides_runpath=yes
10722    hardcode_into_libs=yes
10723    ;;
10724  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10725  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10726    shlibpath_overrides_runpath=no
10727    hardcode_into_libs=yes
10728    ;;
10729  *) # from 4.6 on, and DragonFly
10730    shlibpath_overrides_runpath=yes
10731    hardcode_into_libs=yes
10732    ;;
10733  esac
10734  ;;
10735
10736haiku*)
10737  version_type=linux # correct to gnu/linux during the next big refactor
10738  need_lib_prefix=no
10739  need_version=no
10740  dynamic_linker="$host_os runtime_loader"
10741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10742  soname_spec='$libname$release$shared_ext$major'
10743  shlibpath_var=LIBRARY_PATH
10744  shlibpath_overrides_runpath=no
10745  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10746  hardcode_into_libs=yes
10747  ;;
10748
10749hpux9* | hpux10* | hpux11*)
10750  # Give a soname corresponding to the major version so that dld.sl refuses to
10751  # link against other versions.
10752  version_type=sunos
10753  need_lib_prefix=no
10754  need_version=no
10755  case $host_cpu in
10756  ia64*)
10757    shrext_cmds='.so'
10758    hardcode_into_libs=yes
10759    dynamic_linker="$host_os dld.so"
10760    shlibpath_var=LD_LIBRARY_PATH
10761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763    soname_spec='$libname$release$shared_ext$major'
10764    if test 32 = "$HPUX_IA64_MODE"; then
10765      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10766      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10767    else
10768      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10769      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10770    fi
10771    ;;
10772  hppa*64*)
10773    shrext_cmds='.sl'
10774    hardcode_into_libs=yes
10775    dynamic_linker="$host_os dld.sl"
10776    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10778    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10779    soname_spec='$libname$release$shared_ext$major'
10780    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10781    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10782    ;;
10783  *)
10784    shrext_cmds='.sl'
10785    dynamic_linker="$host_os dld.sl"
10786    shlibpath_var=SHLIB_PATH
10787    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10789    soname_spec='$libname$release$shared_ext$major'
10790    ;;
10791  esac
10792  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10793  postinstall_cmds='chmod 555 $lib'
10794  # or fails outright, so override atomically:
10795  install_override_mode=555
10796  ;;
10797
10798interix[3-9]*)
10799  version_type=linux # correct to gnu/linux during the next big refactor
10800  need_lib_prefix=no
10801  need_version=no
10802  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10803  soname_spec='$libname$release$shared_ext$major'
10804  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10805  shlibpath_var=LD_LIBRARY_PATH
10806  shlibpath_overrides_runpath=no
10807  hardcode_into_libs=yes
10808  ;;
10809
10810irix5* | irix6* | nonstopux*)
10811  case $host_os in
10812    nonstopux*) version_type=nonstopux ;;
10813    *)
10814	if test yes = "$lt_cv_prog_gnu_ld"; then
10815		version_type=linux # correct to gnu/linux during the next big refactor
10816	else
10817		version_type=irix
10818	fi ;;
10819  esac
10820  need_lib_prefix=no
10821  need_version=no
10822  soname_spec='$libname$release$shared_ext$major'
10823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10824  case $host_os in
10825  irix5* | nonstopux*)
10826    libsuff= shlibsuff=
10827    ;;
10828  *)
10829    case $LD in # libtool.m4 will add one of these switches to LD
10830    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10831      libsuff= shlibsuff= libmagic=32-bit;;
10832    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10833      libsuff=32 shlibsuff=N32 libmagic=N32;;
10834    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10835      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10836    *) libsuff= shlibsuff= libmagic=never-match;;
10837    esac
10838    ;;
10839  esac
10840  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10841  shlibpath_overrides_runpath=no
10842  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10843  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10844  hardcode_into_libs=yes
10845  ;;
10846
10847# No shared lib support for Linux oldld, aout, or coff.
10848linux*oldld* | linux*aout* | linux*coff*)
10849  dynamic_linker=no
10850  ;;
10851
10852linux*android*)
10853  version_type=none # Android doesn't support versioned libraries.
10854  need_lib_prefix=no
10855  need_version=no
10856  library_names_spec='$libname$release$shared_ext'
10857  soname_spec='$libname$release$shared_ext'
10858  finish_cmds=
10859  shlibpath_var=LD_LIBRARY_PATH
10860  shlibpath_overrides_runpath=yes
10861
10862  # This implies no fast_install, which is unacceptable.
10863  # Some rework will be needed to allow for fast_install
10864  # before this can be enabled.
10865  hardcode_into_libs=yes
10866
10867  dynamic_linker='Android linker'
10868  # Don't embed -rpath directories since the linker doesn't support them.
10869  hardcode_libdir_flag_spec='-L$libdir'
10870  ;;
10871
10872# This must be glibc/ELF.
10873linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10874  version_type=linux # correct to gnu/linux during the next big refactor
10875  need_lib_prefix=no
10876  need_version=no
10877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878  soname_spec='$libname$release$shared_ext$major'
10879  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10880  shlibpath_var=LD_LIBRARY_PATH
10881  shlibpath_overrides_runpath=no
10882
10883  # Some binutils ld are patched to set DT_RUNPATH
10884  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10885  $as_echo_n "(cached) " >&6
10886else
10887  lt_cv_shlibpath_overrides_runpath=no
10888    save_LDFLAGS=$LDFLAGS
10889    save_libdir=$libdir
10890    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10891	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894
10895int
10896main ()
10897{
10898
10899  ;
10900  return 0;
10901}
10902_ACEOF
10903if ac_fn_c_try_link "$LINENO"; then :
10904  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10905  lt_cv_shlibpath_overrides_runpath=yes
10906fi
10907fi
10908rm -f core conftest.err conftest.$ac_objext \
10909    conftest$ac_exeext conftest.$ac_ext
10910    LDFLAGS=$save_LDFLAGS
10911    libdir=$save_libdir
10912
10913fi
10914
10915  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10916
10917  # This implies no fast_install, which is unacceptable.
10918  # Some rework will be needed to allow for fast_install
10919  # before this can be enabled.
10920  hardcode_into_libs=yes
10921
10922  # Add ABI-specific directories to the system library path.
10923  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10924
10925  # Ideally, we could use ldconfig to report *all* directores which are
10926  # searched for libraries, however this is still not possible.  Aside from not
10927  # being certain /sbin/ldconfig is available, command
10928  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10929  # even though it is searched at run-time.  Try to do the best guess by
10930  # appending ld.so.conf contents (and includes) to the search path.
10931  if test -f /etc/ld.so.conf; then
10932    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' ' '`
10933    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10934  fi
10935
10936  # We used to test for /lib/ld.so.1 and disable shared libraries on
10937  # powerpc, because MkLinux only supported shared libraries with the
10938  # GNU dynamic linker.  Since this was broken with cross compilers,
10939  # most powerpc-linux boxes support dynamic linking these days and
10940  # people can always --disable-shared, the test was removed, and we
10941  # assume the GNU/Linux dynamic linker is in use.
10942  dynamic_linker='GNU/Linux ld.so'
10943  ;;
10944
10945netbsd*)
10946  version_type=sunos
10947  need_lib_prefix=no
10948  need_version=no
10949  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10950    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10951    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10952    dynamic_linker='NetBSD (a.out) ld.so'
10953  else
10954    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955    soname_spec='$libname$release$shared_ext$major'
10956    dynamic_linker='NetBSD ld.elf_so'
10957  fi
10958  shlibpath_var=LD_LIBRARY_PATH
10959  shlibpath_overrides_runpath=yes
10960  hardcode_into_libs=yes
10961  ;;
10962
10963newsos6)
10964  version_type=linux # correct to gnu/linux during the next big refactor
10965  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10966  shlibpath_var=LD_LIBRARY_PATH
10967  shlibpath_overrides_runpath=yes
10968  ;;
10969
10970*nto* | *qnx*)
10971  version_type=qnx
10972  need_lib_prefix=no
10973  need_version=no
10974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10975  soname_spec='$libname$release$shared_ext$major'
10976  shlibpath_var=LD_LIBRARY_PATH
10977  shlibpath_overrides_runpath=no
10978  hardcode_into_libs=yes
10979  dynamic_linker='ldqnx.so'
10980  ;;
10981
10982openbsd* | bitrig*)
10983  version_type=sunos
10984  sys_lib_dlsearch_path_spec=/usr/lib
10985  need_lib_prefix=no
10986  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10987    need_version=no
10988  else
10989    need_version=yes
10990  fi
10991  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10992  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10993  shlibpath_var=LD_LIBRARY_PATH
10994  shlibpath_overrides_runpath=yes
10995  ;;
10996
10997os2*)
10998  libname_spec='$name'
10999  version_type=windows
11000  shrext_cmds=.dll
11001  need_version=no
11002  need_lib_prefix=no
11003  # OS/2 can only load a DLL with a base name of 8 characters or less.
11004  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11005    v=$($ECHO $release$versuffix | tr -d .-);
11006    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11007    $ECHO $n$v`$shared_ext'
11008  library_names_spec='${libname}_dll.$libext'
11009  dynamic_linker='OS/2 ld.exe'
11010  shlibpath_var=BEGINLIBPATH
11011  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11012  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013  postinstall_cmds='base_file=`basename \$file`~
11014    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11015    dldir=$destdir/`dirname \$dlpath`~
11016    test -d \$dldir || mkdir -p \$dldir~
11017    $install_prog $dir/$dlname \$dldir/$dlname~
11018    chmod a+x \$dldir/$dlname~
11019    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11020      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11021    fi'
11022  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11023    dlpath=$dir/\$dldll~
11024    $RM \$dlpath'
11025  ;;
11026
11027osf3* | osf4* | osf5*)
11028  version_type=osf
11029  need_lib_prefix=no
11030  need_version=no
11031  soname_spec='$libname$release$shared_ext$major'
11032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033  shlibpath_var=LD_LIBRARY_PATH
11034  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11035  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11036  ;;
11037
11038rdos*)
11039  dynamic_linker=no
11040  ;;
11041
11042solaris*)
11043  version_type=linux # correct to gnu/linux during the next big refactor
11044  need_lib_prefix=no
11045  need_version=no
11046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11047  soname_spec='$libname$release$shared_ext$major'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  shlibpath_overrides_runpath=yes
11050  hardcode_into_libs=yes
11051  # ldd complains unless libraries are executable
11052  postinstall_cmds='chmod +x $lib'
11053  ;;
11054
11055sunos4*)
11056  version_type=sunos
11057  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11058  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11059  shlibpath_var=LD_LIBRARY_PATH
11060  shlibpath_overrides_runpath=yes
11061  if test yes = "$with_gnu_ld"; then
11062    need_lib_prefix=no
11063  fi
11064  need_version=yes
11065  ;;
11066
11067sysv4 | sysv4.3*)
11068  version_type=linux # correct to gnu/linux during the next big refactor
11069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070  soname_spec='$libname$release$shared_ext$major'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  case $host_vendor in
11073    sni)
11074      shlibpath_overrides_runpath=no
11075      need_lib_prefix=no
11076      runpath_var=LD_RUN_PATH
11077      ;;
11078    siemens)
11079      need_lib_prefix=no
11080      ;;
11081    motorola)
11082      need_lib_prefix=no
11083      need_version=no
11084      shlibpath_overrides_runpath=no
11085      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11086      ;;
11087  esac
11088  ;;
11089
11090sysv4*MP*)
11091  if test -d /usr/nec; then
11092    version_type=linux # correct to gnu/linux during the next big refactor
11093    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11094    soname_spec='$libname$shared_ext.$major'
11095    shlibpath_var=LD_LIBRARY_PATH
11096  fi
11097  ;;
11098
11099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11100  version_type=sco
11101  need_lib_prefix=no
11102  need_version=no
11103  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11104  soname_spec='$libname$release$shared_ext$major'
11105  shlibpath_var=LD_LIBRARY_PATH
11106  shlibpath_overrides_runpath=yes
11107  hardcode_into_libs=yes
11108  if test yes = "$with_gnu_ld"; then
11109    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11110  else
11111    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11112    case $host_os in
11113      sco3.2v5*)
11114        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11115	;;
11116    esac
11117  fi
11118  sys_lib_dlsearch_path_spec='/usr/lib'
11119  ;;
11120
11121tpf*)
11122  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11123  version_type=linux # correct to gnu/linux during the next big refactor
11124  need_lib_prefix=no
11125  need_version=no
11126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127  shlibpath_var=LD_LIBRARY_PATH
11128  shlibpath_overrides_runpath=no
11129  hardcode_into_libs=yes
11130  ;;
11131
11132uts4*)
11133  version_type=linux # correct to gnu/linux during the next big refactor
11134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135  soname_spec='$libname$release$shared_ext$major'
11136  shlibpath_var=LD_LIBRARY_PATH
11137  ;;
11138
11139*)
11140  dynamic_linker=no
11141  ;;
11142esac
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11144$as_echo "$dynamic_linker" >&6; }
11145test no = "$dynamic_linker" && can_build_shared=no
11146
11147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11148if test yes = "$GCC"; then
11149  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11150fi
11151
11152if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11153  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11154fi
11155
11156if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11157  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11158fi
11159
11160# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11161configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11162
11163# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11164func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11165
11166# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11167configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11266$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11267hardcode_action=
11268if test -n "$hardcode_libdir_flag_spec" ||
11269   test -n "$runpath_var" ||
11270   test yes = "$hardcode_automatic"; then
11271
11272  # We can hardcode non-existent directories.
11273  if test no != "$hardcode_direct" &&
11274     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11275     # have to relink, otherwise we might link with an installed library
11276     # when we should be linking with a yet-to-be-installed one
11277     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11278     test no != "$hardcode_minus_L"; then
11279    # Linking always hardcodes the temporary library directory.
11280    hardcode_action=relink
11281  else
11282    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11283    hardcode_action=immediate
11284  fi
11285else
11286  # We cannot hardcode anything, or else we can only hardcode existing
11287  # directories.
11288  hardcode_action=unsupported
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11291$as_echo "$hardcode_action" >&6; }
11292
11293if test relink = "$hardcode_action" ||
11294   test yes = "$inherit_rpath"; then
11295  # Fast installation is not supported
11296  enable_fast_install=no
11297elif test yes = "$shlibpath_overrides_runpath" ||
11298     test no = "$enable_shared"; then
11299  # Fast installation is not necessary
11300  enable_fast_install=needless
11301fi
11302
11303
11304
11305
11306
11307
11308  if test yes != "$enable_dlopen"; then
11309  enable_dlopen=unknown
11310  enable_dlopen_self=unknown
11311  enable_dlopen_self_static=unknown
11312else
11313  lt_cv_dlopen=no
11314  lt_cv_dlopen_libs=
11315
11316  case $host_os in
11317  beos*)
11318    lt_cv_dlopen=load_add_on
11319    lt_cv_dlopen_libs=
11320    lt_cv_dlopen_self=yes
11321    ;;
11322
11323  mingw* | pw32* | cegcc*)
11324    lt_cv_dlopen=LoadLibrary
11325    lt_cv_dlopen_libs=
11326    ;;
11327
11328  cygwin*)
11329    lt_cv_dlopen=dlopen
11330    lt_cv_dlopen_libs=
11331    ;;
11332
11333  darwin*)
11334    # if libdl is installed we need to link against it
11335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11336$as_echo_n "checking for dlopen in -ldl... " >&6; }
11337if ${ac_cv_lib_dl_dlopen+:} false; then :
11338  $as_echo_n "(cached) " >&6
11339else
11340  ac_check_lib_save_LIBS=$LIBS
11341LIBS="-ldl  $LIBS"
11342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345/* Override any GCC internal prototype to avoid an error.
11346   Use char because int might match the return type of a GCC
11347   builtin and then its argument prototype would still apply.  */
11348#ifdef __cplusplus
11349extern "C"
11350#endif
11351char dlopen ();
11352int
11353main ()
11354{
11355return dlopen ();
11356  ;
11357  return 0;
11358}
11359_ACEOF
11360if ac_fn_c_try_link "$LINENO"; then :
11361  ac_cv_lib_dl_dlopen=yes
11362else
11363  ac_cv_lib_dl_dlopen=no
11364fi
11365rm -f core conftest.err conftest.$ac_objext \
11366    conftest$ac_exeext conftest.$ac_ext
11367LIBS=$ac_check_lib_save_LIBS
11368fi
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11370$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11371if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11372  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11373else
11374
11375    lt_cv_dlopen=dyld
11376    lt_cv_dlopen_libs=
11377    lt_cv_dlopen_self=yes
11378
11379fi
11380
11381    ;;
11382
11383  tpf*)
11384    # Don't try to run any link tests for TPF.  We know it's impossible
11385    # because TPF is a cross-compiler, and we know how we open DSOs.
11386    lt_cv_dlopen=dlopen
11387    lt_cv_dlopen_libs=
11388    lt_cv_dlopen_self=no
11389    ;;
11390
11391  *)
11392    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11393if test "x$ac_cv_func_shl_load" = xyes; then :
11394  lt_cv_dlopen=shl_load
11395else
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11397$as_echo_n "checking for shl_load in -ldld... " >&6; }
11398if ${ac_cv_lib_dld_shl_load+:} false; then :
11399  $as_echo_n "(cached) " >&6
11400else
11401  ac_check_lib_save_LIBS=$LIBS
11402LIBS="-ldld  $LIBS"
11403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404/* end confdefs.h.  */
11405
11406/* Override any GCC internal prototype to avoid an error.
11407   Use char because int might match the return type of a GCC
11408   builtin and then its argument prototype would still apply.  */
11409#ifdef __cplusplus
11410extern "C"
11411#endif
11412char shl_load ();
11413int
11414main ()
11415{
11416return shl_load ();
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_link "$LINENO"; then :
11422  ac_cv_lib_dld_shl_load=yes
11423else
11424  ac_cv_lib_dld_shl_load=no
11425fi
11426rm -f core conftest.err conftest.$ac_objext \
11427    conftest$ac_exeext conftest.$ac_ext
11428LIBS=$ac_check_lib_save_LIBS
11429fi
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11431$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11432if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11433  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11434else
11435  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11436if test "x$ac_cv_func_dlopen" = xyes; then :
11437  lt_cv_dlopen=dlopen
11438else
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440$as_echo_n "checking for dlopen in -ldl... " >&6; }
11441if ${ac_cv_lib_dl_dlopen+:} false; then :
11442  $as_echo_n "(cached) " >&6
11443else
11444  ac_check_lib_save_LIBS=$LIBS
11445LIBS="-ldl  $LIBS"
11446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447/* end confdefs.h.  */
11448
11449/* Override any GCC internal prototype to avoid an error.
11450   Use char because int might match the return type of a GCC
11451   builtin and then its argument prototype would still apply.  */
11452#ifdef __cplusplus
11453extern "C"
11454#endif
11455char dlopen ();
11456int
11457main ()
11458{
11459return dlopen ();
11460  ;
11461  return 0;
11462}
11463_ACEOF
11464if ac_fn_c_try_link "$LINENO"; then :
11465  ac_cv_lib_dl_dlopen=yes
11466else
11467  ac_cv_lib_dl_dlopen=no
11468fi
11469rm -f core conftest.err conftest.$ac_objext \
11470    conftest$ac_exeext conftest.$ac_ext
11471LIBS=$ac_check_lib_save_LIBS
11472fi
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11477else
11478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11479$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11480if ${ac_cv_lib_svld_dlopen+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  ac_check_lib_save_LIBS=$LIBS
11484LIBS="-lsvld  $LIBS"
11485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486/* end confdefs.h.  */
11487
11488/* Override any GCC internal prototype to avoid an error.
11489   Use char because int might match the return type of a GCC
11490   builtin and then its argument prototype would still apply.  */
11491#ifdef __cplusplus
11492extern "C"
11493#endif
11494char dlopen ();
11495int
11496main ()
11497{
11498return dlopen ();
11499  ;
11500  return 0;
11501}
11502_ACEOF
11503if ac_fn_c_try_link "$LINENO"; then :
11504  ac_cv_lib_svld_dlopen=yes
11505else
11506  ac_cv_lib_svld_dlopen=no
11507fi
11508rm -f core conftest.err conftest.$ac_objext \
11509    conftest$ac_exeext conftest.$ac_ext
11510LIBS=$ac_check_lib_save_LIBS
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11513$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11514if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11515  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11516else
11517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11518$as_echo_n "checking for dld_link in -ldld... " >&6; }
11519if ${ac_cv_lib_dld_dld_link+:} false; then :
11520  $as_echo_n "(cached) " >&6
11521else
11522  ac_check_lib_save_LIBS=$LIBS
11523LIBS="-ldld  $LIBS"
11524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525/* end confdefs.h.  */
11526
11527/* Override any GCC internal prototype to avoid an error.
11528   Use char because int might match the return type of a GCC
11529   builtin and then its argument prototype would still apply.  */
11530#ifdef __cplusplus
11531extern "C"
11532#endif
11533char dld_link ();
11534int
11535main ()
11536{
11537return dld_link ();
11538  ;
11539  return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  ac_cv_lib_dld_dld_link=yes
11544else
11545  ac_cv_lib_dld_dld_link=no
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548    conftest$ac_exeext conftest.$ac_ext
11549LIBS=$ac_check_lib_save_LIBS
11550fi
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11552$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11553if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11554  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11555fi
11556
11557
11558fi
11559
11560
11561fi
11562
11563
11564fi
11565
11566
11567fi
11568
11569
11570fi
11571
11572    ;;
11573  esac
11574
11575  if test no = "$lt_cv_dlopen"; then
11576    enable_dlopen=no
11577  else
11578    enable_dlopen=yes
11579  fi
11580
11581  case $lt_cv_dlopen in
11582  dlopen)
11583    save_CPPFLAGS=$CPPFLAGS
11584    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11585
11586    save_LDFLAGS=$LDFLAGS
11587    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11588
11589    save_LIBS=$LIBS
11590    LIBS="$lt_cv_dlopen_libs $LIBS"
11591
11592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11593$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11594if ${lt_cv_dlopen_self+:} false; then :
11595  $as_echo_n "(cached) " >&6
11596else
11597  	  if test yes = "$cross_compiling"; then :
11598  lt_cv_dlopen_self=cross
11599else
11600  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601  lt_status=$lt_dlunknown
11602  cat > conftest.$ac_ext <<_LT_EOF
11603#line $LINENO "configure"
11604#include "confdefs.h"
11605
11606#if HAVE_DLFCN_H
11607#include <dlfcn.h>
11608#endif
11609
11610#include <stdio.h>
11611
11612#ifdef RTLD_GLOBAL
11613#  define LT_DLGLOBAL		RTLD_GLOBAL
11614#else
11615#  ifdef DL_GLOBAL
11616#    define LT_DLGLOBAL		DL_GLOBAL
11617#  else
11618#    define LT_DLGLOBAL		0
11619#  endif
11620#endif
11621
11622/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623   find out it does not work in some platform. */
11624#ifndef LT_DLLAZY_OR_NOW
11625#  ifdef RTLD_LAZY
11626#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11627#  else
11628#    ifdef DL_LAZY
11629#      define LT_DLLAZY_OR_NOW		DL_LAZY
11630#    else
11631#      ifdef RTLD_NOW
11632#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11633#      else
11634#        ifdef DL_NOW
11635#          define LT_DLLAZY_OR_NOW	DL_NOW
11636#        else
11637#          define LT_DLLAZY_OR_NOW	0
11638#        endif
11639#      endif
11640#    endif
11641#  endif
11642#endif
11643
11644/* When -fvisibility=hidden is used, assume the code has been annotated
11645   correspondingly for the symbols needed.  */
11646#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647int fnord () __attribute__((visibility("default")));
11648#endif
11649
11650int fnord () { return 42; }
11651int main ()
11652{
11653  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654  int status = $lt_dlunknown;
11655
11656  if (self)
11657    {
11658      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11659      else
11660        {
11661	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11662          else puts (dlerror ());
11663	}
11664      /* dlclose (self); */
11665    }
11666  else
11667    puts (dlerror ());
11668
11669  return status;
11670}
11671_LT_EOF
11672  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673  (eval $ac_link) 2>&5
11674  ac_status=$?
11675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11677    (./conftest; exit; ) >&5 2>/dev/null
11678    lt_status=$?
11679    case x$lt_status in
11680      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11681      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11682      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11683    esac
11684  else :
11685    # compilation failed
11686    lt_cv_dlopen_self=no
11687  fi
11688fi
11689rm -fr conftest*
11690
11691
11692fi
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11694$as_echo "$lt_cv_dlopen_self" >&6; }
11695
11696    if test yes = "$lt_cv_dlopen_self"; then
11697      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11698      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11699$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11700if ${lt_cv_dlopen_self_static+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  	  if test yes = "$cross_compiling"; then :
11704  lt_cv_dlopen_self_static=cross
11705else
11706  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11707  lt_status=$lt_dlunknown
11708  cat > conftest.$ac_ext <<_LT_EOF
11709#line $LINENO "configure"
11710#include "confdefs.h"
11711
11712#if HAVE_DLFCN_H
11713#include <dlfcn.h>
11714#endif
11715
11716#include <stdio.h>
11717
11718#ifdef RTLD_GLOBAL
11719#  define LT_DLGLOBAL		RTLD_GLOBAL
11720#else
11721#  ifdef DL_GLOBAL
11722#    define LT_DLGLOBAL		DL_GLOBAL
11723#  else
11724#    define LT_DLGLOBAL		0
11725#  endif
11726#endif
11727
11728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11729   find out it does not work in some platform. */
11730#ifndef LT_DLLAZY_OR_NOW
11731#  ifdef RTLD_LAZY
11732#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11733#  else
11734#    ifdef DL_LAZY
11735#      define LT_DLLAZY_OR_NOW		DL_LAZY
11736#    else
11737#      ifdef RTLD_NOW
11738#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11739#      else
11740#        ifdef DL_NOW
11741#          define LT_DLLAZY_OR_NOW	DL_NOW
11742#        else
11743#          define LT_DLLAZY_OR_NOW	0
11744#        endif
11745#      endif
11746#    endif
11747#  endif
11748#endif
11749
11750/* When -fvisibility=hidden is used, assume the code has been annotated
11751   correspondingly for the symbols needed.  */
11752#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11753int fnord () __attribute__((visibility("default")));
11754#endif
11755
11756int fnord () { return 42; }
11757int main ()
11758{
11759  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11760  int status = $lt_dlunknown;
11761
11762  if (self)
11763    {
11764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11765      else
11766        {
11767	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11768          else puts (dlerror ());
11769	}
11770      /* dlclose (self); */
11771    }
11772  else
11773    puts (dlerror ());
11774
11775  return status;
11776}
11777_LT_EOF
11778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11779  (eval $ac_link) 2>&5
11780  ac_status=$?
11781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11783    (./conftest; exit; ) >&5 2>/dev/null
11784    lt_status=$?
11785    case x$lt_status in
11786      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11787      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11788      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11789    esac
11790  else :
11791    # compilation failed
11792    lt_cv_dlopen_self_static=no
11793  fi
11794fi
11795rm -fr conftest*
11796
11797
11798fi
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11800$as_echo "$lt_cv_dlopen_self_static" >&6; }
11801    fi
11802
11803    CPPFLAGS=$save_CPPFLAGS
11804    LDFLAGS=$save_LDFLAGS
11805    LIBS=$save_LIBS
11806    ;;
11807  esac
11808
11809  case $lt_cv_dlopen_self in
11810  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11811  *) enable_dlopen_self=unknown ;;
11812  esac
11813
11814  case $lt_cv_dlopen_self_static in
11815  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11816  *) enable_dlopen_self_static=unknown ;;
11817  esac
11818fi
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836striplib=
11837old_striplib=
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11839$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11840if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11841  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11842  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844$as_echo "yes" >&6; }
11845else
11846# FIXME - insert some real tests, host_os isn't really good enough
11847  case $host_os in
11848  darwin*)
11849    if test -n "$STRIP"; then
11850      striplib="$STRIP -x"
11851      old_striplib="$STRIP -S"
11852      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853$as_echo "yes" >&6; }
11854    else
11855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856$as_echo "no" >&6; }
11857    fi
11858    ;;
11859  *)
11860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862    ;;
11863  esac
11864fi
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877  # Report what library types will actually be built
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11879$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11881$as_echo "$can_build_shared" >&6; }
11882
11883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11884$as_echo_n "checking whether to build shared libraries... " >&6; }
11885  test no = "$can_build_shared" && enable_shared=no
11886
11887  # On AIX, shared libraries and static libraries use the same namespace, and
11888  # are all built from PIC.
11889  case $host_os in
11890  aix3*)
11891    test yes = "$enable_shared" && enable_static=no
11892    if test -n "$RANLIB"; then
11893      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11894      postinstall_cmds='$RANLIB $lib'
11895    fi
11896    ;;
11897
11898  aix[4-9]*)
11899    if test ia64 != "$host_cpu"; then
11900      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11901      yes,aix,yes) ;;			# shared object as lib.so file only
11902      yes,svr4,*) ;;			# shared object as lib.so archive member only
11903      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11904      esac
11905    fi
11906    ;;
11907  esac
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11909$as_echo "$enable_shared" >&6; }
11910
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11912$as_echo_n "checking whether to build static libraries... " >&6; }
11913  # Make sure either enable_shared or enable_static is yes.
11914  test yes = "$enable_shared" || enable_static=yes
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11916$as_echo "$enable_static" >&6; }
11917
11918
11919
11920
11921fi
11922ac_ext=c
11923ac_cpp='$CPP $CPPFLAGS'
11924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927
11928CC=$lt_save_CC
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944        ac_config_commands="$ac_config_commands libtool"
11945
11946
11947
11948
11949# Only expand once:
11950
11951
11952
11953# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11966$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11967if ${ac_cv_prog_cc_c99+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  ac_cv_prog_cc_c99=no
11971ac_save_CC=$CC
11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h.  */
11974#include <stdarg.h>
11975#include <stdbool.h>
11976#include <stdlib.h>
11977#include <wchar.h>
11978#include <stdio.h>
11979
11980// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11981#define debug(...) fprintf (stderr, __VA_ARGS__)
11982#define showlist(...) puts (#__VA_ARGS__)
11983#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11984static void
11985test_varargs_macros (void)
11986{
11987  int x = 1234;
11988  int y = 5678;
11989  debug ("Flag");
11990  debug ("X = %d\n", x);
11991  showlist (The first, second, and third items.);
11992  report (x>y, "x is %d but y is %d", x, y);
11993}
11994
11995// Check long long types.
11996#define BIG64 18446744073709551615ull
11997#define BIG32 4294967295ul
11998#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11999#if !BIG_OK
12000  your preprocessor is broken;
12001#endif
12002#if BIG_OK
12003#else
12004  your preprocessor is broken;
12005#endif
12006static long long int bignum = -9223372036854775807LL;
12007static unsigned long long int ubignum = BIG64;
12008
12009struct incomplete_array
12010{
12011  int datasize;
12012  double data[];
12013};
12014
12015struct named_init {
12016  int number;
12017  const wchar_t *name;
12018  double average;
12019};
12020
12021typedef const char *ccp;
12022
12023static inline int
12024test_restrict (ccp restrict text)
12025{
12026  // See if C++-style comments work.
12027  // Iterate through items via the restricted pointer.
12028  // Also check for declarations in for loops.
12029  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12030    continue;
12031  return 0;
12032}
12033
12034// Check varargs and va_copy.
12035static void
12036test_varargs (const char *format, ...)
12037{
12038  va_list args;
12039  va_start (args, format);
12040  va_list args_copy;
12041  va_copy (args_copy, args);
12042
12043  const char *str;
12044  int number;
12045  float fnumber;
12046
12047  while (*format)
12048    {
12049      switch (*format++)
12050	{
12051	case 's': // string
12052	  str = va_arg (args_copy, const char *);
12053	  break;
12054	case 'd': // int
12055	  number = va_arg (args_copy, int);
12056	  break;
12057	case 'f': // float
12058	  fnumber = va_arg (args_copy, double);
12059	  break;
12060	default:
12061	  break;
12062	}
12063    }
12064  va_end (args_copy);
12065  va_end (args);
12066}
12067
12068int
12069main ()
12070{
12071
12072  // Check bool.
12073  _Bool success = false;
12074
12075  // Check restrict.
12076  if (test_restrict ("String literal") == 0)
12077    success = true;
12078  char *restrict newvar = "Another string";
12079
12080  // Check varargs.
12081  test_varargs ("s, d' f .", "string", 65, 34.234);
12082  test_varargs_macros ();
12083
12084  // Check flexible array members.
12085  struct incomplete_array *ia =
12086    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12087  ia->datasize = 10;
12088  for (int i = 0; i < ia->datasize; ++i)
12089    ia->data[i] = i * 1.234;
12090
12091  // Check named initializers.
12092  struct named_init ni = {
12093    .number = 34,
12094    .name = L"Test wide string",
12095    .average = 543.34343,
12096  };
12097
12098  ni.number = 58;
12099
12100  int dynamic_array[ni.number];
12101  dynamic_array[ni.number - 1] = 543;
12102
12103  // work around unused variable warnings
12104  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12105	  || dynamic_array[ni.number - 1] != 543);
12106
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12112do
12113  CC="$ac_save_CC $ac_arg"
12114  if ac_fn_c_try_compile "$LINENO"; then :
12115  ac_cv_prog_cc_c99=$ac_arg
12116fi
12117rm -f core conftest.err conftest.$ac_objext
12118  test "x$ac_cv_prog_cc_c99" != "xno" && break
12119done
12120rm -f conftest.$ac_ext
12121CC=$ac_save_CC
12122
12123fi
12124# AC_CACHE_VAL
12125case "x$ac_cv_prog_cc_c99" in
12126  x)
12127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12128$as_echo "none needed" >&6; } ;;
12129  xno)
12130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12131$as_echo "unsupported" >&6; } ;;
12132  *)
12133    CC="$CC $ac_cv_prog_cc_c99"
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12135$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12136esac
12137if test "x$ac_cv_prog_cc_c99" != xno; then :
12138
12139fi
12140
12141
12142
12143
12144
12145
12146ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12147if test "x$ac_cv_have_decl___clang__" = xyes; then :
12148  CLANGCC="yes"
12149else
12150  CLANGCC="no"
12151fi
12152
12153ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12154if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12155  INTELCC="yes"
12156else
12157  INTELCC="no"
12158fi
12159
12160ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12161if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12162  SUNCC="yes"
12163else
12164  SUNCC="no"
12165fi
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12176	if test -n "$ac_tool_prefix"; then
12177  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
12181if ${ac_cv_path_PKG_CONFIG+:} false; then :
12182  $as_echo_n "(cached) " >&6
12183else
12184  case $PKG_CONFIG in
12185  [\\/]* | ?:[\\/]*)
12186  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12187  ;;
12188  *)
12189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192  IFS=$as_save_IFS
12193  test -z "$as_dir" && as_dir=.
12194    for ac_exec_ext in '' $ac_executable_extensions; do
12195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198    break 2
12199  fi
12200done
12201  done
12202IFS=$as_save_IFS
12203
12204  ;;
12205esac
12206fi
12207PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12208if test -n "$PKG_CONFIG"; then
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12210$as_echo "$PKG_CONFIG" >&6; }
12211else
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
12214fi
12215
12216
12217fi
12218if test -z "$ac_cv_path_PKG_CONFIG"; then
12219  ac_pt_PKG_CONFIG=$PKG_CONFIG
12220  # Extract the first word of "pkg-config", so it can be a program name with args.
12221set dummy pkg-config; ac_word=$2
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
12224if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12225  $as_echo_n "(cached) " >&6
12226else
12227  case $ac_pt_PKG_CONFIG in
12228  [\\/]* | ?:[\\/]*)
12229  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12230  ;;
12231  *)
12232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235  IFS=$as_save_IFS
12236  test -z "$as_dir" && as_dir=.
12237    for ac_exec_ext in '' $ac_executable_extensions; do
12238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241    break 2
12242  fi
12243done
12244  done
12245IFS=$as_save_IFS
12246
12247  ;;
12248esac
12249fi
12250ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12251if test -n "$ac_pt_PKG_CONFIG"; then
12252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12253$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12254else
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257fi
12258
12259  if test "x$ac_pt_PKG_CONFIG" = x; then
12260    PKG_CONFIG=""
12261  else
12262    case $cross_compiling:$ac_tool_warned in
12263yes:)
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12266ac_tool_warned=yes ;;
12267esac
12268    PKG_CONFIG=$ac_pt_PKG_CONFIG
12269  fi
12270else
12271  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12272fi
12273
12274fi
12275if test -n "$PKG_CONFIG"; then
12276	_pkg_min_version=0.9.0
12277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12278$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12279	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281$as_echo "yes" >&6; }
12282	else
12283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
12285		PKG_CONFIG=""
12286	fi
12287fi
12288
12289
12290
12291
12292
12293# Check whether --enable-selective-werror was given.
12294if test "${enable_selective_werror+set}" = set; then :
12295  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12296else
12297  SELECTIVE_WERROR=yes
12298fi
12299
12300
12301
12302
12303
12304# -v is too short to test reliably with XORG_TESTSET_CFLAG
12305if test "x$SUNCC" = "xyes"; then
12306    BASE_CFLAGS="-v"
12307else
12308    BASE_CFLAGS=""
12309fi
12310
12311# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325xorg_testset_save_CFLAGS="$CFLAGS"
12326
12327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12332  $as_echo_n "(cached) " >&6
12333else
12334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h.  */
12336int i;
12337_ACEOF
12338if ac_fn_c_try_compile "$LINENO"; then :
12339  xorg_cv_cc_flag_unknown_warning_option=yes
12340else
12341  xorg_cv_cc_flag_unknown_warning_option=no
12342fi
12343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344fi
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12348	CFLAGS="$xorg_testset_save_CFLAGS"
12349fi
12350
12351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12354	fi
12355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362/* end confdefs.h.  */
12363int i;
12364_ACEOF
12365if ac_fn_c_try_compile "$LINENO"; then :
12366  xorg_cv_cc_flag_unused_command_line_argument=yes
12367else
12368  xorg_cv_cc_flag_unused_command_line_argument=no
12369fi
12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12375	CFLAGS="$xorg_testset_save_CFLAGS"
12376fi
12377
12378found="no"
12379
12380	if test $found = "no" ; then
12381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12383		fi
12384
12385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12387		fi
12388
12389		CFLAGS="$CFLAGS -Wall"
12390
12391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12392$as_echo_n "checking if $CC supports -Wall... " >&6; }
12393		cacheid=xorg_cv_cc_flag__Wall
12394		if eval \${$cacheid+:} false; then :
12395  $as_echo_n "(cached) " >&6
12396else
12397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398/* end confdefs.h.  */
12399int i;
12400int
12401main ()
12402{
12403
12404  ;
12405  return 0;
12406}
12407_ACEOF
12408if ac_fn_c_try_link "$LINENO"; then :
12409  eval $cacheid=yes
12410else
12411  eval $cacheid=no
12412fi
12413rm -f core conftest.err conftest.$ac_objext \
12414    conftest$ac_exeext conftest.$ac_ext
12415fi
12416
12417
12418		CFLAGS="$xorg_testset_save_CFLAGS"
12419
12420		eval supported=\$$cacheid
12421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12422$as_echo "$supported" >&6; }
12423		if test "$supported" = "yes" ; then
12424			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12425			found="yes"
12426		fi
12427	fi
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443xorg_testset_save_CFLAGS="$CFLAGS"
12444
12445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12450  $as_echo_n "(cached) " >&6
12451else
12452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453/* end confdefs.h.  */
12454int i;
12455_ACEOF
12456if ac_fn_c_try_compile "$LINENO"; then :
12457  xorg_cv_cc_flag_unknown_warning_option=yes
12458else
12459  xorg_cv_cc_flag_unknown_warning_option=no
12460fi
12461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12466	CFLAGS="$xorg_testset_save_CFLAGS"
12467fi
12468
12469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12472	fi
12473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12477  $as_echo_n "(cached) " >&6
12478else
12479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481int i;
12482_ACEOF
12483if ac_fn_c_try_compile "$LINENO"; then :
12484  xorg_cv_cc_flag_unused_command_line_argument=yes
12485else
12486  xorg_cv_cc_flag_unused_command_line_argument=no
12487fi
12488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489fi
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12493	CFLAGS="$xorg_testset_save_CFLAGS"
12494fi
12495
12496found="no"
12497
12498	if test $found = "no" ; then
12499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12501		fi
12502
12503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12505		fi
12506
12507		CFLAGS="$CFLAGS -Wpointer-arith"
12508
12509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12510$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12511		cacheid=xorg_cv_cc_flag__Wpointer_arith
12512		if eval \${$cacheid+:} false; then :
12513  $as_echo_n "(cached) " >&6
12514else
12515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516/* end confdefs.h.  */
12517int i;
12518int
12519main ()
12520{
12521
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_link "$LINENO"; then :
12527  eval $cacheid=yes
12528else
12529  eval $cacheid=no
12530fi
12531rm -f core conftest.err conftest.$ac_objext \
12532    conftest$ac_exeext conftest.$ac_ext
12533fi
12534
12535
12536		CFLAGS="$xorg_testset_save_CFLAGS"
12537
12538		eval supported=\$$cacheid
12539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12540$as_echo "$supported" >&6; }
12541		if test "$supported" = "yes" ; then
12542			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12543			found="yes"
12544		fi
12545	fi
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561xorg_testset_save_CFLAGS="$CFLAGS"
12562
12563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12568  $as_echo_n "(cached) " >&6
12569else
12570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572int i;
12573_ACEOF
12574if ac_fn_c_try_compile "$LINENO"; then :
12575  xorg_cv_cc_flag_unknown_warning_option=yes
12576else
12577  xorg_cv_cc_flag_unknown_warning_option=no
12578fi
12579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12584	CFLAGS="$xorg_testset_save_CFLAGS"
12585fi
12586
12587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12590	fi
12591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12595  $as_echo_n "(cached) " >&6
12596else
12597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h.  */
12599int i;
12600_ACEOF
12601if ac_fn_c_try_compile "$LINENO"; then :
12602  xorg_cv_cc_flag_unused_command_line_argument=yes
12603else
12604  xorg_cv_cc_flag_unused_command_line_argument=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607fi
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12611	CFLAGS="$xorg_testset_save_CFLAGS"
12612fi
12613
12614found="no"
12615
12616	if test $found = "no" ; then
12617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12619		fi
12620
12621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12623		fi
12624
12625		CFLAGS="$CFLAGS -Wmissing-declarations"
12626
12627		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12628$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12629		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12630		if eval \${$cacheid+:} false; then :
12631  $as_echo_n "(cached) " >&6
12632else
12633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634/* end confdefs.h.  */
12635int i;
12636int
12637main ()
12638{
12639
12640  ;
12641  return 0;
12642}
12643_ACEOF
12644if ac_fn_c_try_link "$LINENO"; then :
12645  eval $cacheid=yes
12646else
12647  eval $cacheid=no
12648fi
12649rm -f core conftest.err conftest.$ac_objext \
12650    conftest$ac_exeext conftest.$ac_ext
12651fi
12652
12653
12654		CFLAGS="$xorg_testset_save_CFLAGS"
12655
12656		eval supported=\$$cacheid
12657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12658$as_echo "$supported" >&6; }
12659		if test "$supported" = "yes" ; then
12660			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12661			found="yes"
12662		fi
12663	fi
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679xorg_testset_save_CFLAGS="$CFLAGS"
12680
12681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h.  */
12690int i;
12691_ACEOF
12692if ac_fn_c_try_compile "$LINENO"; then :
12693  xorg_cv_cc_flag_unknown_warning_option=yes
12694else
12695  xorg_cv_cc_flag_unknown_warning_option=no
12696fi
12697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698fi
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12702	CFLAGS="$xorg_testset_save_CFLAGS"
12703fi
12704
12705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12708	fi
12709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12713  $as_echo_n "(cached) " >&6
12714else
12715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716/* end confdefs.h.  */
12717int i;
12718_ACEOF
12719if ac_fn_c_try_compile "$LINENO"; then :
12720  xorg_cv_cc_flag_unused_command_line_argument=yes
12721else
12722  xorg_cv_cc_flag_unused_command_line_argument=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12729	CFLAGS="$xorg_testset_save_CFLAGS"
12730fi
12731
12732found="no"
12733
12734	if test $found = "no" ; then
12735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12737		fi
12738
12739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12741		fi
12742
12743		CFLAGS="$CFLAGS -Wformat=2"
12744
12745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12746$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12747		cacheid=xorg_cv_cc_flag__Wformat_2
12748		if eval \${$cacheid+:} false; then :
12749  $as_echo_n "(cached) " >&6
12750else
12751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753int i;
12754int
12755main ()
12756{
12757
12758  ;
12759  return 0;
12760}
12761_ACEOF
12762if ac_fn_c_try_link "$LINENO"; then :
12763  eval $cacheid=yes
12764else
12765  eval $cacheid=no
12766fi
12767rm -f core conftest.err conftest.$ac_objext \
12768    conftest$ac_exeext conftest.$ac_ext
12769fi
12770
12771
12772		CFLAGS="$xorg_testset_save_CFLAGS"
12773
12774		eval supported=\$$cacheid
12775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12776$as_echo "$supported" >&6; }
12777		if test "$supported" = "yes" ; then
12778			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12779			found="yes"
12780		fi
12781	fi
12782
12783	if test $found = "no" ; then
12784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12786		fi
12787
12788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12790		fi
12791
12792		CFLAGS="$CFLAGS -Wformat"
12793
12794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12795$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12796		cacheid=xorg_cv_cc_flag__Wformat
12797		if eval \${$cacheid+:} false; then :
12798  $as_echo_n "(cached) " >&6
12799else
12800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801/* end confdefs.h.  */
12802int i;
12803int
12804main ()
12805{
12806
12807  ;
12808  return 0;
12809}
12810_ACEOF
12811if ac_fn_c_try_link "$LINENO"; then :
12812  eval $cacheid=yes
12813else
12814  eval $cacheid=no
12815fi
12816rm -f core conftest.err conftest.$ac_objext \
12817    conftest$ac_exeext conftest.$ac_ext
12818fi
12819
12820
12821		CFLAGS="$xorg_testset_save_CFLAGS"
12822
12823		eval supported=\$$cacheid
12824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12825$as_echo "$supported" >&6; }
12826		if test "$supported" = "yes" ; then
12827			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12828			found="yes"
12829		fi
12830	fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848xorg_testset_save_CFLAGS="$CFLAGS"
12849
12850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12855  $as_echo_n "(cached) " >&6
12856else
12857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858/* end confdefs.h.  */
12859int i;
12860_ACEOF
12861if ac_fn_c_try_compile "$LINENO"; then :
12862  xorg_cv_cc_flag_unknown_warning_option=yes
12863else
12864  xorg_cv_cc_flag_unknown_warning_option=no
12865fi
12866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12871	CFLAGS="$xorg_testset_save_CFLAGS"
12872fi
12873
12874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12877	fi
12878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h.  */
12886int i;
12887_ACEOF
12888if ac_fn_c_try_compile "$LINENO"; then :
12889  xorg_cv_cc_flag_unused_command_line_argument=yes
12890else
12891  xorg_cv_cc_flag_unused_command_line_argument=no
12892fi
12893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12898	CFLAGS="$xorg_testset_save_CFLAGS"
12899fi
12900
12901found="no"
12902
12903	if test $found = "no" ; then
12904		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12906		fi
12907
12908		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12910		fi
12911
12912		CFLAGS="$CFLAGS -Wstrict-prototypes"
12913
12914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12915$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12916		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12917		if eval \${$cacheid+:} false; then :
12918  $as_echo_n "(cached) " >&6
12919else
12920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h.  */
12922int i;
12923int
12924main ()
12925{
12926
12927  ;
12928  return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_link "$LINENO"; then :
12932  eval $cacheid=yes
12933else
12934  eval $cacheid=no
12935fi
12936rm -f core conftest.err conftest.$ac_objext \
12937    conftest$ac_exeext conftest.$ac_ext
12938fi
12939
12940
12941		CFLAGS="$xorg_testset_save_CFLAGS"
12942
12943		eval supported=\$$cacheid
12944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12945$as_echo "$supported" >&6; }
12946		if test "$supported" = "yes" ; then
12947			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12948			found="yes"
12949		fi
12950	fi
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966xorg_testset_save_CFLAGS="$CFLAGS"
12967
12968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976/* end confdefs.h.  */
12977int i;
12978_ACEOF
12979if ac_fn_c_try_compile "$LINENO"; then :
12980  xorg_cv_cc_flag_unknown_warning_option=yes
12981else
12982  xorg_cv_cc_flag_unknown_warning_option=no
12983fi
12984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985fi
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12989	CFLAGS="$xorg_testset_save_CFLAGS"
12990fi
12991
12992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12995	fi
12996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13000  $as_echo_n "(cached) " >&6
13001else
13002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003/* end confdefs.h.  */
13004int i;
13005_ACEOF
13006if ac_fn_c_try_compile "$LINENO"; then :
13007  xorg_cv_cc_flag_unused_command_line_argument=yes
13008else
13009  xorg_cv_cc_flag_unused_command_line_argument=no
13010fi
13011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13016	CFLAGS="$xorg_testset_save_CFLAGS"
13017fi
13018
13019found="no"
13020
13021	if test $found = "no" ; then
13022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13024		fi
13025
13026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13028		fi
13029
13030		CFLAGS="$CFLAGS -Wmissing-prototypes"
13031
13032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13033$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13034		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13035		if eval \${$cacheid+:} false; then :
13036  $as_echo_n "(cached) " >&6
13037else
13038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040int i;
13041int
13042main ()
13043{
13044
13045  ;
13046  return 0;
13047}
13048_ACEOF
13049if ac_fn_c_try_link "$LINENO"; then :
13050  eval $cacheid=yes
13051else
13052  eval $cacheid=no
13053fi
13054rm -f core conftest.err conftest.$ac_objext \
13055    conftest$ac_exeext conftest.$ac_ext
13056fi
13057
13058
13059		CFLAGS="$xorg_testset_save_CFLAGS"
13060
13061		eval supported=\$$cacheid
13062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13063$as_echo "$supported" >&6; }
13064		if test "$supported" = "yes" ; then
13065			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13066			found="yes"
13067		fi
13068	fi
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084xorg_testset_save_CFLAGS="$CFLAGS"
13085
13086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13091  $as_echo_n "(cached) " >&6
13092else
13093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h.  */
13095int i;
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"; then :
13098  xorg_cv_cc_flag_unknown_warning_option=yes
13099else
13100  xorg_cv_cc_flag_unknown_warning_option=no
13101fi
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13107	CFLAGS="$xorg_testset_save_CFLAGS"
13108fi
13109
13110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113	fi
13114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13118  $as_echo_n "(cached) " >&6
13119else
13120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122int i;
13123_ACEOF
13124if ac_fn_c_try_compile "$LINENO"; then :
13125  xorg_cv_cc_flag_unused_command_line_argument=yes
13126else
13127  xorg_cv_cc_flag_unused_command_line_argument=no
13128fi
13129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130fi
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13134	CFLAGS="$xorg_testset_save_CFLAGS"
13135fi
13136
13137found="no"
13138
13139	if test $found = "no" ; then
13140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13142		fi
13143
13144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13146		fi
13147
13148		CFLAGS="$CFLAGS -Wnested-externs"
13149
13150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13151$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13152		cacheid=xorg_cv_cc_flag__Wnested_externs
13153		if eval \${$cacheid+:} false; then :
13154  $as_echo_n "(cached) " >&6
13155else
13156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158int i;
13159int
13160main ()
13161{
13162
13163  ;
13164  return 0;
13165}
13166_ACEOF
13167if ac_fn_c_try_link "$LINENO"; then :
13168  eval $cacheid=yes
13169else
13170  eval $cacheid=no
13171fi
13172rm -f core conftest.err conftest.$ac_objext \
13173    conftest$ac_exeext conftest.$ac_ext
13174fi
13175
13176
13177		CFLAGS="$xorg_testset_save_CFLAGS"
13178
13179		eval supported=\$$cacheid
13180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13181$as_echo "$supported" >&6; }
13182		if test "$supported" = "yes" ; then
13183			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13184			found="yes"
13185		fi
13186	fi
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202xorg_testset_save_CFLAGS="$CFLAGS"
13203
13204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13209  $as_echo_n "(cached) " >&6
13210else
13211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212/* end confdefs.h.  */
13213int i;
13214_ACEOF
13215if ac_fn_c_try_compile "$LINENO"; then :
13216  xorg_cv_cc_flag_unknown_warning_option=yes
13217else
13218  xorg_cv_cc_flag_unknown_warning_option=no
13219fi
13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13225	CFLAGS="$xorg_testset_save_CFLAGS"
13226fi
13227
13228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231	fi
13232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13236  $as_echo_n "(cached) " >&6
13237else
13238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h.  */
13240int i;
13241_ACEOF
13242if ac_fn_c_try_compile "$LINENO"; then :
13243  xorg_cv_cc_flag_unused_command_line_argument=yes
13244else
13245  xorg_cv_cc_flag_unused_command_line_argument=no
13246fi
13247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248fi
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13252	CFLAGS="$xorg_testset_save_CFLAGS"
13253fi
13254
13255found="no"
13256
13257	if test $found = "no" ; then
13258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260		fi
13261
13262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13264		fi
13265
13266		CFLAGS="$CFLAGS -Wbad-function-cast"
13267
13268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13269$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13270		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13271		if eval \${$cacheid+:} false; then :
13272  $as_echo_n "(cached) " >&6
13273else
13274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* end confdefs.h.  */
13276int i;
13277int
13278main ()
13279{
13280
13281  ;
13282  return 0;
13283}
13284_ACEOF
13285if ac_fn_c_try_link "$LINENO"; then :
13286  eval $cacheid=yes
13287else
13288  eval $cacheid=no
13289fi
13290rm -f core conftest.err conftest.$ac_objext \
13291    conftest$ac_exeext conftest.$ac_ext
13292fi
13293
13294
13295		CFLAGS="$xorg_testset_save_CFLAGS"
13296
13297		eval supported=\$$cacheid
13298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13299$as_echo "$supported" >&6; }
13300		if test "$supported" = "yes" ; then
13301			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13302			found="yes"
13303		fi
13304	fi
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320xorg_testset_save_CFLAGS="$CFLAGS"
13321
13322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13327  $as_echo_n "(cached) " >&6
13328else
13329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331int i;
13332_ACEOF
13333if ac_fn_c_try_compile "$LINENO"; then :
13334  xorg_cv_cc_flag_unknown_warning_option=yes
13335else
13336  xorg_cv_cc_flag_unknown_warning_option=no
13337fi
13338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339fi
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13343	CFLAGS="$xorg_testset_save_CFLAGS"
13344fi
13345
13346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13349	fi
13350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13354  $as_echo_n "(cached) " >&6
13355else
13356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357/* end confdefs.h.  */
13358int i;
13359_ACEOF
13360if ac_fn_c_try_compile "$LINENO"; then :
13361  xorg_cv_cc_flag_unused_command_line_argument=yes
13362else
13363  xorg_cv_cc_flag_unused_command_line_argument=no
13364fi
13365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366fi
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13370	CFLAGS="$xorg_testset_save_CFLAGS"
13371fi
13372
13373found="no"
13374
13375	if test $found = "no" ; then
13376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378		fi
13379
13380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13382		fi
13383
13384		CFLAGS="$CFLAGS -Wold-style-definition"
13385
13386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13387$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13388		cacheid=xorg_cv_cc_flag__Wold_style_definition
13389		if eval \${$cacheid+:} false; then :
13390  $as_echo_n "(cached) " >&6
13391else
13392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394int i;
13395int
13396main ()
13397{
13398
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_link "$LINENO"; then :
13404  eval $cacheid=yes
13405else
13406  eval $cacheid=no
13407fi
13408rm -f core conftest.err conftest.$ac_objext \
13409    conftest$ac_exeext conftest.$ac_ext
13410fi
13411
13412
13413		CFLAGS="$xorg_testset_save_CFLAGS"
13414
13415		eval supported=\$$cacheid
13416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13417$as_echo "$supported" >&6; }
13418		if test "$supported" = "yes" ; then
13419			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13420			found="yes"
13421		fi
13422	fi
13423
13424	if test $found = "no" ; then
13425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13427		fi
13428
13429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13431		fi
13432
13433		CFLAGS="$CFLAGS -fd"
13434
13435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13436$as_echo_n "checking if $CC supports -fd... " >&6; }
13437		cacheid=xorg_cv_cc_flag__fd
13438		if eval \${$cacheid+:} false; then :
13439  $as_echo_n "(cached) " >&6
13440else
13441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442/* end confdefs.h.  */
13443int i;
13444int
13445main ()
13446{
13447
13448  ;
13449  return 0;
13450}
13451_ACEOF
13452if ac_fn_c_try_link "$LINENO"; then :
13453  eval $cacheid=yes
13454else
13455  eval $cacheid=no
13456fi
13457rm -f core conftest.err conftest.$ac_objext \
13458    conftest$ac_exeext conftest.$ac_ext
13459fi
13460
13461
13462		CFLAGS="$xorg_testset_save_CFLAGS"
13463
13464		eval supported=\$$cacheid
13465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13466$as_echo "$supported" >&6; }
13467		if test "$supported" = "yes" ; then
13468			BASE_CFLAGS="$BASE_CFLAGS -fd"
13469			found="yes"
13470		fi
13471	fi
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487xorg_testset_save_CFLAGS="$CFLAGS"
13488
13489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13494  $as_echo_n "(cached) " >&6
13495else
13496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497/* end confdefs.h.  */
13498int i;
13499_ACEOF
13500if ac_fn_c_try_compile "$LINENO"; then :
13501  xorg_cv_cc_flag_unknown_warning_option=yes
13502else
13503  xorg_cv_cc_flag_unknown_warning_option=no
13504fi
13505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506fi
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13510	CFLAGS="$xorg_testset_save_CFLAGS"
13511fi
13512
13513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13516	fi
13517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13521  $as_echo_n "(cached) " >&6
13522else
13523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524/* end confdefs.h.  */
13525int i;
13526_ACEOF
13527if ac_fn_c_try_compile "$LINENO"; then :
13528  xorg_cv_cc_flag_unused_command_line_argument=yes
13529else
13530  xorg_cv_cc_flag_unused_command_line_argument=no
13531fi
13532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533fi
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13537	CFLAGS="$xorg_testset_save_CFLAGS"
13538fi
13539
13540found="no"
13541
13542	if test $found = "no" ; then
13543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545		fi
13546
13547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549		fi
13550
13551		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13552
13553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13554$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13555		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13556		if eval \${$cacheid+:} false; then :
13557  $as_echo_n "(cached) " >&6
13558else
13559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560/* end confdefs.h.  */
13561int i;
13562int
13563main ()
13564{
13565
13566  ;
13567  return 0;
13568}
13569_ACEOF
13570if ac_fn_c_try_link "$LINENO"; then :
13571  eval $cacheid=yes
13572else
13573  eval $cacheid=no
13574fi
13575rm -f core conftest.err conftest.$ac_objext \
13576    conftest$ac_exeext conftest.$ac_ext
13577fi
13578
13579
13580		CFLAGS="$xorg_testset_save_CFLAGS"
13581
13582		eval supported=\$$cacheid
13583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13584$as_echo "$supported" >&6; }
13585		if test "$supported" = "yes" ; then
13586			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13587			found="yes"
13588		fi
13589	fi
13590
13591
13592
13593
13594
13595# This chunk adds additional warnings that could catch undesired effects.
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609xorg_testset_save_CFLAGS="$CFLAGS"
13610
13611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h.  */
13620int i;
13621_ACEOF
13622if ac_fn_c_try_compile "$LINENO"; then :
13623  xorg_cv_cc_flag_unknown_warning_option=yes
13624else
13625  xorg_cv_cc_flag_unknown_warning_option=no
13626fi
13627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628fi
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13632	CFLAGS="$xorg_testset_save_CFLAGS"
13633fi
13634
13635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638	fi
13639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646/* end confdefs.h.  */
13647int i;
13648_ACEOF
13649if ac_fn_c_try_compile "$LINENO"; then :
13650  xorg_cv_cc_flag_unused_command_line_argument=yes
13651else
13652  xorg_cv_cc_flag_unused_command_line_argument=no
13653fi
13654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13659	CFLAGS="$xorg_testset_save_CFLAGS"
13660fi
13661
13662found="no"
13663
13664	if test $found = "no" ; then
13665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13667		fi
13668
13669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13671		fi
13672
13673		CFLAGS="$CFLAGS -Wunused"
13674
13675		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13676$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13677		cacheid=xorg_cv_cc_flag__Wunused
13678		if eval \${$cacheid+:} false; then :
13679  $as_echo_n "(cached) " >&6
13680else
13681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h.  */
13683int i;
13684int
13685main ()
13686{
13687
13688  ;
13689  return 0;
13690}
13691_ACEOF
13692if ac_fn_c_try_link "$LINENO"; then :
13693  eval $cacheid=yes
13694else
13695  eval $cacheid=no
13696fi
13697rm -f core conftest.err conftest.$ac_objext \
13698    conftest$ac_exeext conftest.$ac_ext
13699fi
13700
13701
13702		CFLAGS="$xorg_testset_save_CFLAGS"
13703
13704		eval supported=\$$cacheid
13705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13706$as_echo "$supported" >&6; }
13707		if test "$supported" = "yes" ; then
13708			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13709			found="yes"
13710		fi
13711	fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727xorg_testset_save_CFLAGS="$CFLAGS"
13728
13729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738int i;
13739_ACEOF
13740if ac_fn_c_try_compile "$LINENO"; then :
13741  xorg_cv_cc_flag_unknown_warning_option=yes
13742else
13743  xorg_cv_cc_flag_unknown_warning_option=no
13744fi
13745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13750	CFLAGS="$xorg_testset_save_CFLAGS"
13751fi
13752
13753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13756	fi
13757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764/* end confdefs.h.  */
13765int i;
13766_ACEOF
13767if ac_fn_c_try_compile "$LINENO"; then :
13768  xorg_cv_cc_flag_unused_command_line_argument=yes
13769else
13770  xorg_cv_cc_flag_unused_command_line_argument=no
13771fi
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773fi
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13777	CFLAGS="$xorg_testset_save_CFLAGS"
13778fi
13779
13780found="no"
13781
13782	if test $found = "no" ; then
13783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13785		fi
13786
13787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13789		fi
13790
13791		CFLAGS="$CFLAGS -Wuninitialized"
13792
13793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13794$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13795		cacheid=xorg_cv_cc_flag__Wuninitialized
13796		if eval \${$cacheid+:} false; then :
13797  $as_echo_n "(cached) " >&6
13798else
13799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* end confdefs.h.  */
13801int i;
13802int
13803main ()
13804{
13805
13806  ;
13807  return 0;
13808}
13809_ACEOF
13810if ac_fn_c_try_link "$LINENO"; then :
13811  eval $cacheid=yes
13812else
13813  eval $cacheid=no
13814fi
13815rm -f core conftest.err conftest.$ac_objext \
13816    conftest$ac_exeext conftest.$ac_ext
13817fi
13818
13819
13820		CFLAGS="$xorg_testset_save_CFLAGS"
13821
13822		eval supported=\$$cacheid
13823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13824$as_echo "$supported" >&6; }
13825		if test "$supported" = "yes" ; then
13826			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13827			found="yes"
13828		fi
13829	fi
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845xorg_testset_save_CFLAGS="$CFLAGS"
13846
13847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856int i;
13857_ACEOF
13858if ac_fn_c_try_compile "$LINENO"; then :
13859  xorg_cv_cc_flag_unknown_warning_option=yes
13860else
13861  xorg_cv_cc_flag_unknown_warning_option=no
13862fi
13863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13868	CFLAGS="$xorg_testset_save_CFLAGS"
13869fi
13870
13871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13874	fi
13875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13879  $as_echo_n "(cached) " >&6
13880else
13881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883int i;
13884_ACEOF
13885if ac_fn_c_try_compile "$LINENO"; then :
13886  xorg_cv_cc_flag_unused_command_line_argument=yes
13887else
13888  xorg_cv_cc_flag_unused_command_line_argument=no
13889fi
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891fi
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13895	CFLAGS="$xorg_testset_save_CFLAGS"
13896fi
13897
13898found="no"
13899
13900	if test $found = "no" ; then
13901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903		fi
13904
13905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13907		fi
13908
13909		CFLAGS="$CFLAGS -Wshadow"
13910
13911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13912$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13913		cacheid=xorg_cv_cc_flag__Wshadow
13914		if eval \${$cacheid+:} false; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h.  */
13919int i;
13920int
13921main ()
13922{
13923
13924  ;
13925  return 0;
13926}
13927_ACEOF
13928if ac_fn_c_try_link "$LINENO"; then :
13929  eval $cacheid=yes
13930else
13931  eval $cacheid=no
13932fi
13933rm -f core conftest.err conftest.$ac_objext \
13934    conftest$ac_exeext conftest.$ac_ext
13935fi
13936
13937
13938		CFLAGS="$xorg_testset_save_CFLAGS"
13939
13940		eval supported=\$$cacheid
13941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13942$as_echo "$supported" >&6; }
13943		if test "$supported" = "yes" ; then
13944			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13945			found="yes"
13946		fi
13947	fi
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963xorg_testset_save_CFLAGS="$CFLAGS"
13964
13965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13970  $as_echo_n "(cached) " >&6
13971else
13972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973/* end confdefs.h.  */
13974int i;
13975_ACEOF
13976if ac_fn_c_try_compile "$LINENO"; then :
13977  xorg_cv_cc_flag_unknown_warning_option=yes
13978else
13979  xorg_cv_cc_flag_unknown_warning_option=no
13980fi
13981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982fi
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13986	CFLAGS="$xorg_testset_save_CFLAGS"
13987fi
13988
13989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992	fi
13993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000/* end confdefs.h.  */
14001int i;
14002_ACEOF
14003if ac_fn_c_try_compile "$LINENO"; then :
14004  xorg_cv_cc_flag_unused_command_line_argument=yes
14005else
14006  xorg_cv_cc_flag_unused_command_line_argument=no
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14013	CFLAGS="$xorg_testset_save_CFLAGS"
14014fi
14015
14016found="no"
14017
14018	if test $found = "no" ; then
14019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14021		fi
14022
14023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14025		fi
14026
14027		CFLAGS="$CFLAGS -Wmissing-noreturn"
14028
14029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14030$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14031		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14032		if eval \${$cacheid+:} false; then :
14033  $as_echo_n "(cached) " >&6
14034else
14035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037int i;
14038int
14039main ()
14040{
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"; then :
14047  eval $cacheid=yes
14048else
14049  eval $cacheid=no
14050fi
14051rm -f core conftest.err conftest.$ac_objext \
14052    conftest$ac_exeext conftest.$ac_ext
14053fi
14054
14055
14056		CFLAGS="$xorg_testset_save_CFLAGS"
14057
14058		eval supported=\$$cacheid
14059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14060$as_echo "$supported" >&6; }
14061		if test "$supported" = "yes" ; then
14062			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14063			found="yes"
14064		fi
14065	fi
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081xorg_testset_save_CFLAGS="$CFLAGS"
14082
14083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14088  $as_echo_n "(cached) " >&6
14089else
14090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h.  */
14092int i;
14093_ACEOF
14094if ac_fn_c_try_compile "$LINENO"; then :
14095  xorg_cv_cc_flag_unknown_warning_option=yes
14096else
14097  xorg_cv_cc_flag_unknown_warning_option=no
14098fi
14099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14104	CFLAGS="$xorg_testset_save_CFLAGS"
14105fi
14106
14107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110	fi
14111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14115  $as_echo_n "(cached) " >&6
14116else
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119int i;
14120_ACEOF
14121if ac_fn_c_try_compile "$LINENO"; then :
14122  xorg_cv_cc_flag_unused_command_line_argument=yes
14123else
14124  xorg_cv_cc_flag_unused_command_line_argument=no
14125fi
14126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127fi
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14131	CFLAGS="$xorg_testset_save_CFLAGS"
14132fi
14133
14134found="no"
14135
14136	if test $found = "no" ; then
14137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14139		fi
14140
14141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14143		fi
14144
14145		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14146
14147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14148$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14149		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14150		if eval \${$cacheid+:} false; then :
14151  $as_echo_n "(cached) " >&6
14152else
14153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h.  */
14155int i;
14156int
14157main ()
14158{
14159
14160  ;
14161  return 0;
14162}
14163_ACEOF
14164if ac_fn_c_try_link "$LINENO"; then :
14165  eval $cacheid=yes
14166else
14167  eval $cacheid=no
14168fi
14169rm -f core conftest.err conftest.$ac_objext \
14170    conftest$ac_exeext conftest.$ac_ext
14171fi
14172
14173
14174		CFLAGS="$xorg_testset_save_CFLAGS"
14175
14176		eval supported=\$$cacheid
14177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14178$as_echo "$supported" >&6; }
14179		if test "$supported" = "yes" ; then
14180			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14181			found="yes"
14182		fi
14183	fi
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199xorg_testset_save_CFLAGS="$CFLAGS"
14200
14201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14206  $as_echo_n "(cached) " >&6
14207else
14208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209/* end confdefs.h.  */
14210int i;
14211_ACEOF
14212if ac_fn_c_try_compile "$LINENO"; then :
14213  xorg_cv_cc_flag_unknown_warning_option=yes
14214else
14215  xorg_cv_cc_flag_unknown_warning_option=no
14216fi
14217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14218fi
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14222	CFLAGS="$xorg_testset_save_CFLAGS"
14223fi
14224
14225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14228	fi
14229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14233  $as_echo_n "(cached) " >&6
14234else
14235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h.  */
14237int i;
14238_ACEOF
14239if ac_fn_c_try_compile "$LINENO"; then :
14240  xorg_cv_cc_flag_unused_command_line_argument=yes
14241else
14242  xorg_cv_cc_flag_unused_command_line_argument=no
14243fi
14244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245fi
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14249	CFLAGS="$xorg_testset_save_CFLAGS"
14250fi
14251
14252found="no"
14253
14254	if test $found = "no" ; then
14255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14257		fi
14258
14259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14261		fi
14262
14263		CFLAGS="$CFLAGS -Wredundant-decls"
14264
14265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14266$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14267		cacheid=xorg_cv_cc_flag__Wredundant_decls
14268		if eval \${$cacheid+:} false; then :
14269  $as_echo_n "(cached) " >&6
14270else
14271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h.  */
14273int i;
14274int
14275main ()
14276{
14277
14278  ;
14279  return 0;
14280}
14281_ACEOF
14282if ac_fn_c_try_link "$LINENO"; then :
14283  eval $cacheid=yes
14284else
14285  eval $cacheid=no
14286fi
14287rm -f core conftest.err conftest.$ac_objext \
14288    conftest$ac_exeext conftest.$ac_ext
14289fi
14290
14291
14292		CFLAGS="$xorg_testset_save_CFLAGS"
14293
14294		eval supported=\$$cacheid
14295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14296$as_echo "$supported" >&6; }
14297		if test "$supported" = "yes" ; then
14298			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14299			found="yes"
14300		fi
14301	fi
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317xorg_testset_save_CFLAGS="$CFLAGS"
14318
14319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14324  $as_echo_n "(cached) " >&6
14325else
14326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h.  */
14328int i;
14329_ACEOF
14330if ac_fn_c_try_compile "$LINENO"; then :
14331  xorg_cv_cc_flag_unknown_warning_option=yes
14332else
14333  xorg_cv_cc_flag_unknown_warning_option=no
14334fi
14335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336fi
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14340	CFLAGS="$xorg_testset_save_CFLAGS"
14341fi
14342
14343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346	fi
14347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354/* end confdefs.h.  */
14355int i;
14356_ACEOF
14357if ac_fn_c_try_compile "$LINENO"; then :
14358  xorg_cv_cc_flag_unused_command_line_argument=yes
14359else
14360  xorg_cv_cc_flag_unused_command_line_argument=no
14361fi
14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363fi
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14367	CFLAGS="$xorg_testset_save_CFLAGS"
14368fi
14369
14370found="no"
14371
14372	if test $found = "no" ; then
14373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375		fi
14376
14377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14379		fi
14380
14381		CFLAGS="$CFLAGS -Wlogical-op"
14382
14383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14384$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14385		cacheid=xorg_cv_cc_flag__Wlogical_op
14386		if eval \${$cacheid+:} false; then :
14387  $as_echo_n "(cached) " >&6
14388else
14389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390/* end confdefs.h.  */
14391int i;
14392int
14393main ()
14394{
14395
14396  ;
14397  return 0;
14398}
14399_ACEOF
14400if ac_fn_c_try_link "$LINENO"; then :
14401  eval $cacheid=yes
14402else
14403  eval $cacheid=no
14404fi
14405rm -f core conftest.err conftest.$ac_objext \
14406    conftest$ac_exeext conftest.$ac_ext
14407fi
14408
14409
14410		CFLAGS="$xorg_testset_save_CFLAGS"
14411
14412		eval supported=\$$cacheid
14413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14414$as_echo "$supported" >&6; }
14415		if test "$supported" = "yes" ; then
14416			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14417			found="yes"
14418		fi
14419	fi
14420
14421
14422
14423# These are currently disabled because they are noisy.  They will be enabled
14424# in the future once the codebase is sufficiently modernized to silence
14425# them.  For now, I don't want them to drown out the other warnings.
14426# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14427# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14428# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14429
14430# Turn some warnings into errors, so we don't accidently get successful builds
14431# when there are problems that should be fixed.
14432
14433if test "x$SELECTIVE_WERROR" = "xyes" ; then
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447xorg_testset_save_CFLAGS="$CFLAGS"
14448
14449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14454  $as_echo_n "(cached) " >&6
14455else
14456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457/* end confdefs.h.  */
14458int i;
14459_ACEOF
14460if ac_fn_c_try_compile "$LINENO"; then :
14461  xorg_cv_cc_flag_unknown_warning_option=yes
14462else
14463  xorg_cv_cc_flag_unknown_warning_option=no
14464fi
14465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466fi
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14470	CFLAGS="$xorg_testset_save_CFLAGS"
14471fi
14472
14473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476	fi
14477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14481  $as_echo_n "(cached) " >&6
14482else
14483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h.  */
14485int i;
14486_ACEOF
14487if ac_fn_c_try_compile "$LINENO"; then :
14488  xorg_cv_cc_flag_unused_command_line_argument=yes
14489else
14490  xorg_cv_cc_flag_unused_command_line_argument=no
14491fi
14492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493fi
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14497	CFLAGS="$xorg_testset_save_CFLAGS"
14498fi
14499
14500found="no"
14501
14502	if test $found = "no" ; then
14503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14505		fi
14506
14507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14509		fi
14510
14511		CFLAGS="$CFLAGS -Werror=implicit"
14512
14513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14514$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14515		cacheid=xorg_cv_cc_flag__Werror_implicit
14516		if eval \${$cacheid+:} false; then :
14517  $as_echo_n "(cached) " >&6
14518else
14519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520/* end confdefs.h.  */
14521int i;
14522int
14523main ()
14524{
14525
14526  ;
14527  return 0;
14528}
14529_ACEOF
14530if ac_fn_c_try_link "$LINENO"; then :
14531  eval $cacheid=yes
14532else
14533  eval $cacheid=no
14534fi
14535rm -f core conftest.err conftest.$ac_objext \
14536    conftest$ac_exeext conftest.$ac_ext
14537fi
14538
14539
14540		CFLAGS="$xorg_testset_save_CFLAGS"
14541
14542		eval supported=\$$cacheid
14543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14544$as_echo "$supported" >&6; }
14545		if test "$supported" = "yes" ; then
14546			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14547			found="yes"
14548		fi
14549	fi
14550
14551	if test $found = "no" ; then
14552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14554		fi
14555
14556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14558		fi
14559
14560		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14561
14562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14563$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14564		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14565		if eval \${$cacheid+:} false; then :
14566  $as_echo_n "(cached) " >&6
14567else
14568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569/* end confdefs.h.  */
14570int i;
14571int
14572main ()
14573{
14574
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_c_try_link "$LINENO"; then :
14580  eval $cacheid=yes
14581else
14582  eval $cacheid=no
14583fi
14584rm -f core conftest.err conftest.$ac_objext \
14585    conftest$ac_exeext conftest.$ac_ext
14586fi
14587
14588
14589		CFLAGS="$xorg_testset_save_CFLAGS"
14590
14591		eval supported=\$$cacheid
14592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14593$as_echo "$supported" >&6; }
14594		if test "$supported" = "yes" ; then
14595			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14596			found="yes"
14597		fi
14598	fi
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614xorg_testset_save_CFLAGS="$CFLAGS"
14615
14616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h.  */
14625int i;
14626_ACEOF
14627if ac_fn_c_try_compile "$LINENO"; then :
14628  xorg_cv_cc_flag_unknown_warning_option=yes
14629else
14630  xorg_cv_cc_flag_unknown_warning_option=no
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633fi
14634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14637	CFLAGS="$xorg_testset_save_CFLAGS"
14638fi
14639
14640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14643	fi
14644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14648  $as_echo_n "(cached) " >&6
14649else
14650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651/* end confdefs.h.  */
14652int i;
14653_ACEOF
14654if ac_fn_c_try_compile "$LINENO"; then :
14655  xorg_cv_cc_flag_unused_command_line_argument=yes
14656else
14657  xorg_cv_cc_flag_unused_command_line_argument=no
14658fi
14659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660fi
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14664	CFLAGS="$xorg_testset_save_CFLAGS"
14665fi
14666
14667found="no"
14668
14669	if test $found = "no" ; then
14670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14672		fi
14673
14674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14676		fi
14677
14678		CFLAGS="$CFLAGS -Werror=nonnull"
14679
14680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14681$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14682		cacheid=xorg_cv_cc_flag__Werror_nonnull
14683		if eval \${$cacheid+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687/* end confdefs.h.  */
14688int i;
14689int
14690main ()
14691{
14692
14693  ;
14694  return 0;
14695}
14696_ACEOF
14697if ac_fn_c_try_link "$LINENO"; then :
14698  eval $cacheid=yes
14699else
14700  eval $cacheid=no
14701fi
14702rm -f core conftest.err conftest.$ac_objext \
14703    conftest$ac_exeext conftest.$ac_ext
14704fi
14705
14706
14707		CFLAGS="$xorg_testset_save_CFLAGS"
14708
14709		eval supported=\$$cacheid
14710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14711$as_echo "$supported" >&6; }
14712		if test "$supported" = "yes" ; then
14713			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14714			found="yes"
14715		fi
14716	fi
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732xorg_testset_save_CFLAGS="$CFLAGS"
14733
14734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14739  $as_echo_n "(cached) " >&6
14740else
14741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743int i;
14744_ACEOF
14745if ac_fn_c_try_compile "$LINENO"; then :
14746  xorg_cv_cc_flag_unknown_warning_option=yes
14747else
14748  xorg_cv_cc_flag_unknown_warning_option=no
14749fi
14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751fi
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14755	CFLAGS="$xorg_testset_save_CFLAGS"
14756fi
14757
14758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14761	fi
14762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14766  $as_echo_n "(cached) " >&6
14767else
14768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769/* end confdefs.h.  */
14770int i;
14771_ACEOF
14772if ac_fn_c_try_compile "$LINENO"; then :
14773  xorg_cv_cc_flag_unused_command_line_argument=yes
14774else
14775  xorg_cv_cc_flag_unused_command_line_argument=no
14776fi
14777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778fi
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14782	CFLAGS="$xorg_testset_save_CFLAGS"
14783fi
14784
14785found="no"
14786
14787	if test $found = "no" ; then
14788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790		fi
14791
14792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14794		fi
14795
14796		CFLAGS="$CFLAGS -Werror=init-self"
14797
14798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14799$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14800		cacheid=xorg_cv_cc_flag__Werror_init_self
14801		if eval \${$cacheid+:} false; then :
14802  $as_echo_n "(cached) " >&6
14803else
14804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805/* end confdefs.h.  */
14806int i;
14807int
14808main ()
14809{
14810
14811  ;
14812  return 0;
14813}
14814_ACEOF
14815if ac_fn_c_try_link "$LINENO"; then :
14816  eval $cacheid=yes
14817else
14818  eval $cacheid=no
14819fi
14820rm -f core conftest.err conftest.$ac_objext \
14821    conftest$ac_exeext conftest.$ac_ext
14822fi
14823
14824
14825		CFLAGS="$xorg_testset_save_CFLAGS"
14826
14827		eval supported=\$$cacheid
14828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14829$as_echo "$supported" >&6; }
14830		if test "$supported" = "yes" ; then
14831			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14832			found="yes"
14833		fi
14834	fi
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850xorg_testset_save_CFLAGS="$CFLAGS"
14851
14852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14857  $as_echo_n "(cached) " >&6
14858else
14859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861int i;
14862_ACEOF
14863if ac_fn_c_try_compile "$LINENO"; then :
14864  xorg_cv_cc_flag_unknown_warning_option=yes
14865else
14866  xorg_cv_cc_flag_unknown_warning_option=no
14867fi
14868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869fi
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14873	CFLAGS="$xorg_testset_save_CFLAGS"
14874fi
14875
14876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14879	fi
14880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14884  $as_echo_n "(cached) " >&6
14885else
14886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887/* end confdefs.h.  */
14888int i;
14889_ACEOF
14890if ac_fn_c_try_compile "$LINENO"; then :
14891  xorg_cv_cc_flag_unused_command_line_argument=yes
14892else
14893  xorg_cv_cc_flag_unused_command_line_argument=no
14894fi
14895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896fi
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14900	CFLAGS="$xorg_testset_save_CFLAGS"
14901fi
14902
14903found="no"
14904
14905	if test $found = "no" ; then
14906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908		fi
14909
14910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14912		fi
14913
14914		CFLAGS="$CFLAGS -Werror=main"
14915
14916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14917$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14918		cacheid=xorg_cv_cc_flag__Werror_main
14919		if eval \${$cacheid+:} false; then :
14920  $as_echo_n "(cached) " >&6
14921else
14922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923/* end confdefs.h.  */
14924int i;
14925int
14926main ()
14927{
14928
14929  ;
14930  return 0;
14931}
14932_ACEOF
14933if ac_fn_c_try_link "$LINENO"; then :
14934  eval $cacheid=yes
14935else
14936  eval $cacheid=no
14937fi
14938rm -f core conftest.err conftest.$ac_objext \
14939    conftest$ac_exeext conftest.$ac_ext
14940fi
14941
14942
14943		CFLAGS="$xorg_testset_save_CFLAGS"
14944
14945		eval supported=\$$cacheid
14946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14947$as_echo "$supported" >&6; }
14948		if test "$supported" = "yes" ; then
14949			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14950			found="yes"
14951		fi
14952	fi
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968xorg_testset_save_CFLAGS="$CFLAGS"
14969
14970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978/* end confdefs.h.  */
14979int i;
14980_ACEOF
14981if ac_fn_c_try_compile "$LINENO"; then :
14982  xorg_cv_cc_flag_unknown_warning_option=yes
14983else
14984  xorg_cv_cc_flag_unknown_warning_option=no
14985fi
14986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987fi
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14991	CFLAGS="$xorg_testset_save_CFLAGS"
14992fi
14993
14994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997	fi
14998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15002  $as_echo_n "(cached) " >&6
15003else
15004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005/* end confdefs.h.  */
15006int i;
15007_ACEOF
15008if ac_fn_c_try_compile "$LINENO"; then :
15009  xorg_cv_cc_flag_unused_command_line_argument=yes
15010else
15011  xorg_cv_cc_flag_unused_command_line_argument=no
15012fi
15013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15018	CFLAGS="$xorg_testset_save_CFLAGS"
15019fi
15020
15021found="no"
15022
15023	if test $found = "no" ; then
15024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026		fi
15027
15028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15030		fi
15031
15032		CFLAGS="$CFLAGS -Werror=missing-braces"
15033
15034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15035$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15036		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15037		if eval \${$cacheid+:} false; then :
15038  $as_echo_n "(cached) " >&6
15039else
15040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h.  */
15042int i;
15043int
15044main ()
15045{
15046
15047  ;
15048  return 0;
15049}
15050_ACEOF
15051if ac_fn_c_try_link "$LINENO"; then :
15052  eval $cacheid=yes
15053else
15054  eval $cacheid=no
15055fi
15056rm -f core conftest.err conftest.$ac_objext \
15057    conftest$ac_exeext conftest.$ac_ext
15058fi
15059
15060
15061		CFLAGS="$xorg_testset_save_CFLAGS"
15062
15063		eval supported=\$$cacheid
15064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15065$as_echo "$supported" >&6; }
15066		if test "$supported" = "yes" ; then
15067			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15068			found="yes"
15069		fi
15070	fi
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086xorg_testset_save_CFLAGS="$CFLAGS"
15087
15088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15093  $as_echo_n "(cached) " >&6
15094else
15095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h.  */
15097int i;
15098_ACEOF
15099if ac_fn_c_try_compile "$LINENO"; then :
15100  xorg_cv_cc_flag_unknown_warning_option=yes
15101else
15102  xorg_cv_cc_flag_unknown_warning_option=no
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105fi
15106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15109	CFLAGS="$xorg_testset_save_CFLAGS"
15110fi
15111
15112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115	fi
15116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15120  $as_echo_n "(cached) " >&6
15121else
15122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123/* end confdefs.h.  */
15124int i;
15125_ACEOF
15126if ac_fn_c_try_compile "$LINENO"; then :
15127  xorg_cv_cc_flag_unused_command_line_argument=yes
15128else
15129  xorg_cv_cc_flag_unused_command_line_argument=no
15130fi
15131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132fi
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15136	CFLAGS="$xorg_testset_save_CFLAGS"
15137fi
15138
15139found="no"
15140
15141	if test $found = "no" ; then
15142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15144		fi
15145
15146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15148		fi
15149
15150		CFLAGS="$CFLAGS -Werror=sequence-point"
15151
15152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15153$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15154		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15155		if eval \${$cacheid+:} false; then :
15156  $as_echo_n "(cached) " >&6
15157else
15158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160int i;
15161int
15162main ()
15163{
15164
15165  ;
15166  return 0;
15167}
15168_ACEOF
15169if ac_fn_c_try_link "$LINENO"; then :
15170  eval $cacheid=yes
15171else
15172  eval $cacheid=no
15173fi
15174rm -f core conftest.err conftest.$ac_objext \
15175    conftest$ac_exeext conftest.$ac_ext
15176fi
15177
15178
15179		CFLAGS="$xorg_testset_save_CFLAGS"
15180
15181		eval supported=\$$cacheid
15182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15183$as_echo "$supported" >&6; }
15184		if test "$supported" = "yes" ; then
15185			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15186			found="yes"
15187		fi
15188	fi
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204xorg_testset_save_CFLAGS="$CFLAGS"
15205
15206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15211  $as_echo_n "(cached) " >&6
15212else
15213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214/* end confdefs.h.  */
15215int i;
15216_ACEOF
15217if ac_fn_c_try_compile "$LINENO"; then :
15218  xorg_cv_cc_flag_unknown_warning_option=yes
15219else
15220  xorg_cv_cc_flag_unknown_warning_option=no
15221fi
15222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15227	CFLAGS="$xorg_testset_save_CFLAGS"
15228fi
15229
15230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233	fi
15234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h.  */
15242int i;
15243_ACEOF
15244if ac_fn_c_try_compile "$LINENO"; then :
15245  xorg_cv_cc_flag_unused_command_line_argument=yes
15246else
15247  xorg_cv_cc_flag_unused_command_line_argument=no
15248fi
15249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15254	CFLAGS="$xorg_testset_save_CFLAGS"
15255fi
15256
15257found="no"
15258
15259	if test $found = "no" ; then
15260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15262		fi
15263
15264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15266		fi
15267
15268		CFLAGS="$CFLAGS -Werror=return-type"
15269
15270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15271$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15272		cacheid=xorg_cv_cc_flag__Werror_return_type
15273		if eval \${$cacheid+:} false; then :
15274  $as_echo_n "(cached) " >&6
15275else
15276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h.  */
15278int i;
15279int
15280main ()
15281{
15282
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
15288  eval $cacheid=yes
15289else
15290  eval $cacheid=no
15291fi
15292rm -f core conftest.err conftest.$ac_objext \
15293    conftest$ac_exeext conftest.$ac_ext
15294fi
15295
15296
15297		CFLAGS="$xorg_testset_save_CFLAGS"
15298
15299		eval supported=\$$cacheid
15300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15301$as_echo "$supported" >&6; }
15302		if test "$supported" = "yes" ; then
15303			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15304			found="yes"
15305		fi
15306	fi
15307
15308	if test $found = "no" ; then
15309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311		fi
15312
15313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315		fi
15316
15317		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15318
15319		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15320$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15321		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15322		if eval \${$cacheid+:} false; then :
15323  $as_echo_n "(cached) " >&6
15324else
15325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327int i;
15328int
15329main ()
15330{
15331
15332  ;
15333  return 0;
15334}
15335_ACEOF
15336if ac_fn_c_try_link "$LINENO"; then :
15337  eval $cacheid=yes
15338else
15339  eval $cacheid=no
15340fi
15341rm -f core conftest.err conftest.$ac_objext \
15342    conftest$ac_exeext conftest.$ac_ext
15343fi
15344
15345
15346		CFLAGS="$xorg_testset_save_CFLAGS"
15347
15348		eval supported=\$$cacheid
15349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15350$as_echo "$supported" >&6; }
15351		if test "$supported" = "yes" ; then
15352			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15353			found="yes"
15354		fi
15355	fi
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371xorg_testset_save_CFLAGS="$CFLAGS"
15372
15373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382int i;
15383_ACEOF
15384if ac_fn_c_try_compile "$LINENO"; then :
15385  xorg_cv_cc_flag_unknown_warning_option=yes
15386else
15387  xorg_cv_cc_flag_unknown_warning_option=no
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390fi
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15394	CFLAGS="$xorg_testset_save_CFLAGS"
15395fi
15396
15397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15400	fi
15401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15405  $as_echo_n "(cached) " >&6
15406else
15407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408/* end confdefs.h.  */
15409int i;
15410_ACEOF
15411if ac_fn_c_try_compile "$LINENO"; then :
15412  xorg_cv_cc_flag_unused_command_line_argument=yes
15413else
15414  xorg_cv_cc_flag_unused_command_line_argument=no
15415fi
15416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417fi
15418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15421	CFLAGS="$xorg_testset_save_CFLAGS"
15422fi
15423
15424found="no"
15425
15426	if test $found = "no" ; then
15427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15429		fi
15430
15431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433		fi
15434
15435		CFLAGS="$CFLAGS -Werror=trigraphs"
15436
15437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15438$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15439		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15440		if eval \${$cacheid+:} false; then :
15441  $as_echo_n "(cached) " >&6
15442else
15443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444/* end confdefs.h.  */
15445int i;
15446int
15447main ()
15448{
15449
15450  ;
15451  return 0;
15452}
15453_ACEOF
15454if ac_fn_c_try_link "$LINENO"; then :
15455  eval $cacheid=yes
15456else
15457  eval $cacheid=no
15458fi
15459rm -f core conftest.err conftest.$ac_objext \
15460    conftest$ac_exeext conftest.$ac_ext
15461fi
15462
15463
15464		CFLAGS="$xorg_testset_save_CFLAGS"
15465
15466		eval supported=\$$cacheid
15467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15468$as_echo "$supported" >&6; }
15469		if test "$supported" = "yes" ; then
15470			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15471			found="yes"
15472		fi
15473	fi
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489xorg_testset_save_CFLAGS="$CFLAGS"
15490
15491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15496  $as_echo_n "(cached) " >&6
15497else
15498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499/* end confdefs.h.  */
15500int i;
15501_ACEOF
15502if ac_fn_c_try_compile "$LINENO"; then :
15503  xorg_cv_cc_flag_unknown_warning_option=yes
15504else
15505  xorg_cv_cc_flag_unknown_warning_option=no
15506fi
15507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508fi
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15512	CFLAGS="$xorg_testset_save_CFLAGS"
15513fi
15514
15515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15518	fi
15519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15523  $as_echo_n "(cached) " >&6
15524else
15525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15526/* end confdefs.h.  */
15527int i;
15528_ACEOF
15529if ac_fn_c_try_compile "$LINENO"; then :
15530  xorg_cv_cc_flag_unused_command_line_argument=yes
15531else
15532  xorg_cv_cc_flag_unused_command_line_argument=no
15533fi
15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535fi
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15539	CFLAGS="$xorg_testset_save_CFLAGS"
15540fi
15541
15542found="no"
15543
15544	if test $found = "no" ; then
15545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15547		fi
15548
15549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15551		fi
15552
15553		CFLAGS="$CFLAGS -Werror=array-bounds"
15554
15555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15556$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15557		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15558		if eval \${$cacheid+:} false; then :
15559  $as_echo_n "(cached) " >&6
15560else
15561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h.  */
15563int i;
15564int
15565main ()
15566{
15567
15568  ;
15569  return 0;
15570}
15571_ACEOF
15572if ac_fn_c_try_link "$LINENO"; then :
15573  eval $cacheid=yes
15574else
15575  eval $cacheid=no
15576fi
15577rm -f core conftest.err conftest.$ac_objext \
15578    conftest$ac_exeext conftest.$ac_ext
15579fi
15580
15581
15582		CFLAGS="$xorg_testset_save_CFLAGS"
15583
15584		eval supported=\$$cacheid
15585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15586$as_echo "$supported" >&6; }
15587		if test "$supported" = "yes" ; then
15588			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15589			found="yes"
15590		fi
15591	fi
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607xorg_testset_save_CFLAGS="$CFLAGS"
15608
15609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15614  $as_echo_n "(cached) " >&6
15615else
15616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617/* end confdefs.h.  */
15618int i;
15619_ACEOF
15620if ac_fn_c_try_compile "$LINENO"; then :
15621  xorg_cv_cc_flag_unknown_warning_option=yes
15622else
15623  xorg_cv_cc_flag_unknown_warning_option=no
15624fi
15625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626fi
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15630	CFLAGS="$xorg_testset_save_CFLAGS"
15631fi
15632
15633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15636	fi
15637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15641  $as_echo_n "(cached) " >&6
15642else
15643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644/* end confdefs.h.  */
15645int i;
15646_ACEOF
15647if ac_fn_c_try_compile "$LINENO"; then :
15648  xorg_cv_cc_flag_unused_command_line_argument=yes
15649else
15650  xorg_cv_cc_flag_unused_command_line_argument=no
15651fi
15652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653fi
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15657	CFLAGS="$xorg_testset_save_CFLAGS"
15658fi
15659
15660found="no"
15661
15662	if test $found = "no" ; then
15663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15665		fi
15666
15667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669		fi
15670
15671		CFLAGS="$CFLAGS -Werror=write-strings"
15672
15673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15674$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15675		cacheid=xorg_cv_cc_flag__Werror_write_strings
15676		if eval \${$cacheid+:} false; then :
15677  $as_echo_n "(cached) " >&6
15678else
15679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681int i;
15682int
15683main ()
15684{
15685
15686  ;
15687  return 0;
15688}
15689_ACEOF
15690if ac_fn_c_try_link "$LINENO"; then :
15691  eval $cacheid=yes
15692else
15693  eval $cacheid=no
15694fi
15695rm -f core conftest.err conftest.$ac_objext \
15696    conftest$ac_exeext conftest.$ac_ext
15697fi
15698
15699
15700		CFLAGS="$xorg_testset_save_CFLAGS"
15701
15702		eval supported=\$$cacheid
15703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15704$as_echo "$supported" >&6; }
15705		if test "$supported" = "yes" ; then
15706			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15707			found="yes"
15708		fi
15709	fi
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725xorg_testset_save_CFLAGS="$CFLAGS"
15726
15727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15732  $as_echo_n "(cached) " >&6
15733else
15734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736int i;
15737_ACEOF
15738if ac_fn_c_try_compile "$LINENO"; then :
15739  xorg_cv_cc_flag_unknown_warning_option=yes
15740else
15741  xorg_cv_cc_flag_unknown_warning_option=no
15742fi
15743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744fi
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15748	CFLAGS="$xorg_testset_save_CFLAGS"
15749fi
15750
15751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15754	fi
15755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15759  $as_echo_n "(cached) " >&6
15760else
15761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h.  */
15763int i;
15764_ACEOF
15765if ac_fn_c_try_compile "$LINENO"; then :
15766  xorg_cv_cc_flag_unused_command_line_argument=yes
15767else
15768  xorg_cv_cc_flag_unused_command_line_argument=no
15769fi
15770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771fi
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15775	CFLAGS="$xorg_testset_save_CFLAGS"
15776fi
15777
15778found="no"
15779
15780	if test $found = "no" ; then
15781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783		fi
15784
15785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787		fi
15788
15789		CFLAGS="$CFLAGS -Werror=address"
15790
15791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15792$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15793		cacheid=xorg_cv_cc_flag__Werror_address
15794		if eval \${$cacheid+:} false; then :
15795  $as_echo_n "(cached) " >&6
15796else
15797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798/* end confdefs.h.  */
15799int i;
15800int
15801main ()
15802{
15803
15804  ;
15805  return 0;
15806}
15807_ACEOF
15808if ac_fn_c_try_link "$LINENO"; then :
15809  eval $cacheid=yes
15810else
15811  eval $cacheid=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext \
15814    conftest$ac_exeext conftest.$ac_ext
15815fi
15816
15817
15818		CFLAGS="$xorg_testset_save_CFLAGS"
15819
15820		eval supported=\$$cacheid
15821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15822$as_echo "$supported" >&6; }
15823		if test "$supported" = "yes" ; then
15824			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15825			found="yes"
15826		fi
15827	fi
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843xorg_testset_save_CFLAGS="$CFLAGS"
15844
15845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15850  $as_echo_n "(cached) " >&6
15851else
15852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854int i;
15855_ACEOF
15856if ac_fn_c_try_compile "$LINENO"; then :
15857  xorg_cv_cc_flag_unknown_warning_option=yes
15858else
15859  xorg_cv_cc_flag_unknown_warning_option=no
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862fi
15863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15866	CFLAGS="$xorg_testset_save_CFLAGS"
15867fi
15868
15869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15872	fi
15873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15877  $as_echo_n "(cached) " >&6
15878else
15879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880/* end confdefs.h.  */
15881int i;
15882_ACEOF
15883if ac_fn_c_try_compile "$LINENO"; then :
15884  xorg_cv_cc_flag_unused_command_line_argument=yes
15885else
15886  xorg_cv_cc_flag_unused_command_line_argument=no
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889fi
15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15893	CFLAGS="$xorg_testset_save_CFLAGS"
15894fi
15895
15896found="no"
15897
15898	if test $found = "no" ; then
15899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901		fi
15902
15903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905		fi
15906
15907		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15908
15909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15910$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15911		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15912		if eval \${$cacheid+:} false; then :
15913  $as_echo_n "(cached) " >&6
15914else
15915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916/* end confdefs.h.  */
15917int i;
15918int
15919main ()
15920{
15921
15922  ;
15923  return 0;
15924}
15925_ACEOF
15926if ac_fn_c_try_link "$LINENO"; then :
15927  eval $cacheid=yes
15928else
15929  eval $cacheid=no
15930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932    conftest$ac_exeext conftest.$ac_ext
15933fi
15934
15935
15936		CFLAGS="$xorg_testset_save_CFLAGS"
15937
15938		eval supported=\$$cacheid
15939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15940$as_echo "$supported" >&6; }
15941		if test "$supported" = "yes" ; then
15942			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15943			found="yes"
15944		fi
15945	fi
15946
15947	if test $found = "no" ; then
15948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950		fi
15951
15952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954		fi
15955
15956		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15957
15958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15959$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15960		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15961		if eval \${$cacheid+:} false; then :
15962  $as_echo_n "(cached) " >&6
15963else
15964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h.  */
15966int i;
15967int
15968main ()
15969{
15970
15971  ;
15972  return 0;
15973}
15974_ACEOF
15975if ac_fn_c_try_link "$LINENO"; then :
15976  eval $cacheid=yes
15977else
15978  eval $cacheid=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext \
15981    conftest$ac_exeext conftest.$ac_ext
15982fi
15983
15984
15985		CFLAGS="$xorg_testset_save_CFLAGS"
15986
15987		eval supported=\$$cacheid
15988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15989$as_echo "$supported" >&6; }
15990		if test "$supported" = "yes" ; then
15991			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15992			found="yes"
15993		fi
15994	fi
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010xorg_testset_save_CFLAGS="$CFLAGS"
16011
16012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16017  $as_echo_n "(cached) " >&6
16018else
16019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020/* end confdefs.h.  */
16021int i;
16022_ACEOF
16023if ac_fn_c_try_compile "$LINENO"; then :
16024  xorg_cv_cc_flag_unknown_warning_option=yes
16025else
16026  xorg_cv_cc_flag_unknown_warning_option=no
16027fi
16028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16033	CFLAGS="$xorg_testset_save_CFLAGS"
16034fi
16035
16036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16039	fi
16040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h.  */
16048int i;
16049_ACEOF
16050if ac_fn_c_try_compile "$LINENO"; then :
16051  xorg_cv_cc_flag_unused_command_line_argument=yes
16052else
16053  xorg_cv_cc_flag_unused_command_line_argument=no
16054fi
16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056fi
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16060	CFLAGS="$xorg_testset_save_CFLAGS"
16061fi
16062
16063found="no"
16064
16065	if test $found = "no" ; then
16066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16068		fi
16069
16070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072		fi
16073
16074		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16075
16076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16077$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16078		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16079		if eval \${$cacheid+:} false; then :
16080  $as_echo_n "(cached) " >&6
16081else
16082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h.  */
16084int i;
16085int
16086main ()
16087{
16088
16089  ;
16090  return 0;
16091}
16092_ACEOF
16093if ac_fn_c_try_link "$LINENO"; then :
16094  eval $cacheid=yes
16095else
16096  eval $cacheid=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext \
16099    conftest$ac_exeext conftest.$ac_ext
16100fi
16101
16102
16103		CFLAGS="$xorg_testset_save_CFLAGS"
16104
16105		eval supported=\$$cacheid
16106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16107$as_echo "$supported" >&6; }
16108		if test "$supported" = "yes" ; then
16109			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16110			found="yes"
16111		fi
16112	fi
16113
16114 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16115else
16116{ $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
16117$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;}
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131xorg_testset_save_CFLAGS="$CFLAGS"
16132
16133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16138  $as_echo_n "(cached) " >&6
16139else
16140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142int i;
16143_ACEOF
16144if ac_fn_c_try_compile "$LINENO"; then :
16145  xorg_cv_cc_flag_unknown_warning_option=yes
16146else
16147  xorg_cv_cc_flag_unknown_warning_option=no
16148fi
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150fi
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16154	CFLAGS="$xorg_testset_save_CFLAGS"
16155fi
16156
16157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16160	fi
16161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16165  $as_echo_n "(cached) " >&6
16166else
16167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h.  */
16169int i;
16170_ACEOF
16171if ac_fn_c_try_compile "$LINENO"; then :
16172  xorg_cv_cc_flag_unused_command_line_argument=yes
16173else
16174  xorg_cv_cc_flag_unused_command_line_argument=no
16175fi
16176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177fi
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16181	CFLAGS="$xorg_testset_save_CFLAGS"
16182fi
16183
16184found="no"
16185
16186	if test $found = "no" ; then
16187		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16189		fi
16190
16191		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16193		fi
16194
16195		CFLAGS="$CFLAGS -Wimplicit"
16196
16197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16198$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16199		cacheid=xorg_cv_cc_flag__Wimplicit
16200		if eval \${$cacheid+:} false; then :
16201  $as_echo_n "(cached) " >&6
16202else
16203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h.  */
16205int i;
16206int
16207main ()
16208{
16209
16210  ;
16211  return 0;
16212}
16213_ACEOF
16214if ac_fn_c_try_link "$LINENO"; then :
16215  eval $cacheid=yes
16216else
16217  eval $cacheid=no
16218fi
16219rm -f core conftest.err conftest.$ac_objext \
16220    conftest$ac_exeext conftest.$ac_ext
16221fi
16222
16223
16224		CFLAGS="$xorg_testset_save_CFLAGS"
16225
16226		eval supported=\$$cacheid
16227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16228$as_echo "$supported" >&6; }
16229		if test "$supported" = "yes" ; then
16230			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16231			found="yes"
16232		fi
16233	fi
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249xorg_testset_save_CFLAGS="$CFLAGS"
16250
16251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16256  $as_echo_n "(cached) " >&6
16257else
16258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h.  */
16260int i;
16261_ACEOF
16262if ac_fn_c_try_compile "$LINENO"; then :
16263  xorg_cv_cc_flag_unknown_warning_option=yes
16264else
16265  xorg_cv_cc_flag_unknown_warning_option=no
16266fi
16267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16272	CFLAGS="$xorg_testset_save_CFLAGS"
16273fi
16274
16275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278	fi
16279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16283  $as_echo_n "(cached) " >&6
16284else
16285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286/* end confdefs.h.  */
16287int i;
16288_ACEOF
16289if ac_fn_c_try_compile "$LINENO"; then :
16290  xorg_cv_cc_flag_unused_command_line_argument=yes
16291else
16292  xorg_cv_cc_flag_unused_command_line_argument=no
16293fi
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16299	CFLAGS="$xorg_testset_save_CFLAGS"
16300fi
16301
16302found="no"
16303
16304	if test $found = "no" ; then
16305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16307		fi
16308
16309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16311		fi
16312
16313		CFLAGS="$CFLAGS -Wnonnull"
16314
16315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16316$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16317		cacheid=xorg_cv_cc_flag__Wnonnull
16318		if eval \${$cacheid+:} false; then :
16319  $as_echo_n "(cached) " >&6
16320else
16321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h.  */
16323int i;
16324int
16325main ()
16326{
16327
16328  ;
16329  return 0;
16330}
16331_ACEOF
16332if ac_fn_c_try_link "$LINENO"; then :
16333  eval $cacheid=yes
16334else
16335  eval $cacheid=no
16336fi
16337rm -f core conftest.err conftest.$ac_objext \
16338    conftest$ac_exeext conftest.$ac_ext
16339fi
16340
16341
16342		CFLAGS="$xorg_testset_save_CFLAGS"
16343
16344		eval supported=\$$cacheid
16345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16346$as_echo "$supported" >&6; }
16347		if test "$supported" = "yes" ; then
16348			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16349			found="yes"
16350		fi
16351	fi
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367xorg_testset_save_CFLAGS="$CFLAGS"
16368
16369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16374  $as_echo_n "(cached) " >&6
16375else
16376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377/* end confdefs.h.  */
16378int i;
16379_ACEOF
16380if ac_fn_c_try_compile "$LINENO"; then :
16381  xorg_cv_cc_flag_unknown_warning_option=yes
16382else
16383  xorg_cv_cc_flag_unknown_warning_option=no
16384fi
16385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386fi
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16390	CFLAGS="$xorg_testset_save_CFLAGS"
16391fi
16392
16393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396	fi
16397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16401  $as_echo_n "(cached) " >&6
16402else
16403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404/* end confdefs.h.  */
16405int i;
16406_ACEOF
16407if ac_fn_c_try_compile "$LINENO"; then :
16408  xorg_cv_cc_flag_unused_command_line_argument=yes
16409else
16410  xorg_cv_cc_flag_unused_command_line_argument=no
16411fi
16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413fi
16414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16417	CFLAGS="$xorg_testset_save_CFLAGS"
16418fi
16419
16420found="no"
16421
16422	if test $found = "no" ; then
16423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16425		fi
16426
16427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16429		fi
16430
16431		CFLAGS="$CFLAGS -Winit-self"
16432
16433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16434$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16435		cacheid=xorg_cv_cc_flag__Winit_self
16436		if eval \${$cacheid+:} false; then :
16437  $as_echo_n "(cached) " >&6
16438else
16439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440/* end confdefs.h.  */
16441int i;
16442int
16443main ()
16444{
16445
16446  ;
16447  return 0;
16448}
16449_ACEOF
16450if ac_fn_c_try_link "$LINENO"; then :
16451  eval $cacheid=yes
16452else
16453  eval $cacheid=no
16454fi
16455rm -f core conftest.err conftest.$ac_objext \
16456    conftest$ac_exeext conftest.$ac_ext
16457fi
16458
16459
16460		CFLAGS="$xorg_testset_save_CFLAGS"
16461
16462		eval supported=\$$cacheid
16463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16464$as_echo "$supported" >&6; }
16465		if test "$supported" = "yes" ; then
16466			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16467			found="yes"
16468		fi
16469	fi
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485xorg_testset_save_CFLAGS="$CFLAGS"
16486
16487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16492  $as_echo_n "(cached) " >&6
16493else
16494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h.  */
16496int i;
16497_ACEOF
16498if ac_fn_c_try_compile "$LINENO"; then :
16499  xorg_cv_cc_flag_unknown_warning_option=yes
16500else
16501  xorg_cv_cc_flag_unknown_warning_option=no
16502fi
16503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504fi
16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16508	CFLAGS="$xorg_testset_save_CFLAGS"
16509fi
16510
16511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514	fi
16515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16519  $as_echo_n "(cached) " >&6
16520else
16521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522/* end confdefs.h.  */
16523int i;
16524_ACEOF
16525if ac_fn_c_try_compile "$LINENO"; then :
16526  xorg_cv_cc_flag_unused_command_line_argument=yes
16527else
16528  xorg_cv_cc_flag_unused_command_line_argument=no
16529fi
16530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531fi
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16535	CFLAGS="$xorg_testset_save_CFLAGS"
16536fi
16537
16538found="no"
16539
16540	if test $found = "no" ; then
16541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16543		fi
16544
16545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16547		fi
16548
16549		CFLAGS="$CFLAGS -Wmain"
16550
16551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16552$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16553		cacheid=xorg_cv_cc_flag__Wmain
16554		if eval \${$cacheid+:} false; then :
16555  $as_echo_n "(cached) " >&6
16556else
16557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559int i;
16560int
16561main ()
16562{
16563
16564  ;
16565  return 0;
16566}
16567_ACEOF
16568if ac_fn_c_try_link "$LINENO"; then :
16569  eval $cacheid=yes
16570else
16571  eval $cacheid=no
16572fi
16573rm -f core conftest.err conftest.$ac_objext \
16574    conftest$ac_exeext conftest.$ac_ext
16575fi
16576
16577
16578		CFLAGS="$xorg_testset_save_CFLAGS"
16579
16580		eval supported=\$$cacheid
16581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16582$as_echo "$supported" >&6; }
16583		if test "$supported" = "yes" ; then
16584			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16585			found="yes"
16586		fi
16587	fi
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603xorg_testset_save_CFLAGS="$CFLAGS"
16604
16605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16610  $as_echo_n "(cached) " >&6
16611else
16612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613/* end confdefs.h.  */
16614int i;
16615_ACEOF
16616if ac_fn_c_try_compile "$LINENO"; then :
16617  xorg_cv_cc_flag_unknown_warning_option=yes
16618else
16619  xorg_cv_cc_flag_unknown_warning_option=no
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622fi
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16626	CFLAGS="$xorg_testset_save_CFLAGS"
16627fi
16628
16629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632	fi
16633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16637  $as_echo_n "(cached) " >&6
16638else
16639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h.  */
16641int i;
16642_ACEOF
16643if ac_fn_c_try_compile "$LINENO"; then :
16644  xorg_cv_cc_flag_unused_command_line_argument=yes
16645else
16646  xorg_cv_cc_flag_unused_command_line_argument=no
16647fi
16648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649fi
16650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16653	CFLAGS="$xorg_testset_save_CFLAGS"
16654fi
16655
16656found="no"
16657
16658	if test $found = "no" ; then
16659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661		fi
16662
16663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16665		fi
16666
16667		CFLAGS="$CFLAGS -Wmissing-braces"
16668
16669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16670$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16671		cacheid=xorg_cv_cc_flag__Wmissing_braces
16672		if eval \${$cacheid+:} false; then :
16673  $as_echo_n "(cached) " >&6
16674else
16675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676/* end confdefs.h.  */
16677int i;
16678int
16679main ()
16680{
16681
16682  ;
16683  return 0;
16684}
16685_ACEOF
16686if ac_fn_c_try_link "$LINENO"; then :
16687  eval $cacheid=yes
16688else
16689  eval $cacheid=no
16690fi
16691rm -f core conftest.err conftest.$ac_objext \
16692    conftest$ac_exeext conftest.$ac_ext
16693fi
16694
16695
16696		CFLAGS="$xorg_testset_save_CFLAGS"
16697
16698		eval supported=\$$cacheid
16699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16700$as_echo "$supported" >&6; }
16701		if test "$supported" = "yes" ; then
16702			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16703			found="yes"
16704		fi
16705	fi
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721xorg_testset_save_CFLAGS="$CFLAGS"
16722
16723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16728  $as_echo_n "(cached) " >&6
16729else
16730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h.  */
16732int i;
16733_ACEOF
16734if ac_fn_c_try_compile "$LINENO"; then :
16735  xorg_cv_cc_flag_unknown_warning_option=yes
16736else
16737  xorg_cv_cc_flag_unknown_warning_option=no
16738fi
16739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740fi
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16744	CFLAGS="$xorg_testset_save_CFLAGS"
16745fi
16746
16747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750	fi
16751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16755  $as_echo_n "(cached) " >&6
16756else
16757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758/* end confdefs.h.  */
16759int i;
16760_ACEOF
16761if ac_fn_c_try_compile "$LINENO"; then :
16762  xorg_cv_cc_flag_unused_command_line_argument=yes
16763else
16764  xorg_cv_cc_flag_unused_command_line_argument=no
16765fi
16766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767fi
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16771	CFLAGS="$xorg_testset_save_CFLAGS"
16772fi
16773
16774found="no"
16775
16776	if test $found = "no" ; then
16777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16779		fi
16780
16781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16783		fi
16784
16785		CFLAGS="$CFLAGS -Wsequence-point"
16786
16787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16788$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16789		cacheid=xorg_cv_cc_flag__Wsequence_point
16790		if eval \${$cacheid+:} false; then :
16791  $as_echo_n "(cached) " >&6
16792else
16793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h.  */
16795int i;
16796int
16797main ()
16798{
16799
16800  ;
16801  return 0;
16802}
16803_ACEOF
16804if ac_fn_c_try_link "$LINENO"; then :
16805  eval $cacheid=yes
16806else
16807  eval $cacheid=no
16808fi
16809rm -f core conftest.err conftest.$ac_objext \
16810    conftest$ac_exeext conftest.$ac_ext
16811fi
16812
16813
16814		CFLAGS="$xorg_testset_save_CFLAGS"
16815
16816		eval supported=\$$cacheid
16817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16818$as_echo "$supported" >&6; }
16819		if test "$supported" = "yes" ; then
16820			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16821			found="yes"
16822		fi
16823	fi
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839xorg_testset_save_CFLAGS="$CFLAGS"
16840
16841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16846  $as_echo_n "(cached) " >&6
16847else
16848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849/* end confdefs.h.  */
16850int i;
16851_ACEOF
16852if ac_fn_c_try_compile "$LINENO"; then :
16853  xorg_cv_cc_flag_unknown_warning_option=yes
16854else
16855  xorg_cv_cc_flag_unknown_warning_option=no
16856fi
16857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858fi
16859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16862	CFLAGS="$xorg_testset_save_CFLAGS"
16863fi
16864
16865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868	fi
16869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16873  $as_echo_n "(cached) " >&6
16874else
16875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h.  */
16877int i;
16878_ACEOF
16879if ac_fn_c_try_compile "$LINENO"; then :
16880  xorg_cv_cc_flag_unused_command_line_argument=yes
16881else
16882  xorg_cv_cc_flag_unused_command_line_argument=no
16883fi
16884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885fi
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16889	CFLAGS="$xorg_testset_save_CFLAGS"
16890fi
16891
16892found="no"
16893
16894	if test $found = "no" ; then
16895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897		fi
16898
16899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16901		fi
16902
16903		CFLAGS="$CFLAGS -Wreturn-type"
16904
16905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16906$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16907		cacheid=xorg_cv_cc_flag__Wreturn_type
16908		if eval \${$cacheid+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912/* end confdefs.h.  */
16913int i;
16914int
16915main ()
16916{
16917
16918  ;
16919  return 0;
16920}
16921_ACEOF
16922if ac_fn_c_try_link "$LINENO"; then :
16923  eval $cacheid=yes
16924else
16925  eval $cacheid=no
16926fi
16927rm -f core conftest.err conftest.$ac_objext \
16928    conftest$ac_exeext conftest.$ac_ext
16929fi
16930
16931
16932		CFLAGS="$xorg_testset_save_CFLAGS"
16933
16934		eval supported=\$$cacheid
16935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16936$as_echo "$supported" >&6; }
16937		if test "$supported" = "yes" ; then
16938			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16939			found="yes"
16940		fi
16941	fi
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957xorg_testset_save_CFLAGS="$CFLAGS"
16958
16959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16964  $as_echo_n "(cached) " >&6
16965else
16966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967/* end confdefs.h.  */
16968int i;
16969_ACEOF
16970if ac_fn_c_try_compile "$LINENO"; then :
16971  xorg_cv_cc_flag_unknown_warning_option=yes
16972else
16973  xorg_cv_cc_flag_unknown_warning_option=no
16974fi
16975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976fi
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16980	CFLAGS="$xorg_testset_save_CFLAGS"
16981fi
16982
16983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16986	fi
16987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16991  $as_echo_n "(cached) " >&6
16992else
16993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h.  */
16995int i;
16996_ACEOF
16997if ac_fn_c_try_compile "$LINENO"; then :
16998  xorg_cv_cc_flag_unused_command_line_argument=yes
16999else
17000  xorg_cv_cc_flag_unused_command_line_argument=no
17001fi
17002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003fi
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17007	CFLAGS="$xorg_testset_save_CFLAGS"
17008fi
17009
17010found="no"
17011
17012	if test $found = "no" ; then
17013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015		fi
17016
17017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17019		fi
17020
17021		CFLAGS="$CFLAGS -Wtrigraphs"
17022
17023		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17024$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17025		cacheid=xorg_cv_cc_flag__Wtrigraphs
17026		if eval \${$cacheid+:} false; then :
17027  $as_echo_n "(cached) " >&6
17028else
17029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031int i;
17032int
17033main ()
17034{
17035
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040if ac_fn_c_try_link "$LINENO"; then :
17041  eval $cacheid=yes
17042else
17043  eval $cacheid=no
17044fi
17045rm -f core conftest.err conftest.$ac_objext \
17046    conftest$ac_exeext conftest.$ac_ext
17047fi
17048
17049
17050		CFLAGS="$xorg_testset_save_CFLAGS"
17051
17052		eval supported=\$$cacheid
17053		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17054$as_echo "$supported" >&6; }
17055		if test "$supported" = "yes" ; then
17056			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17057			found="yes"
17058		fi
17059	fi
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075xorg_testset_save_CFLAGS="$CFLAGS"
17076
17077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17082  $as_echo_n "(cached) " >&6
17083else
17084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085/* end confdefs.h.  */
17086int i;
17087_ACEOF
17088if ac_fn_c_try_compile "$LINENO"; then :
17089  xorg_cv_cc_flag_unknown_warning_option=yes
17090else
17091  xorg_cv_cc_flag_unknown_warning_option=no
17092fi
17093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17094fi
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17097	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17098	CFLAGS="$xorg_testset_save_CFLAGS"
17099fi
17100
17101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17102	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17103		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17104	fi
17105	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17109  $as_echo_n "(cached) " >&6
17110else
17111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h.  */
17113int i;
17114_ACEOF
17115if ac_fn_c_try_compile "$LINENO"; then :
17116  xorg_cv_cc_flag_unused_command_line_argument=yes
17117else
17118  xorg_cv_cc_flag_unused_command_line_argument=no
17119fi
17120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121fi
17122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17125	CFLAGS="$xorg_testset_save_CFLAGS"
17126fi
17127
17128found="no"
17129
17130	if test $found = "no" ; then
17131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133		fi
17134
17135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17137		fi
17138
17139		CFLAGS="$CFLAGS -Warray-bounds"
17140
17141		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17142$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17143		cacheid=xorg_cv_cc_flag__Warray_bounds
17144		if eval \${$cacheid+:} false; then :
17145  $as_echo_n "(cached) " >&6
17146else
17147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h.  */
17149int i;
17150int
17151main ()
17152{
17153
17154  ;
17155  return 0;
17156}
17157_ACEOF
17158if ac_fn_c_try_link "$LINENO"; then :
17159  eval $cacheid=yes
17160else
17161  eval $cacheid=no
17162fi
17163rm -f core conftest.err conftest.$ac_objext \
17164    conftest$ac_exeext conftest.$ac_ext
17165fi
17166
17167
17168		CFLAGS="$xorg_testset_save_CFLAGS"
17169
17170		eval supported=\$$cacheid
17171		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17172$as_echo "$supported" >&6; }
17173		if test "$supported" = "yes" ; then
17174			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17175			found="yes"
17176		fi
17177	fi
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193xorg_testset_save_CFLAGS="$CFLAGS"
17194
17195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17200  $as_echo_n "(cached) " >&6
17201else
17202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h.  */
17204int i;
17205_ACEOF
17206if ac_fn_c_try_compile "$LINENO"; then :
17207  xorg_cv_cc_flag_unknown_warning_option=yes
17208else
17209  xorg_cv_cc_flag_unknown_warning_option=no
17210fi
17211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212fi
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17216	CFLAGS="$xorg_testset_save_CFLAGS"
17217fi
17218
17219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222	fi
17223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17227  $as_echo_n "(cached) " >&6
17228else
17229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230/* end confdefs.h.  */
17231int i;
17232_ACEOF
17233if ac_fn_c_try_compile "$LINENO"; then :
17234  xorg_cv_cc_flag_unused_command_line_argument=yes
17235else
17236  xorg_cv_cc_flag_unused_command_line_argument=no
17237fi
17238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17243	CFLAGS="$xorg_testset_save_CFLAGS"
17244fi
17245
17246found="no"
17247
17248	if test $found = "no" ; then
17249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251		fi
17252
17253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17255		fi
17256
17257		CFLAGS="$CFLAGS -Wwrite-strings"
17258
17259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17260$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17261		cacheid=xorg_cv_cc_flag__Wwrite_strings
17262		if eval \${$cacheid+:} false; then :
17263  $as_echo_n "(cached) " >&6
17264else
17265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266/* end confdefs.h.  */
17267int i;
17268int
17269main ()
17270{
17271
17272  ;
17273  return 0;
17274}
17275_ACEOF
17276if ac_fn_c_try_link "$LINENO"; then :
17277  eval $cacheid=yes
17278else
17279  eval $cacheid=no
17280fi
17281rm -f core conftest.err conftest.$ac_objext \
17282    conftest$ac_exeext conftest.$ac_ext
17283fi
17284
17285
17286		CFLAGS="$xorg_testset_save_CFLAGS"
17287
17288		eval supported=\$$cacheid
17289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17290$as_echo "$supported" >&6; }
17291		if test "$supported" = "yes" ; then
17292			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17293			found="yes"
17294		fi
17295	fi
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311xorg_testset_save_CFLAGS="$CFLAGS"
17312
17313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17318  $as_echo_n "(cached) " >&6
17319else
17320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321/* end confdefs.h.  */
17322int i;
17323_ACEOF
17324if ac_fn_c_try_compile "$LINENO"; then :
17325  xorg_cv_cc_flag_unknown_warning_option=yes
17326else
17327  xorg_cv_cc_flag_unknown_warning_option=no
17328fi
17329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330fi
17331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17334	CFLAGS="$xorg_testset_save_CFLAGS"
17335fi
17336
17337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340	fi
17341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17345  $as_echo_n "(cached) " >&6
17346else
17347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348/* end confdefs.h.  */
17349int i;
17350_ACEOF
17351if ac_fn_c_try_compile "$LINENO"; then :
17352  xorg_cv_cc_flag_unused_command_line_argument=yes
17353else
17354  xorg_cv_cc_flag_unused_command_line_argument=no
17355fi
17356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357fi
17358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17361	CFLAGS="$xorg_testset_save_CFLAGS"
17362fi
17363
17364found="no"
17365
17366	if test $found = "no" ; then
17367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369		fi
17370
17371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17373		fi
17374
17375		CFLAGS="$CFLAGS -Waddress"
17376
17377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17378$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17379		cacheid=xorg_cv_cc_flag__Waddress
17380		if eval \${$cacheid+:} false; then :
17381  $as_echo_n "(cached) " >&6
17382else
17383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384/* end confdefs.h.  */
17385int i;
17386int
17387main ()
17388{
17389
17390  ;
17391  return 0;
17392}
17393_ACEOF
17394if ac_fn_c_try_link "$LINENO"; then :
17395  eval $cacheid=yes
17396else
17397  eval $cacheid=no
17398fi
17399rm -f core conftest.err conftest.$ac_objext \
17400    conftest$ac_exeext conftest.$ac_ext
17401fi
17402
17403
17404		CFLAGS="$xorg_testset_save_CFLAGS"
17405
17406		eval supported=\$$cacheid
17407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17408$as_echo "$supported" >&6; }
17409		if test "$supported" = "yes" ; then
17410			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17411			found="yes"
17412		fi
17413	fi
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429xorg_testset_save_CFLAGS="$CFLAGS"
17430
17431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17436  $as_echo_n "(cached) " >&6
17437else
17438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439/* end confdefs.h.  */
17440int i;
17441_ACEOF
17442if ac_fn_c_try_compile "$LINENO"; then :
17443  xorg_cv_cc_flag_unknown_warning_option=yes
17444else
17445  xorg_cv_cc_flag_unknown_warning_option=no
17446fi
17447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448fi
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17452	CFLAGS="$xorg_testset_save_CFLAGS"
17453fi
17454
17455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458	fi
17459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17463  $as_echo_n "(cached) " >&6
17464else
17465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467int i;
17468_ACEOF
17469if ac_fn_c_try_compile "$LINENO"; then :
17470  xorg_cv_cc_flag_unused_command_line_argument=yes
17471else
17472  xorg_cv_cc_flag_unused_command_line_argument=no
17473fi
17474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475fi
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17479	CFLAGS="$xorg_testset_save_CFLAGS"
17480fi
17481
17482found="no"
17483
17484	if test $found = "no" ; then
17485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17487		fi
17488
17489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17491		fi
17492
17493		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17494
17495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17496$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17497		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17498		if eval \${$cacheid+:} false; then :
17499  $as_echo_n "(cached) " >&6
17500else
17501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502/* end confdefs.h.  */
17503int i;
17504int
17505main ()
17506{
17507
17508  ;
17509  return 0;
17510}
17511_ACEOF
17512if ac_fn_c_try_link "$LINENO"; then :
17513  eval $cacheid=yes
17514else
17515  eval $cacheid=no
17516fi
17517rm -f core conftest.err conftest.$ac_objext \
17518    conftest$ac_exeext conftest.$ac_ext
17519fi
17520
17521
17522		CFLAGS="$xorg_testset_save_CFLAGS"
17523
17524		eval supported=\$$cacheid
17525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17526$as_echo "$supported" >&6; }
17527		if test "$supported" = "yes" ; then
17528			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17529			found="yes"
17530		fi
17531	fi
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547xorg_testset_save_CFLAGS="$CFLAGS"
17548
17549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17554  $as_echo_n "(cached) " >&6
17555else
17556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557/* end confdefs.h.  */
17558int i;
17559_ACEOF
17560if ac_fn_c_try_compile "$LINENO"; then :
17561  xorg_cv_cc_flag_unknown_warning_option=yes
17562else
17563  xorg_cv_cc_flag_unknown_warning_option=no
17564fi
17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566fi
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17570	CFLAGS="$xorg_testset_save_CFLAGS"
17571fi
17572
17573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17576	fi
17577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17581  $as_echo_n "(cached) " >&6
17582else
17583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584/* end confdefs.h.  */
17585int i;
17586_ACEOF
17587if ac_fn_c_try_compile "$LINENO"; then :
17588  xorg_cv_cc_flag_unused_command_line_argument=yes
17589else
17590  xorg_cv_cc_flag_unused_command_line_argument=no
17591fi
17592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593fi
17594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17597	CFLAGS="$xorg_testset_save_CFLAGS"
17598fi
17599
17600found="no"
17601
17602	if test $found = "no" ; then
17603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17605		fi
17606
17607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17609		fi
17610
17611		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17612
17613		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17614$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17615		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17616		if eval \${$cacheid+:} false; then :
17617  $as_echo_n "(cached) " >&6
17618else
17619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620/* end confdefs.h.  */
17621int i;
17622int
17623main ()
17624{
17625
17626  ;
17627  return 0;
17628}
17629_ACEOF
17630if ac_fn_c_try_link "$LINENO"; then :
17631  eval $cacheid=yes
17632else
17633  eval $cacheid=no
17634fi
17635rm -f core conftest.err conftest.$ac_objext \
17636    conftest$ac_exeext conftest.$ac_ext
17637fi
17638
17639
17640		CFLAGS="$xorg_testset_save_CFLAGS"
17641
17642		eval supported=\$$cacheid
17643		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17644$as_echo "$supported" >&6; }
17645		if test "$supported" = "yes" ; then
17646			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17647			found="yes"
17648		fi
17649	fi
17650
17651
17652fi
17653
17654
17655
17656
17657
17658
17659
17660		CWARNFLAGS="$BASE_CFLAGS"
17661		if  test "x$GCC" = xyes ; then
17662		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17663		fi
17664
17665
17666
17667
17668
17669
17670
17671
17672# Check whether --enable-strict-compilation was given.
17673if test "${enable_strict_compilation+set}" = set; then :
17674  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17675else
17676  STRICT_COMPILE=no
17677fi
17678
17679
17680
17681
17682
17683
17684STRICT_CFLAGS=""
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698xorg_testset_save_CFLAGS="$CFLAGS"
17699
17700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17701	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17705  $as_echo_n "(cached) " >&6
17706else
17707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708/* end confdefs.h.  */
17709int i;
17710_ACEOF
17711if ac_fn_c_try_compile "$LINENO"; then :
17712  xorg_cv_cc_flag_unknown_warning_option=yes
17713else
17714  xorg_cv_cc_flag_unknown_warning_option=no
17715fi
17716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717fi
17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17721	CFLAGS="$xorg_testset_save_CFLAGS"
17722fi
17723
17724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727	fi
17728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17732  $as_echo_n "(cached) " >&6
17733else
17734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735/* end confdefs.h.  */
17736int i;
17737_ACEOF
17738if ac_fn_c_try_compile "$LINENO"; then :
17739  xorg_cv_cc_flag_unused_command_line_argument=yes
17740else
17741  xorg_cv_cc_flag_unused_command_line_argument=no
17742fi
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17748	CFLAGS="$xorg_testset_save_CFLAGS"
17749fi
17750
17751found="no"
17752
17753	if test $found = "no" ; then
17754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17756		fi
17757
17758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17760		fi
17761
17762		CFLAGS="$CFLAGS -pedantic"
17763
17764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17765$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17766		cacheid=xorg_cv_cc_flag__pedantic
17767		if eval \${$cacheid+:} false; then :
17768  $as_echo_n "(cached) " >&6
17769else
17770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771/* end confdefs.h.  */
17772int i;
17773int
17774main ()
17775{
17776
17777  ;
17778  return 0;
17779}
17780_ACEOF
17781if ac_fn_c_try_link "$LINENO"; then :
17782  eval $cacheid=yes
17783else
17784  eval $cacheid=no
17785fi
17786rm -f core conftest.err conftest.$ac_objext \
17787    conftest$ac_exeext conftest.$ac_ext
17788fi
17789
17790
17791		CFLAGS="$xorg_testset_save_CFLAGS"
17792
17793		eval supported=\$$cacheid
17794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17795$as_echo "$supported" >&6; }
17796		if test "$supported" = "yes" ; then
17797			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17798			found="yes"
17799		fi
17800	fi
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816xorg_testset_save_CFLAGS="$CFLAGS"
17817
17818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17823  $as_echo_n "(cached) " >&6
17824else
17825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826/* end confdefs.h.  */
17827int i;
17828_ACEOF
17829if ac_fn_c_try_compile "$LINENO"; then :
17830  xorg_cv_cc_flag_unknown_warning_option=yes
17831else
17832  xorg_cv_cc_flag_unknown_warning_option=no
17833fi
17834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17835fi
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17839	CFLAGS="$xorg_testset_save_CFLAGS"
17840fi
17841
17842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17845	fi
17846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17850  $as_echo_n "(cached) " >&6
17851else
17852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853/* end confdefs.h.  */
17854int i;
17855_ACEOF
17856if ac_fn_c_try_compile "$LINENO"; then :
17857  xorg_cv_cc_flag_unused_command_line_argument=yes
17858else
17859  xorg_cv_cc_flag_unused_command_line_argument=no
17860fi
17861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862fi
17863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17866	CFLAGS="$xorg_testset_save_CFLAGS"
17867fi
17868
17869found="no"
17870
17871	if test $found = "no" ; then
17872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17874		fi
17875
17876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17878		fi
17879
17880		CFLAGS="$CFLAGS -Werror"
17881
17882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17883$as_echo_n "checking if $CC supports -Werror... " >&6; }
17884		cacheid=xorg_cv_cc_flag__Werror
17885		if eval \${$cacheid+:} false; then :
17886  $as_echo_n "(cached) " >&6
17887else
17888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889/* end confdefs.h.  */
17890int i;
17891int
17892main ()
17893{
17894
17895  ;
17896  return 0;
17897}
17898_ACEOF
17899if ac_fn_c_try_link "$LINENO"; then :
17900  eval $cacheid=yes
17901else
17902  eval $cacheid=no
17903fi
17904rm -f core conftest.err conftest.$ac_objext \
17905    conftest$ac_exeext conftest.$ac_ext
17906fi
17907
17908
17909		CFLAGS="$xorg_testset_save_CFLAGS"
17910
17911		eval supported=\$$cacheid
17912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17913$as_echo "$supported" >&6; }
17914		if test "$supported" = "yes" ; then
17915			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17916			found="yes"
17917		fi
17918	fi
17919
17920	if test $found = "no" ; then
17921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17923		fi
17924
17925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17927		fi
17928
17929		CFLAGS="$CFLAGS -errwarn"
17930
17931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17932$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17933		cacheid=xorg_cv_cc_flag__errwarn
17934		if eval \${$cacheid+:} false; then :
17935  $as_echo_n "(cached) " >&6
17936else
17937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938/* end confdefs.h.  */
17939int i;
17940int
17941main ()
17942{
17943
17944  ;
17945  return 0;
17946}
17947_ACEOF
17948if ac_fn_c_try_link "$LINENO"; then :
17949  eval $cacheid=yes
17950else
17951  eval $cacheid=no
17952fi
17953rm -f core conftest.err conftest.$ac_objext \
17954    conftest$ac_exeext conftest.$ac_ext
17955fi
17956
17957
17958		CFLAGS="$xorg_testset_save_CFLAGS"
17959
17960		eval supported=\$$cacheid
17961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17962$as_echo "$supported" >&6; }
17963		if test "$supported" = "yes" ; then
17964			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17965			found="yes"
17966		fi
17967	fi
17968
17969
17970
17971# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17972# activate it with -Werror, so we add it here explicitly.
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986xorg_testset_save_CFLAGS="$CFLAGS"
17987
17988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17993  $as_echo_n "(cached) " >&6
17994else
17995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996/* end confdefs.h.  */
17997int i;
17998_ACEOF
17999if ac_fn_c_try_compile "$LINENO"; then :
18000  xorg_cv_cc_flag_unknown_warning_option=yes
18001else
18002  xorg_cv_cc_flag_unknown_warning_option=no
18003fi
18004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005fi
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18009	CFLAGS="$xorg_testset_save_CFLAGS"
18010fi
18011
18012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18015	fi
18016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18020  $as_echo_n "(cached) " >&6
18021else
18022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h.  */
18024int i;
18025_ACEOF
18026if ac_fn_c_try_compile "$LINENO"; then :
18027  xorg_cv_cc_flag_unused_command_line_argument=yes
18028else
18029  xorg_cv_cc_flag_unused_command_line_argument=no
18030fi
18031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032fi
18033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18036	CFLAGS="$xorg_testset_save_CFLAGS"
18037fi
18038
18039found="no"
18040
18041	if test $found = "no" ; then
18042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18044		fi
18045
18046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18048		fi
18049
18050		CFLAGS="$CFLAGS -Werror=attributes"
18051
18052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18053$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18054		cacheid=xorg_cv_cc_flag__Werror_attributes
18055		if eval \${$cacheid+:} false; then :
18056  $as_echo_n "(cached) " >&6
18057else
18058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059/* end confdefs.h.  */
18060int i;
18061int
18062main ()
18063{
18064
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069if ac_fn_c_try_link "$LINENO"; then :
18070  eval $cacheid=yes
18071else
18072  eval $cacheid=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext \
18075    conftest$ac_exeext conftest.$ac_ext
18076fi
18077
18078
18079		CFLAGS="$xorg_testset_save_CFLAGS"
18080
18081		eval supported=\$$cacheid
18082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18083$as_echo "$supported" >&6; }
18084		if test "$supported" = "yes" ; then
18085			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18086			found="yes"
18087		fi
18088	fi
18089
18090
18091
18092if test "x$STRICT_COMPILE" = "xyes"; then
18093    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18094    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18095fi
18096
18097
18098
18099
18100
18101
18102cat >>confdefs.h <<_ACEOF
18103#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18104_ACEOF
18105
18106	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18107	if test "x$PVM" = "x"; then
18108		PVM="0"
18109	fi
18110
18111cat >>confdefs.h <<_ACEOF
18112#define PACKAGE_VERSION_MINOR $PVM
18113_ACEOF
18114
18115	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18116	if test "x$PVP" = "x"; then
18117		PVP="0"
18118	fi
18119
18120cat >>confdefs.h <<_ACEOF
18121#define PACKAGE_VERSION_PATCHLEVEL $PVP
18122_ACEOF
18123
18124
18125
18126CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18127mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18128|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18129echo 'git directory not found: installing possibly empty changelog.' >&2)"
18130
18131
18132
18133
18134macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18135INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18136mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18137|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18138echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18139
18140
18141
18142
18143
18144
18145if test x$APP_MAN_SUFFIX = x    ; then
18146    APP_MAN_SUFFIX=1
18147fi
18148if test x$APP_MAN_DIR = x    ; then
18149    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18150fi
18151
18152if test x$LIB_MAN_SUFFIX = x    ; then
18153    LIB_MAN_SUFFIX=3
18154fi
18155if test x$LIB_MAN_DIR = x    ; then
18156    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18157fi
18158
18159if test x$FILE_MAN_SUFFIX = x    ; then
18160    case $host_os in
18161	# Solaris 2.0 - 11 use SysV man page sections
18162	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18163	*)				FILE_MAN_SUFFIX=5  ;;
18164    esac
18165fi
18166if test x$FILE_MAN_DIR = x    ; then
18167    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18168fi
18169
18170if test x$MISC_MAN_SUFFIX = x    ; then
18171    case $host_os in
18172	# Solaris 2.0 - 11 use SysV man page sections
18173	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18174	*)				MISC_MAN_SUFFIX=7  ;;
18175    esac
18176fi
18177if test x$MISC_MAN_DIR = x    ; then
18178    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18179fi
18180
18181if test x$DRIVER_MAN_SUFFIX = x    ; then
18182    case $host_os in
18183	# Solaris 2.0 - 11 use SysV man page sections
18184	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18185	*)				DRIVER_MAN_SUFFIX=4  ;;
18186    esac
18187fi
18188if test x$DRIVER_MAN_DIR = x    ; then
18189    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18190fi
18191
18192if test x$ADMIN_MAN_SUFFIX = x    ; then
18193    case $host_os in
18194	# Solaris 2.0 - 11 use SysV man page sections
18195	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18196	*)				ADMIN_MAN_SUFFIX=8  ;;
18197    esac
18198fi
18199if test x$ADMIN_MAN_DIR = x    ; then
18200    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18201fi
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217XORG_MAN_PAGE="X Version 11"
18218
18219MAN_SUBSTS="\
18220	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18221	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18222	-e 's|__xservername__|Xorg|g' \
18223	-e 's|__xconfigfile__|xorg.conf|g' \
18224	-e 's|__xorgconfdir__|xorg.conf.d|g' \
18225	-e 's|__projectroot__|\$(prefix)|g' \
18226	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18227	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18228	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18229	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18230	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18231	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18232	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18233
18234
18235
18236# Check whether --enable-silent-rules was given.
18237if test "${enable_silent_rules+set}" = set; then :
18238  enableval=$enable_silent_rules;
18239fi
18240
18241case $enable_silent_rules in # (((
18242  yes) AM_DEFAULT_VERBOSITY=0;;
18243   no) AM_DEFAULT_VERBOSITY=1;;
18244    *) AM_DEFAULT_VERBOSITY=0;;
18245esac
18246am_make=${MAKE-make}
18247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18248$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18249if ${am_cv_make_support_nested_variables+:} false; then :
18250  $as_echo_n "(cached) " >&6
18251else
18252  if $as_echo 'TRUE=$(BAR$(V))
18253BAR0=false
18254BAR1=true
18255V=1
18256am__doit:
18257	@$(TRUE)
18258.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18259  am_cv_make_support_nested_variables=yes
18260else
18261  am_cv_make_support_nested_variables=no
18262fi
18263fi
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18265$as_echo "$am_cv_make_support_nested_variables" >&6; }
18266if test $am_cv_make_support_nested_variables = yes; then
18267    AM_V='$(V)'
18268  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18269else
18270  AM_V=$AM_DEFAULT_VERBOSITY
18271  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18272fi
18273AM_BACKSLASH='\'
18274
18275
18276
18277# Obtain compiler/linker options from server and required extensions
18278
18279pkg_failed=no
18280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18281$as_echo_n "checking for XORG... " >&6; }
18282
18283if test -n "$XORG_CFLAGS"; then
18284    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18285 elif test -n "$PKG_CONFIG"; then
18286    if test -n "$PKG_CONFIG" && \
18287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5
18288  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5
18289  ac_status=$?
18290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291  test $ac_status = 0; }; then
18292  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto inputproto" 2>/dev/null`
18293		      test "x$?" != "x0" && pkg_failed=yes
18294else
18295  pkg_failed=yes
18296fi
18297 else
18298    pkg_failed=untried
18299fi
18300if test -n "$XORG_LIBS"; then
18301    pkg_cv_XORG_LIBS="$XORG_LIBS"
18302 elif test -n "$PKG_CONFIG"; then
18303    if test -n "$PKG_CONFIG" && \
18304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5
18305  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5
18306  ac_status=$?
18307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18308  test $ac_status = 0; }; then
18309  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto inputproto" 2>/dev/null`
18310		      test "x$?" != "x0" && pkg_failed=yes
18311else
18312  pkg_failed=yes
18313fi
18314 else
18315    pkg_failed=untried
18316fi
18317
18318
18319
18320if test $pkg_failed = yes; then
18321   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322$as_echo "no" >&6; }
18323
18324if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18325        _pkg_short_errors_supported=yes
18326else
18327        _pkg_short_errors_supported=no
18328fi
18329        if test $_pkg_short_errors_supported = yes; then
18330	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1`
18331        else
18332	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1`
18333        fi
18334	# Put the nasty error message in config.log where it belongs
18335	echo "$XORG_PKG_ERRORS" >&5
18336
18337	as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto inputproto) were not met:
18338
18339$XORG_PKG_ERRORS
18340
18341Consider adjusting the PKG_CONFIG_PATH environment variable if you
18342installed software in a non-standard prefix.
18343
18344Alternatively, you may set the environment variables XORG_CFLAGS
18345and XORG_LIBS to avoid the need to call pkg-config.
18346See the pkg-config man page for more details." "$LINENO" 5
18347elif test $pkg_failed = untried; then
18348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18349$as_echo "no" >&6; }
18350	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18352as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18353is in your PATH or set the PKG_CONFIG environment variable to the full
18354path to pkg-config.
18355
18356Alternatively, you may set the environment variables XORG_CFLAGS
18357and XORG_LIBS to avoid the need to call pkg-config.
18358See the pkg-config man page for more details.
18359
18360To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18361See \`config.log' for more details" "$LINENO" 5; }
18362else
18363	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18364	XORG_LIBS=$pkg_cv_XORG_LIBS
18365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18366$as_echo "yes" >&6; }
18367
18368fi
18369
18370# Define a configure option for an alternate input module directory
18371
18372# Check whether --with-xorg-module-dir was given.
18373if test "${with_xorg_module_dir+set}" = set; then :
18374  withval=$with_xorg_module_dir; moduledir="$withval"
18375else
18376  moduledir="$libdir/xorg/modules"
18377fi
18378
18379inputdir=${moduledir}/input
18380
18381
18382# The keyboard driver code is O/S specific
18383case $host_os in
18384  linux*)
18385    IS_LINUX="yes"
18386    ;;
18387
18388  freebsd* | kfreebsd-gnu* | netbsd* | openbsd* | dragonfly*)
18389    IS_BSD="yes"
18390    ;;
18391
18392  solaris*)
18393    IS_SOLARIS="yes"
18394    ;;
18395
18396  gnu*)
18397    IS_HURD="yes"
18398    ;;
18399
18400  *)
18401    as_fn_error $? "Your operating system is not supported by the kbd driver.
18402                  Contact xorg@lists.freedesktop.org if you are interested in
18403                  porting it." "$LINENO" 5
18404    ;;
18405esac
18406case $host_os in
18407  netbsd*)
18408    case $host in
18409      *powerpc-*|*sparc-*|*sparc64-*|*vax-*)
18410        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
18411        ;;
18412    esac
18413    case "$(uname -m 2>&1)" in
18414      evbarm|sgimips|shark)
18415        OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD"
18416        ;;
18417    esac
18418    ;;
18419esac
18420
18421
18422 if test "x$IS_LINUX" = xyes; then
18423  LINUX_TRUE=
18424  LINUX_FALSE='#'
18425else
18426  LINUX_TRUE='#'
18427  LINUX_FALSE=
18428fi
18429
18430 if test "x$IS_BSD" = xyes; then
18431  BSD_TRUE=
18432  BSD_FALSE='#'
18433else
18434  BSD_TRUE='#'
18435  BSD_FALSE=
18436fi
18437
18438 if test "x$IS_SOLARIS" = xyes; then
18439  SOLARIS_TRUE=
18440  SOLARIS_FALSE='#'
18441else
18442  SOLARIS_TRUE='#'
18443  SOLARIS_FALSE=
18444fi
18445
18446 if test "x$IS_HURD" = xyes; then
18447  HURD_TRUE=
18448  HURD_FALSE='#'
18449else
18450  HURD_TRUE='#'
18451  HURD_FALSE=
18452fi
18453
18454
18455DRIVER_NAME=kbd
18456
18457
18458ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18459
18460cat >confcache <<\_ACEOF
18461# This file is a shell script that caches the results of configure
18462# tests run on this system so they can be shared between configure
18463# scripts and configure runs, see configure's option --config-cache.
18464# It is not useful on other systems.  If it contains results you don't
18465# want to keep, you may remove or edit it.
18466#
18467# config.status only pays attention to the cache file if you give it
18468# the --recheck option to rerun configure.
18469#
18470# `ac_cv_env_foo' variables (set or unset) will be overridden when
18471# loading this file, other *unset* `ac_cv_foo' will be assigned the
18472# following values.
18473
18474_ACEOF
18475
18476# The following way of writing the cache mishandles newlines in values,
18477# but we know of no workaround that is simple, portable, and efficient.
18478# So, we kill variables containing newlines.
18479# Ultrix sh set writes to stderr and can't be redirected directly,
18480# and sets the high bit in the cache file unless we assign to the vars.
18481(
18482  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18483    eval ac_val=\$$ac_var
18484    case $ac_val in #(
18485    *${as_nl}*)
18486      case $ac_var in #(
18487      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18488$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18489      esac
18490      case $ac_var in #(
18491      _ | IFS | as_nl) ;; #(
18492      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18493      *) { eval $ac_var=; unset $ac_var;} ;;
18494      esac ;;
18495    esac
18496  done
18497
18498  (set) 2>&1 |
18499    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18500    *${as_nl}ac_space=\ *)
18501      # `set' does not quote correctly, so add quotes: double-quote
18502      # substitution turns \\\\ into \\, and sed turns \\ into \.
18503      sed -n \
18504	"s/'/'\\\\''/g;
18505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18506      ;; #(
18507    *)
18508      # `set' quotes correctly as required by POSIX, so do not add quotes.
18509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18510      ;;
18511    esac |
18512    sort
18513) |
18514  sed '
18515     /^ac_cv_env_/b end
18516     t clear
18517     :clear
18518     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18519     t end
18520     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18521     :end' >>confcache
18522if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18523  if test -w "$cache_file"; then
18524    if test "x$cache_file" != "x/dev/null"; then
18525      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18526$as_echo "$as_me: updating cache $cache_file" >&6;}
18527      if test ! -f "$cache_file" || test -h "$cache_file"; then
18528	cat confcache >"$cache_file"
18529      else
18530        case $cache_file in #(
18531        */* | ?:*)
18532	  mv -f confcache "$cache_file"$$ &&
18533	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18534        *)
18535	  mv -f confcache "$cache_file" ;;
18536	esac
18537      fi
18538    fi
18539  else
18540    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18541$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18542  fi
18543fi
18544rm -f confcache
18545
18546test "x$prefix" = xNONE && prefix=$ac_default_prefix
18547# Let make expand exec_prefix.
18548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18549
18550DEFS=-DHAVE_CONFIG_H
18551
18552ac_libobjs=
18553ac_ltlibobjs=
18554U=
18555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18556  # 1. Remove the extension, and $U if already installed.
18557  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18558  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18559  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18560  #    will be set to the directory where LIBOBJS objects are built.
18561  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18562  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18563done
18564LIBOBJS=$ac_libobjs
18565
18566LTLIBOBJS=$ac_ltlibobjs
18567
18568
18569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18570$as_echo_n "checking that generated files are newer than configure... " >&6; }
18571   if test -n "$am_sleep_pid"; then
18572     # Hide warnings about reused PIDs.
18573     wait $am_sleep_pid 2>/dev/null
18574   fi
18575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18576$as_echo "done" >&6; }
18577 if test -n "$EXEEXT"; then
18578  am__EXEEXT_TRUE=
18579  am__EXEEXT_FALSE='#'
18580else
18581  am__EXEEXT_TRUE='#'
18582  am__EXEEXT_FALSE=
18583fi
18584
18585if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18586  as_fn_error $? "conditional \"AMDEP\" was never defined.
18587Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588fi
18589if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18590  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18591Usually this means the macro was only invoked conditionally." "$LINENO" 5
18592fi
18593if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18594  as_fn_error $? "conditional \"LINUX\" was never defined.
18595Usually this means the macro was only invoked conditionally." "$LINENO" 5
18596fi
18597if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
18598  as_fn_error $? "conditional \"BSD\" was never defined.
18599Usually this means the macro was only invoked conditionally." "$LINENO" 5
18600fi
18601if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
18602  as_fn_error $? "conditional \"SOLARIS\" was never defined.
18603Usually this means the macro was only invoked conditionally." "$LINENO" 5
18604fi
18605if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
18606  as_fn_error $? "conditional \"HURD\" was never defined.
18607Usually this means the macro was only invoked conditionally." "$LINENO" 5
18608fi
18609
18610: "${CONFIG_STATUS=./config.status}"
18611ac_write_fail=0
18612ac_clean_files_save=$ac_clean_files
18613ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18615$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18616as_write_fail=0
18617cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18618#! $SHELL
18619# Generated by $as_me.
18620# Run this file to recreate the current configuration.
18621# Compiler output produced by configure, useful for debugging
18622# configure, is in config.log if it exists.
18623
18624debug=false
18625ac_cs_recheck=false
18626ac_cs_silent=false
18627
18628SHELL=\${CONFIG_SHELL-$SHELL}
18629export SHELL
18630_ASEOF
18631cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18632## -------------------- ##
18633## M4sh Initialization. ##
18634## -------------------- ##
18635
18636# Be more Bourne compatible
18637DUALCASE=1; export DUALCASE # for MKS sh
18638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18639  emulate sh
18640  NULLCMD=:
18641  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18642  # is contrary to our usage.  Disable this feature.
18643  alias -g '${1+"$@"}'='"$@"'
18644  setopt NO_GLOB_SUBST
18645else
18646  case `(set -o) 2>/dev/null` in #(
18647  *posix*) :
18648    set -o posix ;; #(
18649  *) :
18650     ;;
18651esac
18652fi
18653
18654
18655as_nl='
18656'
18657export as_nl
18658# Printing a long string crashes Solaris 7 /usr/bin/printf.
18659as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18662# Prefer a ksh shell builtin over an external printf program on Solaris,
18663# but without wasting forks for bash or zsh.
18664if test -z "$BASH_VERSION$ZSH_VERSION" \
18665    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18666  as_echo='print -r --'
18667  as_echo_n='print -rn --'
18668elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18669  as_echo='printf %s\n'
18670  as_echo_n='printf %s'
18671else
18672  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18673    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18674    as_echo_n='/usr/ucb/echo -n'
18675  else
18676    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18677    as_echo_n_body='eval
18678      arg=$1;
18679      case $arg in #(
18680      *"$as_nl"*)
18681	expr "X$arg" : "X\\(.*\\)$as_nl";
18682	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18683      esac;
18684      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18685    '
18686    export as_echo_n_body
18687    as_echo_n='sh -c $as_echo_n_body as_echo'
18688  fi
18689  export as_echo_body
18690  as_echo='sh -c $as_echo_body as_echo'
18691fi
18692
18693# The user is always right.
18694if test "${PATH_SEPARATOR+set}" != set; then
18695  PATH_SEPARATOR=:
18696  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18697    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18698      PATH_SEPARATOR=';'
18699  }
18700fi
18701
18702
18703# IFS
18704# We need space, tab and new line, in precisely that order.  Quoting is
18705# there to prevent editors from complaining about space-tab.
18706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18707# splitting by setting IFS to empty value.)
18708IFS=" ""	$as_nl"
18709
18710# Find who we are.  Look in the path if we contain no directory separator.
18711as_myself=
18712case $0 in #((
18713  *[\\/]* ) as_myself=$0 ;;
18714  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715for as_dir in $PATH
18716do
18717  IFS=$as_save_IFS
18718  test -z "$as_dir" && as_dir=.
18719    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18720  done
18721IFS=$as_save_IFS
18722
18723     ;;
18724esac
18725# We did not find ourselves, most probably we were run as `sh COMMAND'
18726# in which case we are not to be found in the path.
18727if test "x$as_myself" = x; then
18728  as_myself=$0
18729fi
18730if test ! -f "$as_myself"; then
18731  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18732  exit 1
18733fi
18734
18735# Unset variables that we do not need and which cause bugs (e.g. in
18736# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18737# suppresses any "Segmentation fault" message there.  '((' could
18738# trigger a bug in pdksh 5.2.14.
18739for as_var in BASH_ENV ENV MAIL MAILPATH
18740do eval test x\${$as_var+set} = xset \
18741  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18742done
18743PS1='$ '
18744PS2='> '
18745PS4='+ '
18746
18747# NLS nuisances.
18748LC_ALL=C
18749export LC_ALL
18750LANGUAGE=C
18751export LANGUAGE
18752
18753# CDPATH.
18754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18755
18756
18757# as_fn_error STATUS ERROR [LINENO LOG_FD]
18758# ----------------------------------------
18759# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18760# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18761# script with STATUS, using 1 if that was 0.
18762as_fn_error ()
18763{
18764  as_status=$1; test $as_status -eq 0 && as_status=1
18765  if test "$4"; then
18766    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18767    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18768  fi
18769  $as_echo "$as_me: error: $2" >&2
18770  as_fn_exit $as_status
18771} # as_fn_error
18772
18773
18774# as_fn_set_status STATUS
18775# -----------------------
18776# Set $? to STATUS, without forking.
18777as_fn_set_status ()
18778{
18779  return $1
18780} # as_fn_set_status
18781
18782# as_fn_exit STATUS
18783# -----------------
18784# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18785as_fn_exit ()
18786{
18787  set +e
18788  as_fn_set_status $1
18789  exit $1
18790} # as_fn_exit
18791
18792# as_fn_unset VAR
18793# ---------------
18794# Portably unset VAR.
18795as_fn_unset ()
18796{
18797  { eval $1=; unset $1;}
18798}
18799as_unset=as_fn_unset
18800# as_fn_append VAR VALUE
18801# ----------------------
18802# Append the text in VALUE to the end of the definition contained in VAR. Take
18803# advantage of any shell optimizations that allow amortized linear growth over
18804# repeated appends, instead of the typical quadratic growth present in naive
18805# implementations.
18806if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18807  eval 'as_fn_append ()
18808  {
18809    eval $1+=\$2
18810  }'
18811else
18812  as_fn_append ()
18813  {
18814    eval $1=\$$1\$2
18815  }
18816fi # as_fn_append
18817
18818# as_fn_arith ARG...
18819# ------------------
18820# Perform arithmetic evaluation on the ARGs, and store the result in the
18821# global $as_val. Take advantage of shells that can avoid forks. The arguments
18822# must be portable across $(()) and expr.
18823if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18824  eval 'as_fn_arith ()
18825  {
18826    as_val=$(( $* ))
18827  }'
18828else
18829  as_fn_arith ()
18830  {
18831    as_val=`expr "$@" || test $? -eq 1`
18832  }
18833fi # as_fn_arith
18834
18835
18836if expr a : '\(a\)' >/dev/null 2>&1 &&
18837   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18838  as_expr=expr
18839else
18840  as_expr=false
18841fi
18842
18843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18844  as_basename=basename
18845else
18846  as_basename=false
18847fi
18848
18849if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18850  as_dirname=dirname
18851else
18852  as_dirname=false
18853fi
18854
18855as_me=`$as_basename -- "$0" ||
18856$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18857	 X"$0" : 'X\(//\)$' \| \
18858	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18859$as_echo X/"$0" |
18860    sed '/^.*\/\([^/][^/]*\)\/*$/{
18861	    s//\1/
18862	    q
18863	  }
18864	  /^X\/\(\/\/\)$/{
18865	    s//\1/
18866	    q
18867	  }
18868	  /^X\/\(\/\).*/{
18869	    s//\1/
18870	    q
18871	  }
18872	  s/.*/./; q'`
18873
18874# Avoid depending upon Character Ranges.
18875as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18876as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18877as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18878as_cr_digits='0123456789'
18879as_cr_alnum=$as_cr_Letters$as_cr_digits
18880
18881ECHO_C= ECHO_N= ECHO_T=
18882case `echo -n x` in #(((((
18883-n*)
18884  case `echo 'xy\c'` in
18885  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18886  xy)  ECHO_C='\c';;
18887  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18888       ECHO_T='	';;
18889  esac;;
18890*)
18891  ECHO_N='-n';;
18892esac
18893
18894rm -f conf$$ conf$$.exe conf$$.file
18895if test -d conf$$.dir; then
18896  rm -f conf$$.dir/conf$$.file
18897else
18898  rm -f conf$$.dir
18899  mkdir conf$$.dir 2>/dev/null
18900fi
18901if (echo >conf$$.file) 2>/dev/null; then
18902  if ln -s conf$$.file conf$$ 2>/dev/null; then
18903    as_ln_s='ln -s'
18904    # ... but there are two gotchas:
18905    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18906    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18907    # In both cases, we have to default to `cp -pR'.
18908    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18909      as_ln_s='cp -pR'
18910  elif ln conf$$.file conf$$ 2>/dev/null; then
18911    as_ln_s=ln
18912  else
18913    as_ln_s='cp -pR'
18914  fi
18915else
18916  as_ln_s='cp -pR'
18917fi
18918rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18919rmdir conf$$.dir 2>/dev/null
18920
18921
18922# as_fn_mkdir_p
18923# -------------
18924# Create "$as_dir" as a directory, including parents if necessary.
18925as_fn_mkdir_p ()
18926{
18927
18928  case $as_dir in #(
18929  -*) as_dir=./$as_dir;;
18930  esac
18931  test -d "$as_dir" || eval $as_mkdir_p || {
18932    as_dirs=
18933    while :; do
18934      case $as_dir in #(
18935      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18936      *) as_qdir=$as_dir;;
18937      esac
18938      as_dirs="'$as_qdir' $as_dirs"
18939      as_dir=`$as_dirname -- "$as_dir" ||
18940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18941	 X"$as_dir" : 'X\(//\)[^/]' \| \
18942	 X"$as_dir" : 'X\(//\)$' \| \
18943	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18944$as_echo X"$as_dir" |
18945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18946	    s//\1/
18947	    q
18948	  }
18949	  /^X\(\/\/\)[^/].*/{
18950	    s//\1/
18951	    q
18952	  }
18953	  /^X\(\/\/\)$/{
18954	    s//\1/
18955	    q
18956	  }
18957	  /^X\(\/\).*/{
18958	    s//\1/
18959	    q
18960	  }
18961	  s/.*/./; q'`
18962      test -d "$as_dir" && break
18963    done
18964    test -z "$as_dirs" || eval "mkdir $as_dirs"
18965  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18966
18967
18968} # as_fn_mkdir_p
18969if mkdir -p . 2>/dev/null; then
18970  as_mkdir_p='mkdir -p "$as_dir"'
18971else
18972  test -d ./-p && rmdir ./-p
18973  as_mkdir_p=false
18974fi
18975
18976
18977# as_fn_executable_p FILE
18978# -----------------------
18979# Test if FILE is an executable regular file.
18980as_fn_executable_p ()
18981{
18982  test -f "$1" && test -x "$1"
18983} # as_fn_executable_p
18984as_test_x='test -x'
18985as_executable_p=as_fn_executable_p
18986
18987# Sed expression to map a string onto a valid CPP name.
18988as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18989
18990# Sed expression to map a string onto a valid variable name.
18991as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18992
18993
18994exec 6>&1
18995## ----------------------------------- ##
18996## Main body of $CONFIG_STATUS script. ##
18997## ----------------------------------- ##
18998_ASEOF
18999test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19000
19001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19002# Save the log message, to keep $0 and so on meaningful, and to
19003# report actual input values of CONFIG_FILES etc. instead of their
19004# values after options handling.
19005ac_log="
19006This file was extended by xf86-input-keyboard $as_me 1.9.0, which was
19007generated by GNU Autoconf 2.69.  Invocation command line was
19008
19009  CONFIG_FILES    = $CONFIG_FILES
19010  CONFIG_HEADERS  = $CONFIG_HEADERS
19011  CONFIG_LINKS    = $CONFIG_LINKS
19012  CONFIG_COMMANDS = $CONFIG_COMMANDS
19013  $ $0 $@
19014
19015on `(hostname || uname -n) 2>/dev/null | sed 1q`
19016"
19017
19018_ACEOF
19019
19020case $ac_config_files in *"
19021"*) set x $ac_config_files; shift; ac_config_files=$*;;
19022esac
19023
19024case $ac_config_headers in *"
19025"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19026esac
19027
19028
19029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19030# Files that config.status was made for.
19031config_files="$ac_config_files"
19032config_headers="$ac_config_headers"
19033config_commands="$ac_config_commands"
19034
19035_ACEOF
19036
19037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038ac_cs_usage="\
19039\`$as_me' instantiates files and other configuration actions
19040from templates according to the current configuration.  Unless the files
19041and actions are specified as TAGs, all are instantiated by default.
19042
19043Usage: $0 [OPTION]... [TAG]...
19044
19045  -h, --help       print this help, then exit
19046  -V, --version    print version number and configuration settings, then exit
19047      --config     print configuration, then exit
19048  -q, --quiet, --silent
19049                   do not print progress messages
19050  -d, --debug      don't remove temporary files
19051      --recheck    update $as_me by reconfiguring in the same conditions
19052      --file=FILE[:TEMPLATE]
19053                   instantiate the configuration file FILE
19054      --header=FILE[:TEMPLATE]
19055                   instantiate the configuration header FILE
19056
19057Configuration files:
19058$config_files
19059
19060Configuration headers:
19061$config_headers
19062
19063Configuration commands:
19064$config_commands
19065
19066Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19067
19068_ACEOF
19069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19070ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19071ac_cs_version="\\
19072xf86-input-keyboard config.status 1.9.0
19073configured by $0, generated by GNU Autoconf 2.69,
19074  with options \\"\$ac_cs_config\\"
19075
19076Copyright (C) 2012 Free Software Foundation, Inc.
19077This config.status script is free software; the Free Software Foundation
19078gives unlimited permission to copy, distribute and modify it."
19079
19080ac_pwd='$ac_pwd'
19081srcdir='$srcdir'
19082INSTALL='$INSTALL'
19083MKDIR_P='$MKDIR_P'
19084AWK='$AWK'
19085test -n "\$AWK" || AWK=awk
19086_ACEOF
19087
19088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19089# The default lists apply if the user does not specify any file.
19090ac_need_defaults=:
19091while test $# != 0
19092do
19093  case $1 in
19094  --*=?*)
19095    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19096    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19097    ac_shift=:
19098    ;;
19099  --*=)
19100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19101    ac_optarg=
19102    ac_shift=:
19103    ;;
19104  *)
19105    ac_option=$1
19106    ac_optarg=$2
19107    ac_shift=shift
19108    ;;
19109  esac
19110
19111  case $ac_option in
19112  # Handling of the options.
19113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19114    ac_cs_recheck=: ;;
19115  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19116    $as_echo "$ac_cs_version"; exit ;;
19117  --config | --confi | --conf | --con | --co | --c )
19118    $as_echo "$ac_cs_config"; exit ;;
19119  --debug | --debu | --deb | --de | --d | -d )
19120    debug=: ;;
19121  --file | --fil | --fi | --f )
19122    $ac_shift
19123    case $ac_optarg in
19124    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19125    '') as_fn_error $? "missing file argument" ;;
19126    esac
19127    as_fn_append CONFIG_FILES " '$ac_optarg'"
19128    ac_need_defaults=false;;
19129  --header | --heade | --head | --hea )
19130    $ac_shift
19131    case $ac_optarg in
19132    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19133    esac
19134    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19135    ac_need_defaults=false;;
19136  --he | --h)
19137    # Conflict between --help and --header
19138    as_fn_error $? "ambiguous option: \`$1'
19139Try \`$0 --help' for more information.";;
19140  --help | --hel | -h )
19141    $as_echo "$ac_cs_usage"; exit ;;
19142  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19143  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19144    ac_cs_silent=: ;;
19145
19146  # This is an error.
19147  -*) as_fn_error $? "unrecognized option: \`$1'
19148Try \`$0 --help' for more information." ;;
19149
19150  *) as_fn_append ac_config_targets " $1"
19151     ac_need_defaults=false ;;
19152
19153  esac
19154  shift
19155done
19156
19157ac_configure_extra_args=
19158
19159if $ac_cs_silent; then
19160  exec 6>/dev/null
19161  ac_configure_extra_args="$ac_configure_extra_args --silent"
19162fi
19163
19164_ACEOF
19165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19166if \$ac_cs_recheck; then
19167  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19168  shift
19169  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19170  CONFIG_SHELL='$SHELL'
19171  export CONFIG_SHELL
19172  exec "\$@"
19173fi
19174
19175_ACEOF
19176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19177exec 5>>config.log
19178{
19179  echo
19180  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19181## Running $as_me. ##
19182_ASBOX
19183  $as_echo "$ac_log"
19184} >&5
19185
19186_ACEOF
19187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19188#
19189# INIT-COMMANDS
19190#
19191AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19192
19193
19194# The HP-UX ksh and POSIX shell print the target directory to stdout
19195# if CDPATH is set.
19196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19197
19198sed_quote_subst='$sed_quote_subst'
19199double_quote_subst='$double_quote_subst'
19200delay_variable_subst='$delay_variable_subst'
19201enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19202macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19203macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19204enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19205pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19206enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19207shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19208SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19209ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19210PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19211host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19212host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19213host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19214build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19215build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19216build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19217SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19218Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19219GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19220EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19221FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19222LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19223NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19224LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19225max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19226ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19227exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19228lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19229lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19230lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19231lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19232lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19233reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19234reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19235OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19236deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19237file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19238file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19239want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19240DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19241sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19242AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19243AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19244archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19245STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19246RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19247old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19248old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19249old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19250lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19251CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19252CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19253compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19254GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19255lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19257lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19258lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19259lt_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"`'
19260lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19261nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19262lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19263lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19264objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19265MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19266lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19267lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19268lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19269lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19270lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19271need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19272MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19273DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19274NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19275LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19276OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19277OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19278libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19279shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19280extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19281archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19282enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19283export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19284whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19285compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19286old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19287old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19288archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19289archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19290module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19291module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19292with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19293allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19294no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19295hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19296hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19297hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19298hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19299hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19300hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19301hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19302inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19303link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19304always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19305export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19306exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19307include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19308prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19309postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19310file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19311variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19312need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19313need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19314version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19315runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19316shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19317shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19318libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19319library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19320soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19321install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19322postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19323postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19324finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19325finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19326hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19327sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19328configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19329configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19330hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19331enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19332enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19333enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19334old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19335striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19336
19337LTCC='$LTCC'
19338LTCFLAGS='$LTCFLAGS'
19339compiler='$compiler_DEFAULT'
19340
19341# A function that is used when there is no print builtin or printf.
19342func_fallback_echo ()
19343{
19344  eval 'cat <<_LTECHO_EOF
19345\$1
19346_LTECHO_EOF'
19347}
19348
19349# Quote evaled strings.
19350for var in SHELL \
19351ECHO \
19352PATH_SEPARATOR \
19353SED \
19354GREP \
19355EGREP \
19356FGREP \
19357LD \
19358NM \
19359LN_S \
19360lt_SP2NL \
19361lt_NL2SP \
19362reload_flag \
19363OBJDUMP \
19364deplibs_check_method \
19365file_magic_cmd \
19366file_magic_glob \
19367want_nocaseglob \
19368DLLTOOL \
19369sharedlib_from_linklib_cmd \
19370AR \
19371AR_FLAGS \
19372archiver_list_spec \
19373STRIP \
19374RANLIB \
19375CC \
19376CFLAGS \
19377compiler \
19378lt_cv_sys_global_symbol_pipe \
19379lt_cv_sys_global_symbol_to_cdecl \
19380lt_cv_sys_global_symbol_to_import \
19381lt_cv_sys_global_symbol_to_c_name_address \
19382lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19383lt_cv_nm_interface \
19384nm_file_list_spec \
19385lt_cv_truncate_bin \
19386lt_prog_compiler_no_builtin_flag \
19387lt_prog_compiler_pic \
19388lt_prog_compiler_wl \
19389lt_prog_compiler_static \
19390lt_cv_prog_compiler_c_o \
19391need_locks \
19392MANIFEST_TOOL \
19393DSYMUTIL \
19394NMEDIT \
19395LIPO \
19396OTOOL \
19397OTOOL64 \
19398shrext_cmds \
19399export_dynamic_flag_spec \
19400whole_archive_flag_spec \
19401compiler_needs_object \
19402with_gnu_ld \
19403allow_undefined_flag \
19404no_undefined_flag \
19405hardcode_libdir_flag_spec \
19406hardcode_libdir_separator \
19407exclude_expsyms \
19408include_expsyms \
19409file_list_spec \
19410variables_saved_for_relink \
19411libname_spec \
19412library_names_spec \
19413soname_spec \
19414install_override_mode \
19415finish_eval \
19416old_striplib \
19417striplib; do
19418    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19419    *[\\\\\\\`\\"\\\$]*)
19420      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19421      ;;
19422    *)
19423      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19424      ;;
19425    esac
19426done
19427
19428# Double-quote double-evaled strings.
19429for var in reload_cmds \
19430old_postinstall_cmds \
19431old_postuninstall_cmds \
19432old_archive_cmds \
19433extract_expsyms_cmds \
19434old_archive_from_new_cmds \
19435old_archive_from_expsyms_cmds \
19436archive_cmds \
19437archive_expsym_cmds \
19438module_cmds \
19439module_expsym_cmds \
19440export_symbols_cmds \
19441prelink_cmds \
19442postlink_cmds \
19443postinstall_cmds \
19444postuninstall_cmds \
19445finish_cmds \
19446sys_lib_search_path_spec \
19447configure_time_dlsearch_path \
19448configure_time_lt_sys_library_path; do
19449    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19450    *[\\\\\\\`\\"\\\$]*)
19451      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19452      ;;
19453    *)
19454      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19455      ;;
19456    esac
19457done
19458
19459ac_aux_dir='$ac_aux_dir'
19460
19461# See if we are running on zsh, and set the options that allow our
19462# commands through without removal of \ escapes INIT.
19463if test -n "\${ZSH_VERSION+set}"; then
19464   setopt NO_GLOB_SUBST
19465fi
19466
19467
19468    PACKAGE='$PACKAGE'
19469    VERSION='$VERSION'
19470    RM='$RM'
19471    ofile='$ofile'
19472
19473
19474
19475
19476_ACEOF
19477
19478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479
19480# Handling of arguments.
19481for ac_config_target in $ac_config_targets
19482do
19483  case $ac_config_target in
19484    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19485    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19486    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19487    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19488    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19489    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19490
19491  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19492  esac
19493done
19494
19495
19496# If the user did not use the arguments to specify the items to instantiate,
19497# then the envvar interface is used.  Set only those that are not.
19498# We use the long form for the default assignment because of an extremely
19499# bizarre bug on SunOS 4.1.3.
19500if $ac_need_defaults; then
19501  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19502  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19503  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19504fi
19505
19506# Have a temporary directory for convenience.  Make it in the build tree
19507# simply because there is no reason against having it here, and in addition,
19508# creating and moving files from /tmp can sometimes cause problems.
19509# Hook for its removal unless debugging.
19510# Note that there is a small window in which the directory will not be cleaned:
19511# after its creation but before its name has been assigned to `$tmp'.
19512$debug ||
19513{
19514  tmp= ac_tmp=
19515  trap 'exit_status=$?
19516  : "${ac_tmp:=$tmp}"
19517  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19518' 0
19519  trap 'as_fn_exit 1' 1 2 13 15
19520}
19521# Create a (secure) tmp directory for tmp files.
19522
19523{
19524  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19525  test -d "$tmp"
19526}  ||
19527{
19528  tmp=./conf$$-$RANDOM
19529  (umask 077 && mkdir "$tmp")
19530} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19531ac_tmp=$tmp
19532
19533# Set up the scripts for CONFIG_FILES section.
19534# No need to generate them if there are no CONFIG_FILES.
19535# This happens for instance with `./config.status config.h'.
19536if test -n "$CONFIG_FILES"; then
19537
19538
19539ac_cr=`echo X | tr X '\015'`
19540# On cygwin, bash can eat \r inside `` if the user requested igncr.
19541# But we know of no other shell where ac_cr would be empty at this
19542# point, so we can use a bashism as a fallback.
19543if test "x$ac_cr" = x; then
19544  eval ac_cr=\$\'\\r\'
19545fi
19546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19548  ac_cs_awk_cr='\\r'
19549else
19550  ac_cs_awk_cr=$ac_cr
19551fi
19552
19553echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19554_ACEOF
19555
19556
19557{
19558  echo "cat >conf$$subs.awk <<_ACEOF" &&
19559  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19560  echo "_ACEOF"
19561} >conf$$subs.sh ||
19562  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19563ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19564ac_delim='%!_!# '
19565for ac_last_try in false false false false false :; do
19566  . ./conf$$subs.sh ||
19567    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19568
19569  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19570  if test $ac_delim_n = $ac_delim_num; then
19571    break
19572  elif $ac_last_try; then
19573    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19574  else
19575    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19576  fi
19577done
19578rm -f conf$$subs.sh
19579
19580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19581cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19582_ACEOF
19583sed -n '
19584h
19585s/^/S["/; s/!.*/"]=/
19586p
19587g
19588s/^[^!]*!//
19589:repl
19590t repl
19591s/'"$ac_delim"'$//
19592t delim
19593:nl
19594h
19595s/\(.\{148\}\)..*/\1/
19596t more1
19597s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19598p
19599n
19600b repl
19601:more1
19602s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19603p
19604g
19605s/.\{148\}//
19606t nl
19607:delim
19608h
19609s/\(.\{148\}\)..*/\1/
19610t more2
19611s/["\\]/\\&/g; s/^/"/; s/$/"/
19612p
19613b
19614:more2
19615s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19616p
19617g
19618s/.\{148\}//
19619t delim
19620' <conf$$subs.awk | sed '
19621/^[^""]/{
19622  N
19623  s/\n//
19624}
19625' >>$CONFIG_STATUS || ac_write_fail=1
19626rm -f conf$$subs.awk
19627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19628_ACAWK
19629cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19630  for (key in S) S_is_set[key] = 1
19631  FS = ""
19632
19633}
19634{
19635  line = $ 0
19636  nfields = split(line, field, "@")
19637  substed = 0
19638  len = length(field[1])
19639  for (i = 2; i < nfields; i++) {
19640    key = field[i]
19641    keylen = length(key)
19642    if (S_is_set[key]) {
19643      value = S[key]
19644      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19645      len += length(value) + length(field[++i])
19646      substed = 1
19647    } else
19648      len += 1 + keylen
19649  }
19650
19651  print line
19652}
19653
19654_ACAWK
19655_ACEOF
19656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19658  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19659else
19660  cat
19661fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19662  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19663_ACEOF
19664
19665# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19666# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19667# trailing colons and then remove the whole line if VPATH becomes empty
19668# (actually we leave an empty line to preserve line numbers).
19669if test "x$srcdir" = x.; then
19670  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19671h
19672s///
19673s/^/:/
19674s/[	 ]*$/:/
19675s/:\$(srcdir):/:/g
19676s/:\${srcdir}:/:/g
19677s/:@srcdir@:/:/g
19678s/^:*//
19679s/:*$//
19680x
19681s/\(=[	 ]*\).*/\1/
19682G
19683s/\n//
19684s/^[^=]*=[	 ]*$//
19685}'
19686fi
19687
19688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19689fi # test -n "$CONFIG_FILES"
19690
19691# Set up the scripts for CONFIG_HEADERS section.
19692# No need to generate them if there are no CONFIG_HEADERS.
19693# This happens for instance with `./config.status Makefile'.
19694if test -n "$CONFIG_HEADERS"; then
19695cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19696BEGIN {
19697_ACEOF
19698
19699# Transform confdefs.h into an awk script `defines.awk', embedded as
19700# here-document in config.status, that substitutes the proper values into
19701# config.h.in to produce config.h.
19702
19703# Create a delimiter string that does not exist in confdefs.h, to ease
19704# handling of long lines.
19705ac_delim='%!_!# '
19706for ac_last_try in false false :; do
19707  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19708  if test -z "$ac_tt"; then
19709    break
19710  elif $ac_last_try; then
19711    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19712  else
19713    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19714  fi
19715done
19716
19717# For the awk script, D is an array of macro values keyed by name,
19718# likewise P contains macro parameters if any.  Preserve backslash
19719# newline sequences.
19720
19721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19722sed -n '
19723s/.\{148\}/&'"$ac_delim"'/g
19724t rset
19725:rset
19726s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19727t def
19728d
19729:def
19730s/\\$//
19731t bsnl
19732s/["\\]/\\&/g
19733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19734D["\1"]=" \3"/p
19735s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19736d
19737:bsnl
19738s/["\\]/\\&/g
19739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19740D["\1"]=" \3\\\\\\n"\\/p
19741t cont
19742s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19743t cont
19744d
19745:cont
19746n
19747s/.\{148\}/&'"$ac_delim"'/g
19748t clear
19749:clear
19750s/\\$//
19751t bsnlc
19752s/["\\]/\\&/g; s/^/"/; s/$/"/p
19753d
19754:bsnlc
19755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19756b cont
19757' <confdefs.h | sed '
19758s/'"$ac_delim"'/"\\\
19759"/g' >>$CONFIG_STATUS || ac_write_fail=1
19760
19761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19762  for (key in D) D_is_set[key] = 1
19763  FS = ""
19764}
19765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19766  line = \$ 0
19767  split(line, arg, " ")
19768  if (arg[1] == "#") {
19769    defundef = arg[2]
19770    mac1 = arg[3]
19771  } else {
19772    defundef = substr(arg[1], 2)
19773    mac1 = arg[2]
19774  }
19775  split(mac1, mac2, "(") #)
19776  macro = mac2[1]
19777  prefix = substr(line, 1, index(line, defundef) - 1)
19778  if (D_is_set[macro]) {
19779    # Preserve the white space surrounding the "#".
19780    print prefix "define", macro P[macro] D[macro]
19781    next
19782  } else {
19783    # Replace #undef with comments.  This is necessary, for example,
19784    # in the case of _POSIX_SOURCE, which is predefined and required
19785    # on some systems where configure will not decide to define it.
19786    if (defundef == "undef") {
19787      print "/*", prefix defundef, macro, "*/"
19788      next
19789    }
19790  }
19791}
19792{ print }
19793_ACAWK
19794_ACEOF
19795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19797fi # test -n "$CONFIG_HEADERS"
19798
19799
19800eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19801shift
19802for ac_tag
19803do
19804  case $ac_tag in
19805  :[FHLC]) ac_mode=$ac_tag; continue;;
19806  esac
19807  case $ac_mode$ac_tag in
19808  :[FHL]*:*);;
19809  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19810  :[FH]-) ac_tag=-:-;;
19811  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19812  esac
19813  ac_save_IFS=$IFS
19814  IFS=:
19815  set x $ac_tag
19816  IFS=$ac_save_IFS
19817  shift
19818  ac_file=$1
19819  shift
19820
19821  case $ac_mode in
19822  :L) ac_source=$1;;
19823  :[FH])
19824    ac_file_inputs=
19825    for ac_f
19826    do
19827      case $ac_f in
19828      -) ac_f="$ac_tmp/stdin";;
19829      *) # Look for the file first in the build tree, then in the source tree
19830	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19831	 # because $ac_f cannot contain `:'.
19832	 test -f "$ac_f" ||
19833	   case $ac_f in
19834	   [\\/$]*) false;;
19835	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19836	   esac ||
19837	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19838      esac
19839      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19840      as_fn_append ac_file_inputs " '$ac_f'"
19841    done
19842
19843    # Let's still pretend it is `configure' which instantiates (i.e., don't
19844    # use $as_me), people would be surprised to read:
19845    #    /* config.h.  Generated by config.status.  */
19846    configure_input='Generated from '`
19847	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19848	`' by configure.'
19849    if test x"$ac_file" != x-; then
19850      configure_input="$ac_file.  $configure_input"
19851      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19852$as_echo "$as_me: creating $ac_file" >&6;}
19853    fi
19854    # Neutralize special characters interpreted by sed in replacement strings.
19855    case $configure_input in #(
19856    *\&* | *\|* | *\\* )
19857       ac_sed_conf_input=`$as_echo "$configure_input" |
19858       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19859    *) ac_sed_conf_input=$configure_input;;
19860    esac
19861
19862    case $ac_tag in
19863    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19864      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19865    esac
19866    ;;
19867  esac
19868
19869  ac_dir=`$as_dirname -- "$ac_file" ||
19870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871	 X"$ac_file" : 'X\(//\)[^/]' \| \
19872	 X"$ac_file" : 'X\(//\)$' \| \
19873	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19874$as_echo X"$ac_file" |
19875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19876	    s//\1/
19877	    q
19878	  }
19879	  /^X\(\/\/\)[^/].*/{
19880	    s//\1/
19881	    q
19882	  }
19883	  /^X\(\/\/\)$/{
19884	    s//\1/
19885	    q
19886	  }
19887	  /^X\(\/\).*/{
19888	    s//\1/
19889	    q
19890	  }
19891	  s/.*/./; q'`
19892  as_dir="$ac_dir"; as_fn_mkdir_p
19893  ac_builddir=.
19894
19895case "$ac_dir" in
19896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19897*)
19898  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19899  # A ".." for each directory in $ac_dir_suffix.
19900  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19901  case $ac_top_builddir_sub in
19902  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19903  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19904  esac ;;
19905esac
19906ac_abs_top_builddir=$ac_pwd
19907ac_abs_builddir=$ac_pwd$ac_dir_suffix
19908# for backward compatibility:
19909ac_top_builddir=$ac_top_build_prefix
19910
19911case $srcdir in
19912  .)  # We are building in place.
19913    ac_srcdir=.
19914    ac_top_srcdir=$ac_top_builddir_sub
19915    ac_abs_top_srcdir=$ac_pwd ;;
19916  [\\/]* | ?:[\\/]* )  # Absolute name.
19917    ac_srcdir=$srcdir$ac_dir_suffix;
19918    ac_top_srcdir=$srcdir
19919    ac_abs_top_srcdir=$srcdir ;;
19920  *) # Relative name.
19921    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19922    ac_top_srcdir=$ac_top_build_prefix$srcdir
19923    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19924esac
19925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19926
19927
19928  case $ac_mode in
19929  :F)
19930  #
19931  # CONFIG_FILE
19932  #
19933
19934  case $INSTALL in
19935  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19936  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19937  esac
19938  ac_MKDIR_P=$MKDIR_P
19939  case $MKDIR_P in
19940  [\\/$]* | ?:[\\/]* ) ;;
19941  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19942  esac
19943_ACEOF
19944
19945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19946# If the template does not know about datarootdir, expand it.
19947# FIXME: This hack should be removed a few years after 2.60.
19948ac_datarootdir_hack=; ac_datarootdir_seen=
19949ac_sed_dataroot='
19950/datarootdir/ {
19951  p
19952  q
19953}
19954/@datadir@/p
19955/@docdir@/p
19956/@infodir@/p
19957/@localedir@/p
19958/@mandir@/p'
19959case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19960*datarootdir*) ac_datarootdir_seen=yes;;
19961*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19962  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19963$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19964_ACEOF
19965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19966  ac_datarootdir_hack='
19967  s&@datadir@&$datadir&g
19968  s&@docdir@&$docdir&g
19969  s&@infodir@&$infodir&g
19970  s&@localedir@&$localedir&g
19971  s&@mandir@&$mandir&g
19972  s&\\\${datarootdir}&$datarootdir&g' ;;
19973esac
19974_ACEOF
19975
19976# Neutralize VPATH when `$srcdir' = `.'.
19977# Shell code in configure.ac might set extrasub.
19978# FIXME: do we really want to maintain this feature?
19979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19980ac_sed_extra="$ac_vpsub
19981$extrasub
19982_ACEOF
19983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19984:t
19985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19986s|@configure_input@|$ac_sed_conf_input|;t t
19987s&@top_builddir@&$ac_top_builddir_sub&;t t
19988s&@top_build_prefix@&$ac_top_build_prefix&;t t
19989s&@srcdir@&$ac_srcdir&;t t
19990s&@abs_srcdir@&$ac_abs_srcdir&;t t
19991s&@top_srcdir@&$ac_top_srcdir&;t t
19992s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19993s&@builddir@&$ac_builddir&;t t
19994s&@abs_builddir@&$ac_abs_builddir&;t t
19995s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19996s&@INSTALL@&$ac_INSTALL&;t t
19997s&@MKDIR_P@&$ac_MKDIR_P&;t t
19998$ac_datarootdir_hack
19999"
20000eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20001  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20002
20003test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20004  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20005  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20006      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20007  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20008which seems to be undefined.  Please make sure it is defined" >&5
20009$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20010which seems to be undefined.  Please make sure it is defined" >&2;}
20011
20012  rm -f "$ac_tmp/stdin"
20013  case $ac_file in
20014  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20015  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20016  esac \
20017  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20018 ;;
20019  :H)
20020  #
20021  # CONFIG_HEADER
20022  #
20023  if test x"$ac_file" != x-; then
20024    {
20025      $as_echo "/* $configure_input  */" \
20026      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20027    } >"$ac_tmp/config.h" \
20028      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20029    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20030      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20031$as_echo "$as_me: $ac_file is unchanged" >&6;}
20032    else
20033      rm -f "$ac_file"
20034      mv "$ac_tmp/config.h" "$ac_file" \
20035	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036    fi
20037  else
20038    $as_echo "/* $configure_input  */" \
20039      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20040      || as_fn_error $? "could not create -" "$LINENO" 5
20041  fi
20042# Compute "$ac_file"'s index in $config_headers.
20043_am_arg="$ac_file"
20044_am_stamp_count=1
20045for _am_header in $config_headers :; do
20046  case $_am_header in
20047    $_am_arg | $_am_arg:* )
20048      break ;;
20049    * )
20050      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20051  esac
20052done
20053echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20054$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20055	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20056	 X"$_am_arg" : 'X\(//\)$' \| \
20057	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20058$as_echo X"$_am_arg" |
20059    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20060	    s//\1/
20061	    q
20062	  }
20063	  /^X\(\/\/\)[^/].*/{
20064	    s//\1/
20065	    q
20066	  }
20067	  /^X\(\/\/\)$/{
20068	    s//\1/
20069	    q
20070	  }
20071	  /^X\(\/\).*/{
20072	    s//\1/
20073	    q
20074	  }
20075	  s/.*/./; q'`/stamp-h$_am_stamp_count
20076 ;;
20077
20078  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20079$as_echo "$as_me: executing $ac_file commands" >&6;}
20080 ;;
20081  esac
20082
20083
20084  case $ac_file$ac_mode in
20085    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20086  # Older Autoconf quotes --file arguments for eval, but not when files
20087  # are listed without --file.  Let's play safe and only enable the eval
20088  # if we detect the quoting.
20089  case $CONFIG_FILES in
20090  *\'*) eval set x "$CONFIG_FILES" ;;
20091  *)   set x $CONFIG_FILES ;;
20092  esac
20093  shift
20094  for mf
20095  do
20096    # Strip MF so we end up with the name of the file.
20097    mf=`echo "$mf" | sed -e 's/:.*$//'`
20098    # Check whether this is an Automake generated Makefile or not.
20099    # We used to match only the files named 'Makefile.in', but
20100    # some people rename them; so instead we look at the file content.
20101    # Grep'ing the first line is not enough: some people post-process
20102    # each Makefile.in and add a new line on top of each file to say so.
20103    # Grep'ing the whole file is not good either: AIX grep has a line
20104    # limit of 2048, but all sed's we know have understand at least 4000.
20105    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20106      dirpart=`$as_dirname -- "$mf" ||
20107$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20108	 X"$mf" : 'X\(//\)[^/]' \| \
20109	 X"$mf" : 'X\(//\)$' \| \
20110	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20111$as_echo X"$mf" |
20112    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20113	    s//\1/
20114	    q
20115	  }
20116	  /^X\(\/\/\)[^/].*/{
20117	    s//\1/
20118	    q
20119	  }
20120	  /^X\(\/\/\)$/{
20121	    s//\1/
20122	    q
20123	  }
20124	  /^X\(\/\).*/{
20125	    s//\1/
20126	    q
20127	  }
20128	  s/.*/./; q'`
20129    else
20130      continue
20131    fi
20132    # Extract the definition of DEPDIR, am__include, and am__quote
20133    # from the Makefile without running 'make'.
20134    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20135    test -z "$DEPDIR" && continue
20136    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20137    test -z "$am__include" && continue
20138    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20139    # Find all dependency output files, they are included files with
20140    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20141    # simplest approach to changing $(DEPDIR) to its actual value in the
20142    # expansion.
20143    for file in `sed -n "
20144      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20145	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20146      # Make sure the directory exists.
20147      test -f "$dirpart/$file" && continue
20148      fdir=`$as_dirname -- "$file" ||
20149$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20150	 X"$file" : 'X\(//\)[^/]' \| \
20151	 X"$file" : 'X\(//\)$' \| \
20152	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20153$as_echo X"$file" |
20154    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20155	    s//\1/
20156	    q
20157	  }
20158	  /^X\(\/\/\)[^/].*/{
20159	    s//\1/
20160	    q
20161	  }
20162	  /^X\(\/\/\)$/{
20163	    s//\1/
20164	    q
20165	  }
20166	  /^X\(\/\).*/{
20167	    s//\1/
20168	    q
20169	  }
20170	  s/.*/./; q'`
20171      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20172      # echo "creating $dirpart/$file"
20173      echo '# dummy' > "$dirpart/$file"
20174    done
20175  done
20176}
20177 ;;
20178    "libtool":C)
20179
20180    # See if we are running on zsh, and set the options that allow our
20181    # commands through without removal of \ escapes.
20182    if test -n "${ZSH_VERSION+set}"; then
20183      setopt NO_GLOB_SUBST
20184    fi
20185
20186    cfgfile=${ofile}T
20187    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20188    $RM "$cfgfile"
20189
20190    cat <<_LT_EOF >> "$cfgfile"
20191#! $SHELL
20192# Generated automatically by $as_me ($PACKAGE) $VERSION
20193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20194# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20195
20196# Provide generalized library-building support services.
20197# Written by Gordon Matzigkeit, 1996
20198
20199# Copyright (C) 2014 Free Software Foundation, Inc.
20200# This is free software; see the source for copying conditions.  There is NO
20201# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20202
20203# GNU Libtool is free software; you can redistribute it and/or modify
20204# it under the terms of the GNU General Public License as published by
20205# the Free Software Foundation; either version 2 of of the License, or
20206# (at your option) any later version.
20207#
20208# As a special exception to the GNU General Public License, if you
20209# distribute this file as part of a program or library that is built
20210# using GNU Libtool, you may include this file under the  same
20211# distribution terms that you use for the rest of that program.
20212#
20213# GNU Libtool is distributed in the hope that it will be useful, but
20214# WITHOUT ANY WARRANTY; without even the implied warranty of
20215# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20216# GNU General Public License for more details.
20217#
20218# You should have received a copy of the GNU General Public License
20219# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20220
20221
20222# The names of the tagged configurations supported by this script.
20223available_tags=''
20224
20225# Configured defaults for sys_lib_dlsearch_path munging.
20226: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20227
20228# ### BEGIN LIBTOOL CONFIG
20229
20230# Whether or not to build static libraries.
20231build_old_libs=$enable_static
20232
20233# Which release of libtool.m4 was used?
20234macro_version=$macro_version
20235macro_revision=$macro_revision
20236
20237# Whether or not to build shared libraries.
20238build_libtool_libs=$enable_shared
20239
20240# What type of objects to build.
20241pic_mode=$pic_mode
20242
20243# Whether or not to optimize for fast installation.
20244fast_install=$enable_fast_install
20245
20246# Shared archive member basename,for filename based shared library versioning on AIX.
20247shared_archive_member_spec=$shared_archive_member_spec
20248
20249# Shell to use when invoking shell scripts.
20250SHELL=$lt_SHELL
20251
20252# An echo program that protects backslashes.
20253ECHO=$lt_ECHO
20254
20255# The PATH separator for the build system.
20256PATH_SEPARATOR=$lt_PATH_SEPARATOR
20257
20258# The host system.
20259host_alias=$host_alias
20260host=$host
20261host_os=$host_os
20262
20263# The build system.
20264build_alias=$build_alias
20265build=$build
20266build_os=$build_os
20267
20268# A sed program that does not truncate output.
20269SED=$lt_SED
20270
20271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20272Xsed="\$SED -e 1s/^X//"
20273
20274# A grep program that handles long lines.
20275GREP=$lt_GREP
20276
20277# An ERE matcher.
20278EGREP=$lt_EGREP
20279
20280# A literal string matcher.
20281FGREP=$lt_FGREP
20282
20283# A BSD- or MS-compatible name lister.
20284NM=$lt_NM
20285
20286# Whether we need soft or hard links.
20287LN_S=$lt_LN_S
20288
20289# What is the maximum length of a command?
20290max_cmd_len=$max_cmd_len
20291
20292# Object file suffix (normally "o").
20293objext=$ac_objext
20294
20295# Executable file suffix (normally "").
20296exeext=$exeext
20297
20298# whether the shell understands "unset".
20299lt_unset=$lt_unset
20300
20301# turn spaces into newlines.
20302SP2NL=$lt_lt_SP2NL
20303
20304# turn newlines into spaces.
20305NL2SP=$lt_lt_NL2SP
20306
20307# convert \$build file names to \$host format.
20308to_host_file_cmd=$lt_cv_to_host_file_cmd
20309
20310# convert \$build files to toolchain format.
20311to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20312
20313# An object symbol dumper.
20314OBJDUMP=$lt_OBJDUMP
20315
20316# Method to check whether dependent libraries are shared objects.
20317deplibs_check_method=$lt_deplibs_check_method
20318
20319# Command to use when deplibs_check_method = "file_magic".
20320file_magic_cmd=$lt_file_magic_cmd
20321
20322# How to find potential files when deplibs_check_method = "file_magic".
20323file_magic_glob=$lt_file_magic_glob
20324
20325# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20326want_nocaseglob=$lt_want_nocaseglob
20327
20328# DLL creation program.
20329DLLTOOL=$lt_DLLTOOL
20330
20331# Command to associate shared and link libraries.
20332sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20333
20334# The archiver.
20335AR=$lt_AR
20336
20337# Flags to create an archive.
20338AR_FLAGS=$lt_AR_FLAGS
20339
20340# How to feed a file listing to the archiver.
20341archiver_list_spec=$lt_archiver_list_spec
20342
20343# A symbol stripping program.
20344STRIP=$lt_STRIP
20345
20346# Commands used to install an old-style archive.
20347RANLIB=$lt_RANLIB
20348old_postinstall_cmds=$lt_old_postinstall_cmds
20349old_postuninstall_cmds=$lt_old_postuninstall_cmds
20350
20351# Whether to use a lock for old archive extraction.
20352lock_old_archive_extraction=$lock_old_archive_extraction
20353
20354# A C compiler.
20355LTCC=$lt_CC
20356
20357# LTCC compiler flags.
20358LTCFLAGS=$lt_CFLAGS
20359
20360# Take the output of nm and produce a listing of raw symbols and C names.
20361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20362
20363# Transform the output of nm in a proper C declaration.
20364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20365
20366# Transform the output of nm into a list of symbols to manually relocate.
20367global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20368
20369# Transform the output of nm in a C name address pair.
20370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20371
20372# Transform the output of nm in a C name address pair when lib prefix is needed.
20373global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20374
20375# The name lister interface.
20376nm_interface=$lt_lt_cv_nm_interface
20377
20378# Specify filename containing input files for \$NM.
20379nm_file_list_spec=$lt_nm_file_list_spec
20380
20381# The root where to search for dependent libraries,and where our libraries should be installed.
20382lt_sysroot=$lt_sysroot
20383
20384# Command to truncate a binary pipe.
20385lt_truncate_bin=$lt_lt_cv_truncate_bin
20386
20387# The name of the directory that contains temporary libtool files.
20388objdir=$objdir
20389
20390# Used to examine libraries when file_magic_cmd begins with "file".
20391MAGIC_CMD=$MAGIC_CMD
20392
20393# Must we lock files when doing compilation?
20394need_locks=$lt_need_locks
20395
20396# Manifest tool.
20397MANIFEST_TOOL=$lt_MANIFEST_TOOL
20398
20399# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20400DSYMUTIL=$lt_DSYMUTIL
20401
20402# Tool to change global to local symbols on Mac OS X.
20403NMEDIT=$lt_NMEDIT
20404
20405# Tool to manipulate fat objects and archives on Mac OS X.
20406LIPO=$lt_LIPO
20407
20408# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20409OTOOL=$lt_OTOOL
20410
20411# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20412OTOOL64=$lt_OTOOL64
20413
20414# Old archive suffix (normally "a").
20415libext=$libext
20416
20417# Shared library suffix (normally ".so").
20418shrext_cmds=$lt_shrext_cmds
20419
20420# The commands to extract the exported symbol list from a shared archive.
20421extract_expsyms_cmds=$lt_extract_expsyms_cmds
20422
20423# Variables whose values should be saved in libtool wrapper scripts and
20424# restored at link time.
20425variables_saved_for_relink=$lt_variables_saved_for_relink
20426
20427# Do we need the "lib" prefix for modules?
20428need_lib_prefix=$need_lib_prefix
20429
20430# Do we need a version for libraries?
20431need_version=$need_version
20432
20433# Library versioning type.
20434version_type=$version_type
20435
20436# Shared library runtime path variable.
20437runpath_var=$runpath_var
20438
20439# Shared library path variable.
20440shlibpath_var=$shlibpath_var
20441
20442# Is shlibpath searched before the hard-coded library search path?
20443shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20444
20445# Format of library name prefix.
20446libname_spec=$lt_libname_spec
20447
20448# List of archive names.  First name is the real one, the rest are links.
20449# The last name is the one that the linker finds with -lNAME
20450library_names_spec=$lt_library_names_spec
20451
20452# The coded name of the library, if different from the real name.
20453soname_spec=$lt_soname_spec
20454
20455# Permission mode override for installation of shared libraries.
20456install_override_mode=$lt_install_override_mode
20457
20458# Command to use after installation of a shared archive.
20459postinstall_cmds=$lt_postinstall_cmds
20460
20461# Command to use after uninstallation of a shared archive.
20462postuninstall_cmds=$lt_postuninstall_cmds
20463
20464# Commands used to finish a libtool library installation in a directory.
20465finish_cmds=$lt_finish_cmds
20466
20467# As "finish_cmds", except a single script fragment to be evaled but
20468# not shown.
20469finish_eval=$lt_finish_eval
20470
20471# Whether we should hardcode library paths into libraries.
20472hardcode_into_libs=$hardcode_into_libs
20473
20474# Compile-time system search path for libraries.
20475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20476
20477# Detected run-time system search path for libraries.
20478sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20479
20480# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20481configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20482
20483# Whether dlopen is supported.
20484dlopen_support=$enable_dlopen
20485
20486# Whether dlopen of programs is supported.
20487dlopen_self=$enable_dlopen_self
20488
20489# Whether dlopen of statically linked programs is supported.
20490dlopen_self_static=$enable_dlopen_self_static
20491
20492# Commands to strip libraries.
20493old_striplib=$lt_old_striplib
20494striplib=$lt_striplib
20495
20496
20497# The linker used to build libraries.
20498LD=$lt_LD
20499
20500# How to create reloadable object files.
20501reload_flag=$lt_reload_flag
20502reload_cmds=$lt_reload_cmds
20503
20504# Commands used to build an old-style archive.
20505old_archive_cmds=$lt_old_archive_cmds
20506
20507# A language specific compiler.
20508CC=$lt_compiler
20509
20510# Is the compiler the GNU compiler?
20511with_gcc=$GCC
20512
20513# Compiler flag to turn off builtin functions.
20514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20515
20516# Additional compiler flags for building library objects.
20517pic_flag=$lt_lt_prog_compiler_pic
20518
20519# How to pass a linker flag through the compiler.
20520wl=$lt_lt_prog_compiler_wl
20521
20522# Compiler flag to prevent dynamic linking.
20523link_static_flag=$lt_lt_prog_compiler_static
20524
20525# Does compiler simultaneously support -c and -o options?
20526compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20527
20528# Whether or not to add -lc for building shared libraries.
20529build_libtool_need_lc=$archive_cmds_need_lc
20530
20531# Whether or not to disallow shared libs when runtime libs are static.
20532allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20533
20534# Compiler flag to allow reflexive dlopens.
20535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20536
20537# Compiler flag to generate shared objects directly from archives.
20538whole_archive_flag_spec=$lt_whole_archive_flag_spec
20539
20540# Whether the compiler copes with passing no objects directly.
20541compiler_needs_object=$lt_compiler_needs_object
20542
20543# Create an old-style archive from a shared archive.
20544old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20545
20546# Create a temporary old-style archive to link instead of a shared archive.
20547old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20548
20549# Commands used to build a shared archive.
20550archive_cmds=$lt_archive_cmds
20551archive_expsym_cmds=$lt_archive_expsym_cmds
20552
20553# Commands used to build a loadable module if different from building
20554# a shared archive.
20555module_cmds=$lt_module_cmds
20556module_expsym_cmds=$lt_module_expsym_cmds
20557
20558# Whether we are building with GNU ld or not.
20559with_gnu_ld=$lt_with_gnu_ld
20560
20561# Flag that allows shared libraries with undefined symbols to be built.
20562allow_undefined_flag=$lt_allow_undefined_flag
20563
20564# Flag that enforces no undefined symbols.
20565no_undefined_flag=$lt_no_undefined_flag
20566
20567# Flag to hardcode \$libdir into a binary during linking.
20568# This must work even if \$libdir does not exist
20569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20570
20571# Whether we need a single "-rpath" flag with a separated argument.
20572hardcode_libdir_separator=$lt_hardcode_libdir_separator
20573
20574# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20575# DIR into the resulting binary.
20576hardcode_direct=$hardcode_direct
20577
20578# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20579# DIR into the resulting binary and the resulting library dependency is
20580# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20581# library is relocated.
20582hardcode_direct_absolute=$hardcode_direct_absolute
20583
20584# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20585# into the resulting binary.
20586hardcode_minus_L=$hardcode_minus_L
20587
20588# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20589# into the resulting binary.
20590hardcode_shlibpath_var=$hardcode_shlibpath_var
20591
20592# Set to "yes" if building a shared library automatically hardcodes DIR
20593# into the library and all subsequent libraries and executables linked
20594# against it.
20595hardcode_automatic=$hardcode_automatic
20596
20597# Set to yes if linker adds runtime paths of dependent libraries
20598# to runtime path list.
20599inherit_rpath=$inherit_rpath
20600
20601# Whether libtool must link a program against all its dependency libraries.
20602link_all_deplibs=$link_all_deplibs
20603
20604# Set to "yes" if exported symbols are required.
20605always_export_symbols=$always_export_symbols
20606
20607# The commands to list exported symbols.
20608export_symbols_cmds=$lt_export_symbols_cmds
20609
20610# Symbols that should not be listed in the preloaded symbols.
20611exclude_expsyms=$lt_exclude_expsyms
20612
20613# Symbols that must always be exported.
20614include_expsyms=$lt_include_expsyms
20615
20616# Commands necessary for linking programs (against libraries) with templates.
20617prelink_cmds=$lt_prelink_cmds
20618
20619# Commands necessary for finishing linking programs.
20620postlink_cmds=$lt_postlink_cmds
20621
20622# Specify filename containing input files.
20623file_list_spec=$lt_file_list_spec
20624
20625# How to hardcode a shared library path into an executable.
20626hardcode_action=$hardcode_action
20627
20628# ### END LIBTOOL CONFIG
20629
20630_LT_EOF
20631
20632    cat <<'_LT_EOF' >> "$cfgfile"
20633
20634# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20635
20636# func_munge_path_list VARIABLE PATH
20637# -----------------------------------
20638# VARIABLE is name of variable containing _space_ separated list of
20639# directories to be munged by the contents of PATH, which is string
20640# having a format:
20641# "DIR[:DIR]:"
20642#       string "DIR[ DIR]" will be prepended to VARIABLE
20643# ":DIR[:DIR]"
20644#       string "DIR[ DIR]" will be appended to VARIABLE
20645# "DIRP[:DIRP]::[DIRA:]DIRA"
20646#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20647#       "DIRA[ DIRA]" will be appended to VARIABLE
20648# "DIR[:DIR]"
20649#       VARIABLE will be replaced by "DIR[ DIR]"
20650func_munge_path_list ()
20651{
20652    case x$2 in
20653    x)
20654        ;;
20655    *:)
20656        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20657        ;;
20658    x:*)
20659        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20660        ;;
20661    *::*)
20662        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20663        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20664        ;;
20665    *)
20666        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20667        ;;
20668    esac
20669}
20670
20671
20672# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20673func_cc_basename ()
20674{
20675    for cc_temp in $*""; do
20676      case $cc_temp in
20677        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20678        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20679        \-*) ;;
20680        *) break;;
20681      esac
20682    done
20683    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20684}
20685
20686
20687# ### END FUNCTIONS SHARED WITH CONFIGURE
20688
20689_LT_EOF
20690
20691  case $host_os in
20692  aix3*)
20693    cat <<\_LT_EOF >> "$cfgfile"
20694# AIX sometimes has problems with the GCC collect2 program.  For some
20695# reason, if we set the COLLECT_NAMES environment variable, the problems
20696# vanish in a puff of smoke.
20697if test set != "${COLLECT_NAMES+set}"; then
20698  COLLECT_NAMES=
20699  export COLLECT_NAMES
20700fi
20701_LT_EOF
20702    ;;
20703  esac
20704
20705
20706ltmain=$ac_aux_dir/ltmain.sh
20707
20708
20709  # We use sed instead of cat because bash on DJGPP gets confused if
20710  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20711  # text mode, it properly converts lines to CR/LF.  This bash problem
20712  # is reportedly fixed, but why not run on old versions too?
20713  sed '$q' "$ltmain" >> "$cfgfile" \
20714     || (rm -f "$cfgfile"; exit 1)
20715
20716   mv -f "$cfgfile" "$ofile" ||
20717    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20718  chmod +x "$ofile"
20719
20720 ;;
20721
20722  esac
20723done # for ac_tag
20724
20725
20726as_fn_exit 0
20727_ACEOF
20728ac_clean_files=$ac_clean_files_save
20729
20730test $ac_write_fail = 0 ||
20731  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20732
20733
20734# configure is writing to config.log, and then calls config.status.
20735# config.status does its own redirection, appending to config.log.
20736# Unfortunately, on DOS this fails, as config.log is still kept open
20737# by configure, so config.status won't be able to write to it; its
20738# output is simply discarded.  So we exec the FD to /dev/null,
20739# effectively closing config.log, so it can be properly (re)opened and
20740# appended to by config.status.  When coming back to configure, we
20741# need to make the FD available again.
20742if test "$no_create" != yes; then
20743  ac_cs_success=:
20744  ac_config_status_args=
20745  test "$silent" = yes &&
20746    ac_config_status_args="$ac_config_status_args --quiet"
20747  exec 5>/dev/null
20748  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20749  exec 5>>config.log
20750  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20751  # would make configure fail if this is the last instruction.
20752  $ac_cs_success || as_fn_exit 1
20753fi
20754if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20755  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20756$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20757fi
20758
20759