configure revision 9d0ccd10
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXcursor 1.1.15.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libXcursor'
593PACKAGE_TARNAME='libXcursor'
594PACKAGE_VERSION='1.1.15'
595PACKAGE_STRING='libXcursor 1.1.15'
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
640LINT_FALSE
641LINT_TRUE
642LINT_FLAGS
643LINT
644XCURSOR_LIBS
645XCURSOR_CFLAGS
646XCURSORPATH
647ICONDIR
648MAN_SUBSTS
649XORG_MAN_PAGE
650ADMIN_MAN_DIR
651DRIVER_MAN_DIR
652MISC_MAN_DIR
653FILE_MAN_DIR
654LIB_MAN_DIR
655APP_MAN_DIR
656ADMIN_MAN_SUFFIX
657DRIVER_MAN_SUFFIX
658MISC_MAN_SUFFIX
659FILE_MAN_SUFFIX
660LIB_MAN_SUFFIX
661APP_MAN_SUFFIX
662INSTALL_CMD
663PKG_CONFIG_LIBDIR
664PKG_CONFIG_PATH
665PKG_CONFIG
666CHANGELOG_CMD
667STRICT_CFLAGS
668CWARNFLAGS
669BASE_CFLAGS
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680DLLTOOL
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688SED
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697LIBTOOL
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735EGREP
736GREP
737CPP
738OBJEXT
739EXEEXT
740ac_ct_CC
741CPPFLAGS
742LDFLAGS
743CFLAGS
744CC
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764runstatedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_dependency_tracking
788enable_silent_rules
789enable_shared
790enable_static
791with_pic
792enable_fast_install
793with_aix_soname
794with_gnu_ld
795with_sysroot
796enable_libtool_lock
797enable_selective_werror
798enable_strict_compilation
799with_icondir
800with_cursorpath
801with_lint
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812LT_SYS_LIBRARY_PATH
813PKG_CONFIG
814PKG_CONFIG_PATH
815PKG_CONFIG_LIBDIR
816XCURSOR_CFLAGS
817XCURSOR_LIBS
818LINT
819LINT_FLAGS'
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'
858runstatedir='${localstatedir}/run'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -runstatedir | --runstatedir | --runstatedi | --runstated \
1112  | --runstate | --runstat | --runsta | --runst | --runs \
1113  | --run | --ru | --r)
1114    ac_prev=runstatedir ;;
1115  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117  | --run=* | --ru=* | --r=*)
1118    runstatedir=$ac_optarg ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir runstatedir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures libXcursor 1.1.15 to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1411  --libdir=DIR            object code libraries [EPREFIX/lib]
1412  --includedir=DIR        C header files [PREFIX/include]
1413  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416  --infodir=DIR           info documentation [DATAROOTDIR/info]
1417  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418  --mandir=DIR            man documentation [DATAROOTDIR/man]
1419  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXcursor]
1420  --htmldir=DIR           html documentation [DOCDIR]
1421  --dvidir=DIR            dvi documentation [DOCDIR]
1422  --pdfdir=DIR            pdf documentation [DOCDIR]
1423  --psdir=DIR             ps documentation [DOCDIR]
1424_ACEOF
1425
1426  cat <<\_ACEOF
1427
1428Program names:
1429  --program-prefix=PREFIX            prepend PREFIX to installed program names
1430  --program-suffix=SUFFIX            append SUFFIX to installed program names
1431  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432
1433System types:
1434  --build=BUILD     configure for building on BUILD [guessed]
1435  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440  case $ac_init_help in
1441     short | recursive ) echo "Configuration of libXcursor 1.1.15:";;
1442   esac
1443  cat <<\_ACEOF
1444
1445Optional Features:
1446  --disable-option-checking  ignore unrecognized --enable/--with options
1447  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449  --enable-dependency-tracking
1450                          do not reject slow dependency extractors
1451  --disable-dependency-tracking
1452                          speeds up one-time build
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-static[=PKGS]  build static libraries [default=yes]
1457  --enable-fast-install[=PKGS]
1458                          optimize for fast installation [default=yes]
1459  --disable-libtool-lock  avoid locking (might break parallel builds)
1460  --disable-selective-werror
1461                          Turn off selective compiler errors. (default:
1462                          enabled)
1463  --enable-strict-compilation
1464                          Enable all warnings from compiler and make them
1465                          errors (default: disabled)
1466
1467Optional Packages:
1468  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1471                          both]
1472  --with-aix-soname=aix|svr4|both
1473                          shared library versioning (aka "SONAME") variant to
1474                          provide on AIX, [default=aix].
1475  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1476  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1477                          compiler's sysroot if not specified).
1478  --with-icondir=<path>   Set default icon directory (default:
1479                          ${datadir}/icons)
1480  --with-cursorpath=<paths>
1481                          Set default search path for cursors
1482  --with-lint             Use a lint-style source code checker (default:
1483                          disabled)
1484
1485Some influential environment variables:
1486  CC          C compiler command
1487  CFLAGS      C compiler flags
1488  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1489              nonstandard directory <lib dir>
1490  LIBS        libraries to pass to the linker, e.g. -l<library>
1491  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492              you have headers in a nonstandard directory <include dir>
1493  CPP         C preprocessor
1494  LT_SYS_LIBRARY_PATH
1495              User-defined run-time library search path.
1496  PKG_CONFIG  path to pkg-config utility
1497  PKG_CONFIG_PATH
1498              directories to add to pkg-config's search path
1499  PKG_CONFIG_LIBDIR
1500              path overriding pkg-config's built-in search path
1501  XCURSOR_CFLAGS
1502              C compiler flags for XCURSOR, overriding pkg-config
1503  XCURSOR_LIBS
1504              linker flags for XCURSOR, overriding pkg-config
1505  LINT        Path to a lint-style command
1506  LINT_FLAGS  Flags for the lint-style command
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517  # If there are subdirs, report their specific --help.
1518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519    test -d "$ac_dir" ||
1520      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521      continue
1522    ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528  # A ".." for each directory in $ac_dir_suffix.
1529  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530  case $ac_top_builddir_sub in
1531  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533  esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541  .)  # We are building in place.
1542    ac_srcdir=.
1543    ac_top_srcdir=$ac_top_builddir_sub
1544    ac_abs_top_srcdir=$ac_pwd ;;
1545  [\\/]* | ?:[\\/]* )  # Absolute name.
1546    ac_srcdir=$srcdir$ac_dir_suffix;
1547    ac_top_srcdir=$srcdir
1548    ac_abs_top_srcdir=$srcdir ;;
1549  *) # Relative name.
1550    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551    ac_top_srcdir=$ac_top_build_prefix$srcdir
1552    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556    cd "$ac_dir" || { ac_status=$?; continue; }
1557    # Check for guested configure.
1558    if test -f "$ac_srcdir/configure.gnu"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561    elif test -f "$ac_srcdir/configure"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure" --help=recursive
1564    else
1565      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566    fi || ac_status=$?
1567    cd "$ac_pwd" || { ac_status=$?; break; }
1568  done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573  cat <<\_ACEOF
1574libXcursor configure 1.1.15
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581  exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_c_try_compile LINENO
1589# --------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_compile ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext
1595  if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_compile") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_c_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest.$ac_objext; then :
1614  ac_retval=0
1615else
1616  $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619	ac_retval=1
1620fi
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_c_try_compile
1625
1626# ac_fn_c_try_cpp LINENO
1627# ----------------------
1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_cpp ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640  ac_status=$?
1641  if test -s conftest.err; then
1642    grep -v '^ *+' conftest.err >conftest.er1
1643    cat conftest.er1 >&5
1644    mv -f conftest.er1 conftest.err
1645  fi
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } > conftest.i && {
1648	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649	 test ! -s conftest.err
1650       }; then :
1651  ac_retval=0
1652else
1653  $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656    ac_retval=1
1657fi
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_cpp
1662
1663# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666# the include files in INCLUDES and setting the cache variable VAR
1667# accordingly.
1668ac_fn_c_check_header_mongrel ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if eval \${$3+:} false; then :
1672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675  $as_echo_n "(cached) " >&6
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680else
1681  # Is the header compilable?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683$as_echo_n "checking $2 usability... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690  ac_header_compiler=yes
1691else
1692  ac_header_compiler=no
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696$as_echo "$ac_header_compiler" >&6; }
1697
1698# Is the header present?
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700$as_echo_n "checking $2 presence... " >&6; }
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_cpp "$LINENO"; then :
1706  ac_header_preproc=yes
1707else
1708  ac_header_preproc=no
1709fi
1710rm -f conftest.err conftest.i conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712$as_echo "$ac_header_preproc" >&6; }
1713
1714# So?  What about this header?
1715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716  yes:no: )
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721    ;;
1722  no:yes:* )
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1726$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1730$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733( $as_echo "## ---------------------------------------------------------------------- ##
1734## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1735## ---------------------------------------------------------------------- ##"
1736     ) | sed "s/^/$as_me: WARNING:     /" >&2
1737    ;;
1738esac
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749fi
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752} # ac_fn_c_check_header_mongrel
1753
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_link") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772  { { case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_try") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; }; }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: program exited with status $ac_status" >&5
1785       $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788       ac_retval=$ac_status
1789fi
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_run
1795
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_try_link LINENO
1828# -----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_link ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext conftest$ac_exeext
1834  if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_link") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest$ac_exeext && {
1853	 test "$cross_compiling" = yes ||
1854	 test -x conftest$ac_exeext
1855       }; then :
1856  ac_retval=0
1857else
1858  $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861	ac_retval=1
1862fi
1863  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865  # interfere with the next link command; also delete a directory that is
1866  # left behind by Apple's compiler.  We do this before executing the actions.
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_link
1872
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1888#define $2 innocuous_$2
1889
1890/* System header to define __stub macros and hopefully few prototypes,
1891    which can conflict with char $2 (); below.
1892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893    <limits.h> exists even on freestanding compilers.  */
1894
1895#ifdef __STDC__
1896# include <limits.h>
1897#else
1898# include <assert.h>
1899#endif
1900
1901#undef $2
1902
1903/* Override any GCC internal prototype to avoid an error.
1904   Use char because int might match the return type of a GCC
1905   builtin and then its argument prototype would still apply.  */
1906#ifdef __cplusplus
1907extern "C"
1908#endif
1909char $2 ();
1910/* The GNU C library defines this for functions which it implements
1911    to always fail with ENOSYS.  Some functions are actually named
1912    something starting with __ and the normal name is an alias.  */
1913#if defined __stub_$2 || defined __stub___$2
1914choke me
1915#endif
1916
1917int
1918main ()
1919{
1920return $2 ();
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_link "$LINENO"; then :
1926  eval "$3=yes"
1927else
1928  eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext \
1931    conftest$ac_exeext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_func
1939
1940# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1941# ---------------------------------------------
1942# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1943# accordingly.
1944ac_fn_c_check_decl ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  as_decl_name=`echo $2|sed 's/ *(.*//'`
1948  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1950$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1951if eval \${$3+:} false; then :
1952  $as_echo_n "(cached) " >&6
1953else
1954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h.  */
1956$4
1957int
1958main ()
1959{
1960#ifndef $as_decl_name
1961#ifdef __cplusplus
1962  (void) $as_decl_use;
1963#else
1964  (void) $as_decl_name;
1965#endif
1966#endif
1967
1968  ;
1969  return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973  eval "$3=yes"
1974else
1975  eval "$3=no"
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_decl
1985cat >config.log <<_ACEOF
1986This file contains any messages produced by compilers while
1987running configure, to aid debugging if configure makes a mistake.
1988
1989It was created by libXcursor $as_me 1.1.15, which was
1990generated by GNU Autoconf 2.69.  Invocation command line was
1991
1992  $ $0 $@
1993
1994_ACEOF
1995exec 5>>config.log
1996{
1997cat <<_ASUNAME
1998## --------- ##
1999## Platform. ##
2000## --------- ##
2001
2002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006uname -v = `(uname -v) 2>/dev/null || echo unknown`
2007
2008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2010
2011/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2012/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2015/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2016/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2017/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2018
2019_ASUNAME
2020
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024  IFS=$as_save_IFS
2025  test -z "$as_dir" && as_dir=.
2026    $as_echo "PATH: $as_dir"
2027  done
2028IFS=$as_save_IFS
2029
2030} >&5
2031
2032cat >&5 <<_ACEOF
2033
2034
2035## ----------- ##
2036## Core tests. ##
2037## ----------- ##
2038
2039_ACEOF
2040
2041
2042# Keep a trace of the command line.
2043# Strip out --no-create and --no-recursion so they do not pile up.
2044# Strip out --silent because we don't want to record it for future runs.
2045# Also quote any args containing shell meta-characters.
2046# Make two passes to allow for proper duplicate-argument suppression.
2047ac_configure_args=
2048ac_configure_args0=
2049ac_configure_args1=
2050ac_must_keep_next=false
2051for ac_pass in 1 2
2052do
2053  for ac_arg
2054  do
2055    case $ac_arg in
2056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058    | -silent | --silent | --silen | --sile | --sil)
2059      continue ;;
2060    *\'*)
2061      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062    esac
2063    case $ac_pass in
2064    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065    2)
2066      as_fn_append ac_configure_args1 " '$ac_arg'"
2067      if test $ac_must_keep_next = true; then
2068	ac_must_keep_next=false # Got value, back to normal.
2069      else
2070	case $ac_arg in
2071	  *=* | --config-cache | -C | -disable-* | --disable-* \
2072	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074	  | -with-* | --with-* | -without-* | --without-* | --x)
2075	    case "$ac_configure_args0 " in
2076	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077	    esac
2078	    ;;
2079	  -* ) ac_must_keep_next=true ;;
2080	esac
2081      fi
2082      as_fn_append ac_configure_args " '$ac_arg'"
2083      ;;
2084    esac
2085  done
2086done
2087{ ac_configure_args0=; unset ac_configure_args0;}
2088{ ac_configure_args1=; unset ac_configure_args1;}
2089
2090# When interrupted or exit'd, cleanup temporary files, and complete
2091# config.log.  We remove comments because anyway the quotes in there
2092# would cause problems or look ugly.
2093# WARNING: Use '\'' to represent an apostrophe within the trap.
2094# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095trap 'exit_status=$?
2096  # Save into config.log some information that might help in debugging.
2097  {
2098    echo
2099
2100    $as_echo "## ---------------- ##
2101## Cache variables. ##
2102## ---------------- ##"
2103    echo
2104    # The following way of writing the cache mishandles newlines in values,
2105(
2106  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107    eval ac_val=\$$ac_var
2108    case $ac_val in #(
2109    *${as_nl}*)
2110      case $ac_var in #(
2111      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113      esac
2114      case $ac_var in #(
2115      _ | IFS | as_nl) ;; #(
2116      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117      *) { eval $ac_var=; unset $ac_var;} ;;
2118      esac ;;
2119    esac
2120  done
2121  (set) 2>&1 |
2122    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123    *${as_nl}ac_space=\ *)
2124      sed -n \
2125	"s/'\''/'\''\\\\'\'''\''/g;
2126	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127      ;; #(
2128    *)
2129      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130      ;;
2131    esac |
2132    sort
2133)
2134    echo
2135
2136    $as_echo "## ----------------- ##
2137## Output variables. ##
2138## ----------------- ##"
2139    echo
2140    for ac_var in $ac_subst_vars
2141    do
2142      eval ac_val=\$$ac_var
2143      case $ac_val in
2144      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145      esac
2146      $as_echo "$ac_var='\''$ac_val'\''"
2147    done | sort
2148    echo
2149
2150    if test -n "$ac_subst_files"; then
2151      $as_echo "## ------------------- ##
2152## File substitutions. ##
2153## ------------------- ##"
2154      echo
2155      for ac_var in $ac_subst_files
2156      do
2157	eval ac_val=\$$ac_var
2158	case $ac_val in
2159	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160	esac
2161	$as_echo "$ac_var='\''$ac_val'\''"
2162      done | sort
2163      echo
2164    fi
2165
2166    if test -s confdefs.h; then
2167      $as_echo "## ----------- ##
2168## confdefs.h. ##
2169## ----------- ##"
2170      echo
2171      cat confdefs.h
2172      echo
2173    fi
2174    test "$ac_signal" != 0 &&
2175      $as_echo "$as_me: caught signal $ac_signal"
2176    $as_echo "$as_me: exit $exit_status"
2177  } >&5
2178  rm -f core *.core core.conftest.* &&
2179    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180    exit $exit_status
2181' 0
2182for ac_signal in 1 2 13 15; do
2183  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184done
2185ac_signal=0
2186
2187# confdefs.h avoids OS command line length limits that DEFS can exceed.
2188rm -f -r conftest* confdefs.h
2189
2190$as_echo "/* confdefs.h */" > confdefs.h
2191
2192# Predefined preprocessor variables.
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_NAME "$PACKAGE_NAME"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_VERSION "$PACKAGE_VERSION"
2204_ACEOF
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_STRING "$PACKAGE_STRING"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_URL "$PACKAGE_URL"
2216_ACEOF
2217
2218
2219# Let the site file select an alternate cache file if it wants to.
2220# Prefer an explicitly selected file to automatically selected ones.
2221ac_site_file1=NONE
2222ac_site_file2=NONE
2223if test -n "$CONFIG_SITE"; then
2224  # We do not want a PATH search for config.site.
2225  case $CONFIG_SITE in #((
2226    -*)  ac_site_file1=./$CONFIG_SITE;;
2227    */*) ac_site_file1=$CONFIG_SITE;;
2228    *)   ac_site_file1=./$CONFIG_SITE;;
2229  esac
2230elif test "x$prefix" != xNONE; then
2231  ac_site_file1=$prefix/share/config.site
2232  ac_site_file2=$prefix/etc/config.site
2233else
2234  ac_site_file1=$ac_default_prefix/share/config.site
2235  ac_site_file2=$ac_default_prefix/etc/config.site
2236fi
2237for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238do
2239  test "x$ac_site_file" = xNONE && continue
2240  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243    sed 's/^/| /' "$ac_site_file" >&5
2244    . "$ac_site_file" \
2245      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247as_fn_error $? "failed to load site script $ac_site_file
2248See \`config.log' for more details" "$LINENO" 5; }
2249  fi
2250done
2251
2252if test -r "$cache_file"; then
2253  # Some versions of bash will fail to source /dev/null (special files
2254  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2255  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2256    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257$as_echo "$as_me: loading cache $cache_file" >&6;}
2258    case $cache_file in
2259      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2260      *)                      . "./$cache_file";;
2261    esac
2262  fi
2263else
2264  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265$as_echo "$as_me: creating cache $cache_file" >&6;}
2266  >$cache_file
2267fi
2268
2269# Check that the precious variables saved in the cache have kept the same
2270# value.
2271ac_cache_corrupted=false
2272for ac_var in $ac_precious_vars; do
2273  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2274  eval ac_new_set=\$ac_env_${ac_var}_set
2275  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2276  eval ac_new_val=\$ac_env_${ac_var}_value
2277  case $ac_old_set,$ac_new_set in
2278    set,)
2279      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281      ac_cache_corrupted=: ;;
2282    ,set)
2283      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285      ac_cache_corrupted=: ;;
2286    ,);;
2287    *)
2288      if test "x$ac_old_val" != "x$ac_new_val"; then
2289	# differences in whitespace do not lead to failure.
2290	ac_old_val_w=`echo x $ac_old_val`
2291	ac_new_val_w=`echo x $ac_new_val`
2292	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295	  ac_cache_corrupted=:
2296	else
2297	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299	  eval $ac_var=\$ac_old_val
2300	fi
2301	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2302$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2303	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2304$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2305      fi;;
2306  esac
2307  # Pass precious variables to config.status.
2308  if test "$ac_new_set" = set; then
2309    case $ac_new_val in
2310    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311    *) ac_arg=$ac_var=$ac_new_val ;;
2312    esac
2313    case " $ac_configure_args " in
2314      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2315      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2316    esac
2317  fi
2318done
2319if $ac_cache_corrupted; then
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2325fi
2326## -------------------- ##
2327## Main body of script. ##
2328## -------------------- ##
2329
2330ac_ext=c
2331ac_cpp='$CPP $CPPFLAGS'
2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336
2337
2338ac_config_headers="$ac_config_headers config.h include/X11/Xcursor/Xcursor.h"
2339
2340# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2341# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2342# to avoid autoconf errors.
2343ac_aux_dir=
2344for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345  if test -f "$ac_dir/install-sh"; then
2346    ac_aux_dir=$ac_dir
2347    ac_install_sh="$ac_aux_dir/install-sh -c"
2348    break
2349  elif test -f "$ac_dir/install.sh"; then
2350    ac_aux_dir=$ac_dir
2351    ac_install_sh="$ac_aux_dir/install.sh -c"
2352    break
2353  elif test -f "$ac_dir/shtool"; then
2354    ac_aux_dir=$ac_dir
2355    ac_install_sh="$ac_aux_dir/shtool install -c"
2356    break
2357  fi
2358done
2359if test -z "$ac_aux_dir"; then
2360  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361fi
2362
2363# These three variables are undocumented and unsupported,
2364# and are intended to be withdrawn in a future Autoconf release.
2365# They can cause serious problems if a builder's source tree is in a directory
2366# whose full name contains unusual characters.
2367ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2368ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2369ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2370
2371
2372# Expand $ac_aux_dir to an absolute path.
2373am_aux_dir=`cd "$ac_aux_dir" && pwd`
2374
2375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380if test -n "$ac_tool_prefix"; then
2381  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384$as_echo_n "checking for $ac_word... " >&6; }
2385if ${ac_cv_prog_CC+:} false; then :
2386  $as_echo_n "(cached) " >&6
2387else
2388  if test -n "$CC"; then
2389  ac_cv_prog_CC="$CC" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396    for ac_exec_ext in '' $ac_executable_extensions; do
2397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403  done
2404IFS=$as_save_IFS
2405
2406fi
2407fi
2408CC=$ac_cv_prog_CC
2409if test -n "$CC"; then
2410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411$as_echo "$CC" >&6; }
2412else
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414$as_echo "no" >&6; }
2415fi
2416
2417
2418fi
2419if test -z "$ac_cv_prog_CC"; then
2420  ac_ct_CC=$CC
2421  # Extract the first word of "gcc", so it can be a program name with args.
2422set dummy gcc; ac_word=$2
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424$as_echo_n "checking for $ac_word... " >&6; }
2425if ${ac_cv_prog_ac_ct_CC+:} false; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428  if test -n "$ac_ct_CC"; then
2429  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430else
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434  IFS=$as_save_IFS
2435  test -z "$as_dir" && as_dir=.
2436    for ac_exec_ext in '' $ac_executable_extensions; do
2437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438    ac_cv_prog_ac_ct_CC="gcc"
2439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440    break 2
2441  fi
2442done
2443  done
2444IFS=$as_save_IFS
2445
2446fi
2447fi
2448ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449if test -n "$ac_ct_CC"; then
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451$as_echo "$ac_ct_CC" >&6; }
2452else
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454$as_echo "no" >&6; }
2455fi
2456
2457  if test "x$ac_ct_CC" = x; then
2458    CC=""
2459  else
2460    case $cross_compiling:$ac_tool_warned in
2461yes:)
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464ac_tool_warned=yes ;;
2465esac
2466    CC=$ac_ct_CC
2467  fi
2468else
2469  CC="$ac_cv_prog_CC"
2470fi
2471
2472if test -z "$CC"; then
2473          if test -n "$ac_tool_prefix"; then
2474    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2475set dummy ${ac_tool_prefix}cc; ac_word=$2
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477$as_echo_n "checking for $ac_word... " >&6; }
2478if ${ac_cv_prog_CC+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  if test -n "$CC"; then
2482  ac_cv_prog_CC="$CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487  IFS=$as_save_IFS
2488  test -z "$as_dir" && as_dir=.
2489    for ac_exec_ext in '' $ac_executable_extensions; do
2490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491    ac_cv_prog_CC="${ac_tool_prefix}cc"
2492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493    break 2
2494  fi
2495done
2496  done
2497IFS=$as_save_IFS
2498
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504$as_echo "$CC" >&6; }
2505else
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507$as_echo "no" >&6; }
2508fi
2509
2510
2511  fi
2512fi
2513if test -z "$CC"; then
2514  # Extract the first word of "cc", so it can be a program name with args.
2515set dummy cc; ac_word=$2
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if ${ac_cv_prog_CC+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  if test -n "$CC"; then
2522  ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524  ac_prog_rejected=no
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_exec_ext in '' $ac_executable_extensions; do
2531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533       ac_prog_rejected=yes
2534       continue
2535     fi
2536    ac_cv_prog_CC="cc"
2537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538    break 2
2539  fi
2540done
2541  done
2542IFS=$as_save_IFS
2543
2544if test $ac_prog_rejected = yes; then
2545  # We found a bogon in the path, so make sure we never use it.
2546  set dummy $ac_cv_prog_CC
2547  shift
2548  if test $# != 0; then
2549    # We chose a different compiler from the bogus one.
2550    # However, it has the same basename, so the bogon will be chosen
2551    # first if we set CC to just the basename; use the full file name.
2552    shift
2553    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2554  fi
2555fi
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561$as_echo "$CC" >&6; }
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$CC"; then
2570  if test -n "$ac_tool_prefix"; then
2571  for ac_prog in cl.exe
2572  do
2573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_CC+:} false; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test -n "$CC"; then
2581  ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_exec_ext in '' $ac_executable_extensions; do
2589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592    break 2
2593  fi
2594done
2595  done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603$as_echo "$CC" >&6; }
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609
2610    test -n "$CC" && break
2611  done
2612fi
2613if test -z "$CC"; then
2614  ac_ct_CC=$CC
2615  for ac_prog in cl.exe
2616do
2617  # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_ac_ct_CC+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  if test -n "$ac_ct_CC"; then
2625  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_exec_ext in '' $ac_executable_extensions; do
2633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634    ac_cv_prog_ac_ct_CC="$ac_prog"
2635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636    break 2
2637  fi
2638done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645if test -n "$ac_ct_CC"; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647$as_echo "$ac_ct_CC" >&6; }
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654  test -n "$ac_ct_CC" && break
2655done
2656
2657  if test "x$ac_ct_CC" = x; then
2658    CC=""
2659  else
2660    case $cross_compiling:$ac_tool_warned in
2661yes:)
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664ac_tool_warned=yes ;;
2665esac
2666    CC=$ac_ct_CC
2667  fi
2668fi
2669
2670fi
2671
2672
2673test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675as_fn_error $? "no acceptable C compiler found in \$PATH
2676See \`config.log' for more details" "$LINENO" 5; }
2677
2678# Provide some information about the compiler.
2679$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2680set X $ac_compile
2681ac_compiler=$2
2682for ac_option in --version -v -V -qversion; do
2683  { { ac_try="$ac_compiler $ac_option >&5"
2684case "(($ac_try" in
2685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686  *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689$as_echo "$ac_try_echo"; } >&5
2690  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2691  ac_status=$?
2692  if test -s conftest.err; then
2693    sed '10a\
2694... rest of stderr output deleted ...
2695         10q' conftest.err >conftest.er1
2696    cat conftest.er1 >&5
2697  fi
2698  rm -f conftest.er1 conftest.err
2699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700  test $ac_status = 0; }
2701done
2702
2703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714ac_clean_files_save=$ac_clean_files
2715ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2716# Try to create an executable without -o first, disregard a.out.
2717# It will help us diagnose broken compilers, and finding out an intuition
2718# of exeext.
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2720$as_echo_n "checking whether the C compiler works... " >&6; }
2721ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722
2723# The possible output files:
2724ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2725
2726ac_rmfiles=
2727for ac_file in $ac_files
2728do
2729  case $ac_file in
2730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2731    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732  esac
2733done
2734rm -f $ac_rmfiles
2735
2736if { { ac_try="$ac_link_default"
2737case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742$as_echo "$ac_try_echo"; } >&5
2743  (eval "$ac_link_default") 2>&5
2744  ac_status=$?
2745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746  test $ac_status = 0; }; then :
2747  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2748# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2749# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2750# so that the user can short-circuit this test for compilers unknown to
2751# Autoconf.
2752for ac_file in $ac_files ''
2753do
2754  test -f "$ac_file" || continue
2755  case $ac_file in
2756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2757	;;
2758    [ab].out )
2759	# We found the default executable, but exeext='' is most
2760	# certainly right.
2761	break;;
2762    *.* )
2763	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2764	then :; else
2765	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766	fi
2767	# We set ac_cv_exeext here because the later test for it is not
2768	# safe: cross compilers may not add the suffix if given an `-o'
2769	# argument, so we may need to know it at that point already.
2770	# Even if this section looks crufty: it has the advantage of
2771	# actually working.
2772	break;;
2773    * )
2774	break;;
2775  esac
2776done
2777test "$ac_cv_exeext" = no && ac_cv_exeext=
2778
2779else
2780  ac_file=''
2781fi
2782if test -z "$ac_file"; then :
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785$as_echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790as_fn_error 77 "C compiler cannot create executables
2791See \`config.log' for more details" "$LINENO" 5; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794$as_echo "yes" >&6; }
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2797$as_echo_n "checking for C compiler default output file name... " >&6; }
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
2800ac_exeext=$ac_cv_exeext
2801
2802rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803ac_clean_files=$ac_clean_files_save
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2805$as_echo_n "checking for suffix of executables... " >&6; }
2806if { { ac_try="$ac_link"
2807case "(($ac_try" in
2808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809  *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812$as_echo "$ac_try_echo"; } >&5
2813  (eval "$ac_link") 2>&5
2814  ac_status=$?
2815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816  test $ac_status = 0; }; then :
2817  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2819# work properly (i.e., refer to `conftest.exe'), while it won't with
2820# `rm'.
2821for ac_file in conftest.exe conftest conftest.*; do
2822  test -f "$ac_file" || continue
2823  case $ac_file in
2824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2825    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	  break;;
2827    * ) break;;
2828  esac
2829done
2830else
2831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2834See \`config.log' for more details" "$LINENO" 5; }
2835fi
2836rm -f conftest conftest$ac_cv_exeext
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2838$as_echo "$ac_cv_exeext" >&6; }
2839
2840rm -f conftest.$ac_ext
2841EXEEXT=$ac_cv_exeext
2842ac_exeext=$EXEEXT
2843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h.  */
2845#include <stdio.h>
2846int
2847main ()
2848{
2849FILE *f = fopen ("conftest.out", "w");
2850 return ferror (f) || fclose (f) != 0;
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856ac_clean_files="$ac_clean_files conftest.out"
2857# Check that the compiler produces executables we can run.  If not, either
2858# the compiler is broken, or we cross compile.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2860$as_echo_n "checking whether we are cross compiling... " >&6; }
2861if test "$cross_compiling" != yes; then
2862  { { ac_try="$ac_link"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869  (eval "$ac_link") 2>&5
2870  ac_status=$?
2871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872  test $ac_status = 0; }
2873  if { ac_try='./conftest$ac_cv_exeext'
2874  { { case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880  (eval "$ac_try") 2>&5
2881  ac_status=$?
2882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883  test $ac_status = 0; }; }; then
2884    cross_compiling=no
2885  else
2886    if test "$cross_compiling" = maybe; then
2887	cross_compiling=yes
2888    else
2889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891as_fn_error $? "cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details" "$LINENO" 5; }
2894    fi
2895  fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2898$as_echo "$cross_compiling" >&6; }
2899
2900rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2901ac_clean_files=$ac_clean_files_save
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2903$as_echo_n "checking for suffix of object files... " >&6; }
2904if ${ac_cv_objext+:} false; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
2919if { { ac_try="$ac_compile"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926  (eval "$ac_compile") 2>&5
2927  ac_status=$?
2928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929  test $ac_status = 0; }; then :
2930  for ac_file in conftest.o conftest.obj conftest.*; do
2931  test -f "$ac_file" || continue;
2932  case $ac_file in
2933    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2934    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935       break;;
2936  esac
2937done
2938else
2939  $as_echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details" "$LINENO" 5; }
2946fi
2947rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2950$as_echo "$ac_cv_objext" >&6; }
2951OBJEXT=$ac_cv_objext
2952ac_objext=$OBJEXT
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955if ${ac_cv_c_compiler_gnu+:} false; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965       choke me
2966#endif
2967
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973  ac_compiler_gnu=yes
2974else
2975  ac_compiler_gnu=no
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983if test $ac_compiler_gnu = yes; then
2984  GCC=yes
2985else
2986  GCC=
2987fi
2988ac_test_CFLAGS=${CFLAGS+set}
2989ac_save_CFLAGS=$CFLAGS
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991$as_echo_n "checking whether $CC accepts -g... " >&6; }
2992if ${ac_cv_prog_cc_g+:} false; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  ac_save_c_werror_flag=$ac_c_werror_flag
2996   ac_c_werror_flag=yes
2997   ac_cv_prog_cc_g=no
2998   CFLAGS="-g"
2999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010if ac_fn_c_try_compile "$LINENO"; then :
3011  ac_cv_prog_cc_g=yes
3012else
3013  CFLAGS=""
3014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017int
3018main ()
3019{
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026
3027else
3028  ac_c_werror_flag=$ac_save_c_werror_flag
3029	 CFLAGS="-g"
3030	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042  ac_cv_prog_cc_g=yes
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049   ac_c_werror_flag=$ac_save_c_werror_flag
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052$as_echo "$ac_cv_prog_cc_g" >&6; }
3053if test "$ac_test_CFLAGS" = set; then
3054  CFLAGS=$ac_save_CFLAGS
3055elif test $ac_cv_prog_cc_g = yes; then
3056  if test "$GCC" = yes; then
3057    CFLAGS="-g -O2"
3058  else
3059    CFLAGS="-g"
3060  fi
3061else
3062  if test "$GCC" = yes; then
3063    CFLAGS="-O2"
3064  else
3065    CFLAGS=
3066  fi
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070if ${ac_cv_prog_cc_c89+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  ac_cv_prog_cc_c89=no
3074ac_save_CC=$CC
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077#include <stdarg.h>
3078#include <stdio.h>
3079struct stat;
3080/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3081struct buf { int x; };
3082FILE * (*rcsopen) (struct buf *, struct stat *, int);
3083static char *e (p, i)
3084     char **p;
3085     int i;
3086{
3087  return p[i];
3088}
3089static char *f (char * (*g) (char **, int), char **p, ...)
3090{
3091  char *s;
3092  va_list v;
3093  va_start (v,p);
3094  s = g (p, va_arg (v,int));
3095  va_end (v);
3096  return s;
3097}
3098
3099/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3100   function prototypes and stuff, but not '\xHH' hex character constants.
3101   These don't provoke an error unfortunately, instead are silently treated
3102   as 'x'.  The following induces an error, until -std is added to get
3103   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3104   array size at least.  It's necessary to write '\x00'==0 to get something
3105   that's true only with -std.  */
3106int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107
3108/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3109   inside strings and character constants.  */
3110#define FOO(x) 'x'
3111int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112
3113int test (int i, double x);
3114struct s1 {int (*f) (int a);};
3115struct s2 {int (*f) (double a);};
3116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3117int argc;
3118char **argv;
3119int
3120main ()
3121{
3122return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3128	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3129do
3130  CC="$ac_save_CC $ac_arg"
3131  if ac_fn_c_try_compile "$LINENO"; then :
3132  ac_cv_prog_cc_c89=$ac_arg
3133fi
3134rm -f core conftest.err conftest.$ac_objext
3135  test "x$ac_cv_prog_cc_c89" != "xno" && break
3136done
3137rm -f conftest.$ac_ext
3138CC=$ac_save_CC
3139
3140fi
3141# AC_CACHE_VAL
3142case "x$ac_cv_prog_cc_c89" in
3143  x)
3144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3145$as_echo "none needed" >&6; } ;;
3146  xno)
3147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3148$as_echo "unsupported" >&6; } ;;
3149  *)
3150    CC="$CC $ac_cv_prog_cc_c89"
3151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3152$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3153esac
3154if test "x$ac_cv_prog_cc_c89" != xno; then :
3155
3156fi
3157
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3170$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3171if ${am_cv_prog_cc_c_o+:} false; then :
3172  $as_echo_n "(cached) " >&6
3173else
3174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185  # Make sure it works both with $CC and with simple cc.
3186  # Following AC_PROG_CC_C_O, we do the test twice because some
3187  # compilers refuse to overwrite an existing .o file with -o,
3188  # though they will create one.
3189  am_cv_prog_cc_c_o=yes
3190  for am_i in 1 2; do
3191    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3192   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } \
3196         && test -f conftest2.$ac_objext; then
3197      : OK
3198    else
3199      am_cv_prog_cc_c_o=no
3200      break
3201    fi
3202  done
3203  rm -f core conftest*
3204  unset am_i
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3207$as_echo "$am_cv_prog_cc_c_o" >&6; }
3208if test "$am_cv_prog_cc_c_o" != yes; then
3209   # Losing compiler, so override with the script.
3210   # FIXME: It is wrong to rewrite CC.
3211   # But if we don't then we get into trouble of one sort or another.
3212   # A longer-term fix would be to have automake use am__CC in this case,
3213   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3214   CC="$am_aux_dir/compile $CC"
3215fi
3216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3230$as_echo_n "checking how to run the C preprocessor... " >&6; }
3231# On Suns, sometimes $CPP names a directory.
3232if test -n "$CPP" && test -d "$CPP"; then
3233  CPP=
3234fi
3235if test -z "$CPP"; then
3236  if ${ac_cv_prog_CPP+:} false; then :
3237  $as_echo_n "(cached) " >&6
3238else
3239      # Double quotes because CPP needs to be expanded
3240    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241    do
3242      ac_preproc_ok=false
3243for ac_c_preproc_warn_flag in '' yes
3244do
3245  # Use a header file that comes with gcc, so configuring glibc
3246  # with a fresh cross-compiler works.
3247  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248  # <limits.h> exists even on freestanding compilers.
3249  # On the NeXT, cc -E runs the code through the compiler's parser,
3250  # not just through cpp. "Syntax error" is here to catch this case.
3251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253#ifdef __STDC__
3254# include <limits.h>
3255#else
3256# include <assert.h>
3257#endif
3258		     Syntax error
3259_ACEOF
3260if ac_fn_c_try_cpp "$LINENO"; then :
3261
3262else
3263  # Broken: fails on valid input.
3264continue
3265fi
3266rm -f conftest.err conftest.i conftest.$ac_ext
3267
3268  # OK, works on sane cases.  Now check whether nonexistent headers
3269  # can be detected and how.
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272#include <ac_nonexistent.h>
3273_ACEOF
3274if ac_fn_c_try_cpp "$LINENO"; then :
3275  # Broken: success on invalid input.
3276continue
3277else
3278  # Passes both tests.
3279ac_preproc_ok=:
3280break
3281fi
3282rm -f conftest.err conftest.i conftest.$ac_ext
3283
3284done
3285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3286rm -f conftest.i conftest.err conftest.$ac_ext
3287if $ac_preproc_ok; then :
3288  break
3289fi
3290
3291    done
3292    ac_cv_prog_CPP=$CPP
3293
3294fi
3295  CPP=$ac_cv_prog_CPP
3296else
3297  ac_cv_prog_CPP=$CPP
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3300$as_echo "$CPP" >&6; }
3301ac_preproc_ok=false
3302for ac_c_preproc_warn_flag in '' yes
3303do
3304  # Use a header file that comes with gcc, so configuring glibc
3305  # with a fresh cross-compiler works.
3306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3307  # <limits.h> exists even on freestanding compilers.
3308  # On the NeXT, cc -E runs the code through the compiler's parser,
3309  # not just through cpp. "Syntax error" is here to catch this case.
3310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312#ifdef __STDC__
3313# include <limits.h>
3314#else
3315# include <assert.h>
3316#endif
3317		     Syntax error
3318_ACEOF
3319if ac_fn_c_try_cpp "$LINENO"; then :
3320
3321else
3322  # Broken: fails on valid input.
3323continue
3324fi
3325rm -f conftest.err conftest.i conftest.$ac_ext
3326
3327  # OK, works on sane cases.  Now check whether nonexistent headers
3328  # can be detected and how.
3329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331#include <ac_nonexistent.h>
3332_ACEOF
3333if ac_fn_c_try_cpp "$LINENO"; then :
3334  # Broken: success on invalid input.
3335continue
3336else
3337  # Passes both tests.
3338ac_preproc_ok=:
3339break
3340fi
3341rm -f conftest.err conftest.i conftest.$ac_ext
3342
3343done
3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345rm -f conftest.i conftest.err conftest.$ac_ext
3346if $ac_preproc_ok; then :
3347
3348else
3349  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3352See \`config.log' for more details" "$LINENO" 5; }
3353fi
3354
3355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360
3361
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3363$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3364if ${ac_cv_path_GREP+:} false; then :
3365  $as_echo_n "(cached) " >&6
3366else
3367  if test -z "$GREP"; then
3368  ac_path_GREP_found=false
3369  # Loop through the user's path and test for each of PROGNAME-LIST
3370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375    for ac_prog in grep ggrep; do
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3378      as_fn_executable_p "$ac_path_GREP" || continue
3379# Check for GNU ac_path_GREP and select it if it is found.
3380  # Check for GNU $ac_path_GREP
3381case `"$ac_path_GREP" --version 2>&1` in
3382*GNU*)
3383  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3384*)
3385  ac_count=0
3386  $as_echo_n 0123456789 >"conftest.in"
3387  while :
3388  do
3389    cat "conftest.in" "conftest.in" >"conftest.tmp"
3390    mv "conftest.tmp" "conftest.in"
3391    cp "conftest.in" "conftest.nl"
3392    $as_echo 'GREP' >> "conftest.nl"
3393    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395    as_fn_arith $ac_count + 1 && ac_count=$as_val
3396    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397      # Best one so far, save it but keep looking for a better one
3398      ac_cv_path_GREP="$ac_path_GREP"
3399      ac_path_GREP_max=$ac_count
3400    fi
3401    # 10*(2^10) chars as input seems more than enough
3402    test $ac_count -gt 10 && break
3403  done
3404  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405esac
3406
3407      $ac_path_GREP_found && break 3
3408    done
3409  done
3410  done
3411IFS=$as_save_IFS
3412  if test -z "$ac_cv_path_GREP"; then
3413    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3414  fi
3415else
3416  ac_cv_path_GREP=$GREP
3417fi
3418
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3421$as_echo "$ac_cv_path_GREP" >&6; }
3422 GREP="$ac_cv_path_GREP"
3423
3424
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3426$as_echo_n "checking for egrep... " >&6; }
3427if ${ac_cv_path_EGREP+:} false; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3431   then ac_cv_path_EGREP="$GREP -E"
3432   else
3433     if test -z "$EGREP"; then
3434  ac_path_EGREP_found=false
3435  # Loop through the user's path and test for each of PROGNAME-LIST
3436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3438do
3439  IFS=$as_save_IFS
3440  test -z "$as_dir" && as_dir=.
3441    for ac_prog in egrep; do
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3444      as_fn_executable_p "$ac_path_EGREP" || continue
3445# Check for GNU ac_path_EGREP and select it if it is found.
3446  # Check for GNU $ac_path_EGREP
3447case `"$ac_path_EGREP" --version 2>&1` in
3448*GNU*)
3449  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3450*)
3451  ac_count=0
3452  $as_echo_n 0123456789 >"conftest.in"
3453  while :
3454  do
3455    cat "conftest.in" "conftest.in" >"conftest.tmp"
3456    mv "conftest.tmp" "conftest.in"
3457    cp "conftest.in" "conftest.nl"
3458    $as_echo 'EGREP' >> "conftest.nl"
3459    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3460    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3461    as_fn_arith $ac_count + 1 && ac_count=$as_val
3462    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3463      # Best one so far, save it but keep looking for a better one
3464      ac_cv_path_EGREP="$ac_path_EGREP"
3465      ac_path_EGREP_max=$ac_count
3466    fi
3467    # 10*(2^10) chars as input seems more than enough
3468    test $ac_count -gt 10 && break
3469  done
3470  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3471esac
3472
3473      $ac_path_EGREP_found && break 3
3474    done
3475  done
3476  done
3477IFS=$as_save_IFS
3478  if test -z "$ac_cv_path_EGREP"; then
3479    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3480  fi
3481else
3482  ac_cv_path_EGREP=$EGREP
3483fi
3484
3485   fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3488$as_echo "$ac_cv_path_EGREP" >&6; }
3489 EGREP="$ac_cv_path_EGREP"
3490
3491
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3493$as_echo_n "checking for ANSI C header files... " >&6; }
3494if ${ac_cv_header_stdc+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499#include <stdlib.h>
3500#include <stdarg.h>
3501#include <string.h>
3502#include <float.h>
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512if ac_fn_c_try_compile "$LINENO"; then :
3513  ac_cv_header_stdc=yes
3514else
3515  ac_cv_header_stdc=no
3516fi
3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518
3519if test $ac_cv_header_stdc = yes; then
3520  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#include <string.h>
3524
3525_ACEOF
3526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527  $EGREP "memchr" >/dev/null 2>&1; then :
3528
3529else
3530  ac_cv_header_stdc=no
3531fi
3532rm -f conftest*
3533
3534fi
3535
3536if test $ac_cv_header_stdc = yes; then
3537  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540#include <stdlib.h>
3541
3542_ACEOF
3543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544  $EGREP "free" >/dev/null 2>&1; then :
3545
3546else
3547  ac_cv_header_stdc=no
3548fi
3549rm -f conftest*
3550
3551fi
3552
3553if test $ac_cv_header_stdc = yes; then
3554  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3555  if test "$cross_compiling" = yes; then :
3556  :
3557else
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560#include <ctype.h>
3561#include <stdlib.h>
3562#if ((' ' & 0x0FF) == 0x020)
3563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3565#else
3566# define ISLOWER(c) \
3567		   (('a' <= (c) && (c) <= 'i') \
3568		     || ('j' <= (c) && (c) <= 'r') \
3569		     || ('s' <= (c) && (c) <= 'z'))
3570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571#endif
3572
3573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3574int
3575main ()
3576{
3577  int i;
3578  for (i = 0; i < 256; i++)
3579    if (XOR (islower (i), ISLOWER (i))
3580	|| toupper (i) != TOUPPER (i))
3581      return 2;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_run "$LINENO"; then :
3586
3587else
3588  ac_cv_header_stdc=no
3589fi
3590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3591  conftest.$ac_objext conftest.beam conftest.$ac_ext
3592fi
3593
3594fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3597$as_echo "$ac_cv_header_stdc" >&6; }
3598if test $ac_cv_header_stdc = yes; then
3599
3600$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3601
3602fi
3603
3604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3606		  inttypes.h stdint.h unistd.h
3607do :
3608  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3610"
3611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3612  cat >>confdefs.h <<_ACEOF
3613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3614_ACEOF
3615
3616fi
3617
3618done
3619
3620
3621
3622  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3623if test "x$ac_cv_header_minix_config_h" = xyes; then :
3624  MINIX=yes
3625else
3626  MINIX=
3627fi
3628
3629
3630  if test "$MINIX" = yes; then
3631
3632$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3633
3634
3635$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3636
3637
3638$as_echo "#define _MINIX 1" >>confdefs.h
3639
3640  fi
3641
3642
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3644$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3645if ${ac_cv_safe_to_define___extensions__+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651#         define __EXTENSIONS__ 1
3652          $ac_includes_default
3653int
3654main ()
3655{
3656
3657  ;
3658  return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_compile "$LINENO"; then :
3662  ac_cv_safe_to_define___extensions__=yes
3663else
3664  ac_cv_safe_to_define___extensions__=no
3665fi
3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3669$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3670  test $ac_cv_safe_to_define___extensions__ = yes &&
3671    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3672
3673  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3674
3675  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3676
3677  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3678
3679  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3680
3681
3682
3683# Initialize Automake
3684am__api_version='1.15'
3685
3686# Find a good install program.  We prefer a C program (faster),
3687# so one script is as good as another.  But avoid the broken or
3688# incompatible versions:
3689# SysV /etc/install, /usr/sbin/install
3690# SunOS /usr/etc/install
3691# IRIX /sbin/install
3692# AIX /bin/install
3693# AmigaOS /C/install, which installs bootblocks on floppy discs
3694# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3695# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3696# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3697# OS/2's system install, which has a completely different semantic
3698# ./install, which can be erroneously created by make from ./install.sh.
3699# Reject install programs that cannot install multiple files.
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3701$as_echo_n "checking for a BSD-compatible install... " >&6; }
3702if test -z "$INSTALL"; then
3703if ${ac_cv_path_install+:} false; then :
3704  $as_echo_n "(cached) " >&6
3705else
3706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709  IFS=$as_save_IFS
3710  test -z "$as_dir" && as_dir=.
3711    # Account for people who put trailing slashes in PATH elements.
3712case $as_dir/ in #((
3713  ./ | .// | /[cC]/* | \
3714  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3715  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3716  /usr/ucb/* ) ;;
3717  *)
3718    # OSF1 and SCO ODT 3.0 have their own names for install.
3719    # Don't use installbsd from OSF since it installs stuff as root
3720    # by default.
3721    for ac_prog in ginstall scoinst install; do
3722      for ac_exec_ext in '' $ac_executable_extensions; do
3723	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3724	  if test $ac_prog = install &&
3725	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3726	    # AIX install.  It has an incompatible calling convention.
3727	    :
3728	  elif test $ac_prog = install &&
3729	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3730	    # program-specific install script used by HP pwplus--don't use.
3731	    :
3732	  else
3733	    rm -rf conftest.one conftest.two conftest.dir
3734	    echo one > conftest.one
3735	    echo two > conftest.two
3736	    mkdir conftest.dir
3737	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3738	      test -s conftest.one && test -s conftest.two &&
3739	      test -s conftest.dir/conftest.one &&
3740	      test -s conftest.dir/conftest.two
3741	    then
3742	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3743	      break 3
3744	    fi
3745	  fi
3746	fi
3747      done
3748    done
3749    ;;
3750esac
3751
3752  done
3753IFS=$as_save_IFS
3754
3755rm -rf conftest.one conftest.two conftest.dir
3756
3757fi
3758  if test "${ac_cv_path_install+set}" = set; then
3759    INSTALL=$ac_cv_path_install
3760  else
3761    # As a last resort, use the slow shell script.  Don't cache a
3762    # value for INSTALL within a source directory, because that will
3763    # break other packages using the cache if that directory is
3764    # removed, or if the value is a relative name.
3765    INSTALL=$ac_install_sh
3766  fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3769$as_echo "$INSTALL" >&6; }
3770
3771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3772# It thinks the first close brace ends the variable substitution.
3773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3774
3775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3776
3777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3778
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3780$as_echo_n "checking whether build environment is sane... " >&6; }
3781# Reject unsafe characters in $srcdir or the absolute working directory
3782# name.  Accept space and tab only in the latter.
3783am_lf='
3784'
3785case `pwd` in
3786  *[\\\"\#\$\&\'\`$am_lf]*)
3787    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3788esac
3789case $srcdir in
3790  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3791    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3792esac
3793
3794# Do 'set' in a subshell so we don't clobber the current shell's
3795# arguments.  Must try -L first in case configure is actually a
3796# symlink; some systems play weird games with the mod time of symlinks
3797# (eg FreeBSD returns the mod time of the symlink's containing
3798# directory).
3799if (
3800   am_has_slept=no
3801   for am_try in 1 2; do
3802     echo "timestamp, slept: $am_has_slept" > conftest.file
3803     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3804     if test "$*" = "X"; then
3805	# -L didn't work.
3806	set X `ls -t "$srcdir/configure" conftest.file`
3807     fi
3808     if test "$*" != "X $srcdir/configure conftest.file" \
3809	&& test "$*" != "X conftest.file $srcdir/configure"; then
3810
3811	# If neither matched, then we have a broken ls.  This can happen
3812	# if, for instance, CONFIG_SHELL is bash and it inherits a
3813	# broken ls alias from the environment.  This has actually
3814	# happened.  Such a system could not be considered "sane".
3815	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3816  alias in your environment" "$LINENO" 5
3817     fi
3818     if test "$2" = conftest.file || test $am_try -eq 2; then
3819       break
3820     fi
3821     # Just in case.
3822     sleep 1
3823     am_has_slept=yes
3824   done
3825   test "$2" = conftest.file
3826   )
3827then
3828   # Ok.
3829   :
3830else
3831   as_fn_error $? "newly created file is older than distributed files!
3832Check your system clock" "$LINENO" 5
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835$as_echo "yes" >&6; }
3836# If we didn't sleep, we still need to ensure time stamps of config.status and
3837# generated files are strictly newer.
3838am_sleep_pid=
3839if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3840  ( sleep 1 ) &
3841  am_sleep_pid=$!
3842fi
3843
3844rm -f conftest.file
3845
3846test "$program_prefix" != NONE &&
3847  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3848# Use a double $ so make ignores it.
3849test "$program_suffix" != NONE &&
3850  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3851# Double any \ or $.
3852# By default was `s,x,x', remove it if useless.
3853ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3854program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3855
3856if test x"${MISSING+set}" != xset; then
3857  case $am_aux_dir in
3858  *\ * | *\	*)
3859    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3860  *)
3861    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3862  esac
3863fi
3864# Use eval to expand $SHELL
3865if eval "$MISSING --is-lightweight"; then
3866  am_missing_run="$MISSING "
3867else
3868  am_missing_run=
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3870$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3871fi
3872
3873if test x"${install_sh+set}" != xset; then
3874  case $am_aux_dir in
3875  *\ * | *\	*)
3876    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3877  *)
3878    install_sh="\${SHELL} $am_aux_dir/install-sh"
3879  esac
3880fi
3881
3882# Installed binaries are usually stripped using 'strip' when the user
3883# run "make install-strip".  However 'strip' might not be the right
3884# tool to use in cross-compilation environments, therefore Automake
3885# will honor the 'STRIP' environment variable to overrule this program.
3886if test "$cross_compiling" != no; then
3887  if test -n "$ac_tool_prefix"; then
3888  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3889set dummy ${ac_tool_prefix}strip; ac_word=$2
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891$as_echo_n "checking for $ac_word... " >&6; }
3892if ${ac_cv_prog_STRIP+:} false; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  if test -n "$STRIP"; then
3896  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901  IFS=$as_save_IFS
3902  test -z "$as_dir" && as_dir=.
3903    for ac_exec_ext in '' $ac_executable_extensions; do
3904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907    break 2
3908  fi
3909done
3910  done
3911IFS=$as_save_IFS
3912
3913fi
3914fi
3915STRIP=$ac_cv_prog_STRIP
3916if test -n "$STRIP"; then
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3918$as_echo "$STRIP" >&6; }
3919else
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
3922fi
3923
3924
3925fi
3926if test -z "$ac_cv_prog_STRIP"; then
3927  ac_ct_STRIP=$STRIP
3928  # Extract the first word of "strip", so it can be a program name with args.
3929set dummy strip; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
3932if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  if test -n "$ac_ct_STRIP"; then
3936  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941  IFS=$as_save_IFS
3942  test -z "$as_dir" && as_dir=.
3943    for ac_exec_ext in '' $ac_executable_extensions; do
3944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945    ac_cv_prog_ac_ct_STRIP="strip"
3946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947    break 2
3948  fi
3949done
3950  done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3956if test -n "$ac_ct_STRIP"; then
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3958$as_echo "$ac_ct_STRIP" >&6; }
3959else
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964  if test "x$ac_ct_STRIP" = x; then
3965    STRIP=":"
3966  else
3967    case $cross_compiling:$ac_tool_warned in
3968yes:)
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3971ac_tool_warned=yes ;;
3972esac
3973    STRIP=$ac_ct_STRIP
3974  fi
3975else
3976  STRIP="$ac_cv_prog_STRIP"
3977fi
3978
3979fi
3980INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3983$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3984if test -z "$MKDIR_P"; then
3985  if ${ac_cv_path_mkdir+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993    for ac_prog in mkdir gmkdir; do
3994	 for ac_exec_ext in '' $ac_executable_extensions; do
3995	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3996	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3997	     'mkdir (GNU coreutils) '* | \
3998	     'mkdir (coreutils) '* | \
3999	     'mkdir (fileutils) '4.1*)
4000	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4001	       break 3;;
4002	   esac
4003	 done
4004       done
4005  done
4006IFS=$as_save_IFS
4007
4008fi
4009
4010  test -d ./--version && rmdir ./--version
4011  if test "${ac_cv_path_mkdir+set}" = set; then
4012    MKDIR_P="$ac_cv_path_mkdir -p"
4013  else
4014    # As a last resort, use the slow shell script.  Don't cache a
4015    # value for MKDIR_P within a source directory, because that will
4016    # break other packages using the cache if that directory is
4017    # removed, or if the value is a relative name.
4018    MKDIR_P="$ac_install_sh -d"
4019  fi
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4022$as_echo "$MKDIR_P" >&6; }
4023
4024for ac_prog in gawk mawk nawk awk
4025do
4026  # Extract the first word of "$ac_prog", so it can be a program name with args.
4027set dummy $ac_prog; ac_word=$2
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if ${ac_cv_prog_AWK+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033  if test -n "$AWK"; then
4034  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043    ac_cv_prog_AWK="$ac_prog"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047done
4048  done
4049IFS=$as_save_IFS
4050
4051fi
4052fi
4053AWK=$ac_cv_prog_AWK
4054if test -n "$AWK"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4056$as_echo "$AWK" >&6; }
4057else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062
4063  test -n "$AWK" && break
4064done
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4067$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4068set x ${MAKE-make}
4069ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4070if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  cat >conftest.make <<\_ACEOF
4074SHELL = /bin/sh
4075all:
4076	@echo '@@@%%%=$(MAKE)=@@@%%%'
4077_ACEOF
4078# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4079case `${MAKE-make} -f conftest.make 2>/dev/null` in
4080  *@@@%%%=?*=@@@%%%*)
4081    eval ac_cv_prog_make_${ac_make}_set=yes;;
4082  *)
4083    eval ac_cv_prog_make_${ac_make}_set=no;;
4084esac
4085rm -f conftest.make
4086fi
4087if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089$as_echo "yes" >&6; }
4090  SET_MAKE=
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094  SET_MAKE="MAKE=${MAKE-make}"
4095fi
4096
4097rm -rf .tst 2>/dev/null
4098mkdir .tst 2>/dev/null
4099if test -d .tst; then
4100  am__leading_dot=.
4101else
4102  am__leading_dot=_
4103fi
4104rmdir .tst 2>/dev/null
4105
4106DEPDIR="${am__leading_dot}deps"
4107
4108ac_config_commands="$ac_config_commands depfiles"
4109
4110
4111am_make=${MAKE-make}
4112cat > confinc << 'END'
4113am__doit:
4114	@echo this is the am__doit target
4115.PHONY: am__doit
4116END
4117# If we don't find an include directive, just comment out the code.
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4119$as_echo_n "checking for style of include used by $am_make... " >&6; }
4120am__include="#"
4121am__quote=
4122_am_result=none
4123# First try GNU make style include.
4124echo "include confinc" > confmf
4125# Ignore all kinds of additional output from 'make'.
4126case `$am_make -s -f confmf 2> /dev/null` in #(
4127*the\ am__doit\ target*)
4128  am__include=include
4129  am__quote=
4130  _am_result=GNU
4131  ;;
4132esac
4133# Now try BSD make style include.
4134if test "$am__include" = "#"; then
4135   echo '.include "confinc"' > confmf
4136   case `$am_make -s -f confmf 2> /dev/null` in #(
4137   *the\ am__doit\ target*)
4138     am__include=.include
4139     am__quote="\""
4140     _am_result=BSD
4141     ;;
4142   esac
4143fi
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4147$as_echo "$_am_result" >&6; }
4148rm -f confinc confmf
4149
4150# Check whether --enable-dependency-tracking was given.
4151if test "${enable_dependency_tracking+set}" = set; then :
4152  enableval=$enable_dependency_tracking;
4153fi
4154
4155if test "x$enable_dependency_tracking" != xno; then
4156  am_depcomp="$ac_aux_dir/depcomp"
4157  AMDEPBACKSLASH='\'
4158  am__nodep='_no'
4159fi
4160 if test "x$enable_dependency_tracking" != xno; then
4161  AMDEP_TRUE=
4162  AMDEP_FALSE='#'
4163else
4164  AMDEP_TRUE='#'
4165  AMDEP_FALSE=
4166fi
4167
4168
4169# Check whether --enable-silent-rules was given.
4170if test "${enable_silent_rules+set}" = set; then :
4171  enableval=$enable_silent_rules;
4172fi
4173
4174case $enable_silent_rules in # (((
4175  yes) AM_DEFAULT_VERBOSITY=0;;
4176   no) AM_DEFAULT_VERBOSITY=1;;
4177    *) AM_DEFAULT_VERBOSITY=1;;
4178esac
4179am_make=${MAKE-make}
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4181$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4182if ${am_cv_make_support_nested_variables+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if $as_echo 'TRUE=$(BAR$(V))
4186BAR0=false
4187BAR1=true
4188V=1
4189am__doit:
4190	@$(TRUE)
4191.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4192  am_cv_make_support_nested_variables=yes
4193else
4194  am_cv_make_support_nested_variables=no
4195fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4198$as_echo "$am_cv_make_support_nested_variables" >&6; }
4199if test $am_cv_make_support_nested_variables = yes; then
4200    AM_V='$(V)'
4201  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4202else
4203  AM_V=$AM_DEFAULT_VERBOSITY
4204  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4205fi
4206AM_BACKSLASH='\'
4207
4208if test "`cd $srcdir && pwd`" != "`pwd`"; then
4209  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4210  # is not polluted with repeated "-I."
4211  am__isrc=' -I$(srcdir)'
4212  # test to see if srcdir already configured
4213  if test -f $srcdir/config.status; then
4214    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4215  fi
4216fi
4217
4218# test whether we have cygpath
4219if test -z "$CYGPATH_W"; then
4220  if (cygpath --version) >/dev/null 2>/dev/null; then
4221    CYGPATH_W='cygpath -w'
4222  else
4223    CYGPATH_W=echo
4224  fi
4225fi
4226
4227
4228# Define the identity of the package.
4229 PACKAGE='libXcursor'
4230 VERSION='1.1.15'
4231
4232
4233cat >>confdefs.h <<_ACEOF
4234#define PACKAGE "$PACKAGE"
4235_ACEOF
4236
4237
4238cat >>confdefs.h <<_ACEOF
4239#define VERSION "$VERSION"
4240_ACEOF
4241
4242# Some tools Automake needs.
4243
4244ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4245
4246
4247AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4248
4249
4250AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4251
4252
4253AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4254
4255
4256MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4257
4258# For better backward compatibility.  To be removed once Automake 1.9.x
4259# dies out for good.  For more background, see:
4260# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4261# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4262mkdir_p='$(MKDIR_P)'
4263
4264# We need awk for the "check" target (and possibly the TAP driver).  The
4265# system "awk" is bad on some platforms.
4266# Always define AMTAR for backward compatibility.  Yes, it's still used
4267# in the wild :-(  We should find a proper way to deprecate it ...
4268AMTAR='$${TAR-tar}'
4269
4270
4271# We'll loop over all known methods to create a tar archive until one works.
4272_am_tools='gnutar  pax cpio none'
4273
4274am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4275
4276
4277
4278
4279
4280depcc="$CC"   am_compiler_list=
4281
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4283$as_echo_n "checking dependency style of $depcc... " >&6; }
4284if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4285  $as_echo_n "(cached) " >&6
4286else
4287  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288  # We make a subdir and do the tests there.  Otherwise we can end up
4289  # making bogus files that we don't know about and never remove.  For
4290  # instance it was reported that on HP-UX the gcc test will end up
4291  # making a dummy file named 'D' -- because '-MD' means "put the output
4292  # in D".
4293  rm -rf conftest.dir
4294  mkdir conftest.dir
4295  # Copy depcomp to subdir because otherwise we won't find it if we're
4296  # using a relative directory.
4297  cp "$am_depcomp" conftest.dir
4298  cd conftest.dir
4299  # We will build objects and dependencies in a subdirectory because
4300  # it helps to detect inapplicable dependency modes.  For instance
4301  # both Tru64's cc and ICC support -MD to output dependencies as a
4302  # side effect of compilation, but ICC will put the dependencies in
4303  # the current directory while Tru64 will put them in the object
4304  # directory.
4305  mkdir sub
4306
4307  am_cv_CC_dependencies_compiler_type=none
4308  if test "$am_compiler_list" = ""; then
4309     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4310  fi
4311  am__universal=false
4312  case " $depcc " in #(
4313     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314     esac
4315
4316  for depmode in $am_compiler_list; do
4317    # Setup a source with many dependencies, because some compilers
4318    # like to wrap large dependency lists on column 80 (with \), and
4319    # we should not choose a depcomp mode which is confused by this.
4320    #
4321    # We need to recreate these files for each test, as the compiler may
4322    # overwrite some of them when testing with obscure command lines.
4323    # This happens at least with the AIX C compiler.
4324    : > sub/conftest.c
4325    for i in 1 2 3 4 5 6; do
4326      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4328      # Solaris 10 /bin/sh.
4329      echo '/* dummy */' > sub/conftst$i.h
4330    done
4331    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4332
4333    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4334    # mode.  It turns out that the SunPro C++ compiler does not properly
4335    # handle '-M -o', and we need to detect this.  Also, some Intel
4336    # versions had trouble with output in subdirs.
4337    am__obj=sub/conftest.${OBJEXT-o}
4338    am__minus_obj="-o $am__obj"
4339    case $depmode in
4340    gcc)
4341      # This depmode causes a compiler race in universal mode.
4342      test "$am__universal" = false || continue
4343      ;;
4344    nosideeffect)
4345      # After this tag, mechanisms are not by side-effect, so they'll
4346      # only be used when explicitly requested.
4347      if test "x$enable_dependency_tracking" = xyes; then
4348	continue
4349      else
4350	break
4351      fi
4352      ;;
4353    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4354      # This compiler won't grok '-c -o', but also, the minuso test has
4355      # not run yet.  These depmodes are late enough in the game, and
4356      # so weak that their functioning should not be impacted.
4357      am__obj=conftest.${OBJEXT-o}
4358      am__minus_obj=
4359      ;;
4360    none) break ;;
4361    esac
4362    if depmode=$depmode \
4363       source=sub/conftest.c object=$am__obj \
4364       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4365       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4366         >/dev/null 2>conftest.err &&
4367       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4368       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4370       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371      # icc doesn't choke on unknown options, it will just issue warnings
4372      # or remarks (even with -Werror).  So we grep stderr for any message
4373      # that says an option was ignored or not supported.
4374      # When given -MP, icc 7.0 and 7.1 complain thusly:
4375      #   icc: Command line warning: ignoring option '-M'; no argument required
4376      # The diagnosis changed in icc 8.0:
4377      #   icc: Command line remark: option '-MP' not supported
4378      if (grep 'ignoring option' conftest.err ||
4379          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380        am_cv_CC_dependencies_compiler_type=$depmode
4381        break
4382      fi
4383    fi
4384  done
4385
4386  cd ..
4387  rm -rf conftest.dir
4388else
4389  am_cv_CC_dependencies_compiler_type=none
4390fi
4391
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4396
4397 if
4398  test "x$enable_dependency_tracking" != xno \
4399  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400  am__fastdepCC_TRUE=
4401  am__fastdepCC_FALSE='#'
4402else
4403  am__fastdepCC_TRUE='#'
4404  am__fastdepCC_FALSE=
4405fi
4406
4407
4408
4409# POSIX will say in a future version that running "rm -f" with no argument
4410# is OK; and we want to be able to make that assumption in our Makefile
4411# recipes.  So use an aggressive probe to check that the usage we want is
4412# actually supported "in the wild" to an acceptable degree.
4413# See automake bug#10828.
4414# To make any issue more visible, cause the running configure to be aborted
4415# by default if the 'rm' program in use doesn't match our expectations; the
4416# user can still override this though.
4417if rm -f && rm -fr && rm -rf; then : OK; else
4418  cat >&2 <<'END'
4419Oops!
4420
4421Your 'rm' program seems unable to run without file operands specified
4422on the command line, even when the '-f' option is present.  This is contrary
4423to the behaviour of most rm programs out there, and not conforming with
4424the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4425
4426Please tell bug-automake@gnu.org about your system, including the value
4427of your $PATH and any error possibly output before this message.  This
4428can help us improve future automake versions.
4429
4430END
4431  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4432    echo 'Configuration will proceed anyway, since you have set the' >&2
4433    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4434    echo >&2
4435  else
4436    cat >&2 <<'END'
4437Aborting the configuration process, to ensure you take notice of the issue.
4438
4439You can download and install GNU coreutils to get an 'rm' implementation
4440that behaves properly: <http://www.gnu.org/software/coreutils/>.
4441
4442If you want to complete the configuration process using your problematic
4443'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4444to "yes", and re-run configure.
4445
4446END
4447    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4448  fi
4449fi
4450
4451
4452# Initialize libtool
4453case `pwd` in
4454  *\ * | *\	*)
4455    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4456$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4457esac
4458
4459
4460
4461macro_version='2.4.6'
4462macro_revision='2.4.6'
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476ltmain=$ac_aux_dir/ltmain.sh
4477
4478# Make sure we can run config.sub.
4479$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4480  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4483$as_echo_n "checking build system type... " >&6; }
4484if ${ac_cv_build+:} false; then :
4485  $as_echo_n "(cached) " >&6
4486else
4487  ac_build_alias=$build_alias
4488test "x$ac_build_alias" = x &&
4489  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4490test "x$ac_build_alias" = x &&
4491  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4492ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4493  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4497$as_echo "$ac_cv_build" >&6; }
4498case $ac_cv_build in
4499*-*-*) ;;
4500*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4501esac
4502build=$ac_cv_build
4503ac_save_IFS=$IFS; IFS='-'
4504set x $ac_cv_build
4505shift
4506build_cpu=$1
4507build_vendor=$2
4508shift; shift
4509# Remember, the first character of IFS is used to create $*,
4510# except with old shells:
4511build_os=$*
4512IFS=$ac_save_IFS
4513case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4517$as_echo_n "checking host system type... " >&6; }
4518if ${ac_cv_host+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test "x$host_alias" = x; then
4522  ac_cv_host=$ac_cv_build
4523else
4524  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4525    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4526fi
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4530$as_echo "$ac_cv_host" >&6; }
4531case $ac_cv_host in
4532*-*-*) ;;
4533*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4534esac
4535host=$ac_cv_host
4536ac_save_IFS=$IFS; IFS='-'
4537set x $ac_cv_host
4538shift
4539host_cpu=$1
4540host_vendor=$2
4541shift; shift
4542# Remember, the first character of IFS is used to create $*,
4543# except with old shells:
4544host_os=$*
4545IFS=$ac_save_IFS
4546case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4547
4548
4549# Backslashify metacharacters that are still active within
4550# double-quoted strings.
4551sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4552
4553# Same as above, but do not quote variable references.
4554double_quote_subst='s/\(["`\\]\)/\\\1/g'
4555
4556# Sed substitution to delay expansion of an escaped shell variable in a
4557# double_quote_subst'ed string.
4558delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4559
4560# Sed substitution to delay expansion of an escaped single quote.
4561delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4562
4563# Sed substitution to avoid accidental globbing in evaled expressions
4564no_glob_subst='s/\*/\\\*/g'
4565
4566ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4567ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4568ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4569
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4571$as_echo_n "checking how to print strings... " >&6; }
4572# Test print first, because it will be a builtin if present.
4573if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4574   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4575  ECHO='print -r --'
4576elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4577  ECHO='printf %s\n'
4578else
4579  # Use this function as a fallback that always works.
4580  func_fallback_echo ()
4581  {
4582    eval 'cat <<_LTECHO_EOF
4583$1
4584_LTECHO_EOF'
4585  }
4586  ECHO='func_fallback_echo'
4587fi
4588
4589# func_echo_all arg...
4590# Invoke $ECHO with all args, space-separated.
4591func_echo_all ()
4592{
4593    $ECHO ""
4594}
4595
4596case $ECHO in
4597  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4598$as_echo "printf" >&6; } ;;
4599  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4600$as_echo "print -r" >&6; } ;;
4601  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4602$as_echo "cat" >&6; } ;;
4603esac
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4619$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4620if ${ac_cv_path_SED+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4624     for ac_i in 1 2 3 4 5 6 7; do
4625       ac_script="$ac_script$as_nl$ac_script"
4626     done
4627     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4628     { ac_script=; unset ac_script;}
4629     if test -z "$SED"; then
4630  ac_path_SED_found=false
4631  # Loop through the user's path and test for each of PROGNAME-LIST
4632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_prog in sed gsed; do
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4640      as_fn_executable_p "$ac_path_SED" || continue
4641# Check for GNU ac_path_SED and select it if it is found.
4642  # Check for GNU $ac_path_SED
4643case `"$ac_path_SED" --version 2>&1` in
4644*GNU*)
4645  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4646*)
4647  ac_count=0
4648  $as_echo_n 0123456789 >"conftest.in"
4649  while :
4650  do
4651    cat "conftest.in" "conftest.in" >"conftest.tmp"
4652    mv "conftest.tmp" "conftest.in"
4653    cp "conftest.in" "conftest.nl"
4654    $as_echo '' >> "conftest.nl"
4655    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657    as_fn_arith $ac_count + 1 && ac_count=$as_val
4658    if test $ac_count -gt ${ac_path_SED_max-0}; then
4659      # Best one so far, save it but keep looking for a better one
4660      ac_cv_path_SED="$ac_path_SED"
4661      ac_path_SED_max=$ac_count
4662    fi
4663    # 10*(2^10) chars as input seems more than enough
4664    test $ac_count -gt 10 && break
4665  done
4666  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667esac
4668
4669      $ac_path_SED_found && break 3
4670    done
4671  done
4672  done
4673IFS=$as_save_IFS
4674  if test -z "$ac_cv_path_SED"; then
4675    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4676  fi
4677else
4678  ac_cv_path_SED=$SED
4679fi
4680
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4683$as_echo "$ac_cv_path_SED" >&6; }
4684 SED="$ac_cv_path_SED"
4685  rm -f conftest.sed
4686
4687test -z "$SED" && SED=sed
4688Xsed="$SED -e 1s/^X//"
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4701$as_echo_n "checking for fgrep... " >&6; }
4702if ${ac_cv_path_FGREP+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4706   then ac_cv_path_FGREP="$GREP -F"
4707   else
4708     if test -z "$FGREP"; then
4709  ac_path_FGREP_found=false
4710  # Loop through the user's path and test for each of PROGNAME-LIST
4711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4713do
4714  IFS=$as_save_IFS
4715  test -z "$as_dir" && as_dir=.
4716    for ac_prog in fgrep; do
4717    for ac_exec_ext in '' $ac_executable_extensions; do
4718      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4719      as_fn_executable_p "$ac_path_FGREP" || continue
4720# Check for GNU ac_path_FGREP and select it if it is found.
4721  # Check for GNU $ac_path_FGREP
4722case `"$ac_path_FGREP" --version 2>&1` in
4723*GNU*)
4724  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4725*)
4726  ac_count=0
4727  $as_echo_n 0123456789 >"conftest.in"
4728  while :
4729  do
4730    cat "conftest.in" "conftest.in" >"conftest.tmp"
4731    mv "conftest.tmp" "conftest.in"
4732    cp "conftest.in" "conftest.nl"
4733    $as_echo 'FGREP' >> "conftest.nl"
4734    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736    as_fn_arith $ac_count + 1 && ac_count=$as_val
4737    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4738      # Best one so far, save it but keep looking for a better one
4739      ac_cv_path_FGREP="$ac_path_FGREP"
4740      ac_path_FGREP_max=$ac_count
4741    fi
4742    # 10*(2^10) chars as input seems more than enough
4743    test $ac_count -gt 10 && break
4744  done
4745  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746esac
4747
4748      $ac_path_FGREP_found && break 3
4749    done
4750  done
4751  done
4752IFS=$as_save_IFS
4753  if test -z "$ac_cv_path_FGREP"; then
4754    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4755  fi
4756else
4757  ac_cv_path_FGREP=$FGREP
4758fi
4759
4760   fi
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4763$as_echo "$ac_cv_path_FGREP" >&6; }
4764 FGREP="$ac_cv_path_FGREP"
4765
4766
4767test -z "$GREP" && GREP=grep
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787# Check whether --with-gnu-ld was given.
4788if test "${with_gnu_ld+set}" = set; then :
4789  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4790else
4791  with_gnu_ld=no
4792fi
4793
4794ac_prog=ld
4795if test yes = "$GCC"; then
4796  # Check if gcc -print-prog-name=ld gives a path.
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4798$as_echo_n "checking for ld used by $CC... " >&6; }
4799  case $host in
4800  *-*-mingw*)
4801    # gcc leaves a trailing carriage return, which upsets mingw
4802    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4803  *)
4804    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4805  esac
4806  case $ac_prog in
4807    # Accept absolute paths.
4808    [\\/]* | ?:[\\/]*)
4809      re_direlt='/[^/][^/]*/\.\./'
4810      # Canonicalize the pathname of ld
4811      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4812      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4813	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4814      done
4815      test -z "$LD" && LD=$ac_prog
4816      ;;
4817  "")
4818    # If it fails, then pretend we aren't using GCC.
4819    ac_prog=ld
4820    ;;
4821  *)
4822    # If it is relative, then search for the first ld in PATH.
4823    with_gnu_ld=unknown
4824    ;;
4825  esac
4826elif test yes = "$with_gnu_ld"; then
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4828$as_echo_n "checking for GNU ld... " >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4831$as_echo_n "checking for non-GNU ld... " >&6; }
4832fi
4833if ${lt_cv_path_LD+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  if test -z "$LD"; then
4837  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4838  for ac_dir in $PATH; do
4839    IFS=$lt_save_ifs
4840    test -z "$ac_dir" && ac_dir=.
4841    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4842      lt_cv_path_LD=$ac_dir/$ac_prog
4843      # Check to see if the program is GNU ld.  I'd rather use --version,
4844      # but apparently some variants of GNU ld only accept -v.
4845      # Break only if it was the GNU/non-GNU ld that we prefer.
4846      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4847      *GNU* | *'with BFD'*)
4848	test no != "$with_gnu_ld" && break
4849	;;
4850      *)
4851	test yes != "$with_gnu_ld" && break
4852	;;
4853      esac
4854    fi
4855  done
4856  IFS=$lt_save_ifs
4857else
4858  lt_cv_path_LD=$LD # Let the user override the test with a path.
4859fi
4860fi
4861
4862LD=$lt_cv_path_LD
4863if test -n "$LD"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4865$as_echo "$LD" >&6; }
4866else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4872$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4873if ${lt_cv_prog_gnu_ld+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4877case `$LD -v 2>&1 </dev/null` in
4878*GNU* | *'with BFD'*)
4879  lt_cv_prog_gnu_ld=yes
4880  ;;
4881*)
4882  lt_cv_prog_gnu_ld=no
4883  ;;
4884esac
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4887$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4888with_gnu_ld=$lt_cv_prog_gnu_ld
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4899$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4900if ${lt_cv_path_NM+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903  if test -n "$NM"; then
4904  # Let the user override the test.
4905  lt_cv_path_NM=$NM
4906else
4907  lt_nm_to_check=${ac_tool_prefix}nm
4908  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4909    lt_nm_to_check="$lt_nm_to_check nm"
4910  fi
4911  for lt_tmp_nm in $lt_nm_to_check; do
4912    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4913    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4914      IFS=$lt_save_ifs
4915      test -z "$ac_dir" && ac_dir=.
4916      tmp_nm=$ac_dir/$lt_tmp_nm
4917      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4918	# Check to see if the nm accepts a BSD-compat flag.
4919	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4920	#   nm: unknown option "B" ignored
4921	# Tru64's nm complains that /dev/null is an invalid object file
4922	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4923	case $build_os in
4924	mingw*) lt_bad_file=conftest.nm/nofile ;;
4925	*) lt_bad_file=/dev/null ;;
4926	esac
4927	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4928	*$lt_bad_file* | *'Invalid file or object type'*)
4929	  lt_cv_path_NM="$tmp_nm -B"
4930	  break 2
4931	  ;;
4932	*)
4933	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4934	  */dev/null*)
4935	    lt_cv_path_NM="$tmp_nm -p"
4936	    break 2
4937	    ;;
4938	  *)
4939	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4940	    continue # so that we can try to find one that supports BSD flags
4941	    ;;
4942	  esac
4943	  ;;
4944	esac
4945      fi
4946    done
4947    IFS=$lt_save_ifs
4948  done
4949  : ${lt_cv_path_NM=no}
4950fi
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4953$as_echo "$lt_cv_path_NM" >&6; }
4954if test no != "$lt_cv_path_NM"; then
4955  NM=$lt_cv_path_NM
4956else
4957  # Didn't find any BSD compatible name lister, look for dumpbin.
4958  if test -n "$DUMPBIN"; then :
4959    # Let the user override the test.
4960  else
4961    if test -n "$ac_tool_prefix"; then
4962  for ac_prog in dumpbin "link -dump"
4963  do
4964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if ${ac_cv_prog_DUMPBIN+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  if test -n "$DUMPBIN"; then
4972  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979    for ac_exec_ext in '' $ac_executable_extensions; do
4980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983    break 2
4984  fi
4985done
4986  done
4987IFS=$as_save_IFS
4988
4989fi
4990fi
4991DUMPBIN=$ac_cv_prog_DUMPBIN
4992if test -n "$DUMPBIN"; then
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4994$as_echo "$DUMPBIN" >&6; }
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998fi
4999
5000
5001    test -n "$DUMPBIN" && break
5002  done
5003fi
5004if test -z "$DUMPBIN"; then
5005  ac_ct_DUMPBIN=$DUMPBIN
5006  for ac_prog in dumpbin "link -dump"
5007do
5008  # Extract the first word of "$ac_prog", so it can be a program name with args.
5009set dummy $ac_prog; ac_word=$2
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
5012if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  if test -n "$ac_ct_DUMPBIN"; then
5016  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021  IFS=$as_save_IFS
5022  test -z "$as_dir" && as_dir=.
5023    for ac_exec_ext in '' $ac_executable_extensions; do
5024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027    break 2
5028  fi
5029done
5030  done
5031IFS=$as_save_IFS
5032
5033fi
5034fi
5035ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5036if test -n "$ac_ct_DUMPBIN"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5038$as_echo "$ac_ct_DUMPBIN" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
5045  test -n "$ac_ct_DUMPBIN" && break
5046done
5047
5048  if test "x$ac_ct_DUMPBIN" = x; then
5049    DUMPBIN=":"
5050  else
5051    case $cross_compiling:$ac_tool_warned in
5052yes:)
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055ac_tool_warned=yes ;;
5056esac
5057    DUMPBIN=$ac_ct_DUMPBIN
5058  fi
5059fi
5060
5061    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5062    *COFF*)
5063      DUMPBIN="$DUMPBIN -symbols -headers"
5064      ;;
5065    *)
5066      DUMPBIN=:
5067      ;;
5068    esac
5069  fi
5070
5071  if test : != "$DUMPBIN"; then
5072    NM=$DUMPBIN
5073  fi
5074fi
5075test -z "$NM" && NM=nm
5076
5077
5078
5079
5080
5081
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5083$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5084if ${lt_cv_nm_interface+:} false; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  lt_cv_nm_interface="BSD nm"
5088  echo "int some_variable = 0;" > conftest.$ac_ext
5089  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5090  (eval "$ac_compile" 2>conftest.err)
5091  cat conftest.err >&5
5092  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5093  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5094  cat conftest.err >&5
5095  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5096  cat conftest.out >&5
5097  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5098    lt_cv_nm_interface="MS dumpbin"
5099  fi
5100  rm -f conftest*
5101fi
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5103$as_echo "$lt_cv_nm_interface" >&6; }
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5106$as_echo_n "checking whether ln -s works... " >&6; }
5107LN_S=$as_ln_s
5108if test "$LN_S" = "ln -s"; then
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110$as_echo "yes" >&6; }
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5113$as_echo "no, using $LN_S" >&6; }
5114fi
5115
5116# find the maximum length of command line arguments
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5118$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5119if ${lt_cv_sys_max_cmd_len+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122    i=0
5123  teststring=ABCD
5124
5125  case $build_os in
5126  msdosdjgpp*)
5127    # On DJGPP, this test can blow up pretty badly due to problems in libc
5128    # (any single argument exceeding 2000 bytes causes a buffer overrun
5129    # during glob expansion).  Even if it were fixed, the result of this
5130    # check would be larger than it should be.
5131    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5132    ;;
5133
5134  gnu*)
5135    # Under GNU Hurd, this test is not required because there is
5136    # no limit to the length of command line arguments.
5137    # Libtool will interpret -1 as no limit whatsoever
5138    lt_cv_sys_max_cmd_len=-1;
5139    ;;
5140
5141  cygwin* | mingw* | cegcc*)
5142    # On Win9x/ME, this test blows up -- it succeeds, but takes
5143    # about 5 minutes as the teststring grows exponentially.
5144    # Worse, since 9x/ME are not pre-emptively multitasking,
5145    # you end up with a "frozen" computer, even though with patience
5146    # the test eventually succeeds (with a max line length of 256k).
5147    # Instead, let's just punt: use the minimum linelength reported by
5148    # all of the supported platforms: 8192 (on NT/2K/XP).
5149    lt_cv_sys_max_cmd_len=8192;
5150    ;;
5151
5152  mint*)
5153    # On MiNT this can take a long time and run out of memory.
5154    lt_cv_sys_max_cmd_len=8192;
5155    ;;
5156
5157  amigaos*)
5158    # On AmigaOS with pdksh, this test takes hours, literally.
5159    # So we just punt and use a minimum line length of 8192.
5160    lt_cv_sys_max_cmd_len=8192;
5161    ;;
5162
5163  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5164    # This has been around since 386BSD, at least.  Likely further.
5165    if test -x /sbin/sysctl; then
5166      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5167    elif test -x /usr/sbin/sysctl; then
5168      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5169    else
5170      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5171    fi
5172    # And add a safety zone
5173    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5174    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5175    ;;
5176
5177  interix*)
5178    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5179    lt_cv_sys_max_cmd_len=196608
5180    ;;
5181
5182  os2*)
5183    # The test takes a long time on OS/2.
5184    lt_cv_sys_max_cmd_len=8192
5185    ;;
5186
5187  osf*)
5188    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5189    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5190    # nice to cause kernel panics so lets avoid the loop below.
5191    # First set a reasonable default.
5192    lt_cv_sys_max_cmd_len=16384
5193    #
5194    if test -x /sbin/sysconfig; then
5195      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5196        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5197      esac
5198    fi
5199    ;;
5200  sco3.2v5*)
5201    lt_cv_sys_max_cmd_len=102400
5202    ;;
5203  sysv5* | sco5v6* | sysv4.2uw2*)
5204    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5205    if test -n "$kargmax"; then
5206      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5207    else
5208      lt_cv_sys_max_cmd_len=32768
5209    fi
5210    ;;
5211  *)
5212    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5213    if test -n "$lt_cv_sys_max_cmd_len" && \
5214       test undefined != "$lt_cv_sys_max_cmd_len"; then
5215      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5216      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5217    else
5218      # Make teststring a little bigger before we do anything with it.
5219      # a 1K string should be a reasonable start.
5220      for i in 1 2 3 4 5 6 7 8; do
5221        teststring=$teststring$teststring
5222      done
5223      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5224      # If test is not a shell built-in, we'll probably end up computing a
5225      # maximum length that is only half of the actual maximum length, but
5226      # we can't tell.
5227      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5228	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5229	      test 17 != "$i" # 1/2 MB should be enough
5230      do
5231        i=`expr $i + 1`
5232        teststring=$teststring$teststring
5233      done
5234      # Only check the string length outside the loop.
5235      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5236      teststring=
5237      # Add a significant safety factor because C++ compilers can tack on
5238      # massive amounts of additional arguments before passing them to the
5239      # linker.  It appears as though 1/2 is a usable value.
5240      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5241    fi
5242    ;;
5243  esac
5244
5245fi
5246
5247if test -n "$lt_cv_sys_max_cmd_len"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5249$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5252$as_echo "none" >&6; }
5253fi
5254max_cmd_len=$lt_cv_sys_max_cmd_len
5255
5256
5257
5258
5259
5260
5261: ${CP="cp -f"}
5262: ${MV="mv -f"}
5263: ${RM="rm -f"}
5264
5265if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5266  lt_unset=unset
5267else
5268  lt_unset=false
5269fi
5270
5271
5272
5273
5274
5275# test EBCDIC or ASCII
5276case `echo X|tr X '\101'` in
5277 A) # ASCII based system
5278    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5279  lt_SP2NL='tr \040 \012'
5280  lt_NL2SP='tr \015\012 \040\040'
5281  ;;
5282 *) # EBCDIC based system
5283  lt_SP2NL='tr \100 \n'
5284  lt_NL2SP='tr \r\n \100\100'
5285  ;;
5286esac
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5297$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5298if ${lt_cv_to_host_file_cmd+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  case $host in
5302  *-*-mingw* )
5303    case $build in
5304      *-*-mingw* ) # actually msys
5305        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5306        ;;
5307      *-*-cygwin* )
5308        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5309        ;;
5310      * ) # otherwise, assume *nix
5311        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5312        ;;
5313    esac
5314    ;;
5315  *-*-cygwin* )
5316    case $build in
5317      *-*-mingw* ) # actually msys
5318        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5319        ;;
5320      *-*-cygwin* )
5321        lt_cv_to_host_file_cmd=func_convert_file_noop
5322        ;;
5323      * ) # otherwise, assume *nix
5324        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5325        ;;
5326    esac
5327    ;;
5328  * ) # unhandled hosts (and "normal" native builds)
5329    lt_cv_to_host_file_cmd=func_convert_file_noop
5330    ;;
5331esac
5332
5333fi
5334
5335to_host_file_cmd=$lt_cv_to_host_file_cmd
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5337$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5338
5339
5340
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5344$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5345if ${lt_cv_to_tool_file_cmd+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  #assume ordinary cross tools, or native build.
5349lt_cv_to_tool_file_cmd=func_convert_file_noop
5350case $host in
5351  *-*-mingw* )
5352    case $build in
5353      *-*-mingw* ) # actually msys
5354        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5355        ;;
5356    esac
5357    ;;
5358esac
5359
5360fi
5361
5362to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5364$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5365
5366
5367
5368
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5371$as_echo_n "checking for $LD option to reload object files... " >&6; }
5372if ${lt_cv_ld_reload_flag+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  lt_cv_ld_reload_flag='-r'
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5378$as_echo "$lt_cv_ld_reload_flag" >&6; }
5379reload_flag=$lt_cv_ld_reload_flag
5380case $reload_flag in
5381"" | " "*) ;;
5382*) reload_flag=" $reload_flag" ;;
5383esac
5384reload_cmds='$LD$reload_flag -o $output$reload_objs'
5385case $host_os in
5386  cygwin* | mingw* | pw32* | cegcc*)
5387    if test yes != "$GCC"; then
5388      reload_cmds=false
5389    fi
5390    ;;
5391  darwin*)
5392    if test yes = "$GCC"; then
5393      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5394    else
5395      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5396    fi
5397    ;;
5398esac
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408if test -n "$ac_tool_prefix"; then
5409  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5410set dummy ${ac_tool_prefix}objdump; ac_word=$2
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if ${ac_cv_prog_OBJDUMP+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  if test -n "$OBJDUMP"; then
5417  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422  IFS=$as_save_IFS
5423  test -z "$as_dir" && as_dir=.
5424    for ac_exec_ext in '' $ac_executable_extensions; do
5425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428    break 2
5429  fi
5430done
5431  done
5432IFS=$as_save_IFS
5433
5434fi
5435fi
5436OBJDUMP=$ac_cv_prog_OBJDUMP
5437if test -n "$OBJDUMP"; then
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5439$as_echo "$OBJDUMP" >&6; }
5440else
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
5443fi
5444
5445
5446fi
5447if test -z "$ac_cv_prog_OBJDUMP"; then
5448  ac_ct_OBJDUMP=$OBJDUMP
5449  # Extract the first word of "objdump", so it can be a program name with args.
5450set dummy objdump; ac_word=$2
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452$as_echo_n "checking for $ac_word... " >&6; }
5453if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if test -n "$ac_ct_OBJDUMP"; then
5457  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462  IFS=$as_save_IFS
5463  test -z "$as_dir" && as_dir=.
5464    for ac_exec_ext in '' $ac_executable_extensions; do
5465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468    break 2
5469  fi
5470done
5471  done
5472IFS=$as_save_IFS
5473
5474fi
5475fi
5476ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5477if test -n "$ac_ct_OBJDUMP"; then
5478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5479$as_echo "$ac_ct_OBJDUMP" >&6; }
5480else
5481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
5483fi
5484
5485  if test "x$ac_ct_OBJDUMP" = x; then
5486    OBJDUMP="false"
5487  else
5488    case $cross_compiling:$ac_tool_warned in
5489yes:)
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492ac_tool_warned=yes ;;
5493esac
5494    OBJDUMP=$ac_ct_OBJDUMP
5495  fi
5496else
5497  OBJDUMP="$ac_cv_prog_OBJDUMP"
5498fi
5499
5500test -z "$OBJDUMP" && OBJDUMP=objdump
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5511$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5512if ${lt_cv_deplibs_check_method+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  lt_cv_file_magic_cmd='$MAGIC_CMD'
5516lt_cv_file_magic_test_file=
5517lt_cv_deplibs_check_method='unknown'
5518# Need to set the preceding variable on all platforms that support
5519# interlibrary dependencies.
5520# 'none' -- dependencies not supported.
5521# 'unknown' -- same as none, but documents that we really don't know.
5522# 'pass_all' -- all dependencies passed with no checks.
5523# 'test_compile' -- check by making test program.
5524# 'file_magic [[regex]]' -- check by looking for files in library path
5525# that responds to the $file_magic_cmd with a given extended regex.
5526# If you have 'file' or equivalent on your system and you're not sure
5527# whether 'pass_all' will *always* work, you probably want this one.
5528
5529case $host_os in
5530aix[4-9]*)
5531  lt_cv_deplibs_check_method=pass_all
5532  ;;
5533
5534beos*)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538bsdi[45]*)
5539  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5540  lt_cv_file_magic_cmd='/usr/bin/file -L'
5541  lt_cv_file_magic_test_file=/shlib/libc.so
5542  ;;
5543
5544cygwin*)
5545  # func_win32_libid is a shell function defined in ltmain.sh
5546  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5547  lt_cv_file_magic_cmd='func_win32_libid'
5548  ;;
5549
5550mingw* | pw32*)
5551  # Base MSYS/MinGW do not provide the 'file' command needed by
5552  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5553  # unless we find 'file', for example because we are cross-compiling.
5554  if ( file / ) >/dev/null 2>&1; then
5555    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5556    lt_cv_file_magic_cmd='func_win32_libid'
5557  else
5558    # Keep this pattern in sync with the one in func_win32_libid.
5559    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5560    lt_cv_file_magic_cmd='$OBJDUMP -f'
5561  fi
5562  ;;
5563
5564cegcc*)
5565  # use the weaker test based on 'objdump'. See mingw*.
5566  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5567  lt_cv_file_magic_cmd='$OBJDUMP -f'
5568  ;;
5569
5570darwin* | rhapsody*)
5571  lt_cv_deplibs_check_method=pass_all
5572  ;;
5573
5574freebsd* | dragonfly*)
5575  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5576    case $host_cpu in
5577    i*86 )
5578      # Not sure whether the presence of OpenBSD here was a mistake.
5579      # Let's accept both of them until this is cleared up.
5580      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5581      lt_cv_file_magic_cmd=/usr/bin/file
5582      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5583      ;;
5584    esac
5585  else
5586    lt_cv_deplibs_check_method=pass_all
5587  fi
5588  ;;
5589
5590haiku*)
5591  lt_cv_deplibs_check_method=pass_all
5592  ;;
5593
5594hpux10.20* | hpux11*)
5595  lt_cv_file_magic_cmd=/usr/bin/file
5596  case $host_cpu in
5597  ia64*)
5598    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5599    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5600    ;;
5601  hppa*64*)
5602    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]'
5603    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5604    ;;
5605  *)
5606    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5607    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5608    ;;
5609  esac
5610  ;;
5611
5612interix[3-9]*)
5613  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5614  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5615  ;;
5616
5617irix5* | irix6* | nonstopux*)
5618  case $LD in
5619  *-32|*"-32 ") libmagic=32-bit;;
5620  *-n32|*"-n32 ") libmagic=N32;;
5621  *-64|*"-64 ") libmagic=64-bit;;
5622  *) libmagic=never-match;;
5623  esac
5624  lt_cv_deplibs_check_method=pass_all
5625  ;;
5626
5627# This must be glibc/ELF.
5628linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5629  lt_cv_deplibs_check_method=pass_all
5630  ;;
5631
5632netbsd* | netbsdelf*-gnu)
5633  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5634    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5635  else
5636    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5637  fi
5638  ;;
5639
5640newos6*)
5641  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5642  lt_cv_file_magic_cmd=/usr/bin/file
5643  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5644  ;;
5645
5646*nto* | *qnx*)
5647  lt_cv_deplibs_check_method=pass_all
5648  ;;
5649
5650openbsd* | bitrig*)
5651  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5652    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5653  else
5654    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5655  fi
5656  ;;
5657
5658osf3* | osf4* | osf5*)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661
5662rdos*)
5663  lt_cv_deplibs_check_method=pass_all
5664  ;;
5665
5666solaris*)
5667  lt_cv_deplibs_check_method=pass_all
5668  ;;
5669
5670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674sysv4 | sysv4.3*)
5675  case $host_vendor in
5676  motorola)
5677    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]'
5678    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5679    ;;
5680  ncr)
5681    lt_cv_deplibs_check_method=pass_all
5682    ;;
5683  sequent)
5684    lt_cv_file_magic_cmd='/bin/file'
5685    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5686    ;;
5687  sni)
5688    lt_cv_file_magic_cmd='/bin/file'
5689    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5690    lt_cv_file_magic_test_file=/lib/libc.so
5691    ;;
5692  siemens)
5693    lt_cv_deplibs_check_method=pass_all
5694    ;;
5695  pc)
5696    lt_cv_deplibs_check_method=pass_all
5697    ;;
5698  esac
5699  ;;
5700
5701tpf*)
5702  lt_cv_deplibs_check_method=pass_all
5703  ;;
5704os2*)
5705  lt_cv_deplibs_check_method=pass_all
5706  ;;
5707esac
5708
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711$as_echo "$lt_cv_deplibs_check_method" >&6; }
5712
5713file_magic_glob=
5714want_nocaseglob=no
5715if test "$build" = "$host"; then
5716  case $host_os in
5717  mingw* | pw32*)
5718    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5719      want_nocaseglob=yes
5720    else
5721      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5722    fi
5723    ;;
5724  esac
5725fi
5726
5727file_magic_cmd=$lt_cv_file_magic_cmd
5728deplibs_check_method=$lt_cv_deplibs_check_method
5729test -z "$deplibs_check_method" && deplibs_check_method=unknown
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752if test -n "$ac_tool_prefix"; then
5753  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756$as_echo_n "checking for $ac_word... " >&6; }
5757if ${ac_cv_prog_DLLTOOL+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if test -n "$DLLTOOL"; then
5761  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768    for ac_exec_ext in '' $ac_executable_extensions; do
5769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775  done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780DLLTOOL=$ac_cv_prog_DLLTOOL
5781if test -n "$DLLTOOL"; then
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5783$as_echo "$DLLTOOL" >&6; }
5784else
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789
5790fi
5791if test -z "$ac_cv_prog_DLLTOOL"; then
5792  ac_ct_DLLTOOL=$DLLTOOL
5793  # Extract the first word of "dlltool", so it can be a program name with args.
5794set dummy dlltool; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  if test -n "$ac_ct_DLLTOOL"; then
5801  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806  IFS=$as_save_IFS
5807  test -z "$as_dir" && as_dir=.
5808    for ac_exec_ext in '' $ac_executable_extensions; do
5809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812    break 2
5813  fi
5814done
5815  done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5821if test -n "$ac_ct_DLLTOOL"; then
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5823$as_echo "$ac_ct_DLLTOOL" >&6; }
5824else
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829  if test "x$ac_ct_DLLTOOL" = x; then
5830    DLLTOOL="false"
5831  else
5832    case $cross_compiling:$ac_tool_warned in
5833yes:)
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836ac_tool_warned=yes ;;
5837esac
5838    DLLTOOL=$ac_ct_DLLTOOL
5839  fi
5840else
5841  DLLTOOL="$ac_cv_prog_DLLTOOL"
5842fi
5843
5844test -z "$DLLTOOL" && DLLTOOL=dlltool
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5856$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5857if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  lt_cv_sharedlib_from_linklib_cmd='unknown'
5861
5862case $host_os in
5863cygwin* | mingw* | pw32* | cegcc*)
5864  # two different shell functions defined in ltmain.sh;
5865  # decide which one to use based on capabilities of $DLLTOOL
5866  case `$DLLTOOL --help 2>&1` in
5867  *--identify-strict*)
5868    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5869    ;;
5870  *)
5871    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5872    ;;
5873  esac
5874  ;;
5875*)
5876  # fallback: assume linklib IS sharedlib
5877  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5878  ;;
5879esac
5880
5881fi
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5883$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5884sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5885test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5886
5887
5888
5889
5890
5891
5892
5893if test -n "$ac_tool_prefix"; then
5894  for ac_prog in ar
5895  do
5896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if ${ac_cv_prog_AR+:} false; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -n "$AR"; then
5904  ac_cv_prog_AR="$AR" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918  done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923AR=$ac_cv_prog_AR
5924if test -n "$AR"; then
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5926$as_echo "$AR" >&6; }
5927else
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933    test -n "$AR" && break
5934  done
5935fi
5936if test -z "$AR"; then
5937  ac_ct_AR=$AR
5938  for ac_prog in ar
5939do
5940  # Extract the first word of "$ac_prog", so it can be a program name with args.
5941set dummy $ac_prog; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if ${ac_cv_prog_ac_ct_AR+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$ac_ct_AR"; then
5948  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957    ac_cv_prog_ac_ct_AR="$ac_prog"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_AR=$ac_cv_prog_ac_ct_AR
5968if test -n "$ac_ct_AR"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5970$as_echo "$ac_ct_AR" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977  test -n "$ac_ct_AR" && break
5978done
5979
5980  if test "x$ac_ct_AR" = x; then
5981    AR="false"
5982  else
5983    case $cross_compiling:$ac_tool_warned in
5984yes:)
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987ac_tool_warned=yes ;;
5988esac
5989    AR=$ac_ct_AR
5990  fi
5991fi
5992
5993: ${AR=ar}
5994: ${AR_FLAGS=cru}
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6007$as_echo_n "checking for archiver @FILE support... " >&6; }
6008if ${lt_cv_ar_at_file+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  lt_cv_ar_at_file=no
6012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024  echo conftest.$ac_objext > conftest.lst
6025      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6026      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6027  (eval $lt_ar_try) 2>&5
6028  ac_status=$?
6029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030  test $ac_status = 0; }
6031      if test 0 -eq "$ac_status"; then
6032	# Ensure the archiver fails upon bogus file names.
6033	rm -f conftest.$ac_objext libconftest.a
6034	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6035  (eval $lt_ar_try) 2>&5
6036  ac_status=$?
6037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038  test $ac_status = 0; }
6039	if test 0 -ne "$ac_status"; then
6040          lt_cv_ar_at_file=@
6041        fi
6042      fi
6043      rm -f conftest.* libconftest.a
6044
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6050$as_echo "$lt_cv_ar_at_file" >&6; }
6051
6052if test no = "$lt_cv_ar_at_file"; then
6053  archiver_list_spec=
6054else
6055  archiver_list_spec=$lt_cv_ar_at_file
6056fi
6057
6058
6059
6060
6061
6062
6063
6064if test -n "$ac_tool_prefix"; then
6065  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6066set dummy ${ac_tool_prefix}strip; ac_word=$2
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
6069if ${ac_cv_prog_STRIP+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  if test -n "$STRIP"; then
6073  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078  IFS=$as_save_IFS
6079  test -z "$as_dir" && as_dir=.
6080    for ac_exec_ext in '' $ac_executable_extensions; do
6081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084    break 2
6085  fi
6086done
6087  done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092STRIP=$ac_cv_prog_STRIP
6093if test -n "$STRIP"; then
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6095$as_echo "$STRIP" >&6; }
6096else
6097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101
6102fi
6103if test -z "$ac_cv_prog_STRIP"; then
6104  ac_ct_STRIP=$STRIP
6105  # Extract the first word of "strip", so it can be a program name with args.
6106set dummy strip; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  if test -n "$ac_ct_STRIP"; then
6113  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120    for ac_exec_ext in '' $ac_executable_extensions; do
6121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122    ac_cv_prog_ac_ct_STRIP="strip"
6123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127  done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6133if test -n "$ac_ct_STRIP"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6135$as_echo "$ac_ct_STRIP" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141  if test "x$ac_ct_STRIP" = x; then
6142    STRIP=":"
6143  else
6144    case $cross_compiling:$ac_tool_warned in
6145yes:)
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6148ac_tool_warned=yes ;;
6149esac
6150    STRIP=$ac_ct_STRIP
6151  fi
6152else
6153  STRIP="$ac_cv_prog_STRIP"
6154fi
6155
6156test -z "$STRIP" && STRIP=:
6157
6158
6159
6160
6161
6162
6163if test -n "$ac_tool_prefix"; then
6164  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6165set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if ${ac_cv_prog_RANLIB+:} false; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  if test -n "$RANLIB"; then
6172  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179    for ac_exec_ext in '' $ac_executable_extensions; do
6180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186  done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191RANLIB=$ac_cv_prog_RANLIB
6192if test -n "$RANLIB"; then
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6194$as_echo "$RANLIB" >&6; }
6195else
6196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200
6201fi
6202if test -z "$ac_cv_prog_RANLIB"; then
6203  ac_ct_RANLIB=$RANLIB
6204  # Extract the first word of "ranlib", so it can be a program name with args.
6205set dummy ranlib; ac_word=$2
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  if test -n "$ac_ct_RANLIB"; then
6212  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217  IFS=$as_save_IFS
6218  test -z "$as_dir" && as_dir=.
6219    for ac_exec_ext in '' $ac_executable_extensions; do
6220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221    ac_cv_prog_ac_ct_RANLIB="ranlib"
6222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226  done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6232if test -n "$ac_ct_RANLIB"; then
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6234$as_echo "$ac_ct_RANLIB" >&6; }
6235else
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240  if test "x$ac_ct_RANLIB" = x; then
6241    RANLIB=":"
6242  else
6243    case $cross_compiling:$ac_tool_warned in
6244yes:)
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247ac_tool_warned=yes ;;
6248esac
6249    RANLIB=$ac_ct_RANLIB
6250  fi
6251else
6252  RANLIB="$ac_cv_prog_RANLIB"
6253fi
6254
6255test -z "$RANLIB" && RANLIB=:
6256
6257
6258
6259
6260
6261
6262# Determine commands to create old-style static archives.
6263old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6264old_postinstall_cmds='chmod 644 $oldlib'
6265old_postuninstall_cmds=
6266
6267if test -n "$RANLIB"; then
6268  case $host_os in
6269  bitrig* | openbsd*)
6270    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6271    ;;
6272  *)
6273    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6274    ;;
6275  esac
6276  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6277fi
6278
6279case $host_os in
6280  darwin*)
6281    lock_old_archive_extraction=yes ;;
6282  *)
6283    lock_old_archive_extraction=no ;;
6284esac
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324# If no C compiler was specified, use CC.
6325LTCC=${LTCC-"$CC"}
6326
6327# If no C compiler flags were specified, use CFLAGS.
6328LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6329
6330# Allow CC to be a program name with arguments.
6331compiler=$CC
6332
6333
6334# Check for command to grab the raw symbol name followed by C symbol from nm.
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6336$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6337if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340
6341# These are sane defaults that work on at least a few old systems.
6342# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6343
6344# Character class describing NM global symbol codes.
6345symcode='[BCDEGRST]'
6346
6347# Regexp to match symbols that can be accessed directly from C.
6348sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6349
6350# Define system-specific variables.
6351case $host_os in
6352aix*)
6353  symcode='[BCDT]'
6354  ;;
6355cygwin* | mingw* | pw32* | cegcc*)
6356  symcode='[ABCDGISTW]'
6357  ;;
6358hpux*)
6359  if test ia64 = "$host_cpu"; then
6360    symcode='[ABCDEGRST]'
6361  fi
6362  ;;
6363irix* | nonstopux*)
6364  symcode='[BCDEGRST]'
6365  ;;
6366osf*)
6367  symcode='[BCDEGQRST]'
6368  ;;
6369solaris*)
6370  symcode='[BDRT]'
6371  ;;
6372sco3.2v5*)
6373  symcode='[DT]'
6374  ;;
6375sysv4.2uw2*)
6376  symcode='[DT]'
6377  ;;
6378sysv5* | sco5v6* | unixware* | OpenUNIX*)
6379  symcode='[ABDT]'
6380  ;;
6381sysv4)
6382  symcode='[DFNSTU]'
6383  ;;
6384esac
6385
6386# If we're using GNU nm, then use its standard symbol codes.
6387case `$NM -V 2>&1` in
6388*GNU* | *'with BFD'*)
6389  symcode='[ABCDGIRSTW]' ;;
6390esac
6391
6392if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6393  # Gets list of data symbols to import.
6394  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6395  # Adjust the below global symbol transforms to fixup imported variables.
6396  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6397  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6398  lt_c_name_lib_hook="\
6399  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6400  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6401else
6402  # Disable hooks by default.
6403  lt_cv_sys_global_symbol_to_import=
6404  lt_cdecl_hook=
6405  lt_c_name_hook=
6406  lt_c_name_lib_hook=
6407fi
6408
6409# Transform an extracted symbol line into a proper C declaration.
6410# Some systems (esp. on ia64) link data and code symbols differently,
6411# so use this general approach.
6412lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6413$lt_cdecl_hook\
6414" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6415" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6416
6417# Transform an extracted symbol line into symbol name and symbol address
6418lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6419$lt_c_name_hook\
6420" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6421" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6422
6423# Transform an extracted symbol line into symbol name with lib prefix and
6424# symbol address.
6425lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6426$lt_c_name_lib_hook\
6427" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6428" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6429" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6430
6431# Handle CRLF in mingw tool chain
6432opt_cr=
6433case $build_os in
6434mingw*)
6435  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6436  ;;
6437esac
6438
6439# Try without a prefix underscore, then with it.
6440for ac_symprfx in "" "_"; do
6441
6442  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6443  symxfrm="\\1 $ac_symprfx\\2 \\2"
6444
6445  # Write the raw and C identifiers.
6446  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6447    # Fake it for dumpbin and say T for any non-static function,
6448    # D for any global variable and I for any imported variable.
6449    # Also find C++ and __fastcall symbols from MSVC++,
6450    # which start with @ or ?.
6451    lt_cv_sys_global_symbol_pipe="$AWK '"\
6452"     {last_section=section; section=\$ 3};"\
6453"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6454"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6455"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6456"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6457"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6458"     \$ 0!~/External *\|/{next};"\
6459"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6460"     {if(hide[section]) next};"\
6461"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6462"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6463"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6464"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6465"     ' prfx=^$ac_symprfx"
6466  else
6467    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6468  fi
6469  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6470
6471  # Check to see that the pipe works correctly.
6472  pipe_works=no
6473
6474  rm -f conftest*
6475  cat > conftest.$ac_ext <<_LT_EOF
6476#ifdef __cplusplus
6477extern "C" {
6478#endif
6479char nm_test_var;
6480void nm_test_func(void);
6481void nm_test_func(void){}
6482#ifdef __cplusplus
6483}
6484#endif
6485int main(){nm_test_var='a';nm_test_func();return(0);}
6486_LT_EOF
6487
6488  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6489  (eval $ac_compile) 2>&5
6490  ac_status=$?
6491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492  test $ac_status = 0; }; then
6493    # Now try to grab the symbols.
6494    nlist=conftest.nm
6495    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6496  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6497  ac_status=$?
6498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499  test $ac_status = 0; } && test -s "$nlist"; then
6500      # Try sorting and uniquifying the output.
6501      if sort "$nlist" | uniq > "$nlist"T; then
6502	mv -f "$nlist"T "$nlist"
6503      else
6504	rm -f "$nlist"T
6505      fi
6506
6507      # Make sure that we snagged all the symbols we need.
6508      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6509	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6510	  cat <<_LT_EOF > conftest.$ac_ext
6511/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6512#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6513/* DATA imports from DLLs on WIN32 can't be const, because runtime
6514   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6515# define LT_DLSYM_CONST
6516#elif defined __osf__
6517/* This system does not cope well with relocations in const data.  */
6518# define LT_DLSYM_CONST
6519#else
6520# define LT_DLSYM_CONST const
6521#endif
6522
6523#ifdef __cplusplus
6524extern "C" {
6525#endif
6526
6527_LT_EOF
6528	  # Now generate the symbol file.
6529	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6530
6531	  cat <<_LT_EOF >> conftest.$ac_ext
6532
6533/* The mapping between symbol names and symbols.  */
6534LT_DLSYM_CONST struct {
6535  const char *name;
6536  void       *address;
6537}
6538lt__PROGRAM__LTX_preloaded_symbols[] =
6539{
6540  { "@PROGRAM@", (void *) 0 },
6541_LT_EOF
6542	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6543	  cat <<\_LT_EOF >> conftest.$ac_ext
6544  {0, (void *) 0}
6545};
6546
6547/* This works around a problem in FreeBSD linker */
6548#ifdef FREEBSD_WORKAROUND
6549static const void *lt_preloaded_setup() {
6550  return lt__PROGRAM__LTX_preloaded_symbols;
6551}
6552#endif
6553
6554#ifdef __cplusplus
6555}
6556#endif
6557_LT_EOF
6558	  # Now try linking the two files.
6559	  mv conftest.$ac_objext conftstm.$ac_objext
6560	  lt_globsym_save_LIBS=$LIBS
6561	  lt_globsym_save_CFLAGS=$CFLAGS
6562	  LIBS=conftstm.$ac_objext
6563	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6564	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6565  (eval $ac_link) 2>&5
6566  ac_status=$?
6567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6569	    pipe_works=yes
6570	  fi
6571	  LIBS=$lt_globsym_save_LIBS
6572	  CFLAGS=$lt_globsym_save_CFLAGS
6573	else
6574	  echo "cannot find nm_test_func in $nlist" >&5
6575	fi
6576      else
6577	echo "cannot find nm_test_var in $nlist" >&5
6578      fi
6579    else
6580      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6581    fi
6582  else
6583    echo "$progname: failed program was:" >&5
6584    cat conftest.$ac_ext >&5
6585  fi
6586  rm -rf conftest* conftst*
6587
6588  # Do not use the global_symbol_pipe unless it works.
6589  if test yes = "$pipe_works"; then
6590    break
6591  else
6592    lt_cv_sys_global_symbol_pipe=
6593  fi
6594done
6595
6596fi
6597
6598if test -z "$lt_cv_sys_global_symbol_pipe"; then
6599  lt_cv_sys_global_symbol_to_cdecl=
6600fi
6601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6603$as_echo "failed" >&6; }
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6606$as_echo "ok" >&6; }
6607fi
6608
6609# Response file support.
6610if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6611  nm_file_list_spec='@'
6612elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6613  nm_file_list_spec='@'
6614fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6653$as_echo_n "checking for sysroot... " >&6; }
6654
6655# Check whether --with-sysroot was given.
6656if test "${with_sysroot+set}" = set; then :
6657  withval=$with_sysroot;
6658else
6659  with_sysroot=no
6660fi
6661
6662
6663lt_sysroot=
6664case $with_sysroot in #(
6665 yes)
6666   if test yes = "$GCC"; then
6667     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6668   fi
6669   ;; #(
6670 /*)
6671   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6672   ;; #(
6673 no|'')
6674   ;; #(
6675 *)
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6677$as_echo "$with_sysroot" >&6; }
6678   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6679   ;;
6680esac
6681
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6683$as_echo "${lt_sysroot:-no}" >&6; }
6684
6685
6686
6687
6688
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6690$as_echo_n "checking for a working dd... " >&6; }
6691if ${ac_cv_path_lt_DD+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  printf 0123456789abcdef0123456789abcdef >conftest.i
6695cat conftest.i conftest.i >conftest2.i
6696: ${lt_DD:=$DD}
6697if test -z "$lt_DD"; then
6698  ac_path_lt_DD_found=false
6699  # Loop through the user's path and test for each of PROGNAME-LIST
6700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705    for ac_prog in dd; do
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6708      as_fn_executable_p "$ac_path_lt_DD" || continue
6709if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6710  cmp -s conftest.i conftest.out \
6711  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6712fi
6713      $ac_path_lt_DD_found && break 3
6714    done
6715  done
6716  done
6717IFS=$as_save_IFS
6718  if test -z "$ac_cv_path_lt_DD"; then
6719    :
6720  fi
6721else
6722  ac_cv_path_lt_DD=$lt_DD
6723fi
6724
6725rm -f conftest.i conftest2.i conftest.out
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6728$as_echo "$ac_cv_path_lt_DD" >&6; }
6729
6730
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6732$as_echo_n "checking how to truncate binary pipes... " >&6; }
6733if ${lt_cv_truncate_bin+:} false; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  printf 0123456789abcdef0123456789abcdef >conftest.i
6737cat conftest.i conftest.i >conftest2.i
6738lt_cv_truncate_bin=
6739if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6740  cmp -s conftest.i conftest.out \
6741  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6742fi
6743rm -f conftest.i conftest2.i conftest.out
6744test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6747$as_echo "$lt_cv_truncate_bin" >&6; }
6748
6749
6750
6751
6752
6753
6754
6755# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6756func_cc_basename ()
6757{
6758    for cc_temp in $*""; do
6759      case $cc_temp in
6760        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6761        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6762        \-*) ;;
6763        *) break;;
6764      esac
6765    done
6766    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6767}
6768
6769# Check whether --enable-libtool-lock was given.
6770if test "${enable_libtool_lock+set}" = set; then :
6771  enableval=$enable_libtool_lock;
6772fi
6773
6774test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6775
6776# Some flags need to be propagated to the compiler or linker for good
6777# libtool support.
6778case $host in
6779ia64-*-hpux*)
6780  # Find out what ABI is being produced by ac_compile, and set mode
6781  # options accordingly.
6782  echo 'int i;' > conftest.$ac_ext
6783  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6784  (eval $ac_compile) 2>&5
6785  ac_status=$?
6786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787  test $ac_status = 0; }; then
6788    case `/usr/bin/file conftest.$ac_objext` in
6789      *ELF-32*)
6790	HPUX_IA64_MODE=32
6791	;;
6792      *ELF-64*)
6793	HPUX_IA64_MODE=64
6794	;;
6795    esac
6796  fi
6797  rm -rf conftest*
6798  ;;
6799*-*-irix6*)
6800  # Find out what ABI is being produced by ac_compile, and set linker
6801  # options accordingly.
6802  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6803  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804  (eval $ac_compile) 2>&5
6805  ac_status=$?
6806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807  test $ac_status = 0; }; then
6808    if test yes = "$lt_cv_prog_gnu_ld"; then
6809      case `/usr/bin/file conftest.$ac_objext` in
6810	*32-bit*)
6811	  LD="${LD-ld} -melf32bsmip"
6812	  ;;
6813	*N32*)
6814	  LD="${LD-ld} -melf32bmipn32"
6815	  ;;
6816	*64-bit*)
6817	  LD="${LD-ld} -melf64bmip"
6818	;;
6819      esac
6820    else
6821      case `/usr/bin/file conftest.$ac_objext` in
6822	*32-bit*)
6823	  LD="${LD-ld} -32"
6824	  ;;
6825	*N32*)
6826	  LD="${LD-ld} -n32"
6827	  ;;
6828	*64-bit*)
6829	  LD="${LD-ld} -64"
6830	  ;;
6831      esac
6832    fi
6833  fi
6834  rm -rf conftest*
6835  ;;
6836
6837mips64*-*linux*)
6838  # Find out what ABI is being produced by ac_compile, and set linker
6839  # options accordingly.
6840  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6841  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842  (eval $ac_compile) 2>&5
6843  ac_status=$?
6844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845  test $ac_status = 0; }; then
6846    emul=elf
6847    case `/usr/bin/file conftest.$ac_objext` in
6848      *32-bit*)
6849	emul="${emul}32"
6850	;;
6851      *64-bit*)
6852	emul="${emul}64"
6853	;;
6854    esac
6855    case `/usr/bin/file conftest.$ac_objext` in
6856      *MSB*)
6857	emul="${emul}btsmip"
6858	;;
6859      *LSB*)
6860	emul="${emul}ltsmip"
6861	;;
6862    esac
6863    case `/usr/bin/file conftest.$ac_objext` in
6864      *N32*)
6865	emul="${emul}n32"
6866	;;
6867    esac
6868    LD="${LD-ld} -m $emul"
6869  fi
6870  rm -rf conftest*
6871  ;;
6872
6873x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6874s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6875  # Find out what ABI is being produced by ac_compile, and set linker
6876  # options accordingly.  Note that the listed cases only cover the
6877  # situations where additional linker options are needed (such as when
6878  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6879  # vice versa); the common cases where no linker options are needed do
6880  # not appear in the list.
6881  echo 'int i;' > conftest.$ac_ext
6882  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883  (eval $ac_compile) 2>&5
6884  ac_status=$?
6885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886  test $ac_status = 0; }; then
6887    case `/usr/bin/file conftest.o` in
6888      *32-bit*)
6889	case $host in
6890	  x86_64-*kfreebsd*-gnu)
6891	    LD="${LD-ld} -m elf_i386_fbsd"
6892	    ;;
6893	  x86_64-*linux*)
6894	    case `/usr/bin/file conftest.o` in
6895	      *x86-64*)
6896		LD="${LD-ld} -m elf32_x86_64"
6897		;;
6898	      *)
6899		LD="${LD-ld} -m elf_i386"
6900		;;
6901	    esac
6902	    ;;
6903	  powerpc64le-*linux*)
6904	    LD="${LD-ld} -m elf32lppclinux"
6905	    ;;
6906	  powerpc64-*linux*)
6907	    LD="${LD-ld} -m elf32ppclinux"
6908	    ;;
6909	  s390x-*linux*)
6910	    LD="${LD-ld} -m elf_s390"
6911	    ;;
6912	  sparc64-*linux*)
6913	    LD="${LD-ld} -m elf32_sparc"
6914	    ;;
6915	esac
6916	;;
6917      *64-bit*)
6918	case $host in
6919	  x86_64-*kfreebsd*-gnu)
6920	    LD="${LD-ld} -m elf_x86_64_fbsd"
6921	    ;;
6922	  x86_64-*linux*)
6923	    LD="${LD-ld} -m elf_x86_64"
6924	    ;;
6925	  powerpcle-*linux*)
6926	    LD="${LD-ld} -m elf64lppc"
6927	    ;;
6928	  powerpc-*linux*)
6929	    LD="${LD-ld} -m elf64ppc"
6930	    ;;
6931	  s390*-*linux*|s390*-*tpf*)
6932	    LD="${LD-ld} -m elf64_s390"
6933	    ;;
6934	  sparc*-*linux*)
6935	    LD="${LD-ld} -m elf64_sparc"
6936	    ;;
6937	esac
6938	;;
6939    esac
6940  fi
6941  rm -rf conftest*
6942  ;;
6943
6944*-*-sco3.2v5*)
6945  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6946  SAVE_CFLAGS=$CFLAGS
6947  CFLAGS="$CFLAGS -belf"
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6949$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6950if ${lt_cv_cc_needs_belf+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  ac_ext=c
6954ac_cpp='$CPP $CPPFLAGS'
6955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958
6959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961
6962int
6963main ()
6964{
6965
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970if ac_fn_c_try_link "$LINENO"; then :
6971  lt_cv_cc_needs_belf=yes
6972else
6973  lt_cv_cc_needs_belf=no
6974fi
6975rm -f core conftest.err conftest.$ac_objext \
6976    conftest$ac_exeext conftest.$ac_ext
6977     ac_ext=c
6978ac_cpp='$CPP $CPPFLAGS'
6979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6985$as_echo "$lt_cv_cc_needs_belf" >&6; }
6986  if test yes != "$lt_cv_cc_needs_belf"; then
6987    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6988    CFLAGS=$SAVE_CFLAGS
6989  fi
6990  ;;
6991*-*solaris*)
6992  # Find out what ABI is being produced by ac_compile, and set linker
6993  # options accordingly.
6994  echo 'int i;' > conftest.$ac_ext
6995  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996  (eval $ac_compile) 2>&5
6997  ac_status=$?
6998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999  test $ac_status = 0; }; then
7000    case `/usr/bin/file conftest.o` in
7001    *64-bit*)
7002      case $lt_cv_prog_gnu_ld in
7003      yes*)
7004        case $host in
7005        i?86-*-solaris*|x86_64-*-solaris*)
7006          LD="${LD-ld} -m elf_x86_64"
7007          ;;
7008        sparc*-*-solaris*)
7009          LD="${LD-ld} -m elf64_sparc"
7010          ;;
7011        esac
7012        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7013        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7014          LD=${LD-ld}_sol2
7015        fi
7016        ;;
7017      *)
7018	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7019	  LD="${LD-ld} -64"
7020	fi
7021	;;
7022      esac
7023      ;;
7024    esac
7025  fi
7026  rm -rf conftest*
7027  ;;
7028esac
7029
7030need_locks=$enable_libtool_lock
7031
7032if test -n "$ac_tool_prefix"; then
7033  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}mt; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  if test -n "$MANIFEST_TOOL"; then
7041  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046  IFS=$as_save_IFS
7047  test -z "$as_dir" && as_dir=.
7048    for ac_exec_ext in '' $ac_executable_extensions; do
7049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052    break 2
7053  fi
7054done
7055  done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7061if test -n "$MANIFEST_TOOL"; then
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7063$as_echo "$MANIFEST_TOOL" >&6; }
7064else
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069
7070fi
7071if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7072  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7073  # Extract the first word of "mt", so it can be a program name with args.
7074set dummy mt; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$ac_ct_MANIFEST_TOOL"; then
7081  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088    for ac_exec_ext in '' $ac_executable_extensions; do
7089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095  done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7101if test -n "$ac_ct_MANIFEST_TOOL"; then
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7103$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7104else
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7110    MANIFEST_TOOL=":"
7111  else
7112    case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7119  fi
7120else
7121  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7122fi
7123
7124test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7126$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7127if ${lt_cv_path_mainfest_tool+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  lt_cv_path_mainfest_tool=no
7131  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7132  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7133  cat conftest.err >&5
7134  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7135    lt_cv_path_mainfest_tool=yes
7136  fi
7137  rm -f conftest*
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7140$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7141if test yes != "$lt_cv_path_mainfest_tool"; then
7142  MANIFEST_TOOL=:
7143fi
7144
7145
7146
7147
7148
7149
7150  case $host_os in
7151    rhapsody* | darwin*)
7152    if test -n "$ac_tool_prefix"; then
7153  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$DSYMUTIL"; then
7161  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
7180DSYMUTIL=$ac_cv_prog_DSYMUTIL
7181if test -n "$DSYMUTIL"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7183$as_echo "$DSYMUTIL" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189
7190fi
7191if test -z "$ac_cv_prog_DSYMUTIL"; then
7192  ac_ct_DSYMUTIL=$DSYMUTIL
7193  # Extract the first word of "dsymutil", so it can be a program name with args.
7194set dummy dsymutil; ac_word=$2
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$ac_ct_DSYMUTIL"; then
7201  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221if test -n "$ac_ct_DSYMUTIL"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7223$as_echo "$ac_ct_DSYMUTIL" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229  if test "x$ac_ct_DSYMUTIL" = x; then
7230    DSYMUTIL=":"
7231  else
7232    case $cross_compiling:$ac_tool_warned in
7233yes:)
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236ac_tool_warned=yes ;;
7237esac
7238    DSYMUTIL=$ac_ct_DSYMUTIL
7239  fi
7240else
7241  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7242fi
7243
7244    if test -n "$ac_tool_prefix"; then
7245  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7246set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if ${ac_cv_prog_NMEDIT+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  if test -n "$NMEDIT"; then
7253  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258  IFS=$as_save_IFS
7259  test -z "$as_dir" && as_dir=.
7260    for ac_exec_ext in '' $ac_executable_extensions; do
7261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264    break 2
7265  fi
7266done
7267  done
7268IFS=$as_save_IFS
7269
7270fi
7271fi
7272NMEDIT=$ac_cv_prog_NMEDIT
7273if test -n "$NMEDIT"; then
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7275$as_echo "$NMEDIT" >&6; }
7276else
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
7279fi
7280
7281
7282fi
7283if test -z "$ac_cv_prog_NMEDIT"; then
7284  ac_ct_NMEDIT=$NMEDIT
7285  # Extract the first word of "nmedit", so it can be a program name with args.
7286set dummy nmedit; ac_word=$2
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$ac_ct_NMEDIT"; then
7293  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313if test -n "$ac_ct_NMEDIT"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315$as_echo "$ac_ct_NMEDIT" >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321  if test "x$ac_ct_NMEDIT" = x; then
7322    NMEDIT=":"
7323  else
7324    case $cross_compiling:$ac_tool_warned in
7325yes:)
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328ac_tool_warned=yes ;;
7329esac
7330    NMEDIT=$ac_ct_NMEDIT
7331  fi
7332else
7333  NMEDIT="$ac_cv_prog_NMEDIT"
7334fi
7335
7336    if test -n "$ac_tool_prefix"; then
7337  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7338set dummy ${ac_tool_prefix}lipo; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if ${ac_cv_prog_LIPO+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$LIPO"; then
7345  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364LIPO=$ac_cv_prog_LIPO
7365if test -n "$LIPO"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7367$as_echo "$LIPO" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373
7374fi
7375if test -z "$ac_cv_prog_LIPO"; then
7376  ac_ct_LIPO=$LIPO
7377  # Extract the first word of "lipo", so it can be a program name with args.
7378set dummy lipo; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$ac_ct_LIPO"; then
7385  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394    ac_cv_prog_ac_ct_LIPO="lipo"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7405if test -n "$ac_ct_LIPO"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7407$as_echo "$ac_ct_LIPO" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413  if test "x$ac_ct_LIPO" = x; then
7414    LIPO=":"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    LIPO=$ac_ct_LIPO
7423  fi
7424else
7425  LIPO="$ac_cv_prog_LIPO"
7426fi
7427
7428    if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}otool; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_OTOOL+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$OTOOL"; then
7437  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456OTOOL=$ac_cv_prog_OTOOL
7457if test -n "$OTOOL"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7459$as_echo "$OTOOL" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465
7466fi
7467if test -z "$ac_cv_prog_OTOOL"; then
7468  ac_ct_OTOOL=$OTOOL
7469  # Extract the first word of "otool", so it can be a program name with args.
7470set dummy otool; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$ac_ct_OTOOL"; then
7477  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_ac_ct_OTOOL="otool"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7497if test -n "$ac_ct_OTOOL"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7499$as_echo "$ac_ct_OTOOL" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505  if test "x$ac_ct_OTOOL" = x; then
7506    OTOOL=":"
7507  else
7508    case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514    OTOOL=$ac_ct_OTOOL
7515  fi
7516else
7517  OTOOL="$ac_cv_prog_OTOOL"
7518fi
7519
7520    if test -n "$ac_tool_prefix"; then
7521  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}otool64; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if ${ac_cv_prog_OTOOL64+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$OTOOL64"; then
7529  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548OTOOL64=$ac_cv_prog_OTOOL64
7549if test -n "$OTOOL64"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7551$as_echo "$OTOOL64" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558fi
7559if test -z "$ac_cv_prog_OTOOL64"; then
7560  ac_ct_OTOOL64=$OTOOL64
7561  # Extract the first word of "otool64", so it can be a program name with args.
7562set dummy otool64; ac_word=$2
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
7565if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  if test -n "$ac_ct_OTOOL64"; then
7569  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574  IFS=$as_save_IFS
7575  test -z "$as_dir" && as_dir=.
7576    for ac_exec_ext in '' $ac_executable_extensions; do
7577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578    ac_cv_prog_ac_ct_OTOOL64="otool64"
7579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580    break 2
7581  fi
7582done
7583  done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7589if test -n "$ac_ct_OTOOL64"; then
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7591$as_echo "$ac_ct_OTOOL64" >&6; }
7592else
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597  if test "x$ac_ct_OTOOL64" = x; then
7598    OTOOL64=":"
7599  else
7600    case $cross_compiling:$ac_tool_warned in
7601yes:)
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604ac_tool_warned=yes ;;
7605esac
7606    OTOOL64=$ac_ct_OTOOL64
7607  fi
7608else
7609  OTOOL64="$ac_cv_prog_OTOOL64"
7610fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7639$as_echo_n "checking for -single_module linker flag... " >&6; }
7640if ${lt_cv_apple_cc_single_mod+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  lt_cv_apple_cc_single_mod=no
7644      if test -z "$LT_MULTI_MODULE"; then
7645	# By default we will add the -single_module flag. You can override
7646	# by either setting the environment variable LT_MULTI_MODULE
7647	# non-empty at configure time, or by adding -multi_module to the
7648	# link flags.
7649	rm -rf libconftest.dylib*
7650	echo "int foo(void){return 1;}" > conftest.c
7651	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7652-dynamiclib -Wl,-single_module conftest.c" >&5
7653	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7654	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7655        _lt_result=$?
7656	# If there is a non-empty error log, and "single_module"
7657	# appears in it, assume the flag caused a linker warning
7658        if test -s conftest.err && $GREP single_module conftest.err; then
7659	  cat conftest.err >&5
7660	# Otherwise, if the output was created with a 0 exit code from
7661	# the compiler, it worked.
7662	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7663	  lt_cv_apple_cc_single_mod=yes
7664	else
7665	  cat conftest.err >&5
7666	fi
7667	rm -rf libconftest.dylib*
7668	rm -f conftest.*
7669      fi
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7672$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7673
7674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7675$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7676if ${lt_cv_ld_exported_symbols_list+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  lt_cv_ld_exported_symbols_list=no
7680      save_LDFLAGS=$LDFLAGS
7681      echo "_main" > conftest.sym
7682      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7683      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685
7686int
7687main ()
7688{
7689
7690  ;
7691  return 0;
7692}
7693_ACEOF
7694if ac_fn_c_try_link "$LINENO"; then :
7695  lt_cv_ld_exported_symbols_list=yes
7696else
7697  lt_cv_ld_exported_symbols_list=no
7698fi
7699rm -f core conftest.err conftest.$ac_objext \
7700    conftest$ac_exeext conftest.$ac_ext
7701	LDFLAGS=$save_LDFLAGS
7702
7703fi
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7705$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7706
7707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7708$as_echo_n "checking for -force_load linker flag... " >&6; }
7709if ${lt_cv_ld_force_load+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  lt_cv_ld_force_load=no
7713      cat > conftest.c << _LT_EOF
7714int forced_loaded() { return 2;}
7715_LT_EOF
7716      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7717      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7718      echo "$AR cru libconftest.a conftest.o" >&5
7719      $AR cru libconftest.a conftest.o 2>&5
7720      echo "$RANLIB libconftest.a" >&5
7721      $RANLIB libconftest.a 2>&5
7722      cat > conftest.c << _LT_EOF
7723int main() { return 0;}
7724_LT_EOF
7725      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7726      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7727      _lt_result=$?
7728      if test -s conftest.err && $GREP force_load conftest.err; then
7729	cat conftest.err >&5
7730      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7731	lt_cv_ld_force_load=yes
7732      else
7733	cat conftest.err >&5
7734      fi
7735        rm -f conftest.err libconftest.a conftest conftest.c
7736        rm -rf conftest.dSYM
7737
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7740$as_echo "$lt_cv_ld_force_load" >&6; }
7741    case $host_os in
7742    rhapsody* | darwin1.[012])
7743      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7744    darwin1.*)
7745      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7746    darwin*) # darwin 5.x on
7747      # if running on 10.5 or later, the deployment target defaults
7748      # to the OS version, if on x86, and 10.4, the deployment
7749      # target defaults to 10.4. Don't you love it?
7750      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7751	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7752	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7753	10.[012][,.]*)
7754	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7755	10.*)
7756	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7757      esac
7758    ;;
7759  esac
7760    if test yes = "$lt_cv_apple_cc_single_mod"; then
7761      _lt_dar_single_mod='$single_module'
7762    fi
7763    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7764      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7765    else
7766      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7767    fi
7768    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7769      _lt_dsymutil='~$DSYMUTIL $lib || :'
7770    else
7771      _lt_dsymutil=
7772    fi
7773    ;;
7774  esac
7775
7776# func_munge_path_list VARIABLE PATH
7777# -----------------------------------
7778# VARIABLE is name of variable containing _space_ separated list of
7779# directories to be munged by the contents of PATH, which is string
7780# having a format:
7781# "DIR[:DIR]:"
7782#       string "DIR[ DIR]" will be prepended to VARIABLE
7783# ":DIR[:DIR]"
7784#       string "DIR[ DIR]" will be appended to VARIABLE
7785# "DIRP[:DIRP]::[DIRA:]DIRA"
7786#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7787#       "DIRA[ DIRA]" will be appended to VARIABLE
7788# "DIR[:DIR]"
7789#       VARIABLE will be replaced by "DIR[ DIR]"
7790func_munge_path_list ()
7791{
7792    case x$2 in
7793    x)
7794        ;;
7795    *:)
7796        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7797        ;;
7798    x:*)
7799        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7800        ;;
7801    *::*)
7802        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7803        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7804        ;;
7805    *)
7806        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7807        ;;
7808    esac
7809}
7810
7811for ac_header in dlfcn.h
7812do :
7813  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7814"
7815if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7816  cat >>confdefs.h <<_ACEOF
7817#define HAVE_DLFCN_H 1
7818_ACEOF
7819
7820fi
7821
7822done
7823
7824
7825
7826
7827
7828# Set options
7829
7830
7831
7832        enable_dlopen=no
7833
7834
7835  enable_win32_dll=no
7836
7837
7838            # Check whether --enable-shared was given.
7839if test "${enable_shared+set}" = set; then :
7840  enableval=$enable_shared; p=${PACKAGE-default}
7841    case $enableval in
7842    yes) enable_shared=yes ;;
7843    no) enable_shared=no ;;
7844    *)
7845      enable_shared=no
7846      # Look at the argument we got.  We use all the common list separators.
7847      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7848      for pkg in $enableval; do
7849	IFS=$lt_save_ifs
7850	if test "X$pkg" = "X$p"; then
7851	  enable_shared=yes
7852	fi
7853      done
7854      IFS=$lt_save_ifs
7855      ;;
7856    esac
7857else
7858  enable_shared=yes
7859fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869  # Check whether --enable-static was given.
7870if test "${enable_static+set}" = set; then :
7871  enableval=$enable_static; p=${PACKAGE-default}
7872    case $enableval in
7873    yes) enable_static=yes ;;
7874    no) enable_static=no ;;
7875    *)
7876     enable_static=no
7877      # Look at the argument we got.  We use all the common list separators.
7878      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7879      for pkg in $enableval; do
7880	IFS=$lt_save_ifs
7881	if test "X$pkg" = "X$p"; then
7882	  enable_static=yes
7883	fi
7884      done
7885      IFS=$lt_save_ifs
7886      ;;
7887    esac
7888else
7889  enable_static=yes
7890fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901# Check whether --with-pic was given.
7902if test "${with_pic+set}" = set; then :
7903  withval=$with_pic; lt_p=${PACKAGE-default}
7904    case $withval in
7905    yes|no) pic_mode=$withval ;;
7906    *)
7907      pic_mode=default
7908      # Look at the argument we got.  We use all the common list separators.
7909      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7910      for lt_pkg in $withval; do
7911	IFS=$lt_save_ifs
7912	if test "X$lt_pkg" = "X$lt_p"; then
7913	  pic_mode=yes
7914	fi
7915      done
7916      IFS=$lt_save_ifs
7917      ;;
7918    esac
7919else
7920  pic_mode=default
7921fi
7922
7923
7924
7925
7926
7927
7928
7929
7930  # Check whether --enable-fast-install was given.
7931if test "${enable_fast_install+set}" = set; then :
7932  enableval=$enable_fast_install; p=${PACKAGE-default}
7933    case $enableval in
7934    yes) enable_fast_install=yes ;;
7935    no) enable_fast_install=no ;;
7936    *)
7937      enable_fast_install=no
7938      # Look at the argument we got.  We use all the common list separators.
7939      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7940      for pkg in $enableval; do
7941	IFS=$lt_save_ifs
7942	if test "X$pkg" = "X$p"; then
7943	  enable_fast_install=yes
7944	fi
7945      done
7946      IFS=$lt_save_ifs
7947      ;;
7948    esac
7949else
7950  enable_fast_install=yes
7951fi
7952
7953
7954
7955
7956
7957
7958
7959
7960  shared_archive_member_spec=
7961case $host,$enable_shared in
7962power*-*-aix[5-9]*,yes)
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7964$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7965
7966# Check whether --with-aix-soname was given.
7967if test "${with_aix_soname+set}" = set; then :
7968  withval=$with_aix_soname; case $withval in
7969    aix|svr4|both)
7970      ;;
7971    *)
7972      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7973      ;;
7974    esac
7975    lt_cv_with_aix_soname=$with_aix_soname
7976else
7977  if ${lt_cv_with_aix_soname+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  lt_cv_with_aix_soname=aix
7981fi
7982
7983    with_aix_soname=$lt_cv_with_aix_soname
7984fi
7985
7986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7987$as_echo "$with_aix_soname" >&6; }
7988  if test aix != "$with_aix_soname"; then
7989    # For the AIX way of multilib, we name the shared archive member
7990    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7991    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7992    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7993    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7994    if test 64 = "${OBJECT_MODE-32}"; then
7995      shared_archive_member_spec=shr_64
7996    else
7997      shared_archive_member_spec=shr
7998    fi
7999  fi
8000  ;;
8001*)
8002  with_aix_soname=aix
8003  ;;
8004esac
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015# This can be used to rebuild libtool when needed
8016LIBTOOL_DEPS=$ltmain
8017
8018# Always use our own libtool.
8019LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050test -z "$LN_S" && LN_S="ln -s"
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065if test -n "${ZSH_VERSION+set}"; then
8066   setopt NO_GLOB_SUBST
8067fi
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8070$as_echo_n "checking for objdir... " >&6; }
8071if ${lt_cv_objdir+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  rm -f .libs 2>/dev/null
8075mkdir .libs 2>/dev/null
8076if test -d .libs; then
8077  lt_cv_objdir=.libs
8078else
8079  # MS-DOS does not allow filenames that begin with a dot.
8080  lt_cv_objdir=_libs
8081fi
8082rmdir .libs 2>/dev/null
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8085$as_echo "$lt_cv_objdir" >&6; }
8086objdir=$lt_cv_objdir
8087
8088
8089
8090
8091
8092cat >>confdefs.h <<_ACEOF
8093#define LT_OBJDIR "$lt_cv_objdir/"
8094_ACEOF
8095
8096
8097
8098
8099case $host_os in
8100aix3*)
8101  # AIX sometimes has problems with the GCC collect2 program.  For some
8102  # reason, if we set the COLLECT_NAMES environment variable, the problems
8103  # vanish in a puff of smoke.
8104  if test set != "${COLLECT_NAMES+set}"; then
8105    COLLECT_NAMES=
8106    export COLLECT_NAMES
8107  fi
8108  ;;
8109esac
8110
8111# Global variables:
8112ofile=libtool
8113can_build_shared=yes
8114
8115# All known linkers require a '.a' archive for static linking (except MSVC,
8116# which needs '.lib').
8117libext=a
8118
8119with_gnu_ld=$lt_cv_prog_gnu_ld
8120
8121old_CC=$CC
8122old_CFLAGS=$CFLAGS
8123
8124# Set sane defaults for various variables
8125test -z "$CC" && CC=cc
8126test -z "$LTCC" && LTCC=$CC
8127test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8128test -z "$LD" && LD=ld
8129test -z "$ac_objext" && ac_objext=o
8130
8131func_cc_basename $compiler
8132cc_basename=$func_cc_basename_result
8133
8134
8135# Only perform the check for file, if the check method requires it
8136test -z "$MAGIC_CMD" && MAGIC_CMD=file
8137case $deplibs_check_method in
8138file_magic*)
8139  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8141$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8142if ${lt_cv_path_MAGIC_CMD+:} false; then :
8143  $as_echo_n "(cached) " >&6
8144else
8145  case $MAGIC_CMD in
8146[\\/*] |  ?:[\\/]*)
8147  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8148  ;;
8149*)
8150  lt_save_MAGIC_CMD=$MAGIC_CMD
8151  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8152  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8153  for ac_dir in $ac_dummy; do
8154    IFS=$lt_save_ifs
8155    test -z "$ac_dir" && ac_dir=.
8156    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8157      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8158      if test -n "$file_magic_test_file"; then
8159	case $deplibs_check_method in
8160	"file_magic "*)
8161	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8162	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8163	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8164	    $EGREP "$file_magic_regex" > /dev/null; then
8165	    :
8166	  else
8167	    cat <<_LT_EOF 1>&2
8168
8169*** Warning: the command libtool uses to detect shared libraries,
8170*** $file_magic_cmd, produces output that libtool cannot recognize.
8171*** The result is that libtool may fail to recognize shared libraries
8172*** as such.  This will affect the creation of libtool libraries that
8173*** depend on shared libraries, but programs linked with such libtool
8174*** libraries will work regardless of this problem.  Nevertheless, you
8175*** may want to report the problem to your system manager and/or to
8176*** bug-libtool@gnu.org
8177
8178_LT_EOF
8179	  fi ;;
8180	esac
8181      fi
8182      break
8183    fi
8184  done
8185  IFS=$lt_save_ifs
8186  MAGIC_CMD=$lt_save_MAGIC_CMD
8187  ;;
8188esac
8189fi
8190
8191MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8192if test -n "$MAGIC_CMD"; then
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8194$as_echo "$MAGIC_CMD" >&6; }
8195else
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198fi
8199
8200
8201
8202
8203
8204if test -z "$lt_cv_path_MAGIC_CMD"; then
8205  if test -n "$ac_tool_prefix"; then
8206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8207$as_echo_n "checking for file... " >&6; }
8208if ${lt_cv_path_MAGIC_CMD+:} false; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  case $MAGIC_CMD in
8212[\\/*] |  ?:[\\/]*)
8213  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8214  ;;
8215*)
8216  lt_save_MAGIC_CMD=$MAGIC_CMD
8217  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8218  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219  for ac_dir in $ac_dummy; do
8220    IFS=$lt_save_ifs
8221    test -z "$ac_dir" && ac_dir=.
8222    if test -f "$ac_dir/file"; then
8223      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8224      if test -n "$file_magic_test_file"; then
8225	case $deplibs_check_method in
8226	"file_magic "*)
8227	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8229	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230	    $EGREP "$file_magic_regex" > /dev/null; then
8231	    :
8232	  else
8233	    cat <<_LT_EOF 1>&2
8234
8235*** Warning: the command libtool uses to detect shared libraries,
8236*** $file_magic_cmd, produces output that libtool cannot recognize.
8237*** The result is that libtool may fail to recognize shared libraries
8238*** as such.  This will affect the creation of libtool libraries that
8239*** depend on shared libraries, but programs linked with such libtool
8240*** libraries will work regardless of this problem.  Nevertheless, you
8241*** may want to report the problem to your system manager and/or to
8242*** bug-libtool@gnu.org
8243
8244_LT_EOF
8245	  fi ;;
8246	esac
8247      fi
8248      break
8249    fi
8250  done
8251  IFS=$lt_save_ifs
8252  MAGIC_CMD=$lt_save_MAGIC_CMD
8253  ;;
8254esac
8255fi
8256
8257MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8258if test -n "$MAGIC_CMD"; then
8259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260$as_echo "$MAGIC_CMD" >&6; }
8261else
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
8264fi
8265
8266
8267  else
8268    MAGIC_CMD=:
8269  fi
8270fi
8271
8272  fi
8273  ;;
8274esac
8275
8276# Use C for the default configuration in the libtool script
8277
8278lt_save_CC=$CC
8279ac_ext=c
8280ac_cpp='$CPP $CPPFLAGS'
8281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8283ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284
8285
8286# Source file extension for C test sources.
8287ac_ext=c
8288
8289# Object file extension for compiled C test sources.
8290objext=o
8291objext=$objext
8292
8293# Code to be used in simple compile tests
8294lt_simple_compile_test_code="int some_variable = 0;"
8295
8296# Code to be used in simple link tests
8297lt_simple_link_test_code='int main(){return(0);}'
8298
8299
8300
8301
8302
8303
8304
8305# If no C compiler was specified, use CC.
8306LTCC=${LTCC-"$CC"}
8307
8308# If no C compiler flags were specified, use CFLAGS.
8309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8310
8311# Allow CC to be a program name with arguments.
8312compiler=$CC
8313
8314# Save the default compiler, since it gets overwritten when the other
8315# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8316compiler_DEFAULT=$CC
8317
8318# save warnings/boilerplate of simple test code
8319ac_outfile=conftest.$ac_objext
8320echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8322_lt_compiler_boilerplate=`cat conftest.err`
8323$RM conftest*
8324
8325ac_outfile=conftest.$ac_objext
8326echo "$lt_simple_link_test_code" >conftest.$ac_ext
8327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8328_lt_linker_boilerplate=`cat conftest.err`
8329$RM -r conftest*
8330
8331
8332if test -n "$compiler"; then
8333
8334lt_prog_compiler_no_builtin_flag=
8335
8336if test yes = "$GCC"; then
8337  case $cc_basename in
8338  nvcc*)
8339    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8340  *)
8341    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8342  esac
8343
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8345$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8346if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  lt_cv_prog_compiler_rtti_exceptions=no
8350   ac_outfile=conftest.$ac_objext
8351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8353   # Insert the option either (1) after the last *FLAGS variable, or
8354   # (2) before a word containing "conftest.", or (3) at the end.
8355   # Note that $ac_compile itself does not contain backslashes and begins
8356   # with a dollar sign (not a hyphen), so the echo should work correctly.
8357   # The option is referenced via a variable to avoid confusing sed.
8358   lt_compile=`echo "$ac_compile" | $SED \
8359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361   -e 's:$: $lt_compiler_flag:'`
8362   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8363   (eval "$lt_compile" 2>conftest.err)
8364   ac_status=$?
8365   cat conftest.err >&5
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   if (exit $ac_status) && test -s "$ac_outfile"; then
8368     # The compiler can only warn and ignore the option if not recognized
8369     # So say no if there are warnings other than the usual output.
8370     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8371     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8372     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8373       lt_cv_prog_compiler_rtti_exceptions=yes
8374     fi
8375   fi
8376   $RM conftest*
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8380$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8381
8382if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8383    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8384else
8385    :
8386fi
8387
8388fi
8389
8390
8391
8392
8393
8394
8395  lt_prog_compiler_wl=
8396lt_prog_compiler_pic=
8397lt_prog_compiler_static=
8398
8399
8400  if test yes = "$GCC"; then
8401    lt_prog_compiler_wl='-Wl,'
8402    lt_prog_compiler_static='-static'
8403
8404    case $host_os in
8405      aix*)
8406      # All AIX code is PIC.
8407      if test ia64 = "$host_cpu"; then
8408	# AIX 5 now supports IA64 processor
8409	lt_prog_compiler_static='-Bstatic'
8410      fi
8411      lt_prog_compiler_pic='-fPIC'
8412      ;;
8413
8414    amigaos*)
8415      case $host_cpu in
8416      powerpc)
8417            # see comment about AmigaOS4 .so support
8418            lt_prog_compiler_pic='-fPIC'
8419        ;;
8420      m68k)
8421            # FIXME: we need at least 68020 code to build shared libraries, but
8422            # adding the '-m68020' flag to GCC prevents building anything better,
8423            # like '-m68040'.
8424            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8425        ;;
8426      esac
8427      ;;
8428
8429    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8430      # PIC is the default for these OSes.
8431      ;;
8432
8433    mingw* | cygwin* | pw32* | os2* | cegcc*)
8434      # This hack is so that the source file can tell whether it is being
8435      # built for inclusion in a dll (and should export symbols for example).
8436      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8437      # (--disable-auto-import) libraries
8438      lt_prog_compiler_pic='-DDLL_EXPORT'
8439      case $host_os in
8440      os2*)
8441	lt_prog_compiler_static='$wl-static'
8442	;;
8443      esac
8444      ;;
8445
8446    darwin* | rhapsody*)
8447      # PIC is the default on this platform
8448      # Common symbols not allowed in MH_DYLIB files
8449      lt_prog_compiler_pic='-fno-common'
8450      ;;
8451
8452    haiku*)
8453      # PIC is the default for Haiku.
8454      # The "-static" flag exists, but is broken.
8455      lt_prog_compiler_static=
8456      ;;
8457
8458    hpux*)
8459      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8460      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8461      # sets the default TLS model and affects inlining.
8462      case $host_cpu in
8463      hppa*64*)
8464	# +Z the default
8465	;;
8466      *)
8467	lt_prog_compiler_pic='-fPIC'
8468	;;
8469      esac
8470      ;;
8471
8472    interix[3-9]*)
8473      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8474      # Instead, we relocate shared libraries at runtime.
8475      ;;
8476
8477    msdosdjgpp*)
8478      # Just because we use GCC doesn't mean we suddenly get shared libraries
8479      # on systems that don't support them.
8480      lt_prog_compiler_can_build_shared=no
8481      enable_shared=no
8482      ;;
8483
8484    *nto* | *qnx*)
8485      # QNX uses GNU C++, but need to define -shared option too, otherwise
8486      # it will coredump.
8487      lt_prog_compiler_pic='-fPIC -shared'
8488      ;;
8489
8490    sysv4*MP*)
8491      if test -d /usr/nec; then
8492	lt_prog_compiler_pic=-Kconform_pic
8493      fi
8494      ;;
8495
8496    *)
8497      lt_prog_compiler_pic='-fPIC'
8498      ;;
8499    esac
8500
8501    case $cc_basename in
8502    nvcc*) # Cuda Compiler Driver 2.2
8503      lt_prog_compiler_wl='-Xlinker '
8504      if test -n "$lt_prog_compiler_pic"; then
8505        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8506      fi
8507      ;;
8508    esac
8509  else
8510    # PORTME Check for flag to pass linker flags through the system compiler.
8511    case $host_os in
8512    aix*)
8513      lt_prog_compiler_wl='-Wl,'
8514      if test ia64 = "$host_cpu"; then
8515	# AIX 5 now supports IA64 processor
8516	lt_prog_compiler_static='-Bstatic'
8517      else
8518	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8519      fi
8520      ;;
8521
8522    darwin* | rhapsody*)
8523      # PIC is the default on this platform
8524      # Common symbols not allowed in MH_DYLIB files
8525      lt_prog_compiler_pic='-fno-common'
8526      case $cc_basename in
8527      nagfor*)
8528        # NAG Fortran compiler
8529        lt_prog_compiler_wl='-Wl,-Wl,,'
8530        lt_prog_compiler_pic='-PIC'
8531        lt_prog_compiler_static='-Bstatic'
8532        ;;
8533      esac
8534      ;;
8535
8536    mingw* | cygwin* | pw32* | os2* | cegcc*)
8537      # This hack is so that the source file can tell whether it is being
8538      # built for inclusion in a dll (and should export symbols for example).
8539      lt_prog_compiler_pic='-DDLL_EXPORT'
8540      case $host_os in
8541      os2*)
8542	lt_prog_compiler_static='$wl-static'
8543	;;
8544      esac
8545      ;;
8546
8547    hpux9* | hpux10* | hpux11*)
8548      lt_prog_compiler_wl='-Wl,'
8549      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550      # not for PA HP-UX.
8551      case $host_cpu in
8552      hppa*64*|ia64*)
8553	# +Z the default
8554	;;
8555      *)
8556	lt_prog_compiler_pic='+Z'
8557	;;
8558      esac
8559      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8560      lt_prog_compiler_static='$wl-a ${wl}archive'
8561      ;;
8562
8563    irix5* | irix6* | nonstopux*)
8564      lt_prog_compiler_wl='-Wl,'
8565      # PIC (with -KPIC) is the default.
8566      lt_prog_compiler_static='-non_shared'
8567      ;;
8568
8569    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8570      case $cc_basename in
8571      # old Intel for x86_64, which still supported -KPIC.
8572      ecc*)
8573	lt_prog_compiler_wl='-Wl,'
8574	lt_prog_compiler_pic='-KPIC'
8575	lt_prog_compiler_static='-static'
8576        ;;
8577      # icc used to be incompatible with GCC.
8578      # ICC 10 doesn't accept -KPIC any more.
8579      icc* | ifort*)
8580	lt_prog_compiler_wl='-Wl,'
8581	lt_prog_compiler_pic='-fPIC'
8582	lt_prog_compiler_static='-static'
8583        ;;
8584      # Lahey Fortran 8.1.
8585      lf95*)
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='--shared'
8588	lt_prog_compiler_static='--static'
8589	;;
8590      nagfor*)
8591	# NAG Fortran compiler
8592	lt_prog_compiler_wl='-Wl,-Wl,,'
8593	lt_prog_compiler_pic='-PIC'
8594	lt_prog_compiler_static='-Bstatic'
8595	;;
8596      tcc*)
8597	# Fabrice Bellard et al's Tiny C Compiler
8598	lt_prog_compiler_wl='-Wl,'
8599	lt_prog_compiler_pic='-fPIC'
8600	lt_prog_compiler_static='-static'
8601	;;
8602      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8603        # Portland Group compilers (*not* the Pentium gcc compiler,
8604	# which looks to be a dead project)
8605	lt_prog_compiler_wl='-Wl,'
8606	lt_prog_compiler_pic='-fpic'
8607	lt_prog_compiler_static='-Bstatic'
8608        ;;
8609      ccc*)
8610        lt_prog_compiler_wl='-Wl,'
8611        # All Alpha code is PIC.
8612        lt_prog_compiler_static='-non_shared'
8613        ;;
8614      xl* | bgxl* | bgf* | mpixl*)
8615	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8616	lt_prog_compiler_wl='-Wl,'
8617	lt_prog_compiler_pic='-qpic'
8618	lt_prog_compiler_static='-qstaticlink'
8619	;;
8620      *)
8621	case `$CC -V 2>&1 | sed 5q` in
8622	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8623	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8624	  lt_prog_compiler_pic='-KPIC'
8625	  lt_prog_compiler_static='-Bstatic'
8626	  lt_prog_compiler_wl=''
8627	  ;;
8628	*Sun\ F* | *Sun*Fortran*)
8629	  lt_prog_compiler_pic='-KPIC'
8630	  lt_prog_compiler_static='-Bstatic'
8631	  lt_prog_compiler_wl='-Qoption ld '
8632	  ;;
8633	*Sun\ C*)
8634	  # Sun C 5.9
8635	  lt_prog_compiler_pic='-KPIC'
8636	  lt_prog_compiler_static='-Bstatic'
8637	  lt_prog_compiler_wl='-Wl,'
8638	  ;;
8639        *Intel*\ [CF]*Compiler*)
8640	  lt_prog_compiler_wl='-Wl,'
8641	  lt_prog_compiler_pic='-fPIC'
8642	  lt_prog_compiler_static='-static'
8643	  ;;
8644	*Portland\ Group*)
8645	  lt_prog_compiler_wl='-Wl,'
8646	  lt_prog_compiler_pic='-fpic'
8647	  lt_prog_compiler_static='-Bstatic'
8648	  ;;
8649	esac
8650	;;
8651      esac
8652      ;;
8653
8654    newsos6)
8655      lt_prog_compiler_pic='-KPIC'
8656      lt_prog_compiler_static='-Bstatic'
8657      ;;
8658
8659    *nto* | *qnx*)
8660      # QNX uses GNU C++, but need to define -shared option too, otherwise
8661      # it will coredump.
8662      lt_prog_compiler_pic='-fPIC -shared'
8663      ;;
8664
8665    osf3* | osf4* | osf5*)
8666      lt_prog_compiler_wl='-Wl,'
8667      # All OSF/1 code is PIC.
8668      lt_prog_compiler_static='-non_shared'
8669      ;;
8670
8671    rdos*)
8672      lt_prog_compiler_static='-non_shared'
8673      ;;
8674
8675    solaris*)
8676      lt_prog_compiler_pic='-KPIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      case $cc_basename in
8679      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8680	lt_prog_compiler_wl='-Qoption ld ';;
8681      *)
8682	lt_prog_compiler_wl='-Wl,';;
8683      esac
8684      ;;
8685
8686    sunos4*)
8687      lt_prog_compiler_wl='-Qoption ld '
8688      lt_prog_compiler_pic='-PIC'
8689      lt_prog_compiler_static='-Bstatic'
8690      ;;
8691
8692    sysv4 | sysv4.2uw2* | sysv4.3*)
8693      lt_prog_compiler_wl='-Wl,'
8694      lt_prog_compiler_pic='-KPIC'
8695      lt_prog_compiler_static='-Bstatic'
8696      ;;
8697
8698    sysv4*MP*)
8699      if test -d /usr/nec; then
8700	lt_prog_compiler_pic='-Kconform_pic'
8701	lt_prog_compiler_static='-Bstatic'
8702      fi
8703      ;;
8704
8705    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8706      lt_prog_compiler_wl='-Wl,'
8707      lt_prog_compiler_pic='-KPIC'
8708      lt_prog_compiler_static='-Bstatic'
8709      ;;
8710
8711    unicos*)
8712      lt_prog_compiler_wl='-Wl,'
8713      lt_prog_compiler_can_build_shared=no
8714      ;;
8715
8716    uts4*)
8717      lt_prog_compiler_pic='-pic'
8718      lt_prog_compiler_static='-Bstatic'
8719      ;;
8720
8721    *)
8722      lt_prog_compiler_can_build_shared=no
8723      ;;
8724    esac
8725  fi
8726
8727case $host_os in
8728  # For platforms that do not support PIC, -DPIC is meaningless:
8729  *djgpp*)
8730    lt_prog_compiler_pic=
8731    ;;
8732  *)
8733    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8734    ;;
8735esac
8736
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8738$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8739if ${lt_cv_prog_compiler_pic+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8743fi
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8745$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8746lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8747
8748#
8749# Check to make sure the PIC flag actually works.
8750#
8751if test -n "$lt_prog_compiler_pic"; then
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8753$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8754if ${lt_cv_prog_compiler_pic_works+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  lt_cv_prog_compiler_pic_works=no
8758   ac_outfile=conftest.$ac_objext
8759   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8760   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8761   # Insert the option either (1) after the last *FLAGS variable, or
8762   # (2) before a word containing "conftest.", or (3) at the end.
8763   # Note that $ac_compile itself does not contain backslashes and begins
8764   # with a dollar sign (not a hyphen), so the echo should work correctly.
8765   # The option is referenced via a variable to avoid confusing sed.
8766   lt_compile=`echo "$ac_compile" | $SED \
8767   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769   -e 's:$: $lt_compiler_flag:'`
8770   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8771   (eval "$lt_compile" 2>conftest.err)
8772   ac_status=$?
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   if (exit $ac_status) && test -s "$ac_outfile"; then
8776     # The compiler can only warn and ignore the option if not recognized
8777     # So say no if there are warnings other than the usual output.
8778     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8779     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8780     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8781       lt_cv_prog_compiler_pic_works=yes
8782     fi
8783   fi
8784   $RM conftest*
8785
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8788$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8789
8790if test yes = "$lt_cv_prog_compiler_pic_works"; then
8791    case $lt_prog_compiler_pic in
8792     "" | " "*) ;;
8793     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8794     esac
8795else
8796    lt_prog_compiler_pic=
8797     lt_prog_compiler_can_build_shared=no
8798fi
8799
8800fi
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812#
8813# Check to make sure the static flag actually works.
8814#
8815wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8817$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8818if ${lt_cv_prog_compiler_static_works+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  lt_cv_prog_compiler_static_works=no
8822   save_LDFLAGS=$LDFLAGS
8823   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8824   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8825   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8826     # The linker can only warn and ignore the option if not recognized
8827     # So say no if there are warnings
8828     if test -s conftest.err; then
8829       # Append any errors to the config.log.
8830       cat conftest.err 1>&5
8831       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8832       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8833       if diff conftest.exp conftest.er2 >/dev/null; then
8834         lt_cv_prog_compiler_static_works=yes
8835       fi
8836     else
8837       lt_cv_prog_compiler_static_works=yes
8838     fi
8839   fi
8840   $RM -r conftest*
8841   LDFLAGS=$save_LDFLAGS
8842
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8845$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8846
8847if test yes = "$lt_cv_prog_compiler_static_works"; then
8848    :
8849else
8850    lt_prog_compiler_static=
8851fi
8852
8853
8854
8855
8856
8857
8858
8859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8860$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8861if ${lt_cv_prog_compiler_c_o+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  lt_cv_prog_compiler_c_o=no
8865   $RM -r conftest 2>/dev/null
8866   mkdir conftest
8867   cd conftest
8868   mkdir out
8869   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870
8871   lt_compiler_flag="-o out/conftest2.$ac_objext"
8872   # Insert the option either (1) after the last *FLAGS variable, or
8873   # (2) before a word containing "conftest.", or (3) at the end.
8874   # Note that $ac_compile itself does not contain backslashes and begins
8875   # with a dollar sign (not a hyphen), so the echo should work correctly.
8876   lt_compile=`echo "$ac_compile" | $SED \
8877   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8878   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8879   -e 's:$: $lt_compiler_flag:'`
8880   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8881   (eval "$lt_compile" 2>out/conftest.err)
8882   ac_status=$?
8883   cat out/conftest.err >&5
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8886   then
8887     # The compiler can only warn and ignore the option if not recognized
8888     # So say no if there are warnings
8889     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8890     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8891     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8892       lt_cv_prog_compiler_c_o=yes
8893     fi
8894   fi
8895   chmod u+w . 2>&5
8896   $RM conftest*
8897   # SGI C++ compiler will create directory out/ii_files/ for
8898   # template instantiation
8899   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8900   $RM out/* && rmdir out
8901   cd ..
8902   $RM -r conftest
8903   $RM conftest*
8904
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8907$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8908
8909
8910
8911
8912
8913
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8915$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8916if ${lt_cv_prog_compiler_c_o+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  lt_cv_prog_compiler_c_o=no
8920   $RM -r conftest 2>/dev/null
8921   mkdir conftest
8922   cd conftest
8923   mkdir out
8924   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925
8926   lt_compiler_flag="-o out/conftest2.$ac_objext"
8927   # Insert the option either (1) after the last *FLAGS variable, or
8928   # (2) before a word containing "conftest.", or (3) at the end.
8929   # Note that $ac_compile itself does not contain backslashes and begins
8930   # with a dollar sign (not a hyphen), so the echo should work correctly.
8931   lt_compile=`echo "$ac_compile" | $SED \
8932   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934   -e 's:$: $lt_compiler_flag:'`
8935   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936   (eval "$lt_compile" 2>out/conftest.err)
8937   ac_status=$?
8938   cat out/conftest.err >&5
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8941   then
8942     # The compiler can only warn and ignore the option if not recognized
8943     # So say no if there are warnings
8944     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8945     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8946     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8947       lt_cv_prog_compiler_c_o=yes
8948     fi
8949   fi
8950   chmod u+w . 2>&5
8951   $RM conftest*
8952   # SGI C++ compiler will create directory out/ii_files/ for
8953   # template instantiation
8954   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8955   $RM out/* && rmdir out
8956   cd ..
8957   $RM -r conftest
8958   $RM conftest*
8959
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8962$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963
8964
8965
8966
8967hard_links=nottested
8968if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8969  # do not overwrite the value of need_locks provided by the user
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8971$as_echo_n "checking if we can lock with hard links... " >&6; }
8972  hard_links=yes
8973  $RM conftest*
8974  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8975  touch conftest.a
8976  ln conftest.a conftest.b 2>&5 || hard_links=no
8977  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8979$as_echo "$hard_links" >&6; }
8980  if test no = "$hard_links"; then
8981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8982$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8983    need_locks=warn
8984  fi
8985else
8986  need_locks=no
8987fi
8988
8989
8990
8991
8992
8993
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8995$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8996
8997  runpath_var=
8998  allow_undefined_flag=
8999  always_export_symbols=no
9000  archive_cmds=
9001  archive_expsym_cmds=
9002  compiler_needs_object=no
9003  enable_shared_with_static_runtimes=no
9004  export_dynamic_flag_spec=
9005  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9006  hardcode_automatic=no
9007  hardcode_direct=no
9008  hardcode_direct_absolute=no
9009  hardcode_libdir_flag_spec=
9010  hardcode_libdir_separator=
9011  hardcode_minus_L=no
9012  hardcode_shlibpath_var=unsupported
9013  inherit_rpath=no
9014  link_all_deplibs=unknown
9015  module_cmds=
9016  module_expsym_cmds=
9017  old_archive_from_new_cmds=
9018  old_archive_from_expsyms_cmds=
9019  thread_safe_flag_spec=
9020  whole_archive_flag_spec=
9021  # include_expsyms should be a list of space-separated symbols to be *always*
9022  # included in the symbol list
9023  include_expsyms=
9024  # exclude_expsyms can be an extended regexp of symbols to exclude
9025  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9026  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9027  # as well as any symbol that contains 'd'.
9028  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9029  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9030  # platforms (ab)use it in PIC code, but their linkers get confused if
9031  # the symbol is explicitly referenced.  Since portable code cannot
9032  # rely on this symbol name, it's probably fine to never include it in
9033  # preloaded symbol tables.
9034  # Exclude shared library initialization/finalization symbols.
9035  extract_expsyms_cmds=
9036
9037  case $host_os in
9038  cygwin* | mingw* | pw32* | cegcc*)
9039    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9040    # When not using gcc, we currently assume that we are using
9041    # Microsoft Visual C++.
9042    if test yes != "$GCC"; then
9043      with_gnu_ld=no
9044    fi
9045    ;;
9046  interix*)
9047    # we just hope/assume this is gcc and not c89 (= MSVC++)
9048    with_gnu_ld=yes
9049    ;;
9050  openbsd* | bitrig*)
9051    with_gnu_ld=no
9052    ;;
9053  linux* | k*bsd*-gnu | gnu*)
9054    link_all_deplibs=no
9055    ;;
9056  esac
9057
9058  ld_shlibs=yes
9059
9060  # On some targets, GNU ld is compatible enough with the native linker
9061  # that we're better off using the native interface for both.
9062  lt_use_gnu_ld_interface=no
9063  if test yes = "$with_gnu_ld"; then
9064    case $host_os in
9065      aix*)
9066	# The AIX port of GNU ld has always aspired to compatibility
9067	# with the native linker.  However, as the warning in the GNU ld
9068	# block says, versions before 2.19.5* couldn't really create working
9069	# shared libraries, regardless of the interface used.
9070	case `$LD -v 2>&1` in
9071	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9072	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9073	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9074	  *)
9075	    lt_use_gnu_ld_interface=yes
9076	    ;;
9077	esac
9078	;;
9079      *)
9080	lt_use_gnu_ld_interface=yes
9081	;;
9082    esac
9083  fi
9084
9085  if test yes = "$lt_use_gnu_ld_interface"; then
9086    # If archive_cmds runs LD, not CC, wlarc should be empty
9087    wlarc='$wl'
9088
9089    # Set some defaults for GNU ld with shared library support. These
9090    # are reset later if shared libraries are not supported. Putting them
9091    # here allows them to be overridden if necessary.
9092    runpath_var=LD_RUN_PATH
9093    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9094    export_dynamic_flag_spec='$wl--export-dynamic'
9095    # ancient GNU ld didn't support --whole-archive et. al.
9096    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9097      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9098    else
9099      whole_archive_flag_spec=
9100    fi
9101    supports_anon_versioning=no
9102    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9103      *GNU\ gold*) supports_anon_versioning=yes ;;
9104      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9105      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9106      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9107      *\ 2.11.*) ;; # other 2.11 versions
9108      *) supports_anon_versioning=yes ;;
9109    esac
9110
9111    # See if GNU ld supports shared libraries.
9112    case $host_os in
9113    aix[3-9]*)
9114      # On AIX/PPC, the GNU linker is very broken
9115      if test ia64 != "$host_cpu"; then
9116	ld_shlibs=no
9117	cat <<_LT_EOF 1>&2
9118
9119*** Warning: the GNU linker, at least up to release 2.19, is reported
9120*** to be unable to reliably create shared libraries on AIX.
9121*** Therefore, libtool is disabling shared libraries support.  If you
9122*** really care for shared libraries, you may want to install binutils
9123*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9124*** You will then need to restart the configuration process.
9125
9126_LT_EOF
9127      fi
9128      ;;
9129
9130    amigaos*)
9131      case $host_cpu in
9132      powerpc)
9133            # see comment about AmigaOS4 .so support
9134            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9135            archive_expsym_cmds=''
9136        ;;
9137      m68k)
9138            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)'
9139            hardcode_libdir_flag_spec='-L$libdir'
9140            hardcode_minus_L=yes
9141        ;;
9142      esac
9143      ;;
9144
9145    beos*)
9146      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9147	allow_undefined_flag=unsupported
9148	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9149	# support --undefined.  This deserves some investigation.  FIXME
9150	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9151      else
9152	ld_shlibs=no
9153      fi
9154      ;;
9155
9156    cygwin* | mingw* | pw32* | cegcc*)
9157      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9158      # as there is no search path for DLLs.
9159      hardcode_libdir_flag_spec='-L$libdir'
9160      export_dynamic_flag_spec='$wl--export-all-symbols'
9161      allow_undefined_flag=unsupported
9162      always_export_symbols=no
9163      enable_shared_with_static_runtimes=yes
9164      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'
9165      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9166
9167      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9168        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9169	# If the export-symbols file already is a .def file, use it as
9170	# is; otherwise, prepend EXPORTS...
9171	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9172          cp $export_symbols $output_objdir/$soname.def;
9173        else
9174          echo EXPORTS > $output_objdir/$soname.def;
9175          cat $export_symbols >> $output_objdir/$soname.def;
9176        fi~
9177        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178      else
9179	ld_shlibs=no
9180      fi
9181      ;;
9182
9183    haiku*)
9184      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9185      link_all_deplibs=yes
9186      ;;
9187
9188    os2*)
9189      hardcode_libdir_flag_spec='-L$libdir'
9190      hardcode_minus_L=yes
9191      allow_undefined_flag=unsupported
9192      shrext_cmds=.dll
9193      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9194	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9195	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9196	$ECHO EXPORTS >> $output_objdir/$libname.def~
9197	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9198	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9199	emximp -o $lib $output_objdir/$libname.def'
9200      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9201	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9202	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9203	$ECHO EXPORTS >> $output_objdir/$libname.def~
9204	prefix_cmds="$SED"~
9205	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9206	  prefix_cmds="$prefix_cmds -e 1d";
9207	fi~
9208	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9209	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9210	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9211	emximp -o $lib $output_objdir/$libname.def'
9212      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9213      enable_shared_with_static_runtimes=yes
9214      ;;
9215
9216    interix[3-9]*)
9217      hardcode_direct=no
9218      hardcode_shlibpath_var=no
9219      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9220      export_dynamic_flag_spec='$wl-E'
9221      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9222      # Instead, shared libraries are loaded at an image base (0x10000000 by
9223      # default) and relocated if they conflict, which is a slow very memory
9224      # consuming and fragmenting process.  To avoid this, we pick a random,
9225      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9226      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9227      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9228      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'
9229      ;;
9230
9231    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9232      tmp_diet=no
9233      if test linux-dietlibc = "$host_os"; then
9234	case $cc_basename in
9235	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9236	esac
9237      fi
9238      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9239	 && test no = "$tmp_diet"
9240      then
9241	tmp_addflag=' $pic_flag'
9242	tmp_sharedflag='-shared'
9243	case $cc_basename,$host_cpu in
9244        pgcc*)				# Portland Group C compiler
9245	  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'
9246	  tmp_addflag=' $pic_flag'
9247	  ;;
9248	pgf77* | pgf90* | pgf95* | pgfortran*)
9249					# Portland Group f77 and f90 compilers
9250	  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'
9251	  tmp_addflag=' $pic_flag -Mnomain' ;;
9252	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9253	  tmp_addflag=' -i_dynamic' ;;
9254	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9255	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9256	ifc* | ifort*)			# Intel Fortran compiler
9257	  tmp_addflag=' -nofor_main' ;;
9258	lf95*)				# Lahey Fortran 8.1
9259	  whole_archive_flag_spec=
9260	  tmp_sharedflag='--shared' ;;
9261        nagfor*)                        # NAGFOR 5.3
9262          tmp_sharedflag='-Wl,-shared' ;;
9263	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9264	  tmp_sharedflag='-qmkshrobj'
9265	  tmp_addflag= ;;
9266	nvcc*)	# Cuda Compiler Driver 2.2
9267	  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'
9268	  compiler_needs_object=yes
9269	  ;;
9270	esac
9271	case `$CC -V 2>&1 | sed 5q` in
9272	*Sun\ C*)			# Sun C 5.9
9273	  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'
9274	  compiler_needs_object=yes
9275	  tmp_sharedflag='-G' ;;
9276	*Sun\ F*)			# Sun Fortran 8.3
9277	  tmp_sharedflag='-G' ;;
9278	esac
9279	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9280
9281        if test yes = "$supports_anon_versioning"; then
9282          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9283            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9284            echo "local: *; };" >> $output_objdir/$libname.ver~
9285            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9286        fi
9287
9288	case $cc_basename in
9289	tcc*)
9290	  export_dynamic_flag_spec='-rdynamic'
9291	  ;;
9292	xlf* | bgf* | bgxlf* | mpixlf*)
9293	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9294	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9295	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9296	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9297	  if test yes = "$supports_anon_versioning"; then
9298	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9299              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9300              echo "local: *; };" >> $output_objdir/$libname.ver~
9301              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9302	  fi
9303	  ;;
9304	esac
9305      else
9306        ld_shlibs=no
9307      fi
9308      ;;
9309
9310    netbsd* | netbsdelf*-gnu)
9311      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9312	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9313	wlarc=
9314      else
9315	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9316	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9317      fi
9318      ;;
9319
9320    solaris*)
9321      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9322	ld_shlibs=no
9323	cat <<_LT_EOF 1>&2
9324
9325*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9326*** create shared libraries on Solaris systems.  Therefore, libtool
9327*** is disabling shared libraries support.  We urge you to upgrade GNU
9328*** binutils to release 2.9.1 or newer.  Another option is to modify
9329*** your PATH or compiler configuration so that the native linker is
9330*** used, and then restart.
9331
9332_LT_EOF
9333      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9334	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9335	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9336      else
9337	ld_shlibs=no
9338      fi
9339      ;;
9340
9341    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9342      case `$LD -v 2>&1` in
9343        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9344	ld_shlibs=no
9345	cat <<_LT_EOF 1>&2
9346
9347*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9348*** reliably create shared libraries on SCO systems.  Therefore, libtool
9349*** is disabling shared libraries support.  We urge you to upgrade GNU
9350*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9351*** your PATH or compiler configuration so that the native linker is
9352*** used, and then restart.
9353
9354_LT_EOF
9355	;;
9356	*)
9357	  # For security reasons, it is highly recommended that you always
9358	  # use absolute paths for naming shared libraries, and exclude the
9359	  # DT_RUNPATH tag from executables and libraries.  But doing so
9360	  # requires that you compile everything twice, which is a pain.
9361	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9362	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9363	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9364	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9365	  else
9366	    ld_shlibs=no
9367	  fi
9368	;;
9369      esac
9370      ;;
9371
9372    sunos4*)
9373      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9374      wlarc=
9375      hardcode_direct=yes
9376      hardcode_shlibpath_var=no
9377      ;;
9378
9379    *)
9380      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9382	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9383      else
9384	ld_shlibs=no
9385      fi
9386      ;;
9387    esac
9388
9389    if test no = "$ld_shlibs"; then
9390      runpath_var=
9391      hardcode_libdir_flag_spec=
9392      export_dynamic_flag_spec=
9393      whole_archive_flag_spec=
9394    fi
9395  else
9396    # PORTME fill in a description of your system's linker (not GNU ld)
9397    case $host_os in
9398    aix3*)
9399      allow_undefined_flag=unsupported
9400      always_export_symbols=yes
9401      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'
9402      # Note: this linker hardcodes the directories in LIBPATH if there
9403      # are no directories specified by -L.
9404      hardcode_minus_L=yes
9405      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9406	# Neither direct hardcoding nor static linking is supported with a
9407	# broken collect2.
9408	hardcode_direct=unsupported
9409      fi
9410      ;;
9411
9412    aix[4-9]*)
9413      if test ia64 = "$host_cpu"; then
9414	# On IA64, the linker does run time linking by default, so we don't
9415	# have to do anything special.
9416	aix_use_runtimelinking=no
9417	exp_sym_flag='-Bexport'
9418	no_entry_flag=
9419      else
9420	# If we're using GNU nm, then we don't want the "-C" option.
9421	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9422	# Without the "-l" option, or with the "-B" option, AIX nm treats
9423	# weak defined symbols like other global defined symbols, whereas
9424	# GNU nm marks them as "W".
9425	# While the 'weak' keyword is ignored in the Export File, we need
9426	# it in the Import File for the 'aix-soname' feature, so we have
9427	# to replace the "-B" option with "-P" for AIX nm.
9428	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9429	  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'
9430	else
9431	  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'
9432	fi
9433	aix_use_runtimelinking=no
9434
9435	# Test if we are trying to use run time linking or normal
9436	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9437	# have runtime linking enabled, and use it for executables.
9438	# For shared libraries, we enable/disable runtime linking
9439	# depending on the kind of the shared library created -
9440	# when "with_aix_soname,aix_use_runtimelinking" is:
9441	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9442	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9443	#            lib.a           static archive
9444	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9445	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9446	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9447	#            lib.a(lib.so.V) shared, rtl:no
9448	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9449	#            lib.a           static archive
9450	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9451	  for ld_flag in $LDFLAGS; do
9452	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9453	    aix_use_runtimelinking=yes
9454	    break
9455	  fi
9456	  done
9457	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9458	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9459	    # so we don't have lib.a shared libs to link our executables.
9460	    # We have to force runtime linking in this case.
9461	    aix_use_runtimelinking=yes
9462	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9463	  fi
9464	  ;;
9465	esac
9466
9467	exp_sym_flag='-bexport'
9468	no_entry_flag='-bnoentry'
9469      fi
9470
9471      # When large executables or shared objects are built, AIX ld can
9472      # have problems creating the table of contents.  If linking a library
9473      # or program results in "error TOC overflow" add -mminimal-toc to
9474      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9475      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9476
9477      archive_cmds=''
9478      hardcode_direct=yes
9479      hardcode_direct_absolute=yes
9480      hardcode_libdir_separator=':'
9481      link_all_deplibs=yes
9482      file_list_spec='$wl-f,'
9483      case $with_aix_soname,$aix_use_runtimelinking in
9484      aix,*) ;; # traditional, no import file
9485      svr4,* | *,yes) # use import file
9486	# The Import File defines what to hardcode.
9487	hardcode_direct=no
9488	hardcode_direct_absolute=no
9489	;;
9490      esac
9491
9492      if test yes = "$GCC"; then
9493	case $host_os in aix4.[012]|aix4.[012].*)
9494	# We only want to do this on AIX 4.2 and lower, the check
9495	# below for broken collect2 doesn't work under 4.3+
9496	  collect2name=`$CC -print-prog-name=collect2`
9497	  if test -f "$collect2name" &&
9498	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9499	  then
9500	  # We have reworked collect2
9501	  :
9502	  else
9503	  # We have old collect2
9504	  hardcode_direct=unsupported
9505	  # It fails to find uninstalled libraries when the uninstalled
9506	  # path is not listed in the libpath.  Setting hardcode_minus_L
9507	  # to unsupported forces relinking
9508	  hardcode_minus_L=yes
9509	  hardcode_libdir_flag_spec='-L$libdir'
9510	  hardcode_libdir_separator=
9511	  fi
9512	  ;;
9513	esac
9514	shared_flag='-shared'
9515	if test yes = "$aix_use_runtimelinking"; then
9516	  shared_flag="$shared_flag "'$wl-G'
9517	fi
9518	# Need to ensure runtime linking is disabled for the traditional
9519	# shared library, or the linker may eventually find shared libraries
9520	# /with/ Import File - we do not want to mix them.
9521	shared_flag_aix='-shared'
9522	shared_flag_svr4='-shared $wl-G'
9523      else
9524	# not using gcc
9525	if test ia64 = "$host_cpu"; then
9526	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9527	# chokes on -Wl,-G. The following line is correct:
9528	  shared_flag='-G'
9529	else
9530	  if test yes = "$aix_use_runtimelinking"; then
9531	    shared_flag='$wl-G'
9532	  else
9533	    shared_flag='$wl-bM:SRE'
9534	  fi
9535	  shared_flag_aix='$wl-bM:SRE'
9536	  shared_flag_svr4='$wl-G'
9537	fi
9538      fi
9539
9540      export_dynamic_flag_spec='$wl-bexpall'
9541      # It seems that -bexpall does not export symbols beginning with
9542      # underscore (_), so it is better to generate a list of symbols to export.
9543      always_export_symbols=yes
9544      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9545	# Warning - without using the other runtime loading flags (-brtl),
9546	# -berok will link without error, but may produce a broken library.
9547	allow_undefined_flag='-berok'
9548        # Determine the default libpath from the value encoded in an
9549        # empty executable.
9550        if test set = "${lt_cv_aix_libpath+set}"; then
9551  aix_libpath=$lt_cv_aix_libpath
9552else
9553  if ${lt_cv_aix_libpath_+:} false; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557/* end confdefs.h.  */
9558
9559int
9560main ()
9561{
9562
9563  ;
9564  return 0;
9565}
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568
9569  lt_aix_libpath_sed='
9570      /Import File Strings/,/^$/ {
9571	  /^0/ {
9572	      s/^0  *\([^ ]*\) *$/\1/
9573	      p
9574	  }
9575      }'
9576  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577  # Check for a 64-bit object if we didn't find anything.
9578  if test -z "$lt_cv_aix_libpath_"; then
9579    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580  fi
9581fi
9582rm -f core conftest.err conftest.$ac_objext \
9583    conftest$ac_exeext conftest.$ac_ext
9584  if test -z "$lt_cv_aix_libpath_"; then
9585    lt_cv_aix_libpath_=/usr/lib:/lib
9586  fi
9587
9588fi
9589
9590  aix_libpath=$lt_cv_aix_libpath_
9591fi
9592
9593        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9594        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
9595      else
9596	if test ia64 = "$host_cpu"; then
9597	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9598	  allow_undefined_flag="-z nodefs"
9599	  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"
9600	else
9601	 # Determine the default libpath from the value encoded in an
9602	 # empty executable.
9603	 if test set = "${lt_cv_aix_libpath+set}"; then
9604  aix_libpath=$lt_cv_aix_libpath
9605else
9606  if ${lt_cv_aix_libpath_+:} false; then :
9607  $as_echo_n "(cached) " >&6
9608else
9609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h.  */
9611
9612int
9613main ()
9614{
9615
9616  ;
9617  return 0;
9618}
9619_ACEOF
9620if ac_fn_c_try_link "$LINENO"; then :
9621
9622  lt_aix_libpath_sed='
9623      /Import File Strings/,/^$/ {
9624	  /^0/ {
9625	      s/^0  *\([^ ]*\) *$/\1/
9626	      p
9627	  }
9628      }'
9629  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9630  # Check for a 64-bit object if we didn't find anything.
9631  if test -z "$lt_cv_aix_libpath_"; then
9632    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633  fi
9634fi
9635rm -f core conftest.err conftest.$ac_objext \
9636    conftest$ac_exeext conftest.$ac_ext
9637  if test -z "$lt_cv_aix_libpath_"; then
9638    lt_cv_aix_libpath_=/usr/lib:/lib
9639  fi
9640
9641fi
9642
9643  aix_libpath=$lt_cv_aix_libpath_
9644fi
9645
9646	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9647	  # Warning - without using the other run time loading flags,
9648	  # -berok will link without error, but may produce a broken library.
9649	  no_undefined_flag=' $wl-bernotok'
9650	  allow_undefined_flag=' $wl-berok'
9651	  if test yes = "$with_gnu_ld"; then
9652	    # We only use this code for GNU lds that support --whole-archive.
9653	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9654	  else
9655	    # Exported symbols can be pulled into shared objects from archives
9656	    whole_archive_flag_spec='$convenience'
9657	  fi
9658	  archive_cmds_need_lc=yes
9659	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9660	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9661	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9662	  if test svr4 != "$with_aix_soname"; then
9663	    # This is similar to how AIX traditionally builds its shared libraries.
9664	    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'
9665	  fi
9666	  if test aix != "$with_aix_soname"; then
9667	    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'
9668	  else
9669	    # used by -dlpreopen to get the symbols
9670	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9671	  fi
9672	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9673	fi
9674      fi
9675      ;;
9676
9677    amigaos*)
9678      case $host_cpu in
9679      powerpc)
9680            # see comment about AmigaOS4 .so support
9681            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9682            archive_expsym_cmds=''
9683        ;;
9684      m68k)
9685            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)'
9686            hardcode_libdir_flag_spec='-L$libdir'
9687            hardcode_minus_L=yes
9688        ;;
9689      esac
9690      ;;
9691
9692    bsdi[45]*)
9693      export_dynamic_flag_spec=-rdynamic
9694      ;;
9695
9696    cygwin* | mingw* | pw32* | cegcc*)
9697      # When not using gcc, we currently assume that we are using
9698      # Microsoft Visual C++.
9699      # hardcode_libdir_flag_spec is actually meaningless, as there is
9700      # no search path for DLLs.
9701      case $cc_basename in
9702      cl*)
9703	# Native MSVC
9704	hardcode_libdir_flag_spec=' '
9705	allow_undefined_flag=unsupported
9706	always_export_symbols=yes
9707	file_list_spec='@'
9708	# Tell ltmain to make .lib files, not .a files.
9709	libext=lib
9710	# Tell ltmain to make .dll files, not .so files.
9711	shrext_cmds=.dll
9712	# FIXME: Setting linknames here is a bad hack.
9713	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9714	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9715            cp "$export_symbols" "$output_objdir/$soname.def";
9716            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9717          else
9718            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9719          fi~
9720          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9721          linknames='
9722	# The linker will not automatically build a static lib if we build a DLL.
9723	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9724	enable_shared_with_static_runtimes=yes
9725	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9726	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9727	# Don't use ranlib
9728	old_postinstall_cmds='chmod 644 $oldlib'
9729	postlink_cmds='lt_outputfile="@OUTPUT@"~
9730          lt_tool_outputfile="@TOOL_OUTPUT@"~
9731          case $lt_outputfile in
9732            *.exe|*.EXE) ;;
9733            *)
9734              lt_outputfile=$lt_outputfile.exe
9735              lt_tool_outputfile=$lt_tool_outputfile.exe
9736              ;;
9737          esac~
9738          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9739            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9740            $RM "$lt_outputfile.manifest";
9741          fi'
9742	;;
9743      *)
9744	# Assume MSVC wrapper
9745	hardcode_libdir_flag_spec=' '
9746	allow_undefined_flag=unsupported
9747	# Tell ltmain to make .lib files, not .a files.
9748	libext=lib
9749	# Tell ltmain to make .dll files, not .so files.
9750	shrext_cmds=.dll
9751	# FIXME: Setting linknames here is a bad hack.
9752	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9753	# The linker will automatically build a .lib file if we build a DLL.
9754	old_archive_from_new_cmds='true'
9755	# FIXME: Should let the user specify the lib program.
9756	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757	enable_shared_with_static_runtimes=yes
9758	;;
9759      esac
9760      ;;
9761
9762    darwin* | rhapsody*)
9763
9764
9765  archive_cmds_need_lc=no
9766  hardcode_direct=no
9767  hardcode_automatic=yes
9768  hardcode_shlibpath_var=unsupported
9769  if test yes = "$lt_cv_ld_force_load"; then
9770    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\"`'
9771
9772  else
9773    whole_archive_flag_spec=''
9774  fi
9775  link_all_deplibs=yes
9776  allow_undefined_flag=$_lt_dar_allow_undefined
9777  case $cc_basename in
9778     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9779     *) _lt_dar_can_shared=$GCC ;;
9780  esac
9781  if test yes = "$_lt_dar_can_shared"; then
9782    output_verbose_link_cmd=func_echo_all
9783    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9784    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9785    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"
9786    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"
9787
9788  else
9789  ld_shlibs=no
9790  fi
9791
9792      ;;
9793
9794    dgux*)
9795      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796      hardcode_libdir_flag_spec='-L$libdir'
9797      hardcode_shlibpath_var=no
9798      ;;
9799
9800    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9801    # support.  Future versions do this automatically, but an explicit c++rt0.o
9802    # does not break anything, and helps significantly (at the cost of a little
9803    # extra space).
9804    freebsd2.2*)
9805      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9806      hardcode_libdir_flag_spec='-R$libdir'
9807      hardcode_direct=yes
9808      hardcode_shlibpath_var=no
9809      ;;
9810
9811    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9812    freebsd2.*)
9813      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9814      hardcode_direct=yes
9815      hardcode_minus_L=yes
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9820    freebsd* | dragonfly*)
9821      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9822      hardcode_libdir_flag_spec='-R$libdir'
9823      hardcode_direct=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    hpux9*)
9828      if test yes = "$GCC"; then
9829	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'
9830      else
9831	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'
9832      fi
9833      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9834      hardcode_libdir_separator=:
9835      hardcode_direct=yes
9836
9837      # hardcode_minus_L: Not really in the search PATH,
9838      # but as the default location of the library.
9839      hardcode_minus_L=yes
9840      export_dynamic_flag_spec='$wl-E'
9841      ;;
9842
9843    hpux10*)
9844      if test yes,no = "$GCC,$with_gnu_ld"; then
9845	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846      else
9847	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848      fi
9849      if test no = "$with_gnu_ld"; then
9850	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9851	hardcode_libdir_separator=:
9852	hardcode_direct=yes
9853	hardcode_direct_absolute=yes
9854	export_dynamic_flag_spec='$wl-E'
9855	# hardcode_minus_L: Not really in the search PATH,
9856	# but as the default location of the library.
9857	hardcode_minus_L=yes
9858      fi
9859      ;;
9860
9861    hpux11*)
9862      if test yes,no = "$GCC,$with_gnu_ld"; then
9863	case $host_cpu in
9864	hppa*64*)
9865	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	ia64*)
9868	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869	  ;;
9870	*)
9871	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9872	  ;;
9873	esac
9874      else
9875	case $host_cpu in
9876	hppa*64*)
9877	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	ia64*)
9880	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	*)
9883
9884	  # Older versions of the 11.00 compiler do not understand -b yet
9885	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9886	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9887$as_echo_n "checking if $CC understands -b... " >&6; }
9888if ${lt_cv_prog_compiler__b+:} false; then :
9889  $as_echo_n "(cached) " >&6
9890else
9891  lt_cv_prog_compiler__b=no
9892   save_LDFLAGS=$LDFLAGS
9893   LDFLAGS="$LDFLAGS -b"
9894   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9895   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9896     # The linker can only warn and ignore the option if not recognized
9897     # So say no if there are warnings
9898     if test -s conftest.err; then
9899       # Append any errors to the config.log.
9900       cat conftest.err 1>&5
9901       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9902       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903       if diff conftest.exp conftest.er2 >/dev/null; then
9904         lt_cv_prog_compiler__b=yes
9905       fi
9906     else
9907       lt_cv_prog_compiler__b=yes
9908     fi
9909   fi
9910   $RM -r conftest*
9911   LDFLAGS=$save_LDFLAGS
9912
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9915$as_echo "$lt_cv_prog_compiler__b" >&6; }
9916
9917if test yes = "$lt_cv_prog_compiler__b"; then
9918    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919else
9920    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9921fi
9922
9923	  ;;
9924	esac
9925      fi
9926      if test no = "$with_gnu_ld"; then
9927	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9928	hardcode_libdir_separator=:
9929
9930	case $host_cpu in
9931	hppa*64*|ia64*)
9932	  hardcode_direct=no
9933	  hardcode_shlibpath_var=no
9934	  ;;
9935	*)
9936	  hardcode_direct=yes
9937	  hardcode_direct_absolute=yes
9938	  export_dynamic_flag_spec='$wl-E'
9939
9940	  # hardcode_minus_L: Not really in the search PATH,
9941	  # but as the default location of the library.
9942	  hardcode_minus_L=yes
9943	  ;;
9944	esac
9945      fi
9946      ;;
9947
9948    irix5* | irix6* | nonstopux*)
9949      if test yes = "$GCC"; then
9950	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'
9951	# Try to use the -exported_symbol ld option, if it does not
9952	# work, assume that -exports_file does not work either and
9953	# implicitly export all symbols.
9954	# This should be the same for all languages, so no per-tag cache variable.
9955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9956$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9957if ${lt_cv_irix_exported_symbol+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  save_LDFLAGS=$LDFLAGS
9961	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9962	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964int foo (void) { return 0; }
9965_ACEOF
9966if ac_fn_c_try_link "$LINENO"; then :
9967  lt_cv_irix_exported_symbol=yes
9968else
9969  lt_cv_irix_exported_symbol=no
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972    conftest$ac_exeext conftest.$ac_ext
9973           LDFLAGS=$save_LDFLAGS
9974fi
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9976$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9977	if test yes = "$lt_cv_irix_exported_symbol"; then
9978          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'
9979	fi
9980	link_all_deplibs=no
9981      else
9982	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'
9983	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'
9984      fi
9985      archive_cmds_need_lc='no'
9986      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9987      hardcode_libdir_separator=:
9988      inherit_rpath=yes
9989      link_all_deplibs=yes
9990      ;;
9991
9992    linux*)
9993      case $cc_basename in
9994      tcc*)
9995	# Fabrice Bellard et al's Tiny C Compiler
9996	ld_shlibs=yes
9997	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998	;;
9999      esac
10000      ;;
10001
10002    netbsd* | netbsdelf*-gnu)
10003      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10005      else
10006	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10007      fi
10008      hardcode_libdir_flag_spec='-R$libdir'
10009      hardcode_direct=yes
10010      hardcode_shlibpath_var=no
10011      ;;
10012
10013    newsos6)
10014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015      hardcode_direct=yes
10016      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10017      hardcode_libdir_separator=:
10018      hardcode_shlibpath_var=no
10019      ;;
10020
10021    *nto* | *qnx*)
10022      ;;
10023
10024    openbsd* | bitrig*)
10025      if test -f /usr/libexec/ld.so; then
10026	hardcode_direct=yes
10027	hardcode_shlibpath_var=no
10028	hardcode_direct_absolute=yes
10029	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10030	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10032	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10033	  export_dynamic_flag_spec='$wl-E'
10034	else
10035	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10036	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10037	fi
10038      else
10039	ld_shlibs=no
10040      fi
10041      ;;
10042
10043    os2*)
10044      hardcode_libdir_flag_spec='-L$libdir'
10045      hardcode_minus_L=yes
10046      allow_undefined_flag=unsupported
10047      shrext_cmds=.dll
10048      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10049	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10050	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10051	$ECHO EXPORTS >> $output_objdir/$libname.def~
10052	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10053	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10054	emximp -o $lib $output_objdir/$libname.def'
10055      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10056	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10057	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10058	$ECHO EXPORTS >> $output_objdir/$libname.def~
10059	prefix_cmds="$SED"~
10060	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10061	  prefix_cmds="$prefix_cmds -e 1d";
10062	fi~
10063	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10064	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10065	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10066	emximp -o $lib $output_objdir/$libname.def'
10067      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10068      enable_shared_with_static_runtimes=yes
10069      ;;
10070
10071    osf3*)
10072      if test yes = "$GCC"; then
10073	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10074	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'
10075      else
10076	allow_undefined_flag=' -expect_unresolved \*'
10077	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'
10078      fi
10079      archive_cmds_need_lc='no'
10080      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10081      hardcode_libdir_separator=:
10082      ;;
10083
10084    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10085      if test yes = "$GCC"; then
10086	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10087	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'
10088	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10089      else
10090	allow_undefined_flag=' -expect_unresolved \*'
10091	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'
10092	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~
10093          $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'
10094
10095	# Both c and cxx compiler support -rpath directly
10096	hardcode_libdir_flag_spec='-rpath $libdir'
10097      fi
10098      archive_cmds_need_lc='no'
10099      hardcode_libdir_separator=:
10100      ;;
10101
10102    solaris*)
10103      no_undefined_flag=' -z defs'
10104      if test yes = "$GCC"; then
10105	wlarc='$wl'
10106	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10107	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10108          $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'
10109      else
10110	case `$CC -V 2>&1` in
10111	*"Compilers 5.0"*)
10112	  wlarc=''
10113	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10115            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10116	  ;;
10117	*)
10118	  wlarc='$wl'
10119	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10120	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10122	  ;;
10123	esac
10124      fi
10125      hardcode_libdir_flag_spec='-R$libdir'
10126      hardcode_shlibpath_var=no
10127      case $host_os in
10128      solaris2.[0-5] | solaris2.[0-5].*) ;;
10129      *)
10130	# The compiler driver will combine and reorder linker options,
10131	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10132	# but is careful enough not to reorder.
10133	# Supported since Solaris 2.6 (maybe 2.5.1?)
10134	if test yes = "$GCC"; then
10135	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10136	else
10137	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10138	fi
10139	;;
10140      esac
10141      link_all_deplibs=yes
10142      ;;
10143
10144    sunos4*)
10145      if test sequent = "$host_vendor"; then
10146	# Use $CC to link under sequent, because it throws in some extra .o
10147	# files that make .init and .fini sections work.
10148	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10149      else
10150	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10151      fi
10152      hardcode_libdir_flag_spec='-L$libdir'
10153      hardcode_direct=yes
10154      hardcode_minus_L=yes
10155      hardcode_shlibpath_var=no
10156      ;;
10157
10158    sysv4)
10159      case $host_vendor in
10160	sni)
10161	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162	  hardcode_direct=yes # is this really true???
10163	;;
10164	siemens)
10165	  ## LD is ld it makes a PLAMLIB
10166	  ## CC just makes a GrossModule.
10167	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10168	  reload_cmds='$CC -r -o $output$reload_objs'
10169	  hardcode_direct=no
10170        ;;
10171	motorola)
10172	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10174	;;
10175      esac
10176      runpath_var='LD_RUN_PATH'
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    sysv4.3*)
10181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182      hardcode_shlibpath_var=no
10183      export_dynamic_flag_spec='-Bexport'
10184      ;;
10185
10186    sysv4*MP*)
10187      if test -d /usr/nec; then
10188	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189	hardcode_shlibpath_var=no
10190	runpath_var=LD_RUN_PATH
10191	hardcode_runpath_var=yes
10192	ld_shlibs=yes
10193      fi
10194      ;;
10195
10196    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10197      no_undefined_flag='$wl-z,text'
10198      archive_cmds_need_lc=no
10199      hardcode_shlibpath_var=no
10200      runpath_var='LD_RUN_PATH'
10201
10202      if test yes = "$GCC"; then
10203	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205      else
10206	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208      fi
10209      ;;
10210
10211    sysv5* | sco3.2v5* | sco5v6*)
10212      # Note: We CANNOT use -z defs as we might desire, because we do not
10213      # link with -lc, and that would cause any symbols used from libc to
10214      # always be unresolved, which means just about no library would
10215      # ever link correctly.  If we're not using GNU ld we use -z text
10216      # though, which does catch some bad symbols but isn't as heavy-handed
10217      # as -z defs.
10218      no_undefined_flag='$wl-z,text'
10219      allow_undefined_flag='$wl-z,nodefs'
10220      archive_cmds_need_lc=no
10221      hardcode_shlibpath_var=no
10222      hardcode_libdir_flag_spec='$wl-R,$libdir'
10223      hardcode_libdir_separator=':'
10224      link_all_deplibs=yes
10225      export_dynamic_flag_spec='$wl-Bexport'
10226      runpath_var='LD_RUN_PATH'
10227
10228      if test yes = "$GCC"; then
10229	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231      else
10232	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234      fi
10235      ;;
10236
10237    uts4*)
10238      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239      hardcode_libdir_flag_spec='-L$libdir'
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    *)
10244      ld_shlibs=no
10245      ;;
10246    esac
10247
10248    if test sni = "$host_vendor"; then
10249      case $host in
10250      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10251	export_dynamic_flag_spec='$wl-Blargedynsym'
10252	;;
10253      esac
10254    fi
10255  fi
10256
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10258$as_echo "$ld_shlibs" >&6; }
10259test no = "$ld_shlibs" && can_build_shared=no
10260
10261with_gnu_ld=$with_gnu_ld
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277#
10278# Do we need to explicitly link libc?
10279#
10280case "x$archive_cmds_need_lc" in
10281x|xyes)
10282  # Assume -lc should be added
10283  archive_cmds_need_lc=yes
10284
10285  if test yes,yes = "$GCC,$enable_shared"; then
10286    case $archive_cmds in
10287    *'~'*)
10288      # FIXME: we may have to deal with multi-command sequences.
10289      ;;
10290    '$CC '*)
10291      # Test whether the compiler implicitly links with -lc since on some
10292      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10293      # to ld, don't add -lc before -lgcc.
10294      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10295$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10296if ${lt_cv_archive_cmds_need_lc+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  $RM conftest*
10300	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10301
10302	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10303  (eval $ac_compile) 2>&5
10304  ac_status=$?
10305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10306  test $ac_status = 0; } 2>conftest.err; then
10307	  soname=conftest
10308	  lib=conftest
10309	  libobjs=conftest.$ac_objext
10310	  deplibs=
10311	  wl=$lt_prog_compiler_wl
10312	  pic_flag=$lt_prog_compiler_pic
10313	  compiler_flags=-v
10314	  linker_flags=-v
10315	  verstring=
10316	  output_objdir=.
10317	  libname=conftest
10318	  lt_save_allow_undefined_flag=$allow_undefined_flag
10319	  allow_undefined_flag=
10320	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10321  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10322  ac_status=$?
10323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10324  test $ac_status = 0; }
10325	  then
10326	    lt_cv_archive_cmds_need_lc=no
10327	  else
10328	    lt_cv_archive_cmds_need_lc=yes
10329	  fi
10330	  allow_undefined_flag=$lt_save_allow_undefined_flag
10331	else
10332	  cat conftest.err 1>&5
10333	fi
10334	$RM conftest*
10335
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10338$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10339      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10340      ;;
10341    esac
10342  fi
10343  ;;
10344esac
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10498$as_echo_n "checking dynamic linker characteristics... " >&6; }
10499
10500if test yes = "$GCC"; then
10501  case $host_os in
10502    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10503    *) lt_awk_arg='/^libraries:/' ;;
10504  esac
10505  case $host_os in
10506    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10507    *) lt_sed_strip_eq='s|=/|/|g' ;;
10508  esac
10509  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10510  case $lt_search_path_spec in
10511  *\;*)
10512    # if the path contains ";" then we assume it to be the separator
10513    # otherwise default to the standard path separator (i.e. ":") - it is
10514    # assumed that no part of a normal pathname contains ";" but that should
10515    # okay in the real world where ";" in dirpaths is itself problematic.
10516    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10517    ;;
10518  *)
10519    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10520    ;;
10521  esac
10522  # Ok, now we have the path, separated by spaces, we can step through it
10523  # and add multilib dir if necessary...
10524  lt_tmp_lt_search_path_spec=
10525  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10526  # ...but if some path component already ends with the multilib dir we assume
10527  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10528  case "$lt_multi_os_dir; $lt_search_path_spec " in
10529  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10530    lt_multi_os_dir=
10531    ;;
10532  esac
10533  for lt_sys_path in $lt_search_path_spec; do
10534    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10535      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10536    elif test -n "$lt_multi_os_dir"; then
10537      test -d "$lt_sys_path" && \
10538	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10539    fi
10540  done
10541  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10542BEGIN {RS = " "; FS = "/|\n";} {
10543  lt_foo = "";
10544  lt_count = 0;
10545  for (lt_i = NF; lt_i > 0; lt_i--) {
10546    if ($lt_i != "" && $lt_i != ".") {
10547      if ($lt_i == "..") {
10548        lt_count++;
10549      } else {
10550        if (lt_count == 0) {
10551          lt_foo = "/" $lt_i lt_foo;
10552        } else {
10553          lt_count--;
10554        }
10555      }
10556    }
10557  }
10558  if (lt_foo != "") { lt_freq[lt_foo]++; }
10559  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10560}'`
10561  # AWK program above erroneously prepends '/' to C:/dos/paths
10562  # for these hosts.
10563  case $host_os in
10564    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10565      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10566  esac
10567  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10568else
10569  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10570fi
10571library_names_spec=
10572libname_spec='lib$name'
10573soname_spec=
10574shrext_cmds=.so
10575postinstall_cmds=
10576postuninstall_cmds=
10577finish_cmds=
10578finish_eval=
10579shlibpath_var=
10580shlibpath_overrides_runpath=unknown
10581version_type=none
10582dynamic_linker="$host_os ld.so"
10583sys_lib_dlsearch_path_spec="/lib /usr/lib"
10584need_lib_prefix=unknown
10585hardcode_into_libs=no
10586
10587# when you set need_version to no, make sure it does not cause -set_version
10588# flags to be left without arguments
10589need_version=unknown
10590
10591
10592
10593case $host_os in
10594aix3*)
10595  version_type=linux # correct to gnu/linux during the next big refactor
10596  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10597  shlibpath_var=LIBPATH
10598
10599  # AIX 3 has no versioning support, so we append a major version to the name.
10600  soname_spec='$libname$release$shared_ext$major'
10601  ;;
10602
10603aix[4-9]*)
10604  version_type=linux # correct to gnu/linux during the next big refactor
10605  need_lib_prefix=no
10606  need_version=no
10607  hardcode_into_libs=yes
10608  if test ia64 = "$host_cpu"; then
10609    # AIX 5 supports IA64
10610    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10611    shlibpath_var=LD_LIBRARY_PATH
10612  else
10613    # With GCC up to 2.95.x, collect2 would create an import file
10614    # for dependence libraries.  The import file would start with
10615    # the line '#! .'.  This would cause the generated library to
10616    # depend on '.', always an invalid library.  This was fixed in
10617    # development snapshots of GCC prior to 3.0.
10618    case $host_os in
10619      aix4 | aix4.[01] | aix4.[01].*)
10620      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10621	   echo ' yes '
10622	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10623	:
10624      else
10625	can_build_shared=no
10626      fi
10627      ;;
10628    esac
10629    # Using Import Files as archive members, it is possible to support
10630    # filename-based versioning of shared library archives on AIX. While
10631    # this would work for both with and without runtime linking, it will
10632    # prevent static linking of such archives. So we do filename-based
10633    # shared library versioning with .so extension only, which is used
10634    # when both runtime linking and shared linking is enabled.
10635    # Unfortunately, runtime linking may impact performance, so we do
10636    # not want this to be the default eventually. Also, we use the
10637    # versioned .so libs for executables only if there is the -brtl
10638    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10639    # To allow for filename-based versioning support, we need to create
10640    # libNAME.so.V as an archive file, containing:
10641    # *) an Import File, referring to the versioned filename of the
10642    #    archive as well as the shared archive member, telling the
10643    #    bitwidth (32 or 64) of that shared object, and providing the
10644    #    list of exported symbols of that shared object, eventually
10645    #    decorated with the 'weak' keyword
10646    # *) the shared object with the F_LOADONLY flag set, to really avoid
10647    #    it being seen by the linker.
10648    # At run time we better use the real file rather than another symlink,
10649    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10650
10651    case $with_aix_soname,$aix_use_runtimelinking in
10652    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10653    # soname into executable. Probably we can add versioning support to
10654    # collect2, so additional links can be useful in future.
10655    aix,yes) # traditional libtool
10656      dynamic_linker='AIX unversionable lib.so'
10657      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10658      # instead of lib<name>.a to let people know that these are not
10659      # typical AIX shared libraries.
10660      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10661      ;;
10662    aix,no) # traditional AIX only
10663      dynamic_linker='AIX lib.a(lib.so.V)'
10664      # We preserve .a as extension for shared libraries through AIX4.2
10665      # and later when we are not doing run time linking.
10666      library_names_spec='$libname$release.a $libname.a'
10667      soname_spec='$libname$release$shared_ext$major'
10668      ;;
10669    svr4,*) # full svr4 only
10670      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10671      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10672      # We do not specify a path in Import Files, so LIBPATH fires.
10673      shlibpath_overrides_runpath=yes
10674      ;;
10675    *,yes) # both, prefer svr4
10676      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10677      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10678      # unpreferred sharedlib libNAME.a needs extra handling
10679      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"'
10680      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"'
10681      # We do not specify a path in Import Files, so LIBPATH fires.
10682      shlibpath_overrides_runpath=yes
10683      ;;
10684    *,no) # both, prefer aix
10685      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10686      library_names_spec='$libname$release.a $libname.a'
10687      soname_spec='$libname$release$shared_ext$major'
10688      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10689      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)'
10690      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"'
10691      ;;
10692    esac
10693    shlibpath_var=LIBPATH
10694  fi
10695  ;;
10696
10697amigaos*)
10698  case $host_cpu in
10699  powerpc)
10700    # Since July 2007 AmigaOS4 officially supports .so libraries.
10701    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10702    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10703    ;;
10704  m68k)
10705    library_names_spec='$libname.ixlibrary $libname.a'
10706    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10707    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'
10708    ;;
10709  esac
10710  ;;
10711
10712beos*)
10713  library_names_spec='$libname$shared_ext'
10714  dynamic_linker="$host_os ld.so"
10715  shlibpath_var=LIBRARY_PATH
10716  ;;
10717
10718bsdi[45]*)
10719  version_type=linux # correct to gnu/linux during the next big refactor
10720  need_version=no
10721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10722  soname_spec='$libname$release$shared_ext$major'
10723  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10724  shlibpath_var=LD_LIBRARY_PATH
10725  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10726  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10727  # the default ld.so.conf also contains /usr/contrib/lib and
10728  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10729  # libtool to hard-code these into programs
10730  ;;
10731
10732cygwin* | mingw* | pw32* | cegcc*)
10733  version_type=windows
10734  shrext_cmds=.dll
10735  need_version=no
10736  need_lib_prefix=no
10737
10738  case $GCC,$cc_basename in
10739  yes,*)
10740    # gcc
10741    library_names_spec='$libname.dll.a'
10742    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10743    postinstall_cmds='base_file=`basename \$file`~
10744      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10745      dldir=$destdir/`dirname \$dlpath`~
10746      test -d \$dldir || mkdir -p \$dldir~
10747      $install_prog $dir/$dlname \$dldir/$dlname~
10748      chmod a+x \$dldir/$dlname~
10749      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10750        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10751      fi'
10752    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753      dlpath=$dir/\$dldll~
10754       $RM \$dlpath'
10755    shlibpath_overrides_runpath=yes
10756
10757    case $host_os in
10758    cygwin*)
10759      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10760      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10761
10762      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10763      ;;
10764    mingw* | cegcc*)
10765      # MinGW DLLs use traditional 'lib' prefix
10766      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10767      ;;
10768    pw32*)
10769      # pw32 DLLs use 'pw' prefix rather than 'lib'
10770      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10771      ;;
10772    esac
10773    dynamic_linker='Win32 ld.exe'
10774    ;;
10775
10776  *,cl*)
10777    # Native MSVC
10778    libname_spec='$name'
10779    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10780    library_names_spec='$libname.dll.lib'
10781
10782    case $build_os in
10783    mingw*)
10784      sys_lib_search_path_spec=
10785      lt_save_ifs=$IFS
10786      IFS=';'
10787      for lt_path in $LIB
10788      do
10789        IFS=$lt_save_ifs
10790        # Let DOS variable expansion print the short 8.3 style file name.
10791        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10792        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10793      done
10794      IFS=$lt_save_ifs
10795      # Convert to MSYS style.
10796      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10797      ;;
10798    cygwin*)
10799      # Convert to unix form, then to dos form, then back to unix form
10800      # but this time dos style (no spaces!) so that the unix form looks
10801      # like /cygdrive/c/PROGRA~1:/cygdr...
10802      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10803      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10804      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805      ;;
10806    *)
10807      sys_lib_search_path_spec=$LIB
10808      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10809        # It is most probably a Windows format PATH.
10810        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10811      else
10812        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813      fi
10814      # FIXME: find the short name or the path components, as spaces are
10815      # common. (e.g. "Program Files" -> "PROGRA~1")
10816      ;;
10817    esac
10818
10819    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10820    postinstall_cmds='base_file=`basename \$file`~
10821      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10822      dldir=$destdir/`dirname \$dlpath`~
10823      test -d \$dldir || mkdir -p \$dldir~
10824      $install_prog $dir/$dlname \$dldir/$dlname'
10825    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10826      dlpath=$dir/\$dldll~
10827       $RM \$dlpath'
10828    shlibpath_overrides_runpath=yes
10829    dynamic_linker='Win32 link.exe'
10830    ;;
10831
10832  *)
10833    # Assume MSVC wrapper
10834    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10835    dynamic_linker='Win32 ld.exe'
10836    ;;
10837  esac
10838  # FIXME: first we should search . and the directory the executable is in
10839  shlibpath_var=PATH
10840  ;;
10841
10842darwin* | rhapsody*)
10843  dynamic_linker="$host_os dyld"
10844  version_type=darwin
10845  need_lib_prefix=no
10846  need_version=no
10847  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10848  soname_spec='$libname$release$major$shared_ext'
10849  shlibpath_overrides_runpath=yes
10850  shlibpath_var=DYLD_LIBRARY_PATH
10851  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10852
10853  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10854  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855  ;;
10856
10857dgux*)
10858  version_type=linux # correct to gnu/linux during the next big refactor
10859  need_lib_prefix=no
10860  need_version=no
10861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862  soname_spec='$libname$release$shared_ext$major'
10863  shlibpath_var=LD_LIBRARY_PATH
10864  ;;
10865
10866freebsd* | dragonfly*)
10867  # DragonFly does not have aout.  When/if they implement a new
10868  # versioning mechanism, adjust this.
10869  if test -x /usr/bin/objformat; then
10870    objformat=`/usr/bin/objformat`
10871  else
10872    case $host_os in
10873    freebsd[23].*) objformat=aout ;;
10874    *) objformat=elf ;;
10875    esac
10876  fi
10877  version_type=freebsd-$objformat
10878  case $version_type in
10879    freebsd-elf*)
10880      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881      soname_spec='$libname$release$shared_ext$major'
10882      need_version=no
10883      need_lib_prefix=no
10884      ;;
10885    freebsd-*)
10886      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10887      need_version=yes
10888      ;;
10889  esac
10890  shlibpath_var=LD_LIBRARY_PATH
10891  case $host_os in
10892  freebsd2.*)
10893    shlibpath_overrides_runpath=yes
10894    ;;
10895  freebsd3.[01]* | freebsdelf3.[01]*)
10896    shlibpath_overrides_runpath=yes
10897    hardcode_into_libs=yes
10898    ;;
10899  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10900  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10901    shlibpath_overrides_runpath=no
10902    hardcode_into_libs=yes
10903    ;;
10904  *) # from 4.6 on, and DragonFly
10905    shlibpath_overrides_runpath=yes
10906    hardcode_into_libs=yes
10907    ;;
10908  esac
10909  ;;
10910
10911haiku*)
10912  version_type=linux # correct to gnu/linux during the next big refactor
10913  need_lib_prefix=no
10914  need_version=no
10915  dynamic_linker="$host_os runtime_loader"
10916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10917  soname_spec='$libname$release$shared_ext$major'
10918  shlibpath_var=LIBRARY_PATH
10919  shlibpath_overrides_runpath=no
10920  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10921  hardcode_into_libs=yes
10922  ;;
10923
10924hpux9* | hpux10* | hpux11*)
10925  # Give a soname corresponding to the major version so that dld.sl refuses to
10926  # link against other versions.
10927  version_type=sunos
10928  need_lib_prefix=no
10929  need_version=no
10930  case $host_cpu in
10931  ia64*)
10932    shrext_cmds='.so'
10933    hardcode_into_libs=yes
10934    dynamic_linker="$host_os dld.so"
10935    shlibpath_var=LD_LIBRARY_PATH
10936    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938    soname_spec='$libname$release$shared_ext$major'
10939    if test 32 = "$HPUX_IA64_MODE"; then
10940      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10941      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10942    else
10943      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10944      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10945    fi
10946    ;;
10947  hppa*64*)
10948    shrext_cmds='.sl'
10949    hardcode_into_libs=yes
10950    dynamic_linker="$host_os dld.sl"
10951    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10952    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954    soname_spec='$libname$release$shared_ext$major'
10955    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10956    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10957    ;;
10958  *)
10959    shrext_cmds='.sl'
10960    dynamic_linker="$host_os dld.sl"
10961    shlibpath_var=SHLIB_PATH
10962    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10963    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964    soname_spec='$libname$release$shared_ext$major'
10965    ;;
10966  esac
10967  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10968  postinstall_cmds='chmod 555 $lib'
10969  # or fails outright, so override atomically:
10970  install_override_mode=555
10971  ;;
10972
10973interix[3-9]*)
10974  version_type=linux # correct to gnu/linux during the next big refactor
10975  need_lib_prefix=no
10976  need_version=no
10977  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10978  soname_spec='$libname$release$shared_ext$major'
10979  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10980  shlibpath_var=LD_LIBRARY_PATH
10981  shlibpath_overrides_runpath=no
10982  hardcode_into_libs=yes
10983  ;;
10984
10985irix5* | irix6* | nonstopux*)
10986  case $host_os in
10987    nonstopux*) version_type=nonstopux ;;
10988    *)
10989	if test yes = "$lt_cv_prog_gnu_ld"; then
10990		version_type=linux # correct to gnu/linux during the next big refactor
10991	else
10992		version_type=irix
10993	fi ;;
10994  esac
10995  need_lib_prefix=no
10996  need_version=no
10997  soname_spec='$libname$release$shared_ext$major'
10998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10999  case $host_os in
11000  irix5* | nonstopux*)
11001    libsuff= shlibsuff=
11002    ;;
11003  *)
11004    case $LD in # libtool.m4 will add one of these switches to LD
11005    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11006      libsuff= shlibsuff= libmagic=32-bit;;
11007    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11008      libsuff=32 shlibsuff=N32 libmagic=N32;;
11009    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11010      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11011    *) libsuff= shlibsuff= libmagic=never-match;;
11012    esac
11013    ;;
11014  esac
11015  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11016  shlibpath_overrides_runpath=no
11017  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11018  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11019  hardcode_into_libs=yes
11020  ;;
11021
11022# No shared lib support for Linux oldld, aout, or coff.
11023linux*oldld* | linux*aout* | linux*coff*)
11024  dynamic_linker=no
11025  ;;
11026
11027linux*android*)
11028  version_type=none # Android doesn't support versioned libraries.
11029  need_lib_prefix=no
11030  need_version=no
11031  library_names_spec='$libname$release$shared_ext'
11032  soname_spec='$libname$release$shared_ext'
11033  finish_cmds=
11034  shlibpath_var=LD_LIBRARY_PATH
11035  shlibpath_overrides_runpath=yes
11036
11037  # This implies no fast_install, which is unacceptable.
11038  # Some rework will be needed to allow for fast_install
11039  # before this can be enabled.
11040  hardcode_into_libs=yes
11041
11042  dynamic_linker='Android linker'
11043  # Don't embed -rpath directories since the linker doesn't support them.
11044  hardcode_libdir_flag_spec='-L$libdir'
11045  ;;
11046
11047# This must be glibc/ELF.
11048linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11049  version_type=linux # correct to gnu/linux during the next big refactor
11050  need_lib_prefix=no
11051  need_version=no
11052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053  soname_spec='$libname$release$shared_ext$major'
11054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11055  shlibpath_var=LD_LIBRARY_PATH
11056  shlibpath_overrides_runpath=no
11057
11058  # Some binutils ld are patched to set DT_RUNPATH
11059  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11060  $as_echo_n "(cached) " >&6
11061else
11062  lt_cv_shlibpath_overrides_runpath=no
11063    save_LDFLAGS=$LDFLAGS
11064    save_libdir=$libdir
11065    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11066	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068/* end confdefs.h.  */
11069
11070int
11071main ()
11072{
11073
11074  ;
11075  return 0;
11076}
11077_ACEOF
11078if ac_fn_c_try_link "$LINENO"; then :
11079  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11080  lt_cv_shlibpath_overrides_runpath=yes
11081fi
11082fi
11083rm -f core conftest.err conftest.$ac_objext \
11084    conftest$ac_exeext conftest.$ac_ext
11085    LDFLAGS=$save_LDFLAGS
11086    libdir=$save_libdir
11087
11088fi
11089
11090  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11091
11092  # This implies no fast_install, which is unacceptable.
11093  # Some rework will be needed to allow for fast_install
11094  # before this can be enabled.
11095  hardcode_into_libs=yes
11096
11097  # Ideally, we could use ldconfig to report *all* directores which are
11098  # searched for libraries, however this is still not possible.  Aside from not
11099  # being certain /sbin/ldconfig is available, command
11100  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11101  # even though it is searched at run-time.  Try to do the best guess by
11102  # appending ld.so.conf contents (and includes) to the search path.
11103  if test -f /etc/ld.so.conf; then
11104    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' ' '`
11105    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11106  fi
11107
11108  # We used to test for /lib/ld.so.1 and disable shared libraries on
11109  # powerpc, because MkLinux only supported shared libraries with the
11110  # GNU dynamic linker.  Since this was broken with cross compilers,
11111  # most powerpc-linux boxes support dynamic linking these days and
11112  # people can always --disable-shared, the test was removed, and we
11113  # assume the GNU/Linux dynamic linker is in use.
11114  dynamic_linker='GNU/Linux ld.so'
11115  ;;
11116
11117netbsdelf*-gnu)
11118  version_type=linux
11119  need_lib_prefix=no
11120  need_version=no
11121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11122  soname_spec='${libname}${release}${shared_ext}$major'
11123  shlibpath_var=LD_LIBRARY_PATH
11124  shlibpath_overrides_runpath=no
11125  hardcode_into_libs=yes
11126  dynamic_linker='NetBSD ld.elf_so'
11127  ;;
11128
11129netbsd*)
11130  version_type=sunos
11131  need_lib_prefix=no
11132  need_version=no
11133  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11134    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11135    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11136    dynamic_linker='NetBSD (a.out) ld.so'
11137  else
11138    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139    soname_spec='$libname$release$shared_ext$major'
11140    dynamic_linker='NetBSD ld.elf_so'
11141  fi
11142  shlibpath_var=LD_LIBRARY_PATH
11143  shlibpath_overrides_runpath=yes
11144  hardcode_into_libs=yes
11145  ;;
11146
11147newsos6)
11148  version_type=linux # correct to gnu/linux during the next big refactor
11149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11150  shlibpath_var=LD_LIBRARY_PATH
11151  shlibpath_overrides_runpath=yes
11152  ;;
11153
11154*nto* | *qnx*)
11155  version_type=qnx
11156  need_lib_prefix=no
11157  need_version=no
11158  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159  soname_spec='$libname$release$shared_ext$major'
11160  shlibpath_var=LD_LIBRARY_PATH
11161  shlibpath_overrides_runpath=no
11162  hardcode_into_libs=yes
11163  dynamic_linker='ldqnx.so'
11164  ;;
11165
11166openbsd* | bitrig*)
11167  version_type=sunos
11168  sys_lib_dlsearch_path_spec=/usr/lib
11169  need_lib_prefix=no
11170  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11171    need_version=no
11172  else
11173    need_version=yes
11174  fi
11175  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11176  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  shlibpath_overrides_runpath=yes
11179  ;;
11180
11181os2*)
11182  libname_spec='$name'
11183  version_type=windows
11184  shrext_cmds=.dll
11185  need_version=no
11186  need_lib_prefix=no
11187  # OS/2 can only load a DLL with a base name of 8 characters or less.
11188  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11189    v=$($ECHO $release$versuffix | tr -d .-);
11190    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11191    $ECHO $n$v`$shared_ext'
11192  library_names_spec='${libname}_dll.$libext'
11193  dynamic_linker='OS/2 ld.exe'
11194  shlibpath_var=BEGINLIBPATH
11195  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11196  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11197  postinstall_cmds='base_file=`basename \$file`~
11198    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11199    dldir=$destdir/`dirname \$dlpath`~
11200    test -d \$dldir || mkdir -p \$dldir~
11201    $install_prog $dir/$dlname \$dldir/$dlname~
11202    chmod a+x \$dldir/$dlname~
11203    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11204      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11205    fi'
11206  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11207    dlpath=$dir/\$dldll~
11208    $RM \$dlpath'
11209  ;;
11210
11211osf3* | osf4* | osf5*)
11212  version_type=osf
11213  need_lib_prefix=no
11214  need_version=no
11215  soname_spec='$libname$release$shared_ext$major'
11216  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217  shlibpath_var=LD_LIBRARY_PATH
11218  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11219  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11220  ;;
11221
11222rdos*)
11223  dynamic_linker=no
11224  ;;
11225
11226solaris*)
11227  version_type=linux # correct to gnu/linux during the next big refactor
11228  need_lib_prefix=no
11229  need_version=no
11230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11231  soname_spec='$libname$release$shared_ext$major'
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=yes
11234  hardcode_into_libs=yes
11235  # ldd complains unless libraries are executable
11236  postinstall_cmds='chmod +x $lib'
11237  ;;
11238
11239sunos4*)
11240  version_type=sunos
11241  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11242  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11243  shlibpath_var=LD_LIBRARY_PATH
11244  shlibpath_overrides_runpath=yes
11245  if test yes = "$with_gnu_ld"; then
11246    need_lib_prefix=no
11247  fi
11248  need_version=yes
11249  ;;
11250
11251sysv4 | sysv4.3*)
11252  version_type=linux # correct to gnu/linux during the next big refactor
11253  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254  soname_spec='$libname$release$shared_ext$major'
11255  shlibpath_var=LD_LIBRARY_PATH
11256  case $host_vendor in
11257    sni)
11258      shlibpath_overrides_runpath=no
11259      need_lib_prefix=no
11260      runpath_var=LD_RUN_PATH
11261      ;;
11262    siemens)
11263      need_lib_prefix=no
11264      ;;
11265    motorola)
11266      need_lib_prefix=no
11267      need_version=no
11268      shlibpath_overrides_runpath=no
11269      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11270      ;;
11271  esac
11272  ;;
11273
11274sysv4*MP*)
11275  if test -d /usr/nec; then
11276    version_type=linux # correct to gnu/linux during the next big refactor
11277    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11278    soname_spec='$libname$shared_ext.$major'
11279    shlibpath_var=LD_LIBRARY_PATH
11280  fi
11281  ;;
11282
11283sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11284  version_type=sco
11285  need_lib_prefix=no
11286  need_version=no
11287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11288  soname_spec='$libname$release$shared_ext$major'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  shlibpath_overrides_runpath=yes
11291  hardcode_into_libs=yes
11292  if test yes = "$with_gnu_ld"; then
11293    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11294  else
11295    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11296    case $host_os in
11297      sco3.2v5*)
11298        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11299	;;
11300    esac
11301  fi
11302  sys_lib_dlsearch_path_spec='/usr/lib'
11303  ;;
11304
11305tpf*)
11306  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11307  version_type=linux # correct to gnu/linux during the next big refactor
11308  need_lib_prefix=no
11309  need_version=no
11310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311  shlibpath_var=LD_LIBRARY_PATH
11312  shlibpath_overrides_runpath=no
11313  hardcode_into_libs=yes
11314  ;;
11315
11316uts4*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319  soname_spec='$libname$release$shared_ext$major'
11320  shlibpath_var=LD_LIBRARY_PATH
11321  ;;
11322
11323*)
11324  dynamic_linker=no
11325  ;;
11326esac
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11328$as_echo "$dynamic_linker" >&6; }
11329test no = "$dynamic_linker" && can_build_shared=no
11330
11331variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11332if test yes = "$GCC"; then
11333  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11334fi
11335
11336if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11337  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11338fi
11339
11340if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11341  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11342fi
11343
11344# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11345configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11346
11347# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11348func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11349
11350# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11351configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11450$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11451hardcode_action=
11452if test -n "$hardcode_libdir_flag_spec" ||
11453   test -n "$runpath_var" ||
11454   test yes = "$hardcode_automatic"; then
11455
11456  # We can hardcode non-existent directories.
11457  if test no != "$hardcode_direct" &&
11458     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11459     # have to relink, otherwise we might link with an installed library
11460     # when we should be linking with a yet-to-be-installed one
11461     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11462     test no != "$hardcode_minus_L"; then
11463    # Linking always hardcodes the temporary library directory.
11464    hardcode_action=relink
11465  else
11466    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11467    hardcode_action=immediate
11468  fi
11469else
11470  # We cannot hardcode anything, or else we can only hardcode existing
11471  # directories.
11472  hardcode_action=unsupported
11473fi
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11475$as_echo "$hardcode_action" >&6; }
11476
11477if test relink = "$hardcode_action" ||
11478   test yes = "$inherit_rpath"; then
11479  # Fast installation is not supported
11480  enable_fast_install=no
11481elif test yes = "$shlibpath_overrides_runpath" ||
11482     test no = "$enable_shared"; then
11483  # Fast installation is not necessary
11484  enable_fast_install=needless
11485fi
11486
11487
11488
11489
11490
11491
11492  if test yes != "$enable_dlopen"; then
11493  enable_dlopen=unknown
11494  enable_dlopen_self=unknown
11495  enable_dlopen_self_static=unknown
11496else
11497  lt_cv_dlopen=no
11498  lt_cv_dlopen_libs=
11499
11500  case $host_os in
11501  beos*)
11502    lt_cv_dlopen=load_add_on
11503    lt_cv_dlopen_libs=
11504    lt_cv_dlopen_self=yes
11505    ;;
11506
11507  mingw* | pw32* | cegcc*)
11508    lt_cv_dlopen=LoadLibrary
11509    lt_cv_dlopen_libs=
11510    ;;
11511
11512  cygwin*)
11513    lt_cv_dlopen=dlopen
11514    lt_cv_dlopen_libs=
11515    ;;
11516
11517  darwin*)
11518    # if libdl is installed we need to link against it
11519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11520$as_echo_n "checking for dlopen in -ldl... " >&6; }
11521if ${ac_cv_lib_dl_dlopen+:} false; then :
11522  $as_echo_n "(cached) " >&6
11523else
11524  ac_check_lib_save_LIBS=$LIBS
11525LIBS="-ldl  $LIBS"
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530   Use char because int might match the return type of a GCC
11531   builtin and then its argument prototype would still apply.  */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char dlopen ();
11536int
11537main ()
11538{
11539return dlopen ();
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545  ac_cv_lib_dl_dlopen=yes
11546else
11547  ac_cv_lib_dl_dlopen=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11555if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11556  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11557else
11558
11559    lt_cv_dlopen=dyld
11560    lt_cv_dlopen_libs=
11561    lt_cv_dlopen_self=yes
11562
11563fi
11564
11565    ;;
11566
11567  tpf*)
11568    # Don't try to run any link tests for TPF.  We know it's impossible
11569    # because TPF is a cross-compiler, and we know how we open DSOs.
11570    lt_cv_dlopen=dlopen
11571    lt_cv_dlopen_libs=
11572    lt_cv_dlopen_self=no
11573    ;;
11574
11575  *)
11576    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11577if test "x$ac_cv_func_shl_load" = xyes; then :
11578  lt_cv_dlopen=shl_load
11579else
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11581$as_echo_n "checking for shl_load in -ldld... " >&6; }
11582if ${ac_cv_lib_dld_shl_load+:} false; then :
11583  $as_echo_n "(cached) " >&6
11584else
11585  ac_check_lib_save_LIBS=$LIBS
11586LIBS="-ldld  $LIBS"
11587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588/* end confdefs.h.  */
11589
11590/* Override any GCC internal prototype to avoid an error.
11591   Use char because int might match the return type of a GCC
11592   builtin and then its argument prototype would still apply.  */
11593#ifdef __cplusplus
11594extern "C"
11595#endif
11596char shl_load ();
11597int
11598main ()
11599{
11600return shl_load ();
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605if ac_fn_c_try_link "$LINENO"; then :
11606  ac_cv_lib_dld_shl_load=yes
11607else
11608  ac_cv_lib_dld_shl_load=no
11609fi
11610rm -f core conftest.err conftest.$ac_objext \
11611    conftest$ac_exeext conftest.$ac_ext
11612LIBS=$ac_check_lib_save_LIBS
11613fi
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11615$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11616if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11617  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11618else
11619  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11620if test "x$ac_cv_func_dlopen" = xyes; then :
11621  lt_cv_dlopen=dlopen
11622else
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11624$as_echo_n "checking for dlopen in -ldl... " >&6; }
11625if ${ac_cv_lib_dl_dlopen+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  ac_check_lib_save_LIBS=$LIBS
11629LIBS="-ldl  $LIBS"
11630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632
11633/* Override any GCC internal prototype to avoid an error.
11634   Use char because int might match the return type of a GCC
11635   builtin and then its argument prototype would still apply.  */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639char dlopen ();
11640int
11641main ()
11642{
11643return dlopen ();
11644  ;
11645  return 0;
11646}
11647_ACEOF
11648if ac_fn_c_try_link "$LINENO"; then :
11649  ac_cv_lib_dl_dlopen=yes
11650else
11651  ac_cv_lib_dl_dlopen=no
11652fi
11653rm -f core conftest.err conftest.$ac_objext \
11654    conftest$ac_exeext conftest.$ac_ext
11655LIBS=$ac_check_lib_save_LIBS
11656fi
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11658$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11659if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11660  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11661else
11662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11663$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11664if ${ac_cv_lib_svld_dlopen+:} false; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  ac_check_lib_save_LIBS=$LIBS
11668LIBS="-lsvld  $LIBS"
11669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h.  */
11671
11672/* Override any GCC internal prototype to avoid an error.
11673   Use char because int might match the return type of a GCC
11674   builtin and then its argument prototype would still apply.  */
11675#ifdef __cplusplus
11676extern "C"
11677#endif
11678char dlopen ();
11679int
11680main ()
11681{
11682return dlopen ();
11683  ;
11684  return 0;
11685}
11686_ACEOF
11687if ac_fn_c_try_link "$LINENO"; then :
11688  ac_cv_lib_svld_dlopen=yes
11689else
11690  ac_cv_lib_svld_dlopen=no
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693    conftest$ac_exeext conftest.$ac_ext
11694LIBS=$ac_check_lib_save_LIBS
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11697$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11698if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11699  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11700else
11701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11702$as_echo_n "checking for dld_link in -ldld... " >&6; }
11703if ${ac_cv_lib_dld_dld_link+:} false; then :
11704  $as_echo_n "(cached) " >&6
11705else
11706  ac_check_lib_save_LIBS=$LIBS
11707LIBS="-ldld  $LIBS"
11708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709/* end confdefs.h.  */
11710
11711/* Override any GCC internal prototype to avoid an error.
11712   Use char because int might match the return type of a GCC
11713   builtin and then its argument prototype would still apply.  */
11714#ifdef __cplusplus
11715extern "C"
11716#endif
11717char dld_link ();
11718int
11719main ()
11720{
11721return dld_link ();
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_link "$LINENO"; then :
11727  ac_cv_lib_dld_dld_link=yes
11728else
11729  ac_cv_lib_dld_dld_link=no
11730fi
11731rm -f core conftest.err conftest.$ac_objext \
11732    conftest$ac_exeext conftest.$ac_ext
11733LIBS=$ac_check_lib_save_LIBS
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11736$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11737if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11738  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11739fi
11740
11741
11742fi
11743
11744
11745fi
11746
11747
11748fi
11749
11750
11751fi
11752
11753
11754fi
11755
11756    ;;
11757  esac
11758
11759  if test no = "$lt_cv_dlopen"; then
11760    enable_dlopen=no
11761  else
11762    enable_dlopen=yes
11763  fi
11764
11765  case $lt_cv_dlopen in
11766  dlopen)
11767    save_CPPFLAGS=$CPPFLAGS
11768    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11769
11770    save_LDFLAGS=$LDFLAGS
11771    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11772
11773    save_LIBS=$LIBS
11774    LIBS="$lt_cv_dlopen_libs $LIBS"
11775
11776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11777$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11778if ${lt_cv_dlopen_self+:} false; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  	  if test yes = "$cross_compiling"; then :
11782  lt_cv_dlopen_self=cross
11783else
11784  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11785  lt_status=$lt_dlunknown
11786  cat > conftest.$ac_ext <<_LT_EOF
11787#line $LINENO "configure"
11788#include "confdefs.h"
11789
11790#if HAVE_DLFCN_H
11791#include <dlfcn.h>
11792#endif
11793
11794#include <stdio.h>
11795
11796#ifdef RTLD_GLOBAL
11797#  define LT_DLGLOBAL		RTLD_GLOBAL
11798#else
11799#  ifdef DL_GLOBAL
11800#    define LT_DLGLOBAL		DL_GLOBAL
11801#  else
11802#    define LT_DLGLOBAL		0
11803#  endif
11804#endif
11805
11806/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11807   find out it does not work in some platform. */
11808#ifndef LT_DLLAZY_OR_NOW
11809#  ifdef RTLD_LAZY
11810#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11811#  else
11812#    ifdef DL_LAZY
11813#      define LT_DLLAZY_OR_NOW		DL_LAZY
11814#    else
11815#      ifdef RTLD_NOW
11816#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11817#      else
11818#        ifdef DL_NOW
11819#          define LT_DLLAZY_OR_NOW	DL_NOW
11820#        else
11821#          define LT_DLLAZY_OR_NOW	0
11822#        endif
11823#      endif
11824#    endif
11825#  endif
11826#endif
11827
11828/* When -fvisibility=hidden is used, assume the code has been annotated
11829   correspondingly for the symbols needed.  */
11830#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11831int fnord () __attribute__((visibility("default")));
11832#endif
11833
11834int fnord () { return 42; }
11835int main ()
11836{
11837  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11838  int status = $lt_dlunknown;
11839
11840  if (self)
11841    {
11842      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11843      else
11844        {
11845	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11846          else puts (dlerror ());
11847	}
11848      /* dlclose (self); */
11849    }
11850  else
11851    puts (dlerror ());
11852
11853  return status;
11854}
11855_LT_EOF
11856  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11857  (eval $ac_link) 2>&5
11858  ac_status=$?
11859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11861    (./conftest; exit; ) >&5 2>/dev/null
11862    lt_status=$?
11863    case x$lt_status in
11864      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11865      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11866      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11867    esac
11868  else :
11869    # compilation failed
11870    lt_cv_dlopen_self=no
11871  fi
11872fi
11873rm -fr conftest*
11874
11875
11876fi
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11878$as_echo "$lt_cv_dlopen_self" >&6; }
11879
11880    if test yes = "$lt_cv_dlopen_self"; then
11881      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11882      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11883$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11884if ${lt_cv_dlopen_self_static+:} false; then :
11885  $as_echo_n "(cached) " >&6
11886else
11887  	  if test yes = "$cross_compiling"; then :
11888  lt_cv_dlopen_self_static=cross
11889else
11890  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11891  lt_status=$lt_dlunknown
11892  cat > conftest.$ac_ext <<_LT_EOF
11893#line $LINENO "configure"
11894#include "confdefs.h"
11895
11896#if HAVE_DLFCN_H
11897#include <dlfcn.h>
11898#endif
11899
11900#include <stdio.h>
11901
11902#ifdef RTLD_GLOBAL
11903#  define LT_DLGLOBAL		RTLD_GLOBAL
11904#else
11905#  ifdef DL_GLOBAL
11906#    define LT_DLGLOBAL		DL_GLOBAL
11907#  else
11908#    define LT_DLGLOBAL		0
11909#  endif
11910#endif
11911
11912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11913   find out it does not work in some platform. */
11914#ifndef LT_DLLAZY_OR_NOW
11915#  ifdef RTLD_LAZY
11916#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11917#  else
11918#    ifdef DL_LAZY
11919#      define LT_DLLAZY_OR_NOW		DL_LAZY
11920#    else
11921#      ifdef RTLD_NOW
11922#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11923#      else
11924#        ifdef DL_NOW
11925#          define LT_DLLAZY_OR_NOW	DL_NOW
11926#        else
11927#          define LT_DLLAZY_OR_NOW	0
11928#        endif
11929#      endif
11930#    endif
11931#  endif
11932#endif
11933
11934/* When -fvisibility=hidden is used, assume the code has been annotated
11935   correspondingly for the symbols needed.  */
11936#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11937int fnord () __attribute__((visibility("default")));
11938#endif
11939
11940int fnord () { return 42; }
11941int main ()
11942{
11943  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11944  int status = $lt_dlunknown;
11945
11946  if (self)
11947    {
11948      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11949      else
11950        {
11951	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11952          else puts (dlerror ());
11953	}
11954      /* dlclose (self); */
11955    }
11956  else
11957    puts (dlerror ());
11958
11959  return status;
11960}
11961_LT_EOF
11962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11963  (eval $ac_link) 2>&5
11964  ac_status=$?
11965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11966  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11967    (./conftest; exit; ) >&5 2>/dev/null
11968    lt_status=$?
11969    case x$lt_status in
11970      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11971      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11972      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11973    esac
11974  else :
11975    # compilation failed
11976    lt_cv_dlopen_self_static=no
11977  fi
11978fi
11979rm -fr conftest*
11980
11981
11982fi
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11984$as_echo "$lt_cv_dlopen_self_static" >&6; }
11985    fi
11986
11987    CPPFLAGS=$save_CPPFLAGS
11988    LDFLAGS=$save_LDFLAGS
11989    LIBS=$save_LIBS
11990    ;;
11991  esac
11992
11993  case $lt_cv_dlopen_self in
11994  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11995  *) enable_dlopen_self=unknown ;;
11996  esac
11997
11998  case $lt_cv_dlopen_self_static in
11999  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12000  *) enable_dlopen_self_static=unknown ;;
12001  esac
12002fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020striplib=
12021old_striplib=
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12023$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12024if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12025  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12026  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12028$as_echo "yes" >&6; }
12029else
12030# FIXME - insert some real tests, host_os isn't really good enough
12031  case $host_os in
12032  darwin*)
12033    if test -n "$STRIP"; then
12034      striplib="$STRIP -x"
12035      old_striplib="$STRIP -S"
12036      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037$as_echo "yes" >&6; }
12038    else
12039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
12041    fi
12042    ;;
12043  *)
12044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
12046    ;;
12047  esac
12048fi
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061  # Report what library types will actually be built
12062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12063$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12065$as_echo "$can_build_shared" >&6; }
12066
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12068$as_echo_n "checking whether to build shared libraries... " >&6; }
12069  test no = "$can_build_shared" && enable_shared=no
12070
12071  # On AIX, shared libraries and static libraries use the same namespace, and
12072  # are all built from PIC.
12073  case $host_os in
12074  aix3*)
12075    test yes = "$enable_shared" && enable_static=no
12076    if test -n "$RANLIB"; then
12077      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12078      postinstall_cmds='$RANLIB $lib'
12079    fi
12080    ;;
12081
12082  aix[4-9]*)
12083    if test ia64 != "$host_cpu"; then
12084      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12085      yes,aix,yes) ;;			# shared object as lib.so file only
12086      yes,svr4,*) ;;			# shared object as lib.so archive member only
12087      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12088      esac
12089    fi
12090    ;;
12091  esac
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12093$as_echo "$enable_shared" >&6; }
12094
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12096$as_echo_n "checking whether to build static libraries... " >&6; }
12097  # Make sure either enable_shared or enable_static is yes.
12098  test yes = "$enable_shared" || enable_static=yes
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12100$as_echo "$enable_static" >&6; }
12101
12102
12103
12104
12105fi
12106ac_ext=c
12107ac_cpp='$CPP $CPPFLAGS'
12108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12110ac_compiler_gnu=$ac_cv_c_compiler_gnu
12111
12112CC=$lt_save_CC
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128        ac_config_commands="$ac_config_commands libtool"
12129
12130
12131
12132
12133# Only expand once:
12134
12135
12136
12137# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12150$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12151if ${ac_cv_prog_cc_c99+:} false; then :
12152  $as_echo_n "(cached) " >&6
12153else
12154  ac_cv_prog_cc_c99=no
12155ac_save_CC=$CC
12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h.  */
12158#include <stdarg.h>
12159#include <stdbool.h>
12160#include <stdlib.h>
12161#include <wchar.h>
12162#include <stdio.h>
12163
12164// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12165#define debug(...) fprintf (stderr, __VA_ARGS__)
12166#define showlist(...) puts (#__VA_ARGS__)
12167#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12168static void
12169test_varargs_macros (void)
12170{
12171  int x = 1234;
12172  int y = 5678;
12173  debug ("Flag");
12174  debug ("X = %d\n", x);
12175  showlist (The first, second, and third items.);
12176  report (x>y, "x is %d but y is %d", x, y);
12177}
12178
12179// Check long long types.
12180#define BIG64 18446744073709551615ull
12181#define BIG32 4294967295ul
12182#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12183#if !BIG_OK
12184  your preprocessor is broken;
12185#endif
12186#if BIG_OK
12187#else
12188  your preprocessor is broken;
12189#endif
12190static long long int bignum = -9223372036854775807LL;
12191static unsigned long long int ubignum = BIG64;
12192
12193struct incomplete_array
12194{
12195  int datasize;
12196  double data[];
12197};
12198
12199struct named_init {
12200  int number;
12201  const wchar_t *name;
12202  double average;
12203};
12204
12205typedef const char *ccp;
12206
12207static inline int
12208test_restrict (ccp restrict text)
12209{
12210  // See if C++-style comments work.
12211  // Iterate through items via the restricted pointer.
12212  // Also check for declarations in for loops.
12213  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12214    continue;
12215  return 0;
12216}
12217
12218// Check varargs and va_copy.
12219static void
12220test_varargs (const char *format, ...)
12221{
12222  va_list args;
12223  va_start (args, format);
12224  va_list args_copy;
12225  va_copy (args_copy, args);
12226
12227  const char *str;
12228  int number;
12229  float fnumber;
12230
12231  while (*format)
12232    {
12233      switch (*format++)
12234	{
12235	case 's': // string
12236	  str = va_arg (args_copy, const char *);
12237	  break;
12238	case 'd': // int
12239	  number = va_arg (args_copy, int);
12240	  break;
12241	case 'f': // float
12242	  fnumber = va_arg (args_copy, double);
12243	  break;
12244	default:
12245	  break;
12246	}
12247    }
12248  va_end (args_copy);
12249  va_end (args);
12250}
12251
12252int
12253main ()
12254{
12255
12256  // Check bool.
12257  _Bool success = false;
12258
12259  // Check restrict.
12260  if (test_restrict ("String literal") == 0)
12261    success = true;
12262  char *restrict newvar = "Another string";
12263
12264  // Check varargs.
12265  test_varargs ("s, d' f .", "string", 65, 34.234);
12266  test_varargs_macros ();
12267
12268  // Check flexible array members.
12269  struct incomplete_array *ia =
12270    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12271  ia->datasize = 10;
12272  for (int i = 0; i < ia->datasize; ++i)
12273    ia->data[i] = i * 1.234;
12274
12275  // Check named initializers.
12276  struct named_init ni = {
12277    .number = 34,
12278    .name = L"Test wide string",
12279    .average = 543.34343,
12280  };
12281
12282  ni.number = 58;
12283
12284  int dynamic_array[ni.number];
12285  dynamic_array[ni.number - 1] = 543;
12286
12287  // work around unused variable warnings
12288  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12289	  || dynamic_array[ni.number - 1] != 543);
12290
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12296do
12297  CC="$ac_save_CC $ac_arg"
12298  if ac_fn_c_try_compile "$LINENO"; then :
12299  ac_cv_prog_cc_c99=$ac_arg
12300fi
12301rm -f core conftest.err conftest.$ac_objext
12302  test "x$ac_cv_prog_cc_c99" != "xno" && break
12303done
12304rm -f conftest.$ac_ext
12305CC=$ac_save_CC
12306
12307fi
12308# AC_CACHE_VAL
12309case "x$ac_cv_prog_cc_c99" in
12310  x)
12311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12312$as_echo "none needed" >&6; } ;;
12313  xno)
12314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12315$as_echo "unsupported" >&6; } ;;
12316  *)
12317    CC="$CC $ac_cv_prog_cc_c99"
12318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12319$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12320esac
12321if test "x$ac_cv_prog_cc_c99" != xno; then :
12322
12323fi
12324
12325
12326
12327
12328
12329
12330ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12331if test "x$ac_cv_have_decl___clang__" = xyes; then :
12332  CLANGCC="yes"
12333else
12334  CLANGCC="no"
12335fi
12336
12337ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12338if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12339  INTELCC="yes"
12340else
12341  INTELCC="no"
12342fi
12343
12344ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12345if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12346  SUNCC="yes"
12347else
12348  SUNCC="no"
12349fi
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12360	if test -n "$ac_tool_prefix"; then
12361  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12362set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
12365if ${ac_cv_path_PKG_CONFIG+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  case $PKG_CONFIG in
12369  [\\/]* | ?:[\\/]*)
12370  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12371  ;;
12372  *)
12373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376  IFS=$as_save_IFS
12377  test -z "$as_dir" && as_dir=.
12378    for ac_exec_ext in '' $ac_executable_extensions; do
12379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382    break 2
12383  fi
12384done
12385  done
12386IFS=$as_save_IFS
12387
12388  ;;
12389esac
12390fi
12391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12392if test -n "$PKG_CONFIG"; then
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12394$as_echo "$PKG_CONFIG" >&6; }
12395else
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398fi
12399
12400
12401fi
12402if test -z "$ac_cv_path_PKG_CONFIG"; then
12403  ac_pt_PKG_CONFIG=$PKG_CONFIG
12404  # Extract the first word of "pkg-config", so it can be a program name with args.
12405set dummy pkg-config; ac_word=$2
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
12408if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12409  $as_echo_n "(cached) " >&6
12410else
12411  case $ac_pt_PKG_CONFIG in
12412  [\\/]* | ?:[\\/]*)
12413  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12414  ;;
12415  *)
12416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $PATH
12418do
12419  IFS=$as_save_IFS
12420  test -z "$as_dir" && as_dir=.
12421    for ac_exec_ext in '' $ac_executable_extensions; do
12422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425    break 2
12426  fi
12427done
12428  done
12429IFS=$as_save_IFS
12430
12431  ;;
12432esac
12433fi
12434ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12435if test -n "$ac_pt_PKG_CONFIG"; then
12436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12437$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12438else
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443  if test "x$ac_pt_PKG_CONFIG" = x; then
12444    PKG_CONFIG=""
12445  else
12446    case $cross_compiling:$ac_tool_warned in
12447yes:)
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12450ac_tool_warned=yes ;;
12451esac
12452    PKG_CONFIG=$ac_pt_PKG_CONFIG
12453  fi
12454else
12455  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12456fi
12457
12458fi
12459if test -n "$PKG_CONFIG"; then
12460	_pkg_min_version=0.9.0
12461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12462$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12463	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465$as_echo "yes" >&6; }
12466	else
12467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
12469		PKG_CONFIG=""
12470	fi
12471fi
12472
12473
12474
12475
12476
12477# Check whether --enable-selective-werror was given.
12478if test "${enable_selective_werror+set}" = set; then :
12479  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12480else
12481  SELECTIVE_WERROR=yes
12482fi
12483
12484
12485
12486
12487
12488# -v is too short to test reliably with XORG_TESTSET_CFLAG
12489if test "x$SUNCC" = "xyes"; then
12490    BASE_CFLAGS="-v"
12491else
12492    BASE_CFLAGS=""
12493fi
12494
12495# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509xorg_testset_save_CFLAGS="$CFLAGS"
12510
12511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h.  */
12520int i;
12521_ACEOF
12522if ac_fn_c_try_compile "$LINENO"; then :
12523  xorg_cv_cc_flag_unknown_warning_option=yes
12524else
12525  xorg_cv_cc_flag_unknown_warning_option=no
12526fi
12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528fi
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12532	CFLAGS="$xorg_testset_save_CFLAGS"
12533fi
12534
12535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12538	fi
12539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h.  */
12547int i;
12548_ACEOF
12549if ac_fn_c_try_compile "$LINENO"; then :
12550  xorg_cv_cc_flag_unused_command_line_argument=yes
12551else
12552  xorg_cv_cc_flag_unused_command_line_argument=no
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12559	CFLAGS="$xorg_testset_save_CFLAGS"
12560fi
12561
12562found="no"
12563
12564	if test $found = "no" ; then
12565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567		fi
12568
12569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12571		fi
12572
12573		CFLAGS="$CFLAGS -Wall"
12574
12575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12576$as_echo_n "checking if $CC supports -Wall... " >&6; }
12577		cacheid=xorg_cv_cc_flag__Wall
12578		if eval \${$cacheid+:} false; then :
12579  $as_echo_n "(cached) " >&6
12580else
12581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583int i;
12584int
12585main ()
12586{
12587
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593  eval $cacheid=yes
12594else
12595  eval $cacheid=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598    conftest$ac_exeext conftest.$ac_ext
12599fi
12600
12601
12602		CFLAGS="$xorg_testset_save_CFLAGS"
12603
12604		eval supported=\$$cacheid
12605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12606$as_echo "$supported" >&6; }
12607		if test "$supported" = "yes" ; then
12608			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12609			found="yes"
12610		fi
12611	fi
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627xorg_testset_save_CFLAGS="$CFLAGS"
12628
12629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12634  $as_echo_n "(cached) " >&6
12635else
12636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637/* end confdefs.h.  */
12638int i;
12639_ACEOF
12640if ac_fn_c_try_compile "$LINENO"; then :
12641  xorg_cv_cc_flag_unknown_warning_option=yes
12642else
12643  xorg_cv_cc_flag_unknown_warning_option=no
12644fi
12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12650	CFLAGS="$xorg_testset_save_CFLAGS"
12651fi
12652
12653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12656	fi
12657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665int i;
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668  xorg_cv_cc_flag_unused_command_line_argument=yes
12669else
12670  xorg_cv_cc_flag_unused_command_line_argument=no
12671fi
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673fi
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12677	CFLAGS="$xorg_testset_save_CFLAGS"
12678fi
12679
12680found="no"
12681
12682	if test $found = "no" ; then
12683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685		fi
12686
12687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12689		fi
12690
12691		CFLAGS="$CFLAGS -Wpointer-arith"
12692
12693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12694$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12695		cacheid=xorg_cv_cc_flag__Wpointer_arith
12696		if eval \${$cacheid+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700/* end confdefs.h.  */
12701int i;
12702int
12703main ()
12704{
12705
12706  ;
12707  return 0;
12708}
12709_ACEOF
12710if ac_fn_c_try_link "$LINENO"; then :
12711  eval $cacheid=yes
12712else
12713  eval $cacheid=no
12714fi
12715rm -f core conftest.err conftest.$ac_objext \
12716    conftest$ac_exeext conftest.$ac_ext
12717fi
12718
12719
12720		CFLAGS="$xorg_testset_save_CFLAGS"
12721
12722		eval supported=\$$cacheid
12723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12724$as_echo "$supported" >&6; }
12725		if test "$supported" = "yes" ; then
12726			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12727			found="yes"
12728		fi
12729	fi
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745xorg_testset_save_CFLAGS="$CFLAGS"
12746
12747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12752  $as_echo_n "(cached) " >&6
12753else
12754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756int i;
12757_ACEOF
12758if ac_fn_c_try_compile "$LINENO"; then :
12759  xorg_cv_cc_flag_unknown_warning_option=yes
12760else
12761  xorg_cv_cc_flag_unknown_warning_option=no
12762fi
12763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764fi
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12768	CFLAGS="$xorg_testset_save_CFLAGS"
12769fi
12770
12771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12774	fi
12775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12779  $as_echo_n "(cached) " >&6
12780else
12781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782/* end confdefs.h.  */
12783int i;
12784_ACEOF
12785if ac_fn_c_try_compile "$LINENO"; then :
12786  xorg_cv_cc_flag_unused_command_line_argument=yes
12787else
12788  xorg_cv_cc_flag_unused_command_line_argument=no
12789fi
12790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12795	CFLAGS="$xorg_testset_save_CFLAGS"
12796fi
12797
12798found="no"
12799
12800	if test $found = "no" ; then
12801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12803		fi
12804
12805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12807		fi
12808
12809		CFLAGS="$CFLAGS -Wmissing-declarations"
12810
12811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12812$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12813		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12814		if eval \${$cacheid+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818/* end confdefs.h.  */
12819int i;
12820int
12821main ()
12822{
12823
12824  ;
12825  return 0;
12826}
12827_ACEOF
12828if ac_fn_c_try_link "$LINENO"; then :
12829  eval $cacheid=yes
12830else
12831  eval $cacheid=no
12832fi
12833rm -f core conftest.err conftest.$ac_objext \
12834    conftest$ac_exeext conftest.$ac_ext
12835fi
12836
12837
12838		CFLAGS="$xorg_testset_save_CFLAGS"
12839
12840		eval supported=\$$cacheid
12841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12842$as_echo "$supported" >&6; }
12843		if test "$supported" = "yes" ; then
12844			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12845			found="yes"
12846		fi
12847	fi
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863xorg_testset_save_CFLAGS="$CFLAGS"
12864
12865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12870  $as_echo_n "(cached) " >&6
12871else
12872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h.  */
12874int i;
12875_ACEOF
12876if ac_fn_c_try_compile "$LINENO"; then :
12877  xorg_cv_cc_flag_unknown_warning_option=yes
12878else
12879  xorg_cv_cc_flag_unknown_warning_option=no
12880fi
12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12886	CFLAGS="$xorg_testset_save_CFLAGS"
12887fi
12888
12889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12892	fi
12893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12897  $as_echo_n "(cached) " >&6
12898else
12899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901int i;
12902_ACEOF
12903if ac_fn_c_try_compile "$LINENO"; then :
12904  xorg_cv_cc_flag_unused_command_line_argument=yes
12905else
12906  xorg_cv_cc_flag_unused_command_line_argument=no
12907fi
12908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909fi
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12913	CFLAGS="$xorg_testset_save_CFLAGS"
12914fi
12915
12916found="no"
12917
12918	if test $found = "no" ; then
12919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12921		fi
12922
12923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12925		fi
12926
12927		CFLAGS="$CFLAGS -Wformat=2"
12928
12929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12930$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12931		cacheid=xorg_cv_cc_flag__Wformat_2
12932		if eval \${$cacheid+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937int i;
12938int
12939main ()
12940{
12941
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_link "$LINENO"; then :
12947  eval $cacheid=yes
12948else
12949  eval $cacheid=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952    conftest$ac_exeext conftest.$ac_ext
12953fi
12954
12955
12956		CFLAGS="$xorg_testset_save_CFLAGS"
12957
12958		eval supported=\$$cacheid
12959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12960$as_echo "$supported" >&6; }
12961		if test "$supported" = "yes" ; then
12962			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12963			found="yes"
12964		fi
12965	fi
12966
12967	if test $found = "no" ; then
12968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12970		fi
12971
12972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12974		fi
12975
12976		CFLAGS="$CFLAGS -Wformat"
12977
12978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12979$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12980		cacheid=xorg_cv_cc_flag__Wformat
12981		if eval \${$cacheid+:} false; then :
12982  $as_echo_n "(cached) " >&6
12983else
12984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985/* end confdefs.h.  */
12986int i;
12987int
12988main ()
12989{
12990
12991  ;
12992  return 0;
12993}
12994_ACEOF
12995if ac_fn_c_try_link "$LINENO"; then :
12996  eval $cacheid=yes
12997else
12998  eval $cacheid=no
12999fi
13000rm -f core conftest.err conftest.$ac_objext \
13001    conftest$ac_exeext conftest.$ac_ext
13002fi
13003
13004
13005		CFLAGS="$xorg_testset_save_CFLAGS"
13006
13007		eval supported=\$$cacheid
13008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13009$as_echo "$supported" >&6; }
13010		if test "$supported" = "yes" ; then
13011			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13012			found="yes"
13013		fi
13014	fi
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032xorg_testset_save_CFLAGS="$CFLAGS"
13033
13034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13039  $as_echo_n "(cached) " >&6
13040else
13041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042/* end confdefs.h.  */
13043int i;
13044_ACEOF
13045if ac_fn_c_try_compile "$LINENO"; then :
13046  xorg_cv_cc_flag_unknown_warning_option=yes
13047else
13048  xorg_cv_cc_flag_unknown_warning_option=no
13049fi
13050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13055	CFLAGS="$xorg_testset_save_CFLAGS"
13056fi
13057
13058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13061	fi
13062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070int i;
13071_ACEOF
13072if ac_fn_c_try_compile "$LINENO"; then :
13073  xorg_cv_cc_flag_unused_command_line_argument=yes
13074else
13075  xorg_cv_cc_flag_unused_command_line_argument=no
13076fi
13077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078fi
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13082	CFLAGS="$xorg_testset_save_CFLAGS"
13083fi
13084
13085found="no"
13086
13087	if test $found = "no" ; then
13088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090		fi
13091
13092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13094		fi
13095
13096		CFLAGS="$CFLAGS -Wstrict-prototypes"
13097
13098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13099$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13100		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13101		if eval \${$cacheid+:} false; then :
13102  $as_echo_n "(cached) " >&6
13103else
13104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h.  */
13106int i;
13107int
13108main ()
13109{
13110
13111  ;
13112  return 0;
13113}
13114_ACEOF
13115if ac_fn_c_try_link "$LINENO"; then :
13116  eval $cacheid=yes
13117else
13118  eval $cacheid=no
13119fi
13120rm -f core conftest.err conftest.$ac_objext \
13121    conftest$ac_exeext conftest.$ac_ext
13122fi
13123
13124
13125		CFLAGS="$xorg_testset_save_CFLAGS"
13126
13127		eval supported=\$$cacheid
13128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13129$as_echo "$supported" >&6; }
13130		if test "$supported" = "yes" ; then
13131			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13132			found="yes"
13133		fi
13134	fi
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150xorg_testset_save_CFLAGS="$CFLAGS"
13151
13152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13157  $as_echo_n "(cached) " >&6
13158else
13159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160/* end confdefs.h.  */
13161int i;
13162_ACEOF
13163if ac_fn_c_try_compile "$LINENO"; then :
13164  xorg_cv_cc_flag_unknown_warning_option=yes
13165else
13166  xorg_cv_cc_flag_unknown_warning_option=no
13167fi
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169fi
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13173	CFLAGS="$xorg_testset_save_CFLAGS"
13174fi
13175
13176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13179	fi
13180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13184  $as_echo_n "(cached) " >&6
13185else
13186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h.  */
13188int i;
13189_ACEOF
13190if ac_fn_c_try_compile "$LINENO"; then :
13191  xorg_cv_cc_flag_unused_command_line_argument=yes
13192else
13193  xorg_cv_cc_flag_unused_command_line_argument=no
13194fi
13195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13200	CFLAGS="$xorg_testset_save_CFLAGS"
13201fi
13202
13203found="no"
13204
13205	if test $found = "no" ; then
13206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208		fi
13209
13210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13212		fi
13213
13214		CFLAGS="$CFLAGS -Wmissing-prototypes"
13215
13216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13217$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13218		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13219		if eval \${$cacheid+:} false; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224int i;
13225int
13226main ()
13227{
13228
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_c_try_link "$LINENO"; then :
13234  eval $cacheid=yes
13235else
13236  eval $cacheid=no
13237fi
13238rm -f core conftest.err conftest.$ac_objext \
13239    conftest$ac_exeext conftest.$ac_ext
13240fi
13241
13242
13243		CFLAGS="$xorg_testset_save_CFLAGS"
13244
13245		eval supported=\$$cacheid
13246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13247$as_echo "$supported" >&6; }
13248		if test "$supported" = "yes" ; then
13249			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13250			found="yes"
13251		fi
13252	fi
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268xorg_testset_save_CFLAGS="$CFLAGS"
13269
13270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13275  $as_echo_n "(cached) " >&6
13276else
13277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279int i;
13280_ACEOF
13281if ac_fn_c_try_compile "$LINENO"; then :
13282  xorg_cv_cc_flag_unknown_warning_option=yes
13283else
13284  xorg_cv_cc_flag_unknown_warning_option=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287fi
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13291	CFLAGS="$xorg_testset_save_CFLAGS"
13292fi
13293
13294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297	fi
13298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306int i;
13307_ACEOF
13308if ac_fn_c_try_compile "$LINENO"; then :
13309  xorg_cv_cc_flag_unused_command_line_argument=yes
13310else
13311  xorg_cv_cc_flag_unused_command_line_argument=no
13312fi
13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314fi
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13318	CFLAGS="$xorg_testset_save_CFLAGS"
13319fi
13320
13321found="no"
13322
13323	if test $found = "no" ; then
13324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13326		fi
13327
13328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13330		fi
13331
13332		CFLAGS="$CFLAGS -Wnested-externs"
13333
13334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13335$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13336		cacheid=xorg_cv_cc_flag__Wnested_externs
13337		if eval \${$cacheid+:} false; then :
13338  $as_echo_n "(cached) " >&6
13339else
13340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341/* end confdefs.h.  */
13342int i;
13343int
13344main ()
13345{
13346
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351if ac_fn_c_try_link "$LINENO"; then :
13352  eval $cacheid=yes
13353else
13354  eval $cacheid=no
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358fi
13359
13360
13361		CFLAGS="$xorg_testset_save_CFLAGS"
13362
13363		eval supported=\$$cacheid
13364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13365$as_echo "$supported" >&6; }
13366		if test "$supported" = "yes" ; then
13367			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13368			found="yes"
13369		fi
13370	fi
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386xorg_testset_save_CFLAGS="$CFLAGS"
13387
13388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13393  $as_echo_n "(cached) " >&6
13394else
13395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396/* end confdefs.h.  */
13397int i;
13398_ACEOF
13399if ac_fn_c_try_compile "$LINENO"; then :
13400  xorg_cv_cc_flag_unknown_warning_option=yes
13401else
13402  xorg_cv_cc_flag_unknown_warning_option=no
13403fi
13404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405fi
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13409	CFLAGS="$xorg_testset_save_CFLAGS"
13410fi
13411
13412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415	fi
13416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423/* end confdefs.h.  */
13424int i;
13425_ACEOF
13426if ac_fn_c_try_compile "$LINENO"; then :
13427  xorg_cv_cc_flag_unused_command_line_argument=yes
13428else
13429  xorg_cv_cc_flag_unused_command_line_argument=no
13430fi
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13436	CFLAGS="$xorg_testset_save_CFLAGS"
13437fi
13438
13439found="no"
13440
13441	if test $found = "no" ; then
13442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444		fi
13445
13446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13448		fi
13449
13450		CFLAGS="$CFLAGS -Wbad-function-cast"
13451
13452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13453$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13454		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13455		if eval \${$cacheid+:} false; then :
13456  $as_echo_n "(cached) " >&6
13457else
13458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459/* end confdefs.h.  */
13460int i;
13461int
13462main ()
13463{
13464
13465  ;
13466  return 0;
13467}
13468_ACEOF
13469if ac_fn_c_try_link "$LINENO"; then :
13470  eval $cacheid=yes
13471else
13472  eval $cacheid=no
13473fi
13474rm -f core conftest.err conftest.$ac_objext \
13475    conftest$ac_exeext conftest.$ac_ext
13476fi
13477
13478
13479		CFLAGS="$xorg_testset_save_CFLAGS"
13480
13481		eval supported=\$$cacheid
13482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13483$as_echo "$supported" >&6; }
13484		if test "$supported" = "yes" ; then
13485			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13486			found="yes"
13487		fi
13488	fi
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504xorg_testset_save_CFLAGS="$CFLAGS"
13505
13506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13511  $as_echo_n "(cached) " >&6
13512else
13513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515int i;
13516_ACEOF
13517if ac_fn_c_try_compile "$LINENO"; then :
13518  xorg_cv_cc_flag_unknown_warning_option=yes
13519else
13520  xorg_cv_cc_flag_unknown_warning_option=no
13521fi
13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523fi
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13527	CFLAGS="$xorg_testset_save_CFLAGS"
13528fi
13529
13530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533	fi
13534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13538  $as_echo_n "(cached) " >&6
13539else
13540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541/* end confdefs.h.  */
13542int i;
13543_ACEOF
13544if ac_fn_c_try_compile "$LINENO"; then :
13545  xorg_cv_cc_flag_unused_command_line_argument=yes
13546else
13547  xorg_cv_cc_flag_unused_command_line_argument=no
13548fi
13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13554	CFLAGS="$xorg_testset_save_CFLAGS"
13555fi
13556
13557found="no"
13558
13559	if test $found = "no" ; then
13560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562		fi
13563
13564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13566		fi
13567
13568		CFLAGS="$CFLAGS -Wold-style-definition"
13569
13570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13571$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13572		cacheid=xorg_cv_cc_flag__Wold_style_definition
13573		if eval \${$cacheid+:} false; then :
13574  $as_echo_n "(cached) " >&6
13575else
13576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h.  */
13578int i;
13579int
13580main ()
13581{
13582
13583  ;
13584  return 0;
13585}
13586_ACEOF
13587if ac_fn_c_try_link "$LINENO"; then :
13588  eval $cacheid=yes
13589else
13590  eval $cacheid=no
13591fi
13592rm -f core conftest.err conftest.$ac_objext \
13593    conftest$ac_exeext conftest.$ac_ext
13594fi
13595
13596
13597		CFLAGS="$xorg_testset_save_CFLAGS"
13598
13599		eval supported=\$$cacheid
13600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13601$as_echo "$supported" >&6; }
13602		if test "$supported" = "yes" ; then
13603			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13604			found="yes"
13605		fi
13606	fi
13607
13608	if test $found = "no" ; then
13609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611		fi
13612
13613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13615		fi
13616
13617		CFLAGS="$CFLAGS -fd"
13618
13619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13620$as_echo_n "checking if $CC supports -fd... " >&6; }
13621		cacheid=xorg_cv_cc_flag__fd
13622		if eval \${$cacheid+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627int i;
13628int
13629main ()
13630{
13631
13632  ;
13633  return 0;
13634}
13635_ACEOF
13636if ac_fn_c_try_link "$LINENO"; then :
13637  eval $cacheid=yes
13638else
13639  eval $cacheid=no
13640fi
13641rm -f core conftest.err conftest.$ac_objext \
13642    conftest$ac_exeext conftest.$ac_ext
13643fi
13644
13645
13646		CFLAGS="$xorg_testset_save_CFLAGS"
13647
13648		eval supported=\$$cacheid
13649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13650$as_echo "$supported" >&6; }
13651		if test "$supported" = "yes" ; then
13652			BASE_CFLAGS="$BASE_CFLAGS -fd"
13653			found="yes"
13654		fi
13655	fi
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671xorg_testset_save_CFLAGS="$CFLAGS"
13672
13673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13678  $as_echo_n "(cached) " >&6
13679else
13680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h.  */
13682int i;
13683_ACEOF
13684if ac_fn_c_try_compile "$LINENO"; then :
13685  xorg_cv_cc_flag_unknown_warning_option=yes
13686else
13687  xorg_cv_cc_flag_unknown_warning_option=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690fi
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13694	CFLAGS="$xorg_testset_save_CFLAGS"
13695fi
13696
13697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13700	fi
13701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13705  $as_echo_n "(cached) " >&6
13706else
13707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708/* end confdefs.h.  */
13709int i;
13710_ACEOF
13711if ac_fn_c_try_compile "$LINENO"; then :
13712  xorg_cv_cc_flag_unused_command_line_argument=yes
13713else
13714  xorg_cv_cc_flag_unused_command_line_argument=no
13715fi
13716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717fi
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13721	CFLAGS="$xorg_testset_save_CFLAGS"
13722fi
13723
13724found="no"
13725
13726	if test $found = "no" ; then
13727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729		fi
13730
13731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13733		fi
13734
13735		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13736
13737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13738$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13739		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13740		if eval \${$cacheid+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745int i;
13746int
13747main ()
13748{
13749
13750  ;
13751  return 0;
13752}
13753_ACEOF
13754if ac_fn_c_try_link "$LINENO"; then :
13755  eval $cacheid=yes
13756else
13757  eval $cacheid=no
13758fi
13759rm -f core conftest.err conftest.$ac_objext \
13760    conftest$ac_exeext conftest.$ac_ext
13761fi
13762
13763
13764		CFLAGS="$xorg_testset_save_CFLAGS"
13765
13766		eval supported=\$$cacheid
13767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13768$as_echo "$supported" >&6; }
13769		if test "$supported" = "yes" ; then
13770			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13771			found="yes"
13772		fi
13773	fi
13774
13775
13776
13777
13778
13779# This chunk adds additional warnings that could catch undesired effects.
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793xorg_testset_save_CFLAGS="$CFLAGS"
13794
13795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13800  $as_echo_n "(cached) " >&6
13801else
13802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803/* end confdefs.h.  */
13804int i;
13805_ACEOF
13806if ac_fn_c_try_compile "$LINENO"; then :
13807  xorg_cv_cc_flag_unknown_warning_option=yes
13808else
13809  xorg_cv_cc_flag_unknown_warning_option=no
13810fi
13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812fi
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13816	CFLAGS="$xorg_testset_save_CFLAGS"
13817fi
13818
13819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13822	fi
13823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h.  */
13831int i;
13832_ACEOF
13833if ac_fn_c_try_compile "$LINENO"; then :
13834  xorg_cv_cc_flag_unused_command_line_argument=yes
13835else
13836  xorg_cv_cc_flag_unused_command_line_argument=no
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839fi
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843	CFLAGS="$xorg_testset_save_CFLAGS"
13844fi
13845
13846found="no"
13847
13848	if test $found = "no" ; then
13849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851		fi
13852
13853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855		fi
13856
13857		CFLAGS="$CFLAGS -Wunused"
13858
13859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13860$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13861		cacheid=xorg_cv_cc_flag__Wunused
13862		if eval \${$cacheid+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866/* end confdefs.h.  */
13867int i;
13868int
13869main ()
13870{
13871
13872  ;
13873  return 0;
13874}
13875_ACEOF
13876if ac_fn_c_try_link "$LINENO"; then :
13877  eval $cacheid=yes
13878else
13879  eval $cacheid=no
13880fi
13881rm -f core conftest.err conftest.$ac_objext \
13882    conftest$ac_exeext conftest.$ac_ext
13883fi
13884
13885
13886		CFLAGS="$xorg_testset_save_CFLAGS"
13887
13888		eval supported=\$$cacheid
13889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890$as_echo "$supported" >&6; }
13891		if test "$supported" = "yes" ; then
13892			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13893			found="yes"
13894		fi
13895	fi
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911xorg_testset_save_CFLAGS="$CFLAGS"
13912
13913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922int i;
13923_ACEOF
13924if ac_fn_c_try_compile "$LINENO"; then :
13925  xorg_cv_cc_flag_unknown_warning_option=yes
13926else
13927  xorg_cv_cc_flag_unknown_warning_option=no
13928fi
13929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930fi
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13934	CFLAGS="$xorg_testset_save_CFLAGS"
13935fi
13936
13937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13940	fi
13941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13945  $as_echo_n "(cached) " >&6
13946else
13947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948/* end confdefs.h.  */
13949int i;
13950_ACEOF
13951if ac_fn_c_try_compile "$LINENO"; then :
13952  xorg_cv_cc_flag_unused_command_line_argument=yes
13953else
13954  xorg_cv_cc_flag_unused_command_line_argument=no
13955fi
13956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957fi
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13961	CFLAGS="$xorg_testset_save_CFLAGS"
13962fi
13963
13964found="no"
13965
13966	if test $found = "no" ; then
13967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969		fi
13970
13971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13973		fi
13974
13975		CFLAGS="$CFLAGS -Wuninitialized"
13976
13977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13978$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13979		cacheid=xorg_cv_cc_flag__Wuninitialized
13980		if eval \${$cacheid+:} false; then :
13981  $as_echo_n "(cached) " >&6
13982else
13983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984/* end confdefs.h.  */
13985int i;
13986int
13987main ()
13988{
13989
13990  ;
13991  return 0;
13992}
13993_ACEOF
13994if ac_fn_c_try_link "$LINENO"; then :
13995  eval $cacheid=yes
13996else
13997  eval $cacheid=no
13998fi
13999rm -f core conftest.err conftest.$ac_objext \
14000    conftest$ac_exeext conftest.$ac_ext
14001fi
14002
14003
14004		CFLAGS="$xorg_testset_save_CFLAGS"
14005
14006		eval supported=\$$cacheid
14007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14008$as_echo "$supported" >&6; }
14009		if test "$supported" = "yes" ; then
14010			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14011			found="yes"
14012		fi
14013	fi
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029xorg_testset_save_CFLAGS="$CFLAGS"
14030
14031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14036  $as_echo_n "(cached) " >&6
14037else
14038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040int i;
14041_ACEOF
14042if ac_fn_c_try_compile "$LINENO"; then :
14043  xorg_cv_cc_flag_unknown_warning_option=yes
14044else
14045  xorg_cv_cc_flag_unknown_warning_option=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052	CFLAGS="$xorg_testset_save_CFLAGS"
14053fi
14054
14055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058	fi
14059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14063  $as_echo_n "(cached) " >&6
14064else
14065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067int i;
14068_ACEOF
14069if ac_fn_c_try_compile "$LINENO"; then :
14070  xorg_cv_cc_flag_unused_command_line_argument=yes
14071else
14072  xorg_cv_cc_flag_unused_command_line_argument=no
14073fi
14074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075fi
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14079	CFLAGS="$xorg_testset_save_CFLAGS"
14080fi
14081
14082found="no"
14083
14084	if test $found = "no" ; then
14085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087		fi
14088
14089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091		fi
14092
14093		CFLAGS="$CFLAGS -Wshadow"
14094
14095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14096$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14097		cacheid=xorg_cv_cc_flag__Wshadow
14098		if eval \${$cacheid+:} false; then :
14099  $as_echo_n "(cached) " >&6
14100else
14101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103int i;
14104int
14105main ()
14106{
14107
14108  ;
14109  return 0;
14110}
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"; then :
14113  eval $cacheid=yes
14114else
14115  eval $cacheid=no
14116fi
14117rm -f core conftest.err conftest.$ac_objext \
14118    conftest$ac_exeext conftest.$ac_ext
14119fi
14120
14121
14122		CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124		eval supported=\$$cacheid
14125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126$as_echo "$supported" >&6; }
14127		if test "$supported" = "yes" ; then
14128			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14129			found="yes"
14130		fi
14131	fi
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147xorg_testset_save_CFLAGS="$CFLAGS"
14148
14149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14154  $as_echo_n "(cached) " >&6
14155else
14156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157/* end confdefs.h.  */
14158int i;
14159_ACEOF
14160if ac_fn_c_try_compile "$LINENO"; then :
14161  xorg_cv_cc_flag_unknown_warning_option=yes
14162else
14163  xorg_cv_cc_flag_unknown_warning_option=no
14164fi
14165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14170	CFLAGS="$xorg_testset_save_CFLAGS"
14171fi
14172
14173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176	fi
14177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14181  $as_echo_n "(cached) " >&6
14182else
14183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184/* end confdefs.h.  */
14185int i;
14186_ACEOF
14187if ac_fn_c_try_compile "$LINENO"; then :
14188  xorg_cv_cc_flag_unused_command_line_argument=yes
14189else
14190  xorg_cv_cc_flag_unused_command_line_argument=no
14191fi
14192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14197	CFLAGS="$xorg_testset_save_CFLAGS"
14198fi
14199
14200found="no"
14201
14202	if test $found = "no" ; then
14203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205		fi
14206
14207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209		fi
14210
14211		CFLAGS="$CFLAGS -Wmissing-noreturn"
14212
14213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14214$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14215		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14216		if eval \${$cacheid+:} false; then :
14217  $as_echo_n "(cached) " >&6
14218else
14219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220/* end confdefs.h.  */
14221int i;
14222int
14223main ()
14224{
14225
14226  ;
14227  return 0;
14228}
14229_ACEOF
14230if ac_fn_c_try_link "$LINENO"; then :
14231  eval $cacheid=yes
14232else
14233  eval $cacheid=no
14234fi
14235rm -f core conftest.err conftest.$ac_objext \
14236    conftest$ac_exeext conftest.$ac_ext
14237fi
14238
14239
14240		CFLAGS="$xorg_testset_save_CFLAGS"
14241
14242		eval supported=\$$cacheid
14243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14244$as_echo "$supported" >&6; }
14245		if test "$supported" = "yes" ; then
14246			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14247			found="yes"
14248		fi
14249	fi
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265xorg_testset_save_CFLAGS="$CFLAGS"
14266
14267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h.  */
14276int i;
14277_ACEOF
14278if ac_fn_c_try_compile "$LINENO"; then :
14279  xorg_cv_cc_flag_unknown_warning_option=yes
14280else
14281  xorg_cv_cc_flag_unknown_warning_option=no
14282fi
14283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284fi
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14288	CFLAGS="$xorg_testset_save_CFLAGS"
14289fi
14290
14291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14294	fi
14295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14299  $as_echo_n "(cached) " >&6
14300else
14301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303int i;
14304_ACEOF
14305if ac_fn_c_try_compile "$LINENO"; then :
14306  xorg_cv_cc_flag_unused_command_line_argument=yes
14307else
14308  xorg_cv_cc_flag_unused_command_line_argument=no
14309fi
14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311fi
14312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14315	CFLAGS="$xorg_testset_save_CFLAGS"
14316fi
14317
14318found="no"
14319
14320	if test $found = "no" ; then
14321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323		fi
14324
14325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14327		fi
14328
14329		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14330
14331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14332$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14333		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14334		if eval \${$cacheid+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338/* end confdefs.h.  */
14339int i;
14340int
14341main ()
14342{
14343
14344  ;
14345  return 0;
14346}
14347_ACEOF
14348if ac_fn_c_try_link "$LINENO"; then :
14349  eval $cacheid=yes
14350else
14351  eval $cacheid=no
14352fi
14353rm -f core conftest.err conftest.$ac_objext \
14354    conftest$ac_exeext conftest.$ac_ext
14355fi
14356
14357
14358		CFLAGS="$xorg_testset_save_CFLAGS"
14359
14360		eval supported=\$$cacheid
14361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14362$as_echo "$supported" >&6; }
14363		if test "$supported" = "yes" ; then
14364			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14365			found="yes"
14366		fi
14367	fi
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383xorg_testset_save_CFLAGS="$CFLAGS"
14384
14385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394int i;
14395_ACEOF
14396if ac_fn_c_try_compile "$LINENO"; then :
14397  xorg_cv_cc_flag_unknown_warning_option=yes
14398else
14399  xorg_cv_cc_flag_unknown_warning_option=no
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402fi
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14406	CFLAGS="$xorg_testset_save_CFLAGS"
14407fi
14408
14409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412	fi
14413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420/* end confdefs.h.  */
14421int i;
14422_ACEOF
14423if ac_fn_c_try_compile "$LINENO"; then :
14424  xorg_cv_cc_flag_unused_command_line_argument=yes
14425else
14426  xorg_cv_cc_flag_unused_command_line_argument=no
14427fi
14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14433	CFLAGS="$xorg_testset_save_CFLAGS"
14434fi
14435
14436found="no"
14437
14438	if test $found = "no" ; then
14439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14441		fi
14442
14443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14445		fi
14446
14447		CFLAGS="$CFLAGS -Wredundant-decls"
14448
14449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14450$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14451		cacheid=xorg_cv_cc_flag__Wredundant_decls
14452		if eval \${$cacheid+:} false; then :
14453  $as_echo_n "(cached) " >&6
14454else
14455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h.  */
14457int i;
14458int
14459main ()
14460{
14461
14462  ;
14463  return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_link "$LINENO"; then :
14467  eval $cacheid=yes
14468else
14469  eval $cacheid=no
14470fi
14471rm -f core conftest.err conftest.$ac_objext \
14472    conftest$ac_exeext conftest.$ac_ext
14473fi
14474
14475
14476		CFLAGS="$xorg_testset_save_CFLAGS"
14477
14478		eval supported=\$$cacheid
14479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14480$as_echo "$supported" >&6; }
14481		if test "$supported" = "yes" ; then
14482			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14483			found="yes"
14484		fi
14485	fi
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501xorg_testset_save_CFLAGS="$CFLAGS"
14502
14503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h.  */
14512int i;
14513_ACEOF
14514if ac_fn_c_try_compile "$LINENO"; then :
14515  xorg_cv_cc_flag_unknown_warning_option=yes
14516else
14517  xorg_cv_cc_flag_unknown_warning_option=no
14518fi
14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520fi
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14524	CFLAGS="$xorg_testset_save_CFLAGS"
14525fi
14526
14527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530	fi
14531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14535  $as_echo_n "(cached) " >&6
14536else
14537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539int i;
14540_ACEOF
14541if ac_fn_c_try_compile "$LINENO"; then :
14542  xorg_cv_cc_flag_unused_command_line_argument=yes
14543else
14544  xorg_cv_cc_flag_unused_command_line_argument=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14551	CFLAGS="$xorg_testset_save_CFLAGS"
14552fi
14553
14554found="no"
14555
14556	if test $found = "no" ; then
14557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559		fi
14560
14561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563		fi
14564
14565		CFLAGS="$CFLAGS -Wlogical-op"
14566
14567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14568$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14569		cacheid=xorg_cv_cc_flag__Wlogical_op
14570		if eval \${$cacheid+:} false; then :
14571  $as_echo_n "(cached) " >&6
14572else
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575int i;
14576int
14577main ()
14578{
14579
14580  ;
14581  return 0;
14582}
14583_ACEOF
14584if ac_fn_c_try_link "$LINENO"; then :
14585  eval $cacheid=yes
14586else
14587  eval $cacheid=no
14588fi
14589rm -f core conftest.err conftest.$ac_objext \
14590    conftest$ac_exeext conftest.$ac_ext
14591fi
14592
14593
14594		CFLAGS="$xorg_testset_save_CFLAGS"
14595
14596		eval supported=\$$cacheid
14597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14598$as_echo "$supported" >&6; }
14599		if test "$supported" = "yes" ; then
14600			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14601			found="yes"
14602		fi
14603	fi
14604
14605
14606
14607# These are currently disabled because they are noisy.  They will be enabled
14608# in the future once the codebase is sufficiently modernized to silence
14609# them.  For now, I don't want them to drown out the other warnings.
14610# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14611# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14612# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14613
14614# Turn some warnings into errors, so we don't accidently get successful builds
14615# when there are problems that should be fixed.
14616
14617if test "x$SELECTIVE_WERROR" = "xyes" ; then
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631xorg_testset_save_CFLAGS="$CFLAGS"
14632
14633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14638  $as_echo_n "(cached) " >&6
14639else
14640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h.  */
14642int i;
14643_ACEOF
14644if ac_fn_c_try_compile "$LINENO"; then :
14645  xorg_cv_cc_flag_unknown_warning_option=yes
14646else
14647  xorg_cv_cc_flag_unknown_warning_option=no
14648fi
14649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14654	CFLAGS="$xorg_testset_save_CFLAGS"
14655fi
14656
14657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660	fi
14661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14665  $as_echo_n "(cached) " >&6
14666else
14667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h.  */
14669int i;
14670_ACEOF
14671if ac_fn_c_try_compile "$LINENO"; then :
14672  xorg_cv_cc_flag_unused_command_line_argument=yes
14673else
14674  xorg_cv_cc_flag_unused_command_line_argument=no
14675fi
14676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677fi
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14681	CFLAGS="$xorg_testset_save_CFLAGS"
14682fi
14683
14684found="no"
14685
14686	if test $found = "no" ; then
14687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14689		fi
14690
14691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14693		fi
14694
14695		CFLAGS="$CFLAGS -Werror=implicit"
14696
14697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14698$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14699		cacheid=xorg_cv_cc_flag__Werror_implicit
14700		if eval \${$cacheid+:} false; then :
14701  $as_echo_n "(cached) " >&6
14702else
14703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704/* end confdefs.h.  */
14705int i;
14706int
14707main ()
14708{
14709
14710  ;
14711  return 0;
14712}
14713_ACEOF
14714if ac_fn_c_try_link "$LINENO"; then :
14715  eval $cacheid=yes
14716else
14717  eval $cacheid=no
14718fi
14719rm -f core conftest.err conftest.$ac_objext \
14720    conftest$ac_exeext conftest.$ac_ext
14721fi
14722
14723
14724		CFLAGS="$xorg_testset_save_CFLAGS"
14725
14726		eval supported=\$$cacheid
14727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14728$as_echo "$supported" >&6; }
14729		if test "$supported" = "yes" ; then
14730			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14731			found="yes"
14732		fi
14733	fi
14734
14735	if test $found = "no" ; then
14736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14738		fi
14739
14740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742		fi
14743
14744		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14745
14746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14747$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14748		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14749		if eval \${$cacheid+:} false; then :
14750  $as_echo_n "(cached) " >&6
14751else
14752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753/* end confdefs.h.  */
14754int i;
14755int
14756main ()
14757{
14758
14759  ;
14760  return 0;
14761}
14762_ACEOF
14763if ac_fn_c_try_link "$LINENO"; then :
14764  eval $cacheid=yes
14765else
14766  eval $cacheid=no
14767fi
14768rm -f core conftest.err conftest.$ac_objext \
14769    conftest$ac_exeext conftest.$ac_ext
14770fi
14771
14772
14773		CFLAGS="$xorg_testset_save_CFLAGS"
14774
14775		eval supported=\$$cacheid
14776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14777$as_echo "$supported" >&6; }
14778		if test "$supported" = "yes" ; then
14779			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14780			found="yes"
14781		fi
14782	fi
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798xorg_testset_save_CFLAGS="$CFLAGS"
14799
14800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14805  $as_echo_n "(cached) " >&6
14806else
14807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808/* end confdefs.h.  */
14809int i;
14810_ACEOF
14811if ac_fn_c_try_compile "$LINENO"; then :
14812  xorg_cv_cc_flag_unknown_warning_option=yes
14813else
14814  xorg_cv_cc_flag_unknown_warning_option=no
14815fi
14816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14817fi
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14821	CFLAGS="$xorg_testset_save_CFLAGS"
14822fi
14823
14824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14827	fi
14828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14832  $as_echo_n "(cached) " >&6
14833else
14834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835/* end confdefs.h.  */
14836int i;
14837_ACEOF
14838if ac_fn_c_try_compile "$LINENO"; then :
14839  xorg_cv_cc_flag_unused_command_line_argument=yes
14840else
14841  xorg_cv_cc_flag_unused_command_line_argument=no
14842fi
14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848	CFLAGS="$xorg_testset_save_CFLAGS"
14849fi
14850
14851found="no"
14852
14853	if test $found = "no" ; then
14854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856		fi
14857
14858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14860		fi
14861
14862		CFLAGS="$CFLAGS -Werror=nonnull"
14863
14864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14865$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14866		cacheid=xorg_cv_cc_flag__Werror_nonnull
14867		if eval \${$cacheid+:} false; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h.  */
14872int i;
14873int
14874main ()
14875{
14876
14877  ;
14878  return 0;
14879}
14880_ACEOF
14881if ac_fn_c_try_link "$LINENO"; then :
14882  eval $cacheid=yes
14883else
14884  eval $cacheid=no
14885fi
14886rm -f core conftest.err conftest.$ac_objext \
14887    conftest$ac_exeext conftest.$ac_ext
14888fi
14889
14890
14891		CFLAGS="$xorg_testset_save_CFLAGS"
14892
14893		eval supported=\$$cacheid
14894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14895$as_echo "$supported" >&6; }
14896		if test "$supported" = "yes" ; then
14897			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14898			found="yes"
14899		fi
14900	fi
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916xorg_testset_save_CFLAGS="$CFLAGS"
14917
14918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14923  $as_echo_n "(cached) " >&6
14924else
14925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h.  */
14927int i;
14928_ACEOF
14929if ac_fn_c_try_compile "$LINENO"; then :
14930  xorg_cv_cc_flag_unknown_warning_option=yes
14931else
14932  xorg_cv_cc_flag_unknown_warning_option=no
14933fi
14934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935fi
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14939	CFLAGS="$xorg_testset_save_CFLAGS"
14940fi
14941
14942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14945	fi
14946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14950  $as_echo_n "(cached) " >&6
14951else
14952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h.  */
14954int i;
14955_ACEOF
14956if ac_fn_c_try_compile "$LINENO"; then :
14957  xorg_cv_cc_flag_unused_command_line_argument=yes
14958else
14959  xorg_cv_cc_flag_unused_command_line_argument=no
14960fi
14961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14966	CFLAGS="$xorg_testset_save_CFLAGS"
14967fi
14968
14969found="no"
14970
14971	if test $found = "no" ; then
14972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14974		fi
14975
14976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14978		fi
14979
14980		CFLAGS="$CFLAGS -Werror=init-self"
14981
14982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14983$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14984		cacheid=xorg_cv_cc_flag__Werror_init_self
14985		if eval \${$cacheid+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989/* end confdefs.h.  */
14990int i;
14991int
14992main ()
14993{
14994
14995  ;
14996  return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_link "$LINENO"; then :
15000  eval $cacheid=yes
15001else
15002  eval $cacheid=no
15003fi
15004rm -f core conftest.err conftest.$ac_objext \
15005    conftest$ac_exeext conftest.$ac_ext
15006fi
15007
15008
15009		CFLAGS="$xorg_testset_save_CFLAGS"
15010
15011		eval supported=\$$cacheid
15012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15013$as_echo "$supported" >&6; }
15014		if test "$supported" = "yes" ; then
15015			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15016			found="yes"
15017		fi
15018	fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034xorg_testset_save_CFLAGS="$CFLAGS"
15035
15036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15041  $as_echo_n "(cached) " >&6
15042else
15043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044/* end confdefs.h.  */
15045int i;
15046_ACEOF
15047if ac_fn_c_try_compile "$LINENO"; then :
15048  xorg_cv_cc_flag_unknown_warning_option=yes
15049else
15050  xorg_cv_cc_flag_unknown_warning_option=no
15051fi
15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053fi
15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15057	CFLAGS="$xorg_testset_save_CFLAGS"
15058fi
15059
15060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063	fi
15064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15068  $as_echo_n "(cached) " >&6
15069else
15070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071/* end confdefs.h.  */
15072int i;
15073_ACEOF
15074if ac_fn_c_try_compile "$LINENO"; then :
15075  xorg_cv_cc_flag_unused_command_line_argument=yes
15076else
15077  xorg_cv_cc_flag_unused_command_line_argument=no
15078fi
15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080fi
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15084	CFLAGS="$xorg_testset_save_CFLAGS"
15085fi
15086
15087found="no"
15088
15089	if test $found = "no" ; then
15090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15092		fi
15093
15094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15096		fi
15097
15098		CFLAGS="$CFLAGS -Werror=main"
15099
15100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15101$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15102		cacheid=xorg_cv_cc_flag__Werror_main
15103		if eval \${$cacheid+:} false; then :
15104  $as_echo_n "(cached) " >&6
15105else
15106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107/* end confdefs.h.  */
15108int i;
15109int
15110main ()
15111{
15112
15113  ;
15114  return 0;
15115}
15116_ACEOF
15117if ac_fn_c_try_link "$LINENO"; then :
15118  eval $cacheid=yes
15119else
15120  eval $cacheid=no
15121fi
15122rm -f core conftest.err conftest.$ac_objext \
15123    conftest$ac_exeext conftest.$ac_ext
15124fi
15125
15126
15127		CFLAGS="$xorg_testset_save_CFLAGS"
15128
15129		eval supported=\$$cacheid
15130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15131$as_echo "$supported" >&6; }
15132		if test "$supported" = "yes" ; then
15133			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15134			found="yes"
15135		fi
15136	fi
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152xorg_testset_save_CFLAGS="$CFLAGS"
15153
15154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15159  $as_echo_n "(cached) " >&6
15160else
15161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162/* end confdefs.h.  */
15163int i;
15164_ACEOF
15165if ac_fn_c_try_compile "$LINENO"; then :
15166  xorg_cv_cc_flag_unknown_warning_option=yes
15167else
15168  xorg_cv_cc_flag_unknown_warning_option=no
15169fi
15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15175	CFLAGS="$xorg_testset_save_CFLAGS"
15176fi
15177
15178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181	fi
15182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15186  $as_echo_n "(cached) " >&6
15187else
15188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190int i;
15191_ACEOF
15192if ac_fn_c_try_compile "$LINENO"; then :
15193  xorg_cv_cc_flag_unused_command_line_argument=yes
15194else
15195  xorg_cv_cc_flag_unused_command_line_argument=no
15196fi
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198fi
15199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15202	CFLAGS="$xorg_testset_save_CFLAGS"
15203fi
15204
15205found="no"
15206
15207	if test $found = "no" ; then
15208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210		fi
15211
15212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15214		fi
15215
15216		CFLAGS="$CFLAGS -Werror=missing-braces"
15217
15218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15219$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15220		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15221		if eval \${$cacheid+:} false; then :
15222  $as_echo_n "(cached) " >&6
15223else
15224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225/* end confdefs.h.  */
15226int i;
15227int
15228main ()
15229{
15230
15231  ;
15232  return 0;
15233}
15234_ACEOF
15235if ac_fn_c_try_link "$LINENO"; then :
15236  eval $cacheid=yes
15237else
15238  eval $cacheid=no
15239fi
15240rm -f core conftest.err conftest.$ac_objext \
15241    conftest$ac_exeext conftest.$ac_ext
15242fi
15243
15244
15245		CFLAGS="$xorg_testset_save_CFLAGS"
15246
15247		eval supported=\$$cacheid
15248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15249$as_echo "$supported" >&6; }
15250		if test "$supported" = "yes" ; then
15251			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15252			found="yes"
15253		fi
15254	fi
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270xorg_testset_save_CFLAGS="$CFLAGS"
15271
15272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15277  $as_echo_n "(cached) " >&6
15278else
15279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h.  */
15281int i;
15282_ACEOF
15283if ac_fn_c_try_compile "$LINENO"; then :
15284  xorg_cv_cc_flag_unknown_warning_option=yes
15285else
15286  xorg_cv_cc_flag_unknown_warning_option=no
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289fi
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15293	CFLAGS="$xorg_testset_save_CFLAGS"
15294fi
15295
15296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15299	fi
15300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15304  $as_echo_n "(cached) " >&6
15305else
15306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307/* end confdefs.h.  */
15308int i;
15309_ACEOF
15310if ac_fn_c_try_compile "$LINENO"; then :
15311  xorg_cv_cc_flag_unused_command_line_argument=yes
15312else
15313  xorg_cv_cc_flag_unused_command_line_argument=no
15314fi
15315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316fi
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15320	CFLAGS="$xorg_testset_save_CFLAGS"
15321fi
15322
15323found="no"
15324
15325	if test $found = "no" ; then
15326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328		fi
15329
15330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15332		fi
15333
15334		CFLAGS="$CFLAGS -Werror=sequence-point"
15335
15336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15337$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15338		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15339		if eval \${$cacheid+:} false; then :
15340  $as_echo_n "(cached) " >&6
15341else
15342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343/* end confdefs.h.  */
15344int i;
15345int
15346main ()
15347{
15348
15349  ;
15350  return 0;
15351}
15352_ACEOF
15353if ac_fn_c_try_link "$LINENO"; then :
15354  eval $cacheid=yes
15355else
15356  eval $cacheid=no
15357fi
15358rm -f core conftest.err conftest.$ac_objext \
15359    conftest$ac_exeext conftest.$ac_ext
15360fi
15361
15362
15363		CFLAGS="$xorg_testset_save_CFLAGS"
15364
15365		eval supported=\$$cacheid
15366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15367$as_echo "$supported" >&6; }
15368		if test "$supported" = "yes" ; then
15369			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15370			found="yes"
15371		fi
15372	fi
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388xorg_testset_save_CFLAGS="$CFLAGS"
15389
15390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15395  $as_echo_n "(cached) " >&6
15396else
15397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399int i;
15400_ACEOF
15401if ac_fn_c_try_compile "$LINENO"; then :
15402  xorg_cv_cc_flag_unknown_warning_option=yes
15403else
15404  xorg_cv_cc_flag_unknown_warning_option=no
15405fi
15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407fi
15408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15411	CFLAGS="$xorg_testset_save_CFLAGS"
15412fi
15413
15414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417	fi
15418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15422  $as_echo_n "(cached) " >&6
15423else
15424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425/* end confdefs.h.  */
15426int i;
15427_ACEOF
15428if ac_fn_c_try_compile "$LINENO"; then :
15429  xorg_cv_cc_flag_unused_command_line_argument=yes
15430else
15431  xorg_cv_cc_flag_unused_command_line_argument=no
15432fi
15433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434fi
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15438	CFLAGS="$xorg_testset_save_CFLAGS"
15439fi
15440
15441found="no"
15442
15443	if test $found = "no" ; then
15444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15446		fi
15447
15448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15450		fi
15451
15452		CFLAGS="$CFLAGS -Werror=return-type"
15453
15454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15455$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15456		cacheid=xorg_cv_cc_flag__Werror_return_type
15457		if eval \${$cacheid+:} false; then :
15458  $as_echo_n "(cached) " >&6
15459else
15460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461/* end confdefs.h.  */
15462int i;
15463int
15464main ()
15465{
15466
15467  ;
15468  return 0;
15469}
15470_ACEOF
15471if ac_fn_c_try_link "$LINENO"; then :
15472  eval $cacheid=yes
15473else
15474  eval $cacheid=no
15475fi
15476rm -f core conftest.err conftest.$ac_objext \
15477    conftest$ac_exeext conftest.$ac_ext
15478fi
15479
15480
15481		CFLAGS="$xorg_testset_save_CFLAGS"
15482
15483		eval supported=\$$cacheid
15484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15485$as_echo "$supported" >&6; }
15486		if test "$supported" = "yes" ; then
15487			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15488			found="yes"
15489		fi
15490	fi
15491
15492	if test $found = "no" ; then
15493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15495		fi
15496
15497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15499		fi
15500
15501		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15502
15503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15504$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15505		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15506		if eval \${$cacheid+:} false; then :
15507  $as_echo_n "(cached) " >&6
15508else
15509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511int i;
15512int
15513main ()
15514{
15515
15516  ;
15517  return 0;
15518}
15519_ACEOF
15520if ac_fn_c_try_link "$LINENO"; then :
15521  eval $cacheid=yes
15522else
15523  eval $cacheid=no
15524fi
15525rm -f core conftest.err conftest.$ac_objext \
15526    conftest$ac_exeext conftest.$ac_ext
15527fi
15528
15529
15530		CFLAGS="$xorg_testset_save_CFLAGS"
15531
15532		eval supported=\$$cacheid
15533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15534$as_echo "$supported" >&6; }
15535		if test "$supported" = "yes" ; then
15536			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15537			found="yes"
15538		fi
15539	fi
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555xorg_testset_save_CFLAGS="$CFLAGS"
15556
15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15562  $as_echo_n "(cached) " >&6
15563else
15564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565/* end confdefs.h.  */
15566int i;
15567_ACEOF
15568if ac_fn_c_try_compile "$LINENO"; then :
15569  xorg_cv_cc_flag_unknown_warning_option=yes
15570else
15571  xorg_cv_cc_flag_unknown_warning_option=no
15572fi
15573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574fi
15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15578	CFLAGS="$xorg_testset_save_CFLAGS"
15579fi
15580
15581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15584	fi
15585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15589  $as_echo_n "(cached) " >&6
15590else
15591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592/* end confdefs.h.  */
15593int i;
15594_ACEOF
15595if ac_fn_c_try_compile "$LINENO"; then :
15596  xorg_cv_cc_flag_unused_command_line_argument=yes
15597else
15598  xorg_cv_cc_flag_unused_command_line_argument=no
15599fi
15600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601fi
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15605	CFLAGS="$xorg_testset_save_CFLAGS"
15606fi
15607
15608found="no"
15609
15610	if test $found = "no" ; then
15611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15613		fi
15614
15615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15617		fi
15618
15619		CFLAGS="$CFLAGS -Werror=trigraphs"
15620
15621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15622$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15623		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15624		if eval \${$cacheid+:} false; then :
15625  $as_echo_n "(cached) " >&6
15626else
15627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628/* end confdefs.h.  */
15629int i;
15630int
15631main ()
15632{
15633
15634  ;
15635  return 0;
15636}
15637_ACEOF
15638if ac_fn_c_try_link "$LINENO"; then :
15639  eval $cacheid=yes
15640else
15641  eval $cacheid=no
15642fi
15643rm -f core conftest.err conftest.$ac_objext \
15644    conftest$ac_exeext conftest.$ac_ext
15645fi
15646
15647
15648		CFLAGS="$xorg_testset_save_CFLAGS"
15649
15650		eval supported=\$$cacheid
15651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15652$as_echo "$supported" >&6; }
15653		if test "$supported" = "yes" ; then
15654			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15655			found="yes"
15656		fi
15657	fi
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673xorg_testset_save_CFLAGS="$CFLAGS"
15674
15675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15680  $as_echo_n "(cached) " >&6
15681else
15682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h.  */
15684int i;
15685_ACEOF
15686if ac_fn_c_try_compile "$LINENO"; then :
15687  xorg_cv_cc_flag_unknown_warning_option=yes
15688else
15689  xorg_cv_cc_flag_unknown_warning_option=no
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692fi
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15696	CFLAGS="$xorg_testset_save_CFLAGS"
15697fi
15698
15699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702	fi
15703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15707  $as_echo_n "(cached) " >&6
15708else
15709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710/* end confdefs.h.  */
15711int i;
15712_ACEOF
15713if ac_fn_c_try_compile "$LINENO"; then :
15714  xorg_cv_cc_flag_unused_command_line_argument=yes
15715else
15716  xorg_cv_cc_flag_unused_command_line_argument=no
15717fi
15718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719fi
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723	CFLAGS="$xorg_testset_save_CFLAGS"
15724fi
15725
15726found="no"
15727
15728	if test $found = "no" ; then
15729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731		fi
15732
15733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15735		fi
15736
15737		CFLAGS="$CFLAGS -Werror=array-bounds"
15738
15739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15740$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15741		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15742		if eval \${$cacheid+:} false; then :
15743  $as_echo_n "(cached) " >&6
15744else
15745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746/* end confdefs.h.  */
15747int i;
15748int
15749main ()
15750{
15751
15752  ;
15753  return 0;
15754}
15755_ACEOF
15756if ac_fn_c_try_link "$LINENO"; then :
15757  eval $cacheid=yes
15758else
15759  eval $cacheid=no
15760fi
15761rm -f core conftest.err conftest.$ac_objext \
15762    conftest$ac_exeext conftest.$ac_ext
15763fi
15764
15765
15766		CFLAGS="$xorg_testset_save_CFLAGS"
15767
15768		eval supported=\$$cacheid
15769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15770$as_echo "$supported" >&6; }
15771		if test "$supported" = "yes" ; then
15772			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15773			found="yes"
15774		fi
15775	fi
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791xorg_testset_save_CFLAGS="$CFLAGS"
15792
15793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15798  $as_echo_n "(cached) " >&6
15799else
15800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801/* end confdefs.h.  */
15802int i;
15803_ACEOF
15804if ac_fn_c_try_compile "$LINENO"; then :
15805  xorg_cv_cc_flag_unknown_warning_option=yes
15806else
15807  xorg_cv_cc_flag_unknown_warning_option=no
15808fi
15809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15814	CFLAGS="$xorg_testset_save_CFLAGS"
15815fi
15816
15817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15820	fi
15821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15825  $as_echo_n "(cached) " >&6
15826else
15827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828/* end confdefs.h.  */
15829int i;
15830_ACEOF
15831if ac_fn_c_try_compile "$LINENO"; then :
15832  xorg_cv_cc_flag_unused_command_line_argument=yes
15833else
15834  xorg_cv_cc_flag_unused_command_line_argument=no
15835fi
15836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837fi
15838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15841	CFLAGS="$xorg_testset_save_CFLAGS"
15842fi
15843
15844found="no"
15845
15846	if test $found = "no" ; then
15847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15849		fi
15850
15851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15853		fi
15854
15855		CFLAGS="$CFLAGS -Werror=write-strings"
15856
15857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15858$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15859		cacheid=xorg_cv_cc_flag__Werror_write_strings
15860		if eval \${$cacheid+:} false; then :
15861  $as_echo_n "(cached) " >&6
15862else
15863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864/* end confdefs.h.  */
15865int i;
15866int
15867main ()
15868{
15869
15870  ;
15871  return 0;
15872}
15873_ACEOF
15874if ac_fn_c_try_link "$LINENO"; then :
15875  eval $cacheid=yes
15876else
15877  eval $cacheid=no
15878fi
15879rm -f core conftest.err conftest.$ac_objext \
15880    conftest$ac_exeext conftest.$ac_ext
15881fi
15882
15883
15884		CFLAGS="$xorg_testset_save_CFLAGS"
15885
15886		eval supported=\$$cacheid
15887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15888$as_echo "$supported" >&6; }
15889		if test "$supported" = "yes" ; then
15890			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15891			found="yes"
15892		fi
15893	fi
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909xorg_testset_save_CFLAGS="$CFLAGS"
15910
15911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15916  $as_echo_n "(cached) " >&6
15917else
15918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h.  */
15920int i;
15921_ACEOF
15922if ac_fn_c_try_compile "$LINENO"; then :
15923  xorg_cv_cc_flag_unknown_warning_option=yes
15924else
15925  xorg_cv_cc_flag_unknown_warning_option=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15932	CFLAGS="$xorg_testset_save_CFLAGS"
15933fi
15934
15935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15938	fi
15939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15943  $as_echo_n "(cached) " >&6
15944else
15945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946/* end confdefs.h.  */
15947int i;
15948_ACEOF
15949if ac_fn_c_try_compile "$LINENO"; then :
15950  xorg_cv_cc_flag_unused_command_line_argument=yes
15951else
15952  xorg_cv_cc_flag_unused_command_line_argument=no
15953fi
15954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15959	CFLAGS="$xorg_testset_save_CFLAGS"
15960fi
15961
15962found="no"
15963
15964	if test $found = "no" ; then
15965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967		fi
15968
15969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15971		fi
15972
15973		CFLAGS="$CFLAGS -Werror=address"
15974
15975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15976$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15977		cacheid=xorg_cv_cc_flag__Werror_address
15978		if eval \${$cacheid+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982/* end confdefs.h.  */
15983int i;
15984int
15985main ()
15986{
15987
15988  ;
15989  return 0;
15990}
15991_ACEOF
15992if ac_fn_c_try_link "$LINENO"; then :
15993  eval $cacheid=yes
15994else
15995  eval $cacheid=no
15996fi
15997rm -f core conftest.err conftest.$ac_objext \
15998    conftest$ac_exeext conftest.$ac_ext
15999fi
16000
16001
16002		CFLAGS="$xorg_testset_save_CFLAGS"
16003
16004		eval supported=\$$cacheid
16005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16006$as_echo "$supported" >&6; }
16007		if test "$supported" = "yes" ; then
16008			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16009			found="yes"
16010		fi
16011	fi
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027xorg_testset_save_CFLAGS="$CFLAGS"
16028
16029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16034  $as_echo_n "(cached) " >&6
16035else
16036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038int i;
16039_ACEOF
16040if ac_fn_c_try_compile "$LINENO"; then :
16041  xorg_cv_cc_flag_unknown_warning_option=yes
16042else
16043  xorg_cv_cc_flag_unknown_warning_option=no
16044fi
16045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046fi
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16050	CFLAGS="$xorg_testset_save_CFLAGS"
16051fi
16052
16053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056	fi
16057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16061  $as_echo_n "(cached) " >&6
16062else
16063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064/* end confdefs.h.  */
16065int i;
16066_ACEOF
16067if ac_fn_c_try_compile "$LINENO"; then :
16068  xorg_cv_cc_flag_unused_command_line_argument=yes
16069else
16070  xorg_cv_cc_flag_unused_command_line_argument=no
16071fi
16072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073fi
16074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16077	CFLAGS="$xorg_testset_save_CFLAGS"
16078fi
16079
16080found="no"
16081
16082	if test $found = "no" ; then
16083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16085		fi
16086
16087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16089		fi
16090
16091		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16092
16093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16094$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16095		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16096		if eval \${$cacheid+:} false; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h.  */
16101int i;
16102int
16103main ()
16104{
16105
16106  ;
16107  return 0;
16108}
16109_ACEOF
16110if ac_fn_c_try_link "$LINENO"; then :
16111  eval $cacheid=yes
16112else
16113  eval $cacheid=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext \
16116    conftest$ac_exeext conftest.$ac_ext
16117fi
16118
16119
16120		CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122		eval supported=\$$cacheid
16123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124$as_echo "$supported" >&6; }
16125		if test "$supported" = "yes" ; then
16126			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16127			found="yes"
16128		fi
16129	fi
16130
16131	if test $found = "no" ; then
16132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134		fi
16135
16136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138		fi
16139
16140		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16141
16142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16143$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16144		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16145		if eval \${$cacheid+:} false; then :
16146  $as_echo_n "(cached) " >&6
16147else
16148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150int i;
16151int
16152main ()
16153{
16154
16155  ;
16156  return 0;
16157}
16158_ACEOF
16159if ac_fn_c_try_link "$LINENO"; then :
16160  eval $cacheid=yes
16161else
16162  eval $cacheid=no
16163fi
16164rm -f core conftest.err conftest.$ac_objext \
16165    conftest$ac_exeext conftest.$ac_ext
16166fi
16167
16168
16169		CFLAGS="$xorg_testset_save_CFLAGS"
16170
16171		eval supported=\$$cacheid
16172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16173$as_echo "$supported" >&6; }
16174		if test "$supported" = "yes" ; then
16175			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16176			found="yes"
16177		fi
16178	fi
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194xorg_testset_save_CFLAGS="$CFLAGS"
16195
16196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16201  $as_echo_n "(cached) " >&6
16202else
16203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h.  */
16205int i;
16206_ACEOF
16207if ac_fn_c_try_compile "$LINENO"; then :
16208  xorg_cv_cc_flag_unknown_warning_option=yes
16209else
16210  xorg_cv_cc_flag_unknown_warning_option=no
16211fi
16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213fi
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16217	CFLAGS="$xorg_testset_save_CFLAGS"
16218fi
16219
16220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16223	fi
16224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16228  $as_echo_n "(cached) " >&6
16229else
16230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231/* end confdefs.h.  */
16232int i;
16233_ACEOF
16234if ac_fn_c_try_compile "$LINENO"; then :
16235  xorg_cv_cc_flag_unused_command_line_argument=yes
16236else
16237  xorg_cv_cc_flag_unused_command_line_argument=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16244	CFLAGS="$xorg_testset_save_CFLAGS"
16245fi
16246
16247found="no"
16248
16249	if test $found = "no" ; then
16250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252		fi
16253
16254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16256		fi
16257
16258		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16259
16260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16261$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16262		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16263		if eval \${$cacheid+:} false; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269int
16270main ()
16271{
16272
16273  ;
16274  return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_link "$LINENO"; then :
16278  eval $cacheid=yes
16279else
16280  eval $cacheid=no
16281fi
16282rm -f core conftest.err conftest.$ac_objext \
16283    conftest$ac_exeext conftest.$ac_ext
16284fi
16285
16286
16287		CFLAGS="$xorg_testset_save_CFLAGS"
16288
16289		eval supported=\$$cacheid
16290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16291$as_echo "$supported" >&6; }
16292		if test "$supported" = "yes" ; then
16293			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16294			found="yes"
16295		fi
16296	fi
16297
16298 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16299else
16300{ $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
16301$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;}
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315xorg_testset_save_CFLAGS="$CFLAGS"
16316
16317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16322  $as_echo_n "(cached) " >&6
16323else
16324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325/* end confdefs.h.  */
16326int i;
16327_ACEOF
16328if ac_fn_c_try_compile "$LINENO"; then :
16329  xorg_cv_cc_flag_unknown_warning_option=yes
16330else
16331  xorg_cv_cc_flag_unknown_warning_option=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334fi
16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338	CFLAGS="$xorg_testset_save_CFLAGS"
16339fi
16340
16341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344	fi
16345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16349  $as_echo_n "(cached) " >&6
16350else
16351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352/* end confdefs.h.  */
16353int i;
16354_ACEOF
16355if ac_fn_c_try_compile "$LINENO"; then :
16356  xorg_cv_cc_flag_unused_command_line_argument=yes
16357else
16358  xorg_cv_cc_flag_unused_command_line_argument=no
16359fi
16360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361fi
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365	CFLAGS="$xorg_testset_save_CFLAGS"
16366fi
16367
16368found="no"
16369
16370	if test $found = "no" ; then
16371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373		fi
16374
16375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377		fi
16378
16379		CFLAGS="$CFLAGS -Wimplicit"
16380
16381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16382$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16383		cacheid=xorg_cv_cc_flag__Wimplicit
16384		if eval \${$cacheid+:} false; then :
16385  $as_echo_n "(cached) " >&6
16386else
16387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388/* end confdefs.h.  */
16389int i;
16390int
16391main ()
16392{
16393
16394  ;
16395  return 0;
16396}
16397_ACEOF
16398if ac_fn_c_try_link "$LINENO"; then :
16399  eval $cacheid=yes
16400else
16401  eval $cacheid=no
16402fi
16403rm -f core conftest.err conftest.$ac_objext \
16404    conftest$ac_exeext conftest.$ac_ext
16405fi
16406
16407
16408		CFLAGS="$xorg_testset_save_CFLAGS"
16409
16410		eval supported=\$$cacheid
16411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16412$as_echo "$supported" >&6; }
16413		if test "$supported" = "yes" ; then
16414			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16415			found="yes"
16416		fi
16417	fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433xorg_testset_save_CFLAGS="$CFLAGS"
16434
16435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16440  $as_echo_n "(cached) " >&6
16441else
16442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443/* end confdefs.h.  */
16444int i;
16445_ACEOF
16446if ac_fn_c_try_compile "$LINENO"; then :
16447  xorg_cv_cc_flag_unknown_warning_option=yes
16448else
16449  xorg_cv_cc_flag_unknown_warning_option=no
16450fi
16451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452fi
16453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16456	CFLAGS="$xorg_testset_save_CFLAGS"
16457fi
16458
16459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16462	fi
16463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16467  $as_echo_n "(cached) " >&6
16468else
16469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470/* end confdefs.h.  */
16471int i;
16472_ACEOF
16473if ac_fn_c_try_compile "$LINENO"; then :
16474  xorg_cv_cc_flag_unused_command_line_argument=yes
16475else
16476  xorg_cv_cc_flag_unused_command_line_argument=no
16477fi
16478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479fi
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16483	CFLAGS="$xorg_testset_save_CFLAGS"
16484fi
16485
16486found="no"
16487
16488	if test $found = "no" ; then
16489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491		fi
16492
16493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16495		fi
16496
16497		CFLAGS="$CFLAGS -Wnonnull"
16498
16499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16500$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16501		cacheid=xorg_cv_cc_flag__Wnonnull
16502		if eval \${$cacheid+:} false; then :
16503  $as_echo_n "(cached) " >&6
16504else
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507int i;
16508int
16509main ()
16510{
16511
16512  ;
16513  return 0;
16514}
16515_ACEOF
16516if ac_fn_c_try_link "$LINENO"; then :
16517  eval $cacheid=yes
16518else
16519  eval $cacheid=no
16520fi
16521rm -f core conftest.err conftest.$ac_objext \
16522    conftest$ac_exeext conftest.$ac_ext
16523fi
16524
16525
16526		CFLAGS="$xorg_testset_save_CFLAGS"
16527
16528		eval supported=\$$cacheid
16529		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530$as_echo "$supported" >&6; }
16531		if test "$supported" = "yes" ; then
16532			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16533			found="yes"
16534		fi
16535	fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551xorg_testset_save_CFLAGS="$CFLAGS"
16552
16553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16558  $as_echo_n "(cached) " >&6
16559else
16560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h.  */
16562int i;
16563_ACEOF
16564if ac_fn_c_try_compile "$LINENO"; then :
16565  xorg_cv_cc_flag_unknown_warning_option=yes
16566else
16567  xorg_cv_cc_flag_unknown_warning_option=no
16568fi
16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570fi
16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16574	CFLAGS="$xorg_testset_save_CFLAGS"
16575fi
16576
16577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16580	fi
16581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16585  $as_echo_n "(cached) " >&6
16586else
16587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h.  */
16589int i;
16590_ACEOF
16591if ac_fn_c_try_compile "$LINENO"; then :
16592  xorg_cv_cc_flag_unused_command_line_argument=yes
16593else
16594  xorg_cv_cc_flag_unused_command_line_argument=no
16595fi
16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597fi
16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601	CFLAGS="$xorg_testset_save_CFLAGS"
16602fi
16603
16604found="no"
16605
16606	if test $found = "no" ; then
16607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609		fi
16610
16611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613		fi
16614
16615		CFLAGS="$CFLAGS -Winit-self"
16616
16617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16618$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16619		cacheid=xorg_cv_cc_flag__Winit_self
16620		if eval \${$cacheid+:} false; then :
16621  $as_echo_n "(cached) " >&6
16622else
16623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624/* end confdefs.h.  */
16625int i;
16626int
16627main ()
16628{
16629
16630  ;
16631  return 0;
16632}
16633_ACEOF
16634if ac_fn_c_try_link "$LINENO"; then :
16635  eval $cacheid=yes
16636else
16637  eval $cacheid=no
16638fi
16639rm -f core conftest.err conftest.$ac_objext \
16640    conftest$ac_exeext conftest.$ac_ext
16641fi
16642
16643
16644		CFLAGS="$xorg_testset_save_CFLAGS"
16645
16646		eval supported=\$$cacheid
16647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648$as_echo "$supported" >&6; }
16649		if test "$supported" = "yes" ; then
16650			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16651			found="yes"
16652		fi
16653	fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669xorg_testset_save_CFLAGS="$CFLAGS"
16670
16671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16676  $as_echo_n "(cached) " >&6
16677else
16678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679/* end confdefs.h.  */
16680int i;
16681_ACEOF
16682if ac_fn_c_try_compile "$LINENO"; then :
16683  xorg_cv_cc_flag_unknown_warning_option=yes
16684else
16685  xorg_cv_cc_flag_unknown_warning_option=no
16686fi
16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688fi
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16692	CFLAGS="$xorg_testset_save_CFLAGS"
16693fi
16694
16695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698	fi
16699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16703  $as_echo_n "(cached) " >&6
16704else
16705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h.  */
16707int i;
16708_ACEOF
16709if ac_fn_c_try_compile "$LINENO"; then :
16710  xorg_cv_cc_flag_unused_command_line_argument=yes
16711else
16712  xorg_cv_cc_flag_unused_command_line_argument=no
16713fi
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715fi
16716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16719	CFLAGS="$xorg_testset_save_CFLAGS"
16720fi
16721
16722found="no"
16723
16724	if test $found = "no" ; then
16725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727		fi
16728
16729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731		fi
16732
16733		CFLAGS="$CFLAGS -Wmain"
16734
16735		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16736$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16737		cacheid=xorg_cv_cc_flag__Wmain
16738		if eval \${$cacheid+:} false; then :
16739  $as_echo_n "(cached) " >&6
16740else
16741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742/* end confdefs.h.  */
16743int i;
16744int
16745main ()
16746{
16747
16748  ;
16749  return 0;
16750}
16751_ACEOF
16752if ac_fn_c_try_link "$LINENO"; then :
16753  eval $cacheid=yes
16754else
16755  eval $cacheid=no
16756fi
16757rm -f core conftest.err conftest.$ac_objext \
16758    conftest$ac_exeext conftest.$ac_ext
16759fi
16760
16761
16762		CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764		eval supported=\$$cacheid
16765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766$as_echo "$supported" >&6; }
16767		if test "$supported" = "yes" ; then
16768			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16769			found="yes"
16770		fi
16771	fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16794  $as_echo_n "(cached) " >&6
16795else
16796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h.  */
16798int i;
16799_ACEOF
16800if ac_fn_c_try_compile "$LINENO"; then :
16801  xorg_cv_cc_flag_unknown_warning_option=yes
16802else
16803  xorg_cv_cc_flag_unknown_warning_option=no
16804fi
16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806fi
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810	CFLAGS="$xorg_testset_save_CFLAGS"
16811fi
16812
16813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16816	fi
16817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16821  $as_echo_n "(cached) " >&6
16822else
16823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824/* end confdefs.h.  */
16825int i;
16826_ACEOF
16827if ac_fn_c_try_compile "$LINENO"; then :
16828  xorg_cv_cc_flag_unused_command_line_argument=yes
16829else
16830  xorg_cv_cc_flag_unused_command_line_argument=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16837	CFLAGS="$xorg_testset_save_CFLAGS"
16838fi
16839
16840found="no"
16841
16842	if test $found = "no" ; then
16843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845		fi
16846
16847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849		fi
16850
16851		CFLAGS="$CFLAGS -Wmissing-braces"
16852
16853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16854$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16855		cacheid=xorg_cv_cc_flag__Wmissing_braces
16856		if eval \${$cacheid+:} false; then :
16857  $as_echo_n "(cached) " >&6
16858else
16859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h.  */
16861int i;
16862int
16863main ()
16864{
16865
16866  ;
16867  return 0;
16868}
16869_ACEOF
16870if ac_fn_c_try_link "$LINENO"; then :
16871  eval $cacheid=yes
16872else
16873  eval $cacheid=no
16874fi
16875rm -f core conftest.err conftest.$ac_objext \
16876    conftest$ac_exeext conftest.$ac_ext
16877fi
16878
16879
16880		CFLAGS="$xorg_testset_save_CFLAGS"
16881
16882		eval supported=\$$cacheid
16883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884$as_echo "$supported" >&6; }
16885		if test "$supported" = "yes" ; then
16886			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16887			found="yes"
16888		fi
16889	fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905xorg_testset_save_CFLAGS="$CFLAGS"
16906
16907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16912  $as_echo_n "(cached) " >&6
16913else
16914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915/* end confdefs.h.  */
16916int i;
16917_ACEOF
16918if ac_fn_c_try_compile "$LINENO"; then :
16919  xorg_cv_cc_flag_unknown_warning_option=yes
16920else
16921  xorg_cv_cc_flag_unknown_warning_option=no
16922fi
16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924fi
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16928	CFLAGS="$xorg_testset_save_CFLAGS"
16929fi
16930
16931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16934	fi
16935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16939  $as_echo_n "(cached) " >&6
16940else
16941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942/* end confdefs.h.  */
16943int i;
16944_ACEOF
16945if ac_fn_c_try_compile "$LINENO"; then :
16946  xorg_cv_cc_flag_unused_command_line_argument=yes
16947else
16948  xorg_cv_cc_flag_unused_command_line_argument=no
16949fi
16950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951fi
16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16955	CFLAGS="$xorg_testset_save_CFLAGS"
16956fi
16957
16958found="no"
16959
16960	if test $found = "no" ; then
16961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963		fi
16964
16965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16967		fi
16968
16969		CFLAGS="$CFLAGS -Wsequence-point"
16970
16971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16972$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16973		cacheid=xorg_cv_cc_flag__Wsequence_point
16974		if eval \${$cacheid+:} false; then :
16975  $as_echo_n "(cached) " >&6
16976else
16977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978/* end confdefs.h.  */
16979int i;
16980int
16981main ()
16982{
16983
16984  ;
16985  return 0;
16986}
16987_ACEOF
16988if ac_fn_c_try_link "$LINENO"; then :
16989  eval $cacheid=yes
16990else
16991  eval $cacheid=no
16992fi
16993rm -f core conftest.err conftest.$ac_objext \
16994    conftest$ac_exeext conftest.$ac_ext
16995fi
16996
16997
16998		CFLAGS="$xorg_testset_save_CFLAGS"
16999
17000		eval supported=\$$cacheid
17001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002$as_echo "$supported" >&6; }
17003		if test "$supported" = "yes" ; then
17004			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17005			found="yes"
17006		fi
17007	fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17030  $as_echo_n "(cached) " >&6
17031else
17032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034int i;
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"; then :
17037  xorg_cv_cc_flag_unknown_warning_option=yes
17038else
17039  xorg_cv_cc_flag_unknown_warning_option=no
17040fi
17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042fi
17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17046	CFLAGS="$xorg_testset_save_CFLAGS"
17047fi
17048
17049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17052	fi
17053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17057  $as_echo_n "(cached) " >&6
17058else
17059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h.  */
17061int i;
17062_ACEOF
17063if ac_fn_c_try_compile "$LINENO"; then :
17064  xorg_cv_cc_flag_unused_command_line_argument=yes
17065else
17066  xorg_cv_cc_flag_unused_command_line_argument=no
17067fi
17068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069fi
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17073	CFLAGS="$xorg_testset_save_CFLAGS"
17074fi
17075
17076found="no"
17077
17078	if test $found = "no" ; then
17079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081		fi
17082
17083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085		fi
17086
17087		CFLAGS="$CFLAGS -Wreturn-type"
17088
17089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17090$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17091		cacheid=xorg_cv_cc_flag__Wreturn_type
17092		if eval \${$cacheid+:} false; then :
17093  $as_echo_n "(cached) " >&6
17094else
17095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h.  */
17097int i;
17098int
17099main ()
17100{
17101
17102  ;
17103  return 0;
17104}
17105_ACEOF
17106if ac_fn_c_try_link "$LINENO"; then :
17107  eval $cacheid=yes
17108else
17109  eval $cacheid=no
17110fi
17111rm -f core conftest.err conftest.$ac_objext \
17112    conftest$ac_exeext conftest.$ac_ext
17113fi
17114
17115
17116		CFLAGS="$xorg_testset_save_CFLAGS"
17117
17118		eval supported=\$$cacheid
17119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120$as_echo "$supported" >&6; }
17121		if test "$supported" = "yes" ; then
17122			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17123			found="yes"
17124		fi
17125	fi
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141xorg_testset_save_CFLAGS="$CFLAGS"
17142
17143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17148  $as_echo_n "(cached) " >&6
17149else
17150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151/* end confdefs.h.  */
17152int i;
17153_ACEOF
17154if ac_fn_c_try_compile "$LINENO"; then :
17155  xorg_cv_cc_flag_unknown_warning_option=yes
17156else
17157  xorg_cv_cc_flag_unknown_warning_option=no
17158fi
17159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160fi
17161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17164	CFLAGS="$xorg_testset_save_CFLAGS"
17165fi
17166
17167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170	fi
17171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17175  $as_echo_n "(cached) " >&6
17176else
17177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178/* end confdefs.h.  */
17179int i;
17180_ACEOF
17181if ac_fn_c_try_compile "$LINENO"; then :
17182  xorg_cv_cc_flag_unused_command_line_argument=yes
17183else
17184  xorg_cv_cc_flag_unused_command_line_argument=no
17185fi
17186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17187fi
17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17191	CFLAGS="$xorg_testset_save_CFLAGS"
17192fi
17193
17194found="no"
17195
17196	if test $found = "no" ; then
17197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17199		fi
17200
17201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17203		fi
17204
17205		CFLAGS="$CFLAGS -Wtrigraphs"
17206
17207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17208$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17209		cacheid=xorg_cv_cc_flag__Wtrigraphs
17210		if eval \${$cacheid+:} false; then :
17211  $as_echo_n "(cached) " >&6
17212else
17213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h.  */
17215int i;
17216int
17217main ()
17218{
17219
17220  ;
17221  return 0;
17222}
17223_ACEOF
17224if ac_fn_c_try_link "$LINENO"; then :
17225  eval $cacheid=yes
17226else
17227  eval $cacheid=no
17228fi
17229rm -f core conftest.err conftest.$ac_objext \
17230    conftest$ac_exeext conftest.$ac_ext
17231fi
17232
17233
17234		CFLAGS="$xorg_testset_save_CFLAGS"
17235
17236		eval supported=\$$cacheid
17237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17238$as_echo "$supported" >&6; }
17239		if test "$supported" = "yes" ; then
17240			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17241			found="yes"
17242		fi
17243	fi
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259xorg_testset_save_CFLAGS="$CFLAGS"
17260
17261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17266  $as_echo_n "(cached) " >&6
17267else
17268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269/* end confdefs.h.  */
17270int i;
17271_ACEOF
17272if ac_fn_c_try_compile "$LINENO"; then :
17273  xorg_cv_cc_flag_unknown_warning_option=yes
17274else
17275  xorg_cv_cc_flag_unknown_warning_option=no
17276fi
17277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278fi
17279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17282	CFLAGS="$xorg_testset_save_CFLAGS"
17283fi
17284
17285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17288	fi
17289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17293  $as_echo_n "(cached) " >&6
17294else
17295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h.  */
17297int i;
17298_ACEOF
17299if ac_fn_c_try_compile "$LINENO"; then :
17300  xorg_cv_cc_flag_unused_command_line_argument=yes
17301else
17302  xorg_cv_cc_flag_unused_command_line_argument=no
17303fi
17304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305fi
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17309	CFLAGS="$xorg_testset_save_CFLAGS"
17310fi
17311
17312found="no"
17313
17314	if test $found = "no" ; then
17315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317		fi
17318
17319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17321		fi
17322
17323		CFLAGS="$CFLAGS -Warray-bounds"
17324
17325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17326$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17327		cacheid=xorg_cv_cc_flag__Warray_bounds
17328		if eval \${$cacheid+:} false; then :
17329  $as_echo_n "(cached) " >&6
17330else
17331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332/* end confdefs.h.  */
17333int i;
17334int
17335main ()
17336{
17337
17338  ;
17339  return 0;
17340}
17341_ACEOF
17342if ac_fn_c_try_link "$LINENO"; then :
17343  eval $cacheid=yes
17344else
17345  eval $cacheid=no
17346fi
17347rm -f core conftest.err conftest.$ac_objext \
17348    conftest$ac_exeext conftest.$ac_ext
17349fi
17350
17351
17352		CFLAGS="$xorg_testset_save_CFLAGS"
17353
17354		eval supported=\$$cacheid
17355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17356$as_echo "$supported" >&6; }
17357		if test "$supported" = "yes" ; then
17358			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17359			found="yes"
17360		fi
17361	fi
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377xorg_testset_save_CFLAGS="$CFLAGS"
17378
17379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17384  $as_echo_n "(cached) " >&6
17385else
17386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387/* end confdefs.h.  */
17388int i;
17389_ACEOF
17390if ac_fn_c_try_compile "$LINENO"; then :
17391  xorg_cv_cc_flag_unknown_warning_option=yes
17392else
17393  xorg_cv_cc_flag_unknown_warning_option=no
17394fi
17395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396fi
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17400	CFLAGS="$xorg_testset_save_CFLAGS"
17401fi
17402
17403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406	fi
17407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17411  $as_echo_n "(cached) " >&6
17412else
17413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h.  */
17415int i;
17416_ACEOF
17417if ac_fn_c_try_compile "$LINENO"; then :
17418  xorg_cv_cc_flag_unused_command_line_argument=yes
17419else
17420  xorg_cv_cc_flag_unused_command_line_argument=no
17421fi
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423fi
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17427	CFLAGS="$xorg_testset_save_CFLAGS"
17428fi
17429
17430found="no"
17431
17432	if test $found = "no" ; then
17433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435		fi
17436
17437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17439		fi
17440
17441		CFLAGS="$CFLAGS -Wwrite-strings"
17442
17443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17444$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17445		cacheid=xorg_cv_cc_flag__Wwrite_strings
17446		if eval \${$cacheid+:} false; then :
17447  $as_echo_n "(cached) " >&6
17448else
17449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h.  */
17451int i;
17452int
17453main ()
17454{
17455
17456  ;
17457  return 0;
17458}
17459_ACEOF
17460if ac_fn_c_try_link "$LINENO"; then :
17461  eval $cacheid=yes
17462else
17463  eval $cacheid=no
17464fi
17465rm -f core conftest.err conftest.$ac_objext \
17466    conftest$ac_exeext conftest.$ac_ext
17467fi
17468
17469
17470		CFLAGS="$xorg_testset_save_CFLAGS"
17471
17472		eval supported=\$$cacheid
17473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17474$as_echo "$supported" >&6; }
17475		if test "$supported" = "yes" ; then
17476			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17477			found="yes"
17478		fi
17479	fi
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495xorg_testset_save_CFLAGS="$CFLAGS"
17496
17497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17502  $as_echo_n "(cached) " >&6
17503else
17504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505/* end confdefs.h.  */
17506int i;
17507_ACEOF
17508if ac_fn_c_try_compile "$LINENO"; then :
17509  xorg_cv_cc_flag_unknown_warning_option=yes
17510else
17511  xorg_cv_cc_flag_unknown_warning_option=no
17512fi
17513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514fi
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17518	CFLAGS="$xorg_testset_save_CFLAGS"
17519fi
17520
17521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17524	fi
17525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17529  $as_echo_n "(cached) " >&6
17530else
17531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532/* end confdefs.h.  */
17533int i;
17534_ACEOF
17535if ac_fn_c_try_compile "$LINENO"; then :
17536  xorg_cv_cc_flag_unused_command_line_argument=yes
17537else
17538  xorg_cv_cc_flag_unused_command_line_argument=no
17539fi
17540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541fi
17542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17545	CFLAGS="$xorg_testset_save_CFLAGS"
17546fi
17547
17548found="no"
17549
17550	if test $found = "no" ; then
17551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553		fi
17554
17555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17557		fi
17558
17559		CFLAGS="$CFLAGS -Waddress"
17560
17561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17562$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17563		cacheid=xorg_cv_cc_flag__Waddress
17564		if eval \${$cacheid+:} false; then :
17565  $as_echo_n "(cached) " >&6
17566else
17567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568/* end confdefs.h.  */
17569int i;
17570int
17571main ()
17572{
17573
17574  ;
17575  return 0;
17576}
17577_ACEOF
17578if ac_fn_c_try_link "$LINENO"; then :
17579  eval $cacheid=yes
17580else
17581  eval $cacheid=no
17582fi
17583rm -f core conftest.err conftest.$ac_objext \
17584    conftest$ac_exeext conftest.$ac_ext
17585fi
17586
17587
17588		CFLAGS="$xorg_testset_save_CFLAGS"
17589
17590		eval supported=\$$cacheid
17591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592$as_echo "$supported" >&6; }
17593		if test "$supported" = "yes" ; then
17594			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17595			found="yes"
17596		fi
17597	fi
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613xorg_testset_save_CFLAGS="$CFLAGS"
17614
17615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17620  $as_echo_n "(cached) " >&6
17621else
17622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623/* end confdefs.h.  */
17624int i;
17625_ACEOF
17626if ac_fn_c_try_compile "$LINENO"; then :
17627  xorg_cv_cc_flag_unknown_warning_option=yes
17628else
17629  xorg_cv_cc_flag_unknown_warning_option=no
17630fi
17631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632fi
17633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17636	CFLAGS="$xorg_testset_save_CFLAGS"
17637fi
17638
17639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17642	fi
17643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17647  $as_echo_n "(cached) " >&6
17648else
17649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650/* end confdefs.h.  */
17651int i;
17652_ACEOF
17653if ac_fn_c_try_compile "$LINENO"; then :
17654  xorg_cv_cc_flag_unused_command_line_argument=yes
17655else
17656  xorg_cv_cc_flag_unused_command_line_argument=no
17657fi
17658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659fi
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17663	CFLAGS="$xorg_testset_save_CFLAGS"
17664fi
17665
17666found="no"
17667
17668	if test $found = "no" ; then
17669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17671		fi
17672
17673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17675		fi
17676
17677		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17678
17679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17680$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17681		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17682		if eval \${$cacheid+:} false; then :
17683  $as_echo_n "(cached) " >&6
17684else
17685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687int i;
17688int
17689main ()
17690{
17691
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696if ac_fn_c_try_link "$LINENO"; then :
17697  eval $cacheid=yes
17698else
17699  eval $cacheid=no
17700fi
17701rm -f core conftest.err conftest.$ac_objext \
17702    conftest$ac_exeext conftest.$ac_ext
17703fi
17704
17705
17706		CFLAGS="$xorg_testset_save_CFLAGS"
17707
17708		eval supported=\$$cacheid
17709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17710$as_echo "$supported" >&6; }
17711		if test "$supported" = "yes" ; then
17712			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17713			found="yes"
17714		fi
17715	fi
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731xorg_testset_save_CFLAGS="$CFLAGS"
17732
17733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17738  $as_echo_n "(cached) " >&6
17739else
17740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741/* end confdefs.h.  */
17742int i;
17743_ACEOF
17744if ac_fn_c_try_compile "$LINENO"; then :
17745  xorg_cv_cc_flag_unknown_warning_option=yes
17746else
17747  xorg_cv_cc_flag_unknown_warning_option=no
17748fi
17749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750fi
17751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17754	CFLAGS="$xorg_testset_save_CFLAGS"
17755fi
17756
17757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17760	fi
17761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17765  $as_echo_n "(cached) " >&6
17766else
17767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768/* end confdefs.h.  */
17769int i;
17770_ACEOF
17771if ac_fn_c_try_compile "$LINENO"; then :
17772  xorg_cv_cc_flag_unused_command_line_argument=yes
17773else
17774  xorg_cv_cc_flag_unused_command_line_argument=no
17775fi
17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777fi
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17781	CFLAGS="$xorg_testset_save_CFLAGS"
17782fi
17783
17784found="no"
17785
17786	if test $found = "no" ; then
17787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17789		fi
17790
17791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17793		fi
17794
17795		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17796
17797		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17798$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17799		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17800		if eval \${$cacheid+:} false; then :
17801  $as_echo_n "(cached) " >&6
17802else
17803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804/* end confdefs.h.  */
17805int i;
17806int
17807main ()
17808{
17809
17810  ;
17811  return 0;
17812}
17813_ACEOF
17814if ac_fn_c_try_link "$LINENO"; then :
17815  eval $cacheid=yes
17816else
17817  eval $cacheid=no
17818fi
17819rm -f core conftest.err conftest.$ac_objext \
17820    conftest$ac_exeext conftest.$ac_ext
17821fi
17822
17823
17824		CFLAGS="$xorg_testset_save_CFLAGS"
17825
17826		eval supported=\$$cacheid
17827		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17828$as_echo "$supported" >&6; }
17829		if test "$supported" = "yes" ; then
17830			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17831			found="yes"
17832		fi
17833	fi
17834
17835
17836fi
17837
17838
17839
17840
17841
17842
17843
17844		CWARNFLAGS="$BASE_CFLAGS"
17845		if  test "x$GCC" = xyes ; then
17846		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17847		fi
17848
17849
17850
17851
17852
17853
17854
17855
17856# Check whether --enable-strict-compilation was given.
17857if test "${enable_strict_compilation+set}" = set; then :
17858  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17859else
17860  STRICT_COMPILE=no
17861fi
17862
17863
17864
17865
17866
17867
17868STRICT_CFLAGS=""
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882xorg_testset_save_CFLAGS="$CFLAGS"
17883
17884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17889  $as_echo_n "(cached) " >&6
17890else
17891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892/* end confdefs.h.  */
17893int i;
17894_ACEOF
17895if ac_fn_c_try_compile "$LINENO"; then :
17896  xorg_cv_cc_flag_unknown_warning_option=yes
17897else
17898  xorg_cv_cc_flag_unknown_warning_option=no
17899fi
17900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901fi
17902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17905	CFLAGS="$xorg_testset_save_CFLAGS"
17906fi
17907
17908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911	fi
17912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17916  $as_echo_n "(cached) " >&6
17917else
17918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919/* end confdefs.h.  */
17920int i;
17921_ACEOF
17922if ac_fn_c_try_compile "$LINENO"; then :
17923  xorg_cv_cc_flag_unused_command_line_argument=yes
17924else
17925  xorg_cv_cc_flag_unused_command_line_argument=no
17926fi
17927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928fi
17929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17932	CFLAGS="$xorg_testset_save_CFLAGS"
17933fi
17934
17935found="no"
17936
17937	if test $found = "no" ; then
17938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17940		fi
17941
17942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17944		fi
17945
17946		CFLAGS="$CFLAGS -pedantic"
17947
17948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17949$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17950		cacheid=xorg_cv_cc_flag__pedantic
17951		if eval \${$cacheid+:} false; then :
17952  $as_echo_n "(cached) " >&6
17953else
17954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955/* end confdefs.h.  */
17956int i;
17957int
17958main ()
17959{
17960
17961  ;
17962  return 0;
17963}
17964_ACEOF
17965if ac_fn_c_try_link "$LINENO"; then :
17966  eval $cacheid=yes
17967else
17968  eval $cacheid=no
17969fi
17970rm -f core conftest.err conftest.$ac_objext \
17971    conftest$ac_exeext conftest.$ac_ext
17972fi
17973
17974
17975		CFLAGS="$xorg_testset_save_CFLAGS"
17976
17977		eval supported=\$$cacheid
17978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17979$as_echo "$supported" >&6; }
17980		if test "$supported" = "yes" ; then
17981			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17982			found="yes"
17983		fi
17984	fi
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000xorg_testset_save_CFLAGS="$CFLAGS"
18001
18002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18007  $as_echo_n "(cached) " >&6
18008else
18009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010/* end confdefs.h.  */
18011int i;
18012_ACEOF
18013if ac_fn_c_try_compile "$LINENO"; then :
18014  xorg_cv_cc_flag_unknown_warning_option=yes
18015else
18016  xorg_cv_cc_flag_unknown_warning_option=no
18017fi
18018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18019fi
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18023	CFLAGS="$xorg_testset_save_CFLAGS"
18024fi
18025
18026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18029	fi
18030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18034  $as_echo_n "(cached) " >&6
18035else
18036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037/* end confdefs.h.  */
18038int i;
18039_ACEOF
18040if ac_fn_c_try_compile "$LINENO"; then :
18041  xorg_cv_cc_flag_unused_command_line_argument=yes
18042else
18043  xorg_cv_cc_flag_unused_command_line_argument=no
18044fi
18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046fi
18047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18050	CFLAGS="$xorg_testset_save_CFLAGS"
18051fi
18052
18053found="no"
18054
18055	if test $found = "no" ; then
18056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18058		fi
18059
18060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18062		fi
18063
18064		CFLAGS="$CFLAGS -Werror"
18065
18066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18067$as_echo_n "checking if $CC supports -Werror... " >&6; }
18068		cacheid=xorg_cv_cc_flag__Werror
18069		if eval \${$cacheid+:} false; then :
18070  $as_echo_n "(cached) " >&6
18071else
18072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073/* end confdefs.h.  */
18074int i;
18075int
18076main ()
18077{
18078
18079  ;
18080  return 0;
18081}
18082_ACEOF
18083if ac_fn_c_try_link "$LINENO"; then :
18084  eval $cacheid=yes
18085else
18086  eval $cacheid=no
18087fi
18088rm -f core conftest.err conftest.$ac_objext \
18089    conftest$ac_exeext conftest.$ac_ext
18090fi
18091
18092
18093		CFLAGS="$xorg_testset_save_CFLAGS"
18094
18095		eval supported=\$$cacheid
18096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18097$as_echo "$supported" >&6; }
18098		if test "$supported" = "yes" ; then
18099			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18100			found="yes"
18101		fi
18102	fi
18103
18104	if test $found = "no" ; then
18105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18107		fi
18108
18109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18111		fi
18112
18113		CFLAGS="$CFLAGS -errwarn"
18114
18115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18116$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18117		cacheid=xorg_cv_cc_flag__errwarn
18118		if eval \${$cacheid+:} false; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122/* end confdefs.h.  */
18123int i;
18124int
18125main ()
18126{
18127
18128  ;
18129  return 0;
18130}
18131_ACEOF
18132if ac_fn_c_try_link "$LINENO"; then :
18133  eval $cacheid=yes
18134else
18135  eval $cacheid=no
18136fi
18137rm -f core conftest.err conftest.$ac_objext \
18138    conftest$ac_exeext conftest.$ac_ext
18139fi
18140
18141
18142		CFLAGS="$xorg_testset_save_CFLAGS"
18143
18144		eval supported=\$$cacheid
18145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18146$as_echo "$supported" >&6; }
18147		if test "$supported" = "yes" ; then
18148			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18149			found="yes"
18150		fi
18151	fi
18152
18153
18154
18155# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18156# activate it with -Werror, so we add it here explicitly.
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170xorg_testset_save_CFLAGS="$CFLAGS"
18171
18172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18177  $as_echo_n "(cached) " >&6
18178else
18179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180/* end confdefs.h.  */
18181int i;
18182_ACEOF
18183if ac_fn_c_try_compile "$LINENO"; then :
18184  xorg_cv_cc_flag_unknown_warning_option=yes
18185else
18186  xorg_cv_cc_flag_unknown_warning_option=no
18187fi
18188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189fi
18190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18193	CFLAGS="$xorg_testset_save_CFLAGS"
18194fi
18195
18196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18199	fi
18200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18204  $as_echo_n "(cached) " >&6
18205else
18206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207/* end confdefs.h.  */
18208int i;
18209_ACEOF
18210if ac_fn_c_try_compile "$LINENO"; then :
18211  xorg_cv_cc_flag_unused_command_line_argument=yes
18212else
18213  xorg_cv_cc_flag_unused_command_line_argument=no
18214fi
18215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216fi
18217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18220	CFLAGS="$xorg_testset_save_CFLAGS"
18221fi
18222
18223found="no"
18224
18225	if test $found = "no" ; then
18226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18228		fi
18229
18230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18232		fi
18233
18234		CFLAGS="$CFLAGS -Werror=attributes"
18235
18236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18237$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18238		cacheid=xorg_cv_cc_flag__Werror_attributes
18239		if eval \${$cacheid+:} false; then :
18240  $as_echo_n "(cached) " >&6
18241else
18242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243/* end confdefs.h.  */
18244int i;
18245int
18246main ()
18247{
18248
18249  ;
18250  return 0;
18251}
18252_ACEOF
18253if ac_fn_c_try_link "$LINENO"; then :
18254  eval $cacheid=yes
18255else
18256  eval $cacheid=no
18257fi
18258rm -f core conftest.err conftest.$ac_objext \
18259    conftest$ac_exeext conftest.$ac_ext
18260fi
18261
18262
18263		CFLAGS="$xorg_testset_save_CFLAGS"
18264
18265		eval supported=\$$cacheid
18266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18267$as_echo "$supported" >&6; }
18268		if test "$supported" = "yes" ; then
18269			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18270			found="yes"
18271		fi
18272	fi
18273
18274
18275
18276if test "x$STRICT_COMPILE" = "xyes"; then
18277    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18278    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18279fi
18280
18281
18282
18283
18284
18285
18286cat >>confdefs.h <<_ACEOF
18287#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18288_ACEOF
18289
18290	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18291	if test "x$PVM" = "x"; then
18292		PVM="0"
18293	fi
18294
18295cat >>confdefs.h <<_ACEOF
18296#define PACKAGE_VERSION_MINOR $PVM
18297_ACEOF
18298
18299	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18300	if test "x$PVP" = "x"; then
18301		PVP="0"
18302	fi
18303
18304cat >>confdefs.h <<_ACEOF
18305#define PACKAGE_VERSION_PATCHLEVEL $PVP
18306_ACEOF
18307
18308
18309
18310CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18311mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18312|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18313echo 'git directory not found: installing possibly empty changelog.' >&2)"
18314
18315
18316
18317
18318macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18319INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18320mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18321|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18322echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18323
18324
18325
18326
18327
18328
18329if test x$APP_MAN_SUFFIX = x    ; then
18330    APP_MAN_SUFFIX=1
18331fi
18332if test x$APP_MAN_DIR = x    ; then
18333    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18334fi
18335
18336if test x$LIB_MAN_SUFFIX = x    ; then
18337    LIB_MAN_SUFFIX=3
18338fi
18339if test x$LIB_MAN_DIR = x    ; then
18340    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18341fi
18342
18343if test x$FILE_MAN_SUFFIX = x    ; then
18344    case $host_os in
18345	solaris*)	FILE_MAN_SUFFIX=4  ;;
18346	*)		FILE_MAN_SUFFIX=5  ;;
18347    esac
18348fi
18349if test x$FILE_MAN_DIR = x    ; then
18350    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18351fi
18352
18353if test x$MISC_MAN_SUFFIX = x    ; then
18354    case $host_os in
18355	solaris*)	MISC_MAN_SUFFIX=5  ;;
18356	*)		MISC_MAN_SUFFIX=7  ;;
18357    esac
18358fi
18359if test x$MISC_MAN_DIR = x    ; then
18360    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18361fi
18362
18363if test x$DRIVER_MAN_SUFFIX = x    ; then
18364    case $host_os in
18365	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18366	*)		DRIVER_MAN_SUFFIX=4  ;;
18367    esac
18368fi
18369if test x$DRIVER_MAN_DIR = x    ; then
18370    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18371fi
18372
18373if test x$ADMIN_MAN_SUFFIX = x    ; then
18374    case $host_os in
18375	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18376	*)		ADMIN_MAN_SUFFIX=8  ;;
18377    esac
18378fi
18379if test x$ADMIN_MAN_DIR = x    ; then
18380    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18381fi
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397XORG_MAN_PAGE="X Version 11"
18398
18399MAN_SUBSTS="\
18400	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18401	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18402	-e 's|__xservername__|Xorg|g' \
18403	-e 's|__xconfigfile__|xorg.conf|g' \
18404	-e 's|__projectroot__|\$(prefix)|g' \
18405	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18406	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18407	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18408	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18409	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18410	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18411	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18412
18413
18414
18415# Check whether --enable-silent-rules was given.
18416if test "${enable_silent_rules+set}" = set; then :
18417  enableval=$enable_silent_rules;
18418fi
18419
18420case $enable_silent_rules in # (((
18421  yes) AM_DEFAULT_VERBOSITY=0;;
18422   no) AM_DEFAULT_VERBOSITY=1;;
18423    *) AM_DEFAULT_VERBOSITY=0;;
18424esac
18425am_make=${MAKE-make}
18426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18427$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18428if ${am_cv_make_support_nested_variables+:} false; then :
18429  $as_echo_n "(cached) " >&6
18430else
18431  if $as_echo 'TRUE=$(BAR$(V))
18432BAR0=false
18433BAR1=true
18434V=1
18435am__doit:
18436	@$(TRUE)
18437.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18438  am_cv_make_support_nested_variables=yes
18439else
18440  am_cv_make_support_nested_variables=no
18441fi
18442fi
18443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18444$as_echo "$am_cv_make_support_nested_variables" >&6; }
18445if test $am_cv_make_support_nested_variables = yes; then
18446    AM_V='$(V)'
18447  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18448else
18449  AM_V=$AM_DEFAULT_VERBOSITY
18450  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18451fi
18452AM_BACKSLASH='\'
18453
18454
18455
18456# Set library version for Xcursor.h from package version set in AC_INIT
18457# copied from PACKAGE_VERSION_* settings in XORG_VERSION
18458
18459cat >>confdefs.h <<_ACEOF
18460#define XCURSOR_LIB_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18461_ACEOF
18462
18463
18464cat >>confdefs.h <<_ACEOF
18465#define XCURSOR_LIB_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18466_ACEOF
18467
18468
18469cat >>confdefs.h <<_ACEOF
18470#define XCURSOR_LIB_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18471_ACEOF
18472
18473
18474
18475
18476# Check whether --with-icondir was given.
18477if test "${with_icondir+set}" = set; then :
18478  withval=$with_icondir; ICONDIR="$withval"
18479else
18480  ICONDIR=${datadir}/icons
18481fi
18482
18483
18484
18485DEF_CURSORPATH="~/.icons:${datadir}/icons:${datadir}/pixmaps"
18486if test "x${ICONDIR}" != "x${datadir}/icons"; then
18487	DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
18488fi
18489
18490# Check whether --with-cursorpath was given.
18491if test "${with_cursorpath+set}" = set; then :
18492  withval=$with_cursorpath; XCURSORPATH="$withval"
18493else
18494  XCURSORPATH=$DEF_CURSORPATH
18495fi
18496
18497
18498
18499# Obtain compiler/linker options for depedencies
18500
18501pkg_failed=no
18502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
18503$as_echo_n "checking for XCURSOR... " >&6; }
18504
18505if test -n "$XCURSOR_CFLAGS"; then
18506    pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
18507 elif test -n "$PKG_CONFIG"; then
18508    if test -n "$PKG_CONFIG" && \
18509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
18510  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
18511  ac_status=$?
18512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18513  test $ac_status = 0; }; then
18514  pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
18515		      test "x$?" != "x0" && pkg_failed=yes
18516else
18517  pkg_failed=yes
18518fi
18519 else
18520    pkg_failed=untried
18521fi
18522if test -n "$XCURSOR_LIBS"; then
18523    pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
18524 elif test -n "$PKG_CONFIG"; then
18525    if test -n "$PKG_CONFIG" && \
18526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
18527  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
18528  ac_status=$?
18529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18530  test $ac_status = 0; }; then
18531  pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
18532		      test "x$?" != "x0" && pkg_failed=yes
18533else
18534  pkg_failed=yes
18535fi
18536 else
18537    pkg_failed=untried
18538fi
18539
18540
18541
18542if test $pkg_failed = yes; then
18543   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544$as_echo "no" >&6; }
18545
18546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18547        _pkg_short_errors_supported=yes
18548else
18549        _pkg_short_errors_supported=no
18550fi
18551        if test $_pkg_short_errors_supported = yes; then
18552	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
18553        else
18554	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
18555        fi
18556	# Put the nasty error message in config.log where it belongs
18557	echo "$XCURSOR_PKG_ERRORS" >&5
18558
18559	as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met:
18560
18561$XCURSOR_PKG_ERRORS
18562
18563Consider adjusting the PKG_CONFIG_PATH environment variable if you
18564installed software in a non-standard prefix.
18565
18566Alternatively, you may set the environment variables XCURSOR_CFLAGS
18567and XCURSOR_LIBS to avoid the need to call pkg-config.
18568See the pkg-config man page for more details." "$LINENO" 5
18569elif test $pkg_failed = untried; then
18570     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18571$as_echo "no" >&6; }
18572	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18574as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18575is in your PATH or set the PKG_CONFIG environment variable to the full
18576path to pkg-config.
18577
18578Alternatively, you may set the environment variables XCURSOR_CFLAGS
18579and XCURSOR_LIBS to avoid the need to call pkg-config.
18580See the pkg-config man page for more details.
18581
18582To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18583See \`config.log' for more details" "$LINENO" 5; }
18584else
18585	XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
18586	XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
18587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18588$as_echo "yes" >&6; }
18589
18590fi
18591
18592$as_echo "#define HAVE_XFIXES 1" >>confdefs.h
18593
18594
18595# Allow checking code with lint, sparse, etc.
18596
18597
18598
18599
18600
18601# Check whether --with-lint was given.
18602if test "${with_lint+set}" = set; then :
18603  withval=$with_lint; use_lint=$withval
18604else
18605  use_lint=no
18606fi
18607
18608
18609# Obtain platform specific info like program name and options
18610# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18611case $host_os in
18612  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18613	lint_name=splint
18614	lint_options="-badflag"
18615	;;
18616  *freebsd* | *netbsd*)
18617	lint_name=lint
18618	lint_options="-u -b"
18619	;;
18620  *solaris*)
18621	lint_name=lint
18622	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18623	;;
18624esac
18625
18626# Test for the presence of the program (either guessed by the code or spelled out by the user)
18627if test "x$use_lint" = x"yes" ; then
18628   # Extract the first word of "$lint_name", so it can be a program name with args.
18629set dummy $lint_name; ac_word=$2
18630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631$as_echo_n "checking for $ac_word... " >&6; }
18632if ${ac_cv_path_LINT+:} false; then :
18633  $as_echo_n "(cached) " >&6
18634else
18635  case $LINT in
18636  [\\/]* | ?:[\\/]*)
18637  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18638  ;;
18639  *)
18640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641for as_dir in $PATH
18642do
18643  IFS=$as_save_IFS
18644  test -z "$as_dir" && as_dir=.
18645    for ac_exec_ext in '' $ac_executable_extensions; do
18646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18647    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18649    break 2
18650  fi
18651done
18652  done
18653IFS=$as_save_IFS
18654
18655  ;;
18656esac
18657fi
18658LINT=$ac_cv_path_LINT
18659if test -n "$LINT"; then
18660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18661$as_echo "$LINT" >&6; }
18662else
18663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18664$as_echo "no" >&6; }
18665fi
18666
18667
18668   if test "x$LINT" = "x"; then
18669        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18670   fi
18671elif test "x$use_lint" = x"no" ; then
18672   if test "x$LINT" != "x"; then
18673      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18674$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18675   fi
18676else
18677   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18678fi
18679
18680# User supplied flags override default flags
18681if test "x$LINT_FLAGS" != "x"; then
18682   lint_options=$LINT_FLAGS
18683fi
18684
18685LINT_FLAGS=$lint_options
18686
18687 if test "x$LINT" != x; then
18688  LINT_TRUE=
18689  LINT_FALSE='#'
18690else
18691  LINT_TRUE='#'
18692  LINT_FALSE=
18693fi
18694
18695
18696
18697
18698ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc"
18699
18700cat >confcache <<\_ACEOF
18701# This file is a shell script that caches the results of configure
18702# tests run on this system so they can be shared between configure
18703# scripts and configure runs, see configure's option --config-cache.
18704# It is not useful on other systems.  If it contains results you don't
18705# want to keep, you may remove or edit it.
18706#
18707# config.status only pays attention to the cache file if you give it
18708# the --recheck option to rerun configure.
18709#
18710# `ac_cv_env_foo' variables (set or unset) will be overridden when
18711# loading this file, other *unset* `ac_cv_foo' will be assigned the
18712# following values.
18713
18714_ACEOF
18715
18716# The following way of writing the cache mishandles newlines in values,
18717# but we know of no workaround that is simple, portable, and efficient.
18718# So, we kill variables containing newlines.
18719# Ultrix sh set writes to stderr and can't be redirected directly,
18720# and sets the high bit in the cache file unless we assign to the vars.
18721(
18722  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18723    eval ac_val=\$$ac_var
18724    case $ac_val in #(
18725    *${as_nl}*)
18726      case $ac_var in #(
18727      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18728$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18729      esac
18730      case $ac_var in #(
18731      _ | IFS | as_nl) ;; #(
18732      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18733      *) { eval $ac_var=; unset $ac_var;} ;;
18734      esac ;;
18735    esac
18736  done
18737
18738  (set) 2>&1 |
18739    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18740    *${as_nl}ac_space=\ *)
18741      # `set' does not quote correctly, so add quotes: double-quote
18742      # substitution turns \\\\ into \\, and sed turns \\ into \.
18743      sed -n \
18744	"s/'/'\\\\''/g;
18745	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18746      ;; #(
18747    *)
18748      # `set' quotes correctly as required by POSIX, so do not add quotes.
18749      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18750      ;;
18751    esac |
18752    sort
18753) |
18754  sed '
18755     /^ac_cv_env_/b end
18756     t clear
18757     :clear
18758     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18759     t end
18760     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18761     :end' >>confcache
18762if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18763  if test -w "$cache_file"; then
18764    if test "x$cache_file" != "x/dev/null"; then
18765      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18766$as_echo "$as_me: updating cache $cache_file" >&6;}
18767      if test ! -f "$cache_file" || test -h "$cache_file"; then
18768	cat confcache >"$cache_file"
18769      else
18770        case $cache_file in #(
18771        */* | ?:*)
18772	  mv -f confcache "$cache_file"$$ &&
18773	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18774        *)
18775	  mv -f confcache "$cache_file" ;;
18776	esac
18777      fi
18778    fi
18779  else
18780    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18781$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18782  fi
18783fi
18784rm -f confcache
18785
18786test "x$prefix" = xNONE && prefix=$ac_default_prefix
18787# Let make expand exec_prefix.
18788test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18789
18790DEFS=-DHAVE_CONFIG_H
18791
18792ac_libobjs=
18793ac_ltlibobjs=
18794U=
18795for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18796  # 1. Remove the extension, and $U if already installed.
18797  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18798  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18799  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18800  #    will be set to the directory where LIBOBJS objects are built.
18801  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18802  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18803done
18804LIBOBJS=$ac_libobjs
18805
18806LTLIBOBJS=$ac_ltlibobjs
18807
18808
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18810$as_echo_n "checking that generated files are newer than configure... " >&6; }
18811   if test -n "$am_sleep_pid"; then
18812     # Hide warnings about reused PIDs.
18813     wait $am_sleep_pid 2>/dev/null
18814   fi
18815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18816$as_echo "done" >&6; }
18817if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18818  as_fn_error $? "conditional \"AMDEP\" was never defined.
18819Usually this means the macro was only invoked conditionally." "$LINENO" 5
18820fi
18821if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18822  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18823Usually this means the macro was only invoked conditionally." "$LINENO" 5
18824fi
18825 if test -n "$EXEEXT"; then
18826  am__EXEEXT_TRUE=
18827  am__EXEEXT_FALSE='#'
18828else
18829  am__EXEEXT_TRUE='#'
18830  am__EXEEXT_FALSE=
18831fi
18832
18833if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18834  as_fn_error $? "conditional \"LINT\" was never defined.
18835Usually this means the macro was only invoked conditionally." "$LINENO" 5
18836fi
18837
18838: "${CONFIG_STATUS=./config.status}"
18839ac_write_fail=0
18840ac_clean_files_save=$ac_clean_files
18841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18842{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18843$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18844as_write_fail=0
18845cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18846#! $SHELL
18847# Generated by $as_me.
18848# Run this file to recreate the current configuration.
18849# Compiler output produced by configure, useful for debugging
18850# configure, is in config.log if it exists.
18851
18852debug=false
18853ac_cs_recheck=false
18854ac_cs_silent=false
18855
18856SHELL=\${CONFIG_SHELL-$SHELL}
18857export SHELL
18858_ASEOF
18859cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18860## -------------------- ##
18861## M4sh Initialization. ##
18862## -------------------- ##
18863
18864# Be more Bourne compatible
18865DUALCASE=1; export DUALCASE # for MKS sh
18866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18867  emulate sh
18868  NULLCMD=:
18869  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18870  # is contrary to our usage.  Disable this feature.
18871  alias -g '${1+"$@"}'='"$@"'
18872  setopt NO_GLOB_SUBST
18873else
18874  case `(set -o) 2>/dev/null` in #(
18875  *posix*) :
18876    set -o posix ;; #(
18877  *) :
18878     ;;
18879esac
18880fi
18881
18882
18883as_nl='
18884'
18885export as_nl
18886# Printing a long string crashes Solaris 7 /usr/bin/printf.
18887as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18890# Prefer a ksh shell builtin over an external printf program on Solaris,
18891# but without wasting forks for bash or zsh.
18892if test -z "$BASH_VERSION$ZSH_VERSION" \
18893    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18894  as_echo='print -r --'
18895  as_echo_n='print -rn --'
18896elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18897  as_echo='printf %s\n'
18898  as_echo_n='printf %s'
18899else
18900  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18901    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18902    as_echo_n='/usr/ucb/echo -n'
18903  else
18904    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18905    as_echo_n_body='eval
18906      arg=$1;
18907      case $arg in #(
18908      *"$as_nl"*)
18909	expr "X$arg" : "X\\(.*\\)$as_nl";
18910	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18911      esac;
18912      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18913    '
18914    export as_echo_n_body
18915    as_echo_n='sh -c $as_echo_n_body as_echo'
18916  fi
18917  export as_echo_body
18918  as_echo='sh -c $as_echo_body as_echo'
18919fi
18920
18921# The user is always right.
18922if test "${PATH_SEPARATOR+set}" != set; then
18923  PATH_SEPARATOR=:
18924  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18925    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18926      PATH_SEPARATOR=';'
18927  }
18928fi
18929
18930
18931# IFS
18932# We need space, tab and new line, in precisely that order.  Quoting is
18933# there to prevent editors from complaining about space-tab.
18934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18935# splitting by setting IFS to empty value.)
18936IFS=" ""	$as_nl"
18937
18938# Find who we are.  Look in the path if we contain no directory separator.
18939as_myself=
18940case $0 in #((
18941  *[\\/]* ) as_myself=$0 ;;
18942  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18943for as_dir in $PATH
18944do
18945  IFS=$as_save_IFS
18946  test -z "$as_dir" && as_dir=.
18947    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18948  done
18949IFS=$as_save_IFS
18950
18951     ;;
18952esac
18953# We did not find ourselves, most probably we were run as `sh COMMAND'
18954# in which case we are not to be found in the path.
18955if test "x$as_myself" = x; then
18956  as_myself=$0
18957fi
18958if test ! -f "$as_myself"; then
18959  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18960  exit 1
18961fi
18962
18963# Unset variables that we do not need and which cause bugs (e.g. in
18964# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18965# suppresses any "Segmentation fault" message there.  '((' could
18966# trigger a bug in pdksh 5.2.14.
18967for as_var in BASH_ENV ENV MAIL MAILPATH
18968do eval test x\${$as_var+set} = xset \
18969  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18970done
18971PS1='$ '
18972PS2='> '
18973PS4='+ '
18974
18975# NLS nuisances.
18976LC_ALL=C
18977export LC_ALL
18978LANGUAGE=C
18979export LANGUAGE
18980
18981# CDPATH.
18982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18983
18984
18985# as_fn_error STATUS ERROR [LINENO LOG_FD]
18986# ----------------------------------------
18987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18989# script with STATUS, using 1 if that was 0.
18990as_fn_error ()
18991{
18992  as_status=$1; test $as_status -eq 0 && as_status=1
18993  if test "$4"; then
18994    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18995    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18996  fi
18997  $as_echo "$as_me: error: $2" >&2
18998  as_fn_exit $as_status
18999} # as_fn_error
19000
19001
19002# as_fn_set_status STATUS
19003# -----------------------
19004# Set $? to STATUS, without forking.
19005as_fn_set_status ()
19006{
19007  return $1
19008} # as_fn_set_status
19009
19010# as_fn_exit STATUS
19011# -----------------
19012# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19013as_fn_exit ()
19014{
19015  set +e
19016  as_fn_set_status $1
19017  exit $1
19018} # as_fn_exit
19019
19020# as_fn_unset VAR
19021# ---------------
19022# Portably unset VAR.
19023as_fn_unset ()
19024{
19025  { eval $1=; unset $1;}
19026}
19027as_unset=as_fn_unset
19028# as_fn_append VAR VALUE
19029# ----------------------
19030# Append the text in VALUE to the end of the definition contained in VAR. Take
19031# advantage of any shell optimizations that allow amortized linear growth over
19032# repeated appends, instead of the typical quadratic growth present in naive
19033# implementations.
19034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19035  eval 'as_fn_append ()
19036  {
19037    eval $1+=\$2
19038  }'
19039else
19040  as_fn_append ()
19041  {
19042    eval $1=\$$1\$2
19043  }
19044fi # as_fn_append
19045
19046# as_fn_arith ARG...
19047# ------------------
19048# Perform arithmetic evaluation on the ARGs, and store the result in the
19049# global $as_val. Take advantage of shells that can avoid forks. The arguments
19050# must be portable across $(()) and expr.
19051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19052  eval 'as_fn_arith ()
19053  {
19054    as_val=$(( $* ))
19055  }'
19056else
19057  as_fn_arith ()
19058  {
19059    as_val=`expr "$@" || test $? -eq 1`
19060  }
19061fi # as_fn_arith
19062
19063
19064if expr a : '\(a\)' >/dev/null 2>&1 &&
19065   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19066  as_expr=expr
19067else
19068  as_expr=false
19069fi
19070
19071if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19072  as_basename=basename
19073else
19074  as_basename=false
19075fi
19076
19077if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19078  as_dirname=dirname
19079else
19080  as_dirname=false
19081fi
19082
19083as_me=`$as_basename -- "$0" ||
19084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19085	 X"$0" : 'X\(//\)$' \| \
19086	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19087$as_echo X/"$0" |
19088    sed '/^.*\/\([^/][^/]*\)\/*$/{
19089	    s//\1/
19090	    q
19091	  }
19092	  /^X\/\(\/\/\)$/{
19093	    s//\1/
19094	    q
19095	  }
19096	  /^X\/\(\/\).*/{
19097	    s//\1/
19098	    q
19099	  }
19100	  s/.*/./; q'`
19101
19102# Avoid depending upon Character Ranges.
19103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19106as_cr_digits='0123456789'
19107as_cr_alnum=$as_cr_Letters$as_cr_digits
19108
19109ECHO_C= ECHO_N= ECHO_T=
19110case `echo -n x` in #(((((
19111-n*)
19112  case `echo 'xy\c'` in
19113  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19114  xy)  ECHO_C='\c';;
19115  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19116       ECHO_T='	';;
19117  esac;;
19118*)
19119  ECHO_N='-n';;
19120esac
19121
19122rm -f conf$$ conf$$.exe conf$$.file
19123if test -d conf$$.dir; then
19124  rm -f conf$$.dir/conf$$.file
19125else
19126  rm -f conf$$.dir
19127  mkdir conf$$.dir 2>/dev/null
19128fi
19129if (echo >conf$$.file) 2>/dev/null; then
19130  if ln -s conf$$.file conf$$ 2>/dev/null; then
19131    as_ln_s='ln -s'
19132    # ... but there are two gotchas:
19133    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19134    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19135    # In both cases, we have to default to `cp -pR'.
19136    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19137      as_ln_s='cp -pR'
19138  elif ln conf$$.file conf$$ 2>/dev/null; then
19139    as_ln_s=ln
19140  else
19141    as_ln_s='cp -pR'
19142  fi
19143else
19144  as_ln_s='cp -pR'
19145fi
19146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19147rmdir conf$$.dir 2>/dev/null
19148
19149
19150# as_fn_mkdir_p
19151# -------------
19152# Create "$as_dir" as a directory, including parents if necessary.
19153as_fn_mkdir_p ()
19154{
19155
19156  case $as_dir in #(
19157  -*) as_dir=./$as_dir;;
19158  esac
19159  test -d "$as_dir" || eval $as_mkdir_p || {
19160    as_dirs=
19161    while :; do
19162      case $as_dir in #(
19163      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19164      *) as_qdir=$as_dir;;
19165      esac
19166      as_dirs="'$as_qdir' $as_dirs"
19167      as_dir=`$as_dirname -- "$as_dir" ||
19168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19169	 X"$as_dir" : 'X\(//\)[^/]' \| \
19170	 X"$as_dir" : 'X\(//\)$' \| \
19171	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19172$as_echo X"$as_dir" |
19173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19174	    s//\1/
19175	    q
19176	  }
19177	  /^X\(\/\/\)[^/].*/{
19178	    s//\1/
19179	    q
19180	  }
19181	  /^X\(\/\/\)$/{
19182	    s//\1/
19183	    q
19184	  }
19185	  /^X\(\/\).*/{
19186	    s//\1/
19187	    q
19188	  }
19189	  s/.*/./; q'`
19190      test -d "$as_dir" && break
19191    done
19192    test -z "$as_dirs" || eval "mkdir $as_dirs"
19193  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19194
19195
19196} # as_fn_mkdir_p
19197if mkdir -p . 2>/dev/null; then
19198  as_mkdir_p='mkdir -p "$as_dir"'
19199else
19200  test -d ./-p && rmdir ./-p
19201  as_mkdir_p=false
19202fi
19203
19204
19205# as_fn_executable_p FILE
19206# -----------------------
19207# Test if FILE is an executable regular file.
19208as_fn_executable_p ()
19209{
19210  test -f "$1" && test -x "$1"
19211} # as_fn_executable_p
19212as_test_x='test -x'
19213as_executable_p=as_fn_executable_p
19214
19215# Sed expression to map a string onto a valid CPP name.
19216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19217
19218# Sed expression to map a string onto a valid variable name.
19219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19220
19221
19222exec 6>&1
19223## ----------------------------------- ##
19224## Main body of $CONFIG_STATUS script. ##
19225## ----------------------------------- ##
19226_ASEOF
19227test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19228
19229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230# Save the log message, to keep $0 and so on meaningful, and to
19231# report actual input values of CONFIG_FILES etc. instead of their
19232# values after options handling.
19233ac_log="
19234This file was extended by libXcursor $as_me 1.1.15, which was
19235generated by GNU Autoconf 2.69.  Invocation command line was
19236
19237  CONFIG_FILES    = $CONFIG_FILES
19238  CONFIG_HEADERS  = $CONFIG_HEADERS
19239  CONFIG_LINKS    = $CONFIG_LINKS
19240  CONFIG_COMMANDS = $CONFIG_COMMANDS
19241  $ $0 $@
19242
19243on `(hostname || uname -n) 2>/dev/null | sed 1q`
19244"
19245
19246_ACEOF
19247
19248case $ac_config_files in *"
19249"*) set x $ac_config_files; shift; ac_config_files=$*;;
19250esac
19251
19252case $ac_config_headers in *"
19253"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19254esac
19255
19256
19257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19258# Files that config.status was made for.
19259config_files="$ac_config_files"
19260config_headers="$ac_config_headers"
19261config_commands="$ac_config_commands"
19262
19263_ACEOF
19264
19265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266ac_cs_usage="\
19267\`$as_me' instantiates files and other configuration actions
19268from templates according to the current configuration.  Unless the files
19269and actions are specified as TAGs, all are instantiated by default.
19270
19271Usage: $0 [OPTION]... [TAG]...
19272
19273  -h, --help       print this help, then exit
19274  -V, --version    print version number and configuration settings, then exit
19275      --config     print configuration, then exit
19276  -q, --quiet, --silent
19277                   do not print progress messages
19278  -d, --debug      don't remove temporary files
19279      --recheck    update $as_me by reconfiguring in the same conditions
19280      --file=FILE[:TEMPLATE]
19281                   instantiate the configuration file FILE
19282      --header=FILE[:TEMPLATE]
19283                   instantiate the configuration header FILE
19284
19285Configuration files:
19286$config_files
19287
19288Configuration headers:
19289$config_headers
19290
19291Configuration commands:
19292$config_commands
19293
19294Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19295
19296_ACEOF
19297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19298ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19299ac_cs_version="\\
19300libXcursor config.status 1.1.15
19301configured by $0, generated by GNU Autoconf 2.69,
19302  with options \\"\$ac_cs_config\\"
19303
19304Copyright (C) 2012 Free Software Foundation, Inc.
19305This config.status script is free software; the Free Software Foundation
19306gives unlimited permission to copy, distribute and modify it."
19307
19308ac_pwd='$ac_pwd'
19309srcdir='$srcdir'
19310INSTALL='$INSTALL'
19311MKDIR_P='$MKDIR_P'
19312AWK='$AWK'
19313test -n "\$AWK" || AWK=awk
19314_ACEOF
19315
19316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19317# The default lists apply if the user does not specify any file.
19318ac_need_defaults=:
19319while test $# != 0
19320do
19321  case $1 in
19322  --*=?*)
19323    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19324    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19325    ac_shift=:
19326    ;;
19327  --*=)
19328    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19329    ac_optarg=
19330    ac_shift=:
19331    ;;
19332  *)
19333    ac_option=$1
19334    ac_optarg=$2
19335    ac_shift=shift
19336    ;;
19337  esac
19338
19339  case $ac_option in
19340  # Handling of the options.
19341  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19342    ac_cs_recheck=: ;;
19343  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19344    $as_echo "$ac_cs_version"; exit ;;
19345  --config | --confi | --conf | --con | --co | --c )
19346    $as_echo "$ac_cs_config"; exit ;;
19347  --debug | --debu | --deb | --de | --d | -d )
19348    debug=: ;;
19349  --file | --fil | --fi | --f )
19350    $ac_shift
19351    case $ac_optarg in
19352    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19353    '') as_fn_error $? "missing file argument" ;;
19354    esac
19355    as_fn_append CONFIG_FILES " '$ac_optarg'"
19356    ac_need_defaults=false;;
19357  --header | --heade | --head | --hea )
19358    $ac_shift
19359    case $ac_optarg in
19360    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19361    esac
19362    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19363    ac_need_defaults=false;;
19364  --he | --h)
19365    # Conflict between --help and --header
19366    as_fn_error $? "ambiguous option: \`$1'
19367Try \`$0 --help' for more information.";;
19368  --help | --hel | -h )
19369    $as_echo "$ac_cs_usage"; exit ;;
19370  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19371  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19372    ac_cs_silent=: ;;
19373
19374  # This is an error.
19375  -*) as_fn_error $? "unrecognized option: \`$1'
19376Try \`$0 --help' for more information." ;;
19377
19378  *) as_fn_append ac_config_targets " $1"
19379     ac_need_defaults=false ;;
19380
19381  esac
19382  shift
19383done
19384
19385ac_configure_extra_args=
19386
19387if $ac_cs_silent; then
19388  exec 6>/dev/null
19389  ac_configure_extra_args="$ac_configure_extra_args --silent"
19390fi
19391
19392_ACEOF
19393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19394if \$ac_cs_recheck; then
19395  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19396  shift
19397  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19398  CONFIG_SHELL='$SHELL'
19399  export CONFIG_SHELL
19400  exec "\$@"
19401fi
19402
19403_ACEOF
19404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19405exec 5>>config.log
19406{
19407  echo
19408  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19409## Running $as_me. ##
19410_ASBOX
19411  $as_echo "$ac_log"
19412} >&5
19413
19414_ACEOF
19415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19416#
19417# INIT-COMMANDS
19418#
19419AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19420
19421
19422# The HP-UX ksh and POSIX shell print the target directory to stdout
19423# if CDPATH is set.
19424(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19425
19426sed_quote_subst='$sed_quote_subst'
19427double_quote_subst='$double_quote_subst'
19428delay_variable_subst='$delay_variable_subst'
19429macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19430macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19431enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19432enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19433pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19434enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19435shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19436SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19437ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19438PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19439host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19440host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19441host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19442build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19443build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19444build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19445SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19446Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19447GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19448EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19449FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19450LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19459lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19460lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19463OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19464deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19465file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19466file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19467want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19468DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19469sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19470AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19471AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19472archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19473STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19474RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19475old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19476old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19477old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19478lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19479CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19480CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19481compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19482GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19483lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19484lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19485lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19486lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19487lt_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"`'
19488lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19489nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19490lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19491lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19492objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19493MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19494lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19495lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19496lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19497lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19498lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19499need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19500MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19501DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19502NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19503LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19504OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19505OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19506libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19507shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19508extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19509archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19510enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19511export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19512whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19513compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19514old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19515old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19516archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19517archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19518module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19519module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19520with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19521allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19522no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19523hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19524hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19525hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19526hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19527hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19528hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19529hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19530inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19531link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19532always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19533export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19534exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19535include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19536prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19537postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19538file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19539variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19540need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19541need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19542version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19543runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19544shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19545shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19546libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19547library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19548soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19549install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19550postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19551postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19552finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19553finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19554hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19555sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19556configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19557configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19558hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19559enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19560enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19561enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19562old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19563striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19564
19565LTCC='$LTCC'
19566LTCFLAGS='$LTCFLAGS'
19567compiler='$compiler_DEFAULT'
19568
19569# A function that is used when there is no print builtin or printf.
19570func_fallback_echo ()
19571{
19572  eval 'cat <<_LTECHO_EOF
19573\$1
19574_LTECHO_EOF'
19575}
19576
19577# Quote evaled strings.
19578for var in SHELL \
19579ECHO \
19580PATH_SEPARATOR \
19581SED \
19582GREP \
19583EGREP \
19584FGREP \
19585LD \
19586NM \
19587LN_S \
19588lt_SP2NL \
19589lt_NL2SP \
19590reload_flag \
19591OBJDUMP \
19592deplibs_check_method \
19593file_magic_cmd \
19594file_magic_glob \
19595want_nocaseglob \
19596DLLTOOL \
19597sharedlib_from_linklib_cmd \
19598AR \
19599AR_FLAGS \
19600archiver_list_spec \
19601STRIP \
19602RANLIB \
19603CC \
19604CFLAGS \
19605compiler \
19606lt_cv_sys_global_symbol_pipe \
19607lt_cv_sys_global_symbol_to_cdecl \
19608lt_cv_sys_global_symbol_to_import \
19609lt_cv_sys_global_symbol_to_c_name_address \
19610lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19611lt_cv_nm_interface \
19612nm_file_list_spec \
19613lt_cv_truncate_bin \
19614lt_prog_compiler_no_builtin_flag \
19615lt_prog_compiler_pic \
19616lt_prog_compiler_wl \
19617lt_prog_compiler_static \
19618lt_cv_prog_compiler_c_o \
19619need_locks \
19620MANIFEST_TOOL \
19621DSYMUTIL \
19622NMEDIT \
19623LIPO \
19624OTOOL \
19625OTOOL64 \
19626shrext_cmds \
19627export_dynamic_flag_spec \
19628whole_archive_flag_spec \
19629compiler_needs_object \
19630with_gnu_ld \
19631allow_undefined_flag \
19632no_undefined_flag \
19633hardcode_libdir_flag_spec \
19634hardcode_libdir_separator \
19635exclude_expsyms \
19636include_expsyms \
19637file_list_spec \
19638variables_saved_for_relink \
19639libname_spec \
19640library_names_spec \
19641soname_spec \
19642install_override_mode \
19643finish_eval \
19644old_striplib \
19645striplib; do
19646    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19647    *[\\\\\\\`\\"\\\$]*)
19648      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19649      ;;
19650    *)
19651      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19652      ;;
19653    esac
19654done
19655
19656# Double-quote double-evaled strings.
19657for var in reload_cmds \
19658old_postinstall_cmds \
19659old_postuninstall_cmds \
19660old_archive_cmds \
19661extract_expsyms_cmds \
19662old_archive_from_new_cmds \
19663old_archive_from_expsyms_cmds \
19664archive_cmds \
19665archive_expsym_cmds \
19666module_cmds \
19667module_expsym_cmds \
19668export_symbols_cmds \
19669prelink_cmds \
19670postlink_cmds \
19671postinstall_cmds \
19672postuninstall_cmds \
19673finish_cmds \
19674sys_lib_search_path_spec \
19675configure_time_dlsearch_path \
19676configure_time_lt_sys_library_path; do
19677    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19678    *[\\\\\\\`\\"\\\$]*)
19679      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19680      ;;
19681    *)
19682      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19683      ;;
19684    esac
19685done
19686
19687ac_aux_dir='$ac_aux_dir'
19688
19689# See if we are running on zsh, and set the options that allow our
19690# commands through without removal of \ escapes INIT.
19691if test -n "\${ZSH_VERSION+set}"; then
19692   setopt NO_GLOB_SUBST
19693fi
19694
19695
19696    PACKAGE='$PACKAGE'
19697    VERSION='$VERSION'
19698    RM='$RM'
19699    ofile='$ofile'
19700
19701
19702
19703
19704_ACEOF
19705
19706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707
19708# Handling of arguments.
19709for ac_config_target in $ac_config_targets
19710do
19711  case $ac_config_target in
19712    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19713    "include/X11/Xcursor/Xcursor.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xcursor/Xcursor.h" ;;
19714    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19715    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19716    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19717    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19718    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19719    "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;;
19720
19721  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19722  esac
19723done
19724
19725
19726# If the user did not use the arguments to specify the items to instantiate,
19727# then the envvar interface is used.  Set only those that are not.
19728# We use the long form for the default assignment because of an extremely
19729# bizarre bug on SunOS 4.1.3.
19730if $ac_need_defaults; then
19731  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19732  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19733  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19734fi
19735
19736# Have a temporary directory for convenience.  Make it in the build tree
19737# simply because there is no reason against having it here, and in addition,
19738# creating and moving files from /tmp can sometimes cause problems.
19739# Hook for its removal unless debugging.
19740# Note that there is a small window in which the directory will not be cleaned:
19741# after its creation but before its name has been assigned to `$tmp'.
19742$debug ||
19743{
19744  tmp= ac_tmp=
19745  trap 'exit_status=$?
19746  : "${ac_tmp:=$tmp}"
19747  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19748' 0
19749  trap 'as_fn_exit 1' 1 2 13 15
19750}
19751# Create a (secure) tmp directory for tmp files.
19752
19753{
19754  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19755  test -d "$tmp"
19756}  ||
19757{
19758  tmp=./conf$$-$RANDOM
19759  (umask 077 && mkdir "$tmp")
19760} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19761ac_tmp=$tmp
19762
19763# Set up the scripts for CONFIG_FILES section.
19764# No need to generate them if there are no CONFIG_FILES.
19765# This happens for instance with `./config.status config.h'.
19766if test -n "$CONFIG_FILES"; then
19767
19768
19769ac_cr=`echo X | tr X '\015'`
19770# On cygwin, bash can eat \r inside `` if the user requested igncr.
19771# But we know of no other shell where ac_cr would be empty at this
19772# point, so we can use a bashism as a fallback.
19773if test "x$ac_cr" = x; then
19774  eval ac_cr=\$\'\\r\'
19775fi
19776ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19777if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19778  ac_cs_awk_cr='\\r'
19779else
19780  ac_cs_awk_cr=$ac_cr
19781fi
19782
19783echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19784_ACEOF
19785
19786
19787{
19788  echo "cat >conf$$subs.awk <<_ACEOF" &&
19789  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19790  echo "_ACEOF"
19791} >conf$$subs.sh ||
19792  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19793ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19794ac_delim='%!_!# '
19795for ac_last_try in false false false false false :; do
19796  . ./conf$$subs.sh ||
19797    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19798
19799  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19800  if test $ac_delim_n = $ac_delim_num; then
19801    break
19802  elif $ac_last_try; then
19803    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19804  else
19805    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19806  fi
19807done
19808rm -f conf$$subs.sh
19809
19810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19811cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19812_ACEOF
19813sed -n '
19814h
19815s/^/S["/; s/!.*/"]=/
19816p
19817g
19818s/^[^!]*!//
19819:repl
19820t repl
19821s/'"$ac_delim"'$//
19822t delim
19823:nl
19824h
19825s/\(.\{148\}\)..*/\1/
19826t more1
19827s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19828p
19829n
19830b repl
19831:more1
19832s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19833p
19834g
19835s/.\{148\}//
19836t nl
19837:delim
19838h
19839s/\(.\{148\}\)..*/\1/
19840t more2
19841s/["\\]/\\&/g; s/^/"/; s/$/"/
19842p
19843b
19844:more2
19845s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19846p
19847g
19848s/.\{148\}//
19849t delim
19850' <conf$$subs.awk | sed '
19851/^[^""]/{
19852  N
19853  s/\n//
19854}
19855' >>$CONFIG_STATUS || ac_write_fail=1
19856rm -f conf$$subs.awk
19857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19858_ACAWK
19859cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19860  for (key in S) S_is_set[key] = 1
19861  FS = ""
19862
19863}
19864{
19865  line = $ 0
19866  nfields = split(line, field, "@")
19867  substed = 0
19868  len = length(field[1])
19869  for (i = 2; i < nfields; i++) {
19870    key = field[i]
19871    keylen = length(key)
19872    if (S_is_set[key]) {
19873      value = S[key]
19874      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19875      len += length(value) + length(field[++i])
19876      substed = 1
19877    } else
19878      len += 1 + keylen
19879  }
19880
19881  print line
19882}
19883
19884_ACAWK
19885_ACEOF
19886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19887if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19888  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19889else
19890  cat
19891fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19892  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19893_ACEOF
19894
19895# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19896# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19897# trailing colons and then remove the whole line if VPATH becomes empty
19898# (actually we leave an empty line to preserve line numbers).
19899if test "x$srcdir" = x.; then
19900  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19901h
19902s///
19903s/^/:/
19904s/[	 ]*$/:/
19905s/:\$(srcdir):/:/g
19906s/:\${srcdir}:/:/g
19907s/:@srcdir@:/:/g
19908s/^:*//
19909s/:*$//
19910x
19911s/\(=[	 ]*\).*/\1/
19912G
19913s/\n//
19914s/^[^=]*=[	 ]*$//
19915}'
19916fi
19917
19918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19919fi # test -n "$CONFIG_FILES"
19920
19921# Set up the scripts for CONFIG_HEADERS section.
19922# No need to generate them if there are no CONFIG_HEADERS.
19923# This happens for instance with `./config.status Makefile'.
19924if test -n "$CONFIG_HEADERS"; then
19925cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19926BEGIN {
19927_ACEOF
19928
19929# Transform confdefs.h into an awk script `defines.awk', embedded as
19930# here-document in config.status, that substitutes the proper values into
19931# config.h.in to produce config.h.
19932
19933# Create a delimiter string that does not exist in confdefs.h, to ease
19934# handling of long lines.
19935ac_delim='%!_!# '
19936for ac_last_try in false false :; do
19937  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19938  if test -z "$ac_tt"; then
19939    break
19940  elif $ac_last_try; then
19941    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19942  else
19943    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19944  fi
19945done
19946
19947# For the awk script, D is an array of macro values keyed by name,
19948# likewise P contains macro parameters if any.  Preserve backslash
19949# newline sequences.
19950
19951ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19952sed -n '
19953s/.\{148\}/&'"$ac_delim"'/g
19954t rset
19955:rset
19956s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19957t def
19958d
19959:def
19960s/\\$//
19961t bsnl
19962s/["\\]/\\&/g
19963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19964D["\1"]=" \3"/p
19965s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19966d
19967:bsnl
19968s/["\\]/\\&/g
19969s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19970D["\1"]=" \3\\\\\\n"\\/p
19971t cont
19972s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19973t cont
19974d
19975:cont
19976n
19977s/.\{148\}/&'"$ac_delim"'/g
19978t clear
19979:clear
19980s/\\$//
19981t bsnlc
19982s/["\\]/\\&/g; s/^/"/; s/$/"/p
19983d
19984:bsnlc
19985s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19986b cont
19987' <confdefs.h | sed '
19988s/'"$ac_delim"'/"\\\
19989"/g' >>$CONFIG_STATUS || ac_write_fail=1
19990
19991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19992  for (key in D) D_is_set[key] = 1
19993  FS = ""
19994}
19995/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19996  line = \$ 0
19997  split(line, arg, " ")
19998  if (arg[1] == "#") {
19999    defundef = arg[2]
20000    mac1 = arg[3]
20001  } else {
20002    defundef = substr(arg[1], 2)
20003    mac1 = arg[2]
20004  }
20005  split(mac1, mac2, "(") #)
20006  macro = mac2[1]
20007  prefix = substr(line, 1, index(line, defundef) - 1)
20008  if (D_is_set[macro]) {
20009    # Preserve the white space surrounding the "#".
20010    print prefix "define", macro P[macro] D[macro]
20011    next
20012  } else {
20013    # Replace #undef with comments.  This is necessary, for example,
20014    # in the case of _POSIX_SOURCE, which is predefined and required
20015    # on some systems where configure will not decide to define it.
20016    if (defundef == "undef") {
20017      print "/*", prefix defundef, macro, "*/"
20018      next
20019    }
20020  }
20021}
20022{ print }
20023_ACAWK
20024_ACEOF
20025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20026  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20027fi # test -n "$CONFIG_HEADERS"
20028
20029
20030eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20031shift
20032for ac_tag
20033do
20034  case $ac_tag in
20035  :[FHLC]) ac_mode=$ac_tag; continue;;
20036  esac
20037  case $ac_mode$ac_tag in
20038  :[FHL]*:*);;
20039  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20040  :[FH]-) ac_tag=-:-;;
20041  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20042  esac
20043  ac_save_IFS=$IFS
20044  IFS=:
20045  set x $ac_tag
20046  IFS=$ac_save_IFS
20047  shift
20048  ac_file=$1
20049  shift
20050
20051  case $ac_mode in
20052  :L) ac_source=$1;;
20053  :[FH])
20054    ac_file_inputs=
20055    for ac_f
20056    do
20057      case $ac_f in
20058      -) ac_f="$ac_tmp/stdin";;
20059      *) # Look for the file first in the build tree, then in the source tree
20060	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20061	 # because $ac_f cannot contain `:'.
20062	 test -f "$ac_f" ||
20063	   case $ac_f in
20064	   [\\/$]*) false;;
20065	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20066	   esac ||
20067	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20068      esac
20069      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20070      as_fn_append ac_file_inputs " '$ac_f'"
20071    done
20072
20073    # Let's still pretend it is `configure' which instantiates (i.e., don't
20074    # use $as_me), people would be surprised to read:
20075    #    /* config.h.  Generated by config.status.  */
20076    configure_input='Generated from '`
20077	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20078	`' by configure.'
20079    if test x"$ac_file" != x-; then
20080      configure_input="$ac_file.  $configure_input"
20081      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20082$as_echo "$as_me: creating $ac_file" >&6;}
20083    fi
20084    # Neutralize special characters interpreted by sed in replacement strings.
20085    case $configure_input in #(
20086    *\&* | *\|* | *\\* )
20087       ac_sed_conf_input=`$as_echo "$configure_input" |
20088       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20089    *) ac_sed_conf_input=$configure_input;;
20090    esac
20091
20092    case $ac_tag in
20093    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20094      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20095    esac
20096    ;;
20097  esac
20098
20099  ac_dir=`$as_dirname -- "$ac_file" ||
20100$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20101	 X"$ac_file" : 'X\(//\)[^/]' \| \
20102	 X"$ac_file" : 'X\(//\)$' \| \
20103	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20104$as_echo X"$ac_file" |
20105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20106	    s//\1/
20107	    q
20108	  }
20109	  /^X\(\/\/\)[^/].*/{
20110	    s//\1/
20111	    q
20112	  }
20113	  /^X\(\/\/\)$/{
20114	    s//\1/
20115	    q
20116	  }
20117	  /^X\(\/\).*/{
20118	    s//\1/
20119	    q
20120	  }
20121	  s/.*/./; q'`
20122  as_dir="$ac_dir"; as_fn_mkdir_p
20123  ac_builddir=.
20124
20125case "$ac_dir" in
20126.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20127*)
20128  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20129  # A ".." for each directory in $ac_dir_suffix.
20130  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20131  case $ac_top_builddir_sub in
20132  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20133  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20134  esac ;;
20135esac
20136ac_abs_top_builddir=$ac_pwd
20137ac_abs_builddir=$ac_pwd$ac_dir_suffix
20138# for backward compatibility:
20139ac_top_builddir=$ac_top_build_prefix
20140
20141case $srcdir in
20142  .)  # We are building in place.
20143    ac_srcdir=.
20144    ac_top_srcdir=$ac_top_builddir_sub
20145    ac_abs_top_srcdir=$ac_pwd ;;
20146  [\\/]* | ?:[\\/]* )  # Absolute name.
20147    ac_srcdir=$srcdir$ac_dir_suffix;
20148    ac_top_srcdir=$srcdir
20149    ac_abs_top_srcdir=$srcdir ;;
20150  *) # Relative name.
20151    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20152    ac_top_srcdir=$ac_top_build_prefix$srcdir
20153    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20154esac
20155ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20156
20157
20158  case $ac_mode in
20159  :F)
20160  #
20161  # CONFIG_FILE
20162  #
20163
20164  case $INSTALL in
20165  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20166  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20167  esac
20168  ac_MKDIR_P=$MKDIR_P
20169  case $MKDIR_P in
20170  [\\/$]* | ?:[\\/]* ) ;;
20171  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20172  esac
20173_ACEOF
20174
20175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20176# If the template does not know about datarootdir, expand it.
20177# FIXME: This hack should be removed a few years after 2.60.
20178ac_datarootdir_hack=; ac_datarootdir_seen=
20179ac_sed_dataroot='
20180/datarootdir/ {
20181  p
20182  q
20183}
20184/@datadir@/p
20185/@docdir@/p
20186/@infodir@/p
20187/@localedir@/p
20188/@mandir@/p'
20189case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20190*datarootdir*) ac_datarootdir_seen=yes;;
20191*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20193$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20194_ACEOF
20195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20196  ac_datarootdir_hack='
20197  s&@datadir@&$datadir&g
20198  s&@docdir@&$docdir&g
20199  s&@infodir@&$infodir&g
20200  s&@localedir@&$localedir&g
20201  s&@mandir@&$mandir&g
20202  s&\\\${datarootdir}&$datarootdir&g' ;;
20203esac
20204_ACEOF
20205
20206# Neutralize VPATH when `$srcdir' = `.'.
20207# Shell code in configure.ac might set extrasub.
20208# FIXME: do we really want to maintain this feature?
20209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20210ac_sed_extra="$ac_vpsub
20211$extrasub
20212_ACEOF
20213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20214:t
20215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20216s|@configure_input@|$ac_sed_conf_input|;t t
20217s&@top_builddir@&$ac_top_builddir_sub&;t t
20218s&@top_build_prefix@&$ac_top_build_prefix&;t t
20219s&@srcdir@&$ac_srcdir&;t t
20220s&@abs_srcdir@&$ac_abs_srcdir&;t t
20221s&@top_srcdir@&$ac_top_srcdir&;t t
20222s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20223s&@builddir@&$ac_builddir&;t t
20224s&@abs_builddir@&$ac_abs_builddir&;t t
20225s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20226s&@INSTALL@&$ac_INSTALL&;t t
20227s&@MKDIR_P@&$ac_MKDIR_P&;t t
20228$ac_datarootdir_hack
20229"
20230eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20231  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20232
20233test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20234  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20235  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20236      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20237  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20238which seems to be undefined.  Please make sure it is defined" >&5
20239$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20240which seems to be undefined.  Please make sure it is defined" >&2;}
20241
20242  rm -f "$ac_tmp/stdin"
20243  case $ac_file in
20244  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20245  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20246  esac \
20247  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20248 ;;
20249  :H)
20250  #
20251  # CONFIG_HEADER
20252  #
20253  if test x"$ac_file" != x-; then
20254    {
20255      $as_echo "/* $configure_input  */" \
20256      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20257    } >"$ac_tmp/config.h" \
20258      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20259    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20260      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20261$as_echo "$as_me: $ac_file is unchanged" >&6;}
20262    else
20263      rm -f "$ac_file"
20264      mv "$ac_tmp/config.h" "$ac_file" \
20265	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20266    fi
20267  else
20268    $as_echo "/* $configure_input  */" \
20269      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20270      || as_fn_error $? "could not create -" "$LINENO" 5
20271  fi
20272# Compute "$ac_file"'s index in $config_headers.
20273_am_arg="$ac_file"
20274_am_stamp_count=1
20275for _am_header in $config_headers :; do
20276  case $_am_header in
20277    $_am_arg | $_am_arg:* )
20278      break ;;
20279    * )
20280      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20281  esac
20282done
20283echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20284$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20286	 X"$_am_arg" : 'X\(//\)$' \| \
20287	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20288$as_echo X"$_am_arg" |
20289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20290	    s//\1/
20291	    q
20292	  }
20293	  /^X\(\/\/\)[^/].*/{
20294	    s//\1/
20295	    q
20296	  }
20297	  /^X\(\/\/\)$/{
20298	    s//\1/
20299	    q
20300	  }
20301	  /^X\(\/\).*/{
20302	    s//\1/
20303	    q
20304	  }
20305	  s/.*/./; q'`/stamp-h$_am_stamp_count
20306 ;;
20307
20308  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20309$as_echo "$as_me: executing $ac_file commands" >&6;}
20310 ;;
20311  esac
20312
20313
20314  case $ac_file$ac_mode in
20315    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20316  # Older Autoconf quotes --file arguments for eval, but not when files
20317  # are listed without --file.  Let's play safe and only enable the eval
20318  # if we detect the quoting.
20319  case $CONFIG_FILES in
20320  *\'*) eval set x "$CONFIG_FILES" ;;
20321  *)   set x $CONFIG_FILES ;;
20322  esac
20323  shift
20324  for mf
20325  do
20326    # Strip MF so we end up with the name of the file.
20327    mf=`echo "$mf" | sed -e 's/:.*$//'`
20328    # Check whether this is an Automake generated Makefile or not.
20329    # We used to match only the files named 'Makefile.in', but
20330    # some people rename them; so instead we look at the file content.
20331    # Grep'ing the first line is not enough: some people post-process
20332    # each Makefile.in and add a new line on top of each file to say so.
20333    # Grep'ing the whole file is not good either: AIX grep has a line
20334    # limit of 2048, but all sed's we know have understand at least 4000.
20335    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20336      dirpart=`$as_dirname -- "$mf" ||
20337$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338	 X"$mf" : 'X\(//\)[^/]' \| \
20339	 X"$mf" : 'X\(//\)$' \| \
20340	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20341$as_echo X"$mf" |
20342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20343	    s//\1/
20344	    q
20345	  }
20346	  /^X\(\/\/\)[^/].*/{
20347	    s//\1/
20348	    q
20349	  }
20350	  /^X\(\/\/\)$/{
20351	    s//\1/
20352	    q
20353	  }
20354	  /^X\(\/\).*/{
20355	    s//\1/
20356	    q
20357	  }
20358	  s/.*/./; q'`
20359    else
20360      continue
20361    fi
20362    # Extract the definition of DEPDIR, am__include, and am__quote
20363    # from the Makefile without running 'make'.
20364    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20365    test -z "$DEPDIR" && continue
20366    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20367    test -z "$am__include" && continue
20368    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20369    # Find all dependency output files, they are included files with
20370    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20371    # simplest approach to changing $(DEPDIR) to its actual value in the
20372    # expansion.
20373    for file in `sed -n "
20374      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20375	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20376      # Make sure the directory exists.
20377      test -f "$dirpart/$file" && continue
20378      fdir=`$as_dirname -- "$file" ||
20379$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20380	 X"$file" : 'X\(//\)[^/]' \| \
20381	 X"$file" : 'X\(//\)$' \| \
20382	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20383$as_echo X"$file" |
20384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20385	    s//\1/
20386	    q
20387	  }
20388	  /^X\(\/\/\)[^/].*/{
20389	    s//\1/
20390	    q
20391	  }
20392	  /^X\(\/\/\)$/{
20393	    s//\1/
20394	    q
20395	  }
20396	  /^X\(\/\).*/{
20397	    s//\1/
20398	    q
20399	  }
20400	  s/.*/./; q'`
20401      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20402      # echo "creating $dirpart/$file"
20403      echo '# dummy' > "$dirpart/$file"
20404    done
20405  done
20406}
20407 ;;
20408    "libtool":C)
20409
20410    # See if we are running on zsh, and set the options that allow our
20411    # commands through without removal of \ escapes.
20412    if test -n "${ZSH_VERSION+set}"; then
20413      setopt NO_GLOB_SUBST
20414    fi
20415
20416    cfgfile=${ofile}T
20417    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20418    $RM "$cfgfile"
20419
20420    cat <<_LT_EOF >> "$cfgfile"
20421#! $SHELL
20422# Generated automatically by $as_me ($PACKAGE) $VERSION
20423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20424# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20425
20426# Provide generalized library-building support services.
20427# Written by Gordon Matzigkeit, 1996
20428
20429# Copyright (C) 2014 Free Software Foundation, Inc.
20430# This is free software; see the source for copying conditions.  There is NO
20431# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20432
20433# GNU Libtool is free software; you can redistribute it and/or modify
20434# it under the terms of the GNU General Public License as published by
20435# the Free Software Foundation; either version 2 of of the License, or
20436# (at your option) any later version.
20437#
20438# As a special exception to the GNU General Public License, if you
20439# distribute this file as part of a program or library that is built
20440# using GNU Libtool, you may include this file under the  same
20441# distribution terms that you use for the rest of that program.
20442#
20443# GNU Libtool is distributed in the hope that it will be useful, but
20444# WITHOUT ANY WARRANTY; without even the implied warranty of
20445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20446# GNU General Public License for more details.
20447#
20448# You should have received a copy of the GNU General Public License
20449# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20450
20451
20452# The names of the tagged configurations supported by this script.
20453available_tags=''
20454
20455# Configured defaults for sys_lib_dlsearch_path munging.
20456: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20457
20458# ### BEGIN LIBTOOL CONFIG
20459
20460# Which release of libtool.m4 was used?
20461macro_version=$macro_version
20462macro_revision=$macro_revision
20463
20464# Whether or not to build shared libraries.
20465build_libtool_libs=$enable_shared
20466
20467# Whether or not to build static libraries.
20468build_old_libs=$enable_static
20469
20470# What type of objects to build.
20471pic_mode=$pic_mode
20472
20473# Whether or not to optimize for fast installation.
20474fast_install=$enable_fast_install
20475
20476# Shared archive member basename,for filename based shared library versioning on AIX.
20477shared_archive_member_spec=$shared_archive_member_spec
20478
20479# Shell to use when invoking shell scripts.
20480SHELL=$lt_SHELL
20481
20482# An echo program that protects backslashes.
20483ECHO=$lt_ECHO
20484
20485# The PATH separator for the build system.
20486PATH_SEPARATOR=$lt_PATH_SEPARATOR
20487
20488# The host system.
20489host_alias=$host_alias
20490host=$host
20491host_os=$host_os
20492
20493# The build system.
20494build_alias=$build_alias
20495build=$build
20496build_os=$build_os
20497
20498# A sed program that does not truncate output.
20499SED=$lt_SED
20500
20501# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20502Xsed="\$SED -e 1s/^X//"
20503
20504# A grep program that handles long lines.
20505GREP=$lt_GREP
20506
20507# An ERE matcher.
20508EGREP=$lt_EGREP
20509
20510# A literal string matcher.
20511FGREP=$lt_FGREP
20512
20513# A BSD- or MS-compatible name lister.
20514NM=$lt_NM
20515
20516# Whether we need soft or hard links.
20517LN_S=$lt_LN_S
20518
20519# What is the maximum length of a command?
20520max_cmd_len=$max_cmd_len
20521
20522# Object file suffix (normally "o").
20523objext=$ac_objext
20524
20525# Executable file suffix (normally "").
20526exeext=$exeext
20527
20528# whether the shell understands "unset".
20529lt_unset=$lt_unset
20530
20531# turn spaces into newlines.
20532SP2NL=$lt_lt_SP2NL
20533
20534# turn newlines into spaces.
20535NL2SP=$lt_lt_NL2SP
20536
20537# convert \$build file names to \$host format.
20538to_host_file_cmd=$lt_cv_to_host_file_cmd
20539
20540# convert \$build files to toolchain format.
20541to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20542
20543# An object symbol dumper.
20544OBJDUMP=$lt_OBJDUMP
20545
20546# Method to check whether dependent libraries are shared objects.
20547deplibs_check_method=$lt_deplibs_check_method
20548
20549# Command to use when deplibs_check_method = "file_magic".
20550file_magic_cmd=$lt_file_magic_cmd
20551
20552# How to find potential files when deplibs_check_method = "file_magic".
20553file_magic_glob=$lt_file_magic_glob
20554
20555# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20556want_nocaseglob=$lt_want_nocaseglob
20557
20558# DLL creation program.
20559DLLTOOL=$lt_DLLTOOL
20560
20561# Command to associate shared and link libraries.
20562sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20563
20564# The archiver.
20565AR=$lt_AR
20566
20567# Flags to create an archive.
20568AR_FLAGS=$lt_AR_FLAGS
20569
20570# How to feed a file listing to the archiver.
20571archiver_list_spec=$lt_archiver_list_spec
20572
20573# A symbol stripping program.
20574STRIP=$lt_STRIP
20575
20576# Commands used to install an old-style archive.
20577RANLIB=$lt_RANLIB
20578old_postinstall_cmds=$lt_old_postinstall_cmds
20579old_postuninstall_cmds=$lt_old_postuninstall_cmds
20580
20581# Whether to use a lock for old archive extraction.
20582lock_old_archive_extraction=$lock_old_archive_extraction
20583
20584# A C compiler.
20585LTCC=$lt_CC
20586
20587# LTCC compiler flags.
20588LTCFLAGS=$lt_CFLAGS
20589
20590# Take the output of nm and produce a listing of raw symbols and C names.
20591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20592
20593# Transform the output of nm in a proper C declaration.
20594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20595
20596# Transform the output of nm into a list of symbols to manually relocate.
20597global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20598
20599# Transform the output of nm in a C name address pair.
20600global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20601
20602# Transform the output of nm in a C name address pair when lib prefix is needed.
20603global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20604
20605# The name lister interface.
20606nm_interface=$lt_lt_cv_nm_interface
20607
20608# Specify filename containing input files for \$NM.
20609nm_file_list_spec=$lt_nm_file_list_spec
20610
20611# The root where to search for dependent libraries,and where our libraries should be installed.
20612lt_sysroot=$lt_sysroot
20613
20614# Command to truncate a binary pipe.
20615lt_truncate_bin=$lt_lt_cv_truncate_bin
20616
20617# The name of the directory that contains temporary libtool files.
20618objdir=$objdir
20619
20620# Used to examine libraries when file_magic_cmd begins with "file".
20621MAGIC_CMD=$MAGIC_CMD
20622
20623# Must we lock files when doing compilation?
20624need_locks=$lt_need_locks
20625
20626# Manifest tool.
20627MANIFEST_TOOL=$lt_MANIFEST_TOOL
20628
20629# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20630DSYMUTIL=$lt_DSYMUTIL
20631
20632# Tool to change global to local symbols on Mac OS X.
20633NMEDIT=$lt_NMEDIT
20634
20635# Tool to manipulate fat objects and archives on Mac OS X.
20636LIPO=$lt_LIPO
20637
20638# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20639OTOOL=$lt_OTOOL
20640
20641# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20642OTOOL64=$lt_OTOOL64
20643
20644# Old archive suffix (normally "a").
20645libext=$libext
20646
20647# Shared library suffix (normally ".so").
20648shrext_cmds=$lt_shrext_cmds
20649
20650# The commands to extract the exported symbol list from a shared archive.
20651extract_expsyms_cmds=$lt_extract_expsyms_cmds
20652
20653# Variables whose values should be saved in libtool wrapper scripts and
20654# restored at link time.
20655variables_saved_for_relink=$lt_variables_saved_for_relink
20656
20657# Do we need the "lib" prefix for modules?
20658need_lib_prefix=$need_lib_prefix
20659
20660# Do we need a version for libraries?
20661need_version=$need_version
20662
20663# Library versioning type.
20664version_type=$version_type
20665
20666# Shared library runtime path variable.
20667runpath_var=$runpath_var
20668
20669# Shared library path variable.
20670shlibpath_var=$shlibpath_var
20671
20672# Is shlibpath searched before the hard-coded library search path?
20673shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20674
20675# Format of library name prefix.
20676libname_spec=$lt_libname_spec
20677
20678# List of archive names.  First name is the real one, the rest are links.
20679# The last name is the one that the linker finds with -lNAME
20680library_names_spec=$lt_library_names_spec
20681
20682# The coded name of the library, if different from the real name.
20683soname_spec=$lt_soname_spec
20684
20685# Permission mode override for installation of shared libraries.
20686install_override_mode=$lt_install_override_mode
20687
20688# Command to use after installation of a shared archive.
20689postinstall_cmds=$lt_postinstall_cmds
20690
20691# Command to use after uninstallation of a shared archive.
20692postuninstall_cmds=$lt_postuninstall_cmds
20693
20694# Commands used to finish a libtool library installation in a directory.
20695finish_cmds=$lt_finish_cmds
20696
20697# As "finish_cmds", except a single script fragment to be evaled but
20698# not shown.
20699finish_eval=$lt_finish_eval
20700
20701# Whether we should hardcode library paths into libraries.
20702hardcode_into_libs=$hardcode_into_libs
20703
20704# Compile-time system search path for libraries.
20705sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20706
20707# Detected run-time system search path for libraries.
20708sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20709
20710# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20711configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20712
20713# Whether dlopen is supported.
20714dlopen_support=$enable_dlopen
20715
20716# Whether dlopen of programs is supported.
20717dlopen_self=$enable_dlopen_self
20718
20719# Whether dlopen of statically linked programs is supported.
20720dlopen_self_static=$enable_dlopen_self_static
20721
20722# Commands to strip libraries.
20723old_striplib=$lt_old_striplib
20724striplib=$lt_striplib
20725
20726
20727# The linker used to build libraries.
20728LD=$lt_LD
20729
20730# How to create reloadable object files.
20731reload_flag=$lt_reload_flag
20732reload_cmds=$lt_reload_cmds
20733
20734# Commands used to build an old-style archive.
20735old_archive_cmds=$lt_old_archive_cmds
20736
20737# A language specific compiler.
20738CC=$lt_compiler
20739
20740# Is the compiler the GNU compiler?
20741with_gcc=$GCC
20742
20743# Compiler flag to turn off builtin functions.
20744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20745
20746# Additional compiler flags for building library objects.
20747pic_flag=$lt_lt_prog_compiler_pic
20748
20749# How to pass a linker flag through the compiler.
20750wl=$lt_lt_prog_compiler_wl
20751
20752# Compiler flag to prevent dynamic linking.
20753link_static_flag=$lt_lt_prog_compiler_static
20754
20755# Does compiler simultaneously support -c and -o options?
20756compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20757
20758# Whether or not to add -lc for building shared libraries.
20759build_libtool_need_lc=$archive_cmds_need_lc
20760
20761# Whether or not to disallow shared libs when runtime libs are static.
20762allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20763
20764# Compiler flag to allow reflexive dlopens.
20765export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20766
20767# Compiler flag to generate shared objects directly from archives.
20768whole_archive_flag_spec=$lt_whole_archive_flag_spec
20769
20770# Whether the compiler copes with passing no objects directly.
20771compiler_needs_object=$lt_compiler_needs_object
20772
20773# Create an old-style archive from a shared archive.
20774old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20775
20776# Create a temporary old-style archive to link instead of a shared archive.
20777old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20778
20779# Commands used to build a shared archive.
20780archive_cmds=$lt_archive_cmds
20781archive_expsym_cmds=$lt_archive_expsym_cmds
20782
20783# Commands used to build a loadable module if different from building
20784# a shared archive.
20785module_cmds=$lt_module_cmds
20786module_expsym_cmds=$lt_module_expsym_cmds
20787
20788# Whether we are building with GNU ld or not.
20789with_gnu_ld=$lt_with_gnu_ld
20790
20791# Flag that allows shared libraries with undefined symbols to be built.
20792allow_undefined_flag=$lt_allow_undefined_flag
20793
20794# Flag that enforces no undefined symbols.
20795no_undefined_flag=$lt_no_undefined_flag
20796
20797# Flag to hardcode \$libdir into a binary during linking.
20798# This must work even if \$libdir does not exist
20799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20800
20801# Whether we need a single "-rpath" flag with a separated argument.
20802hardcode_libdir_separator=$lt_hardcode_libdir_separator
20803
20804# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20805# DIR into the resulting binary.
20806hardcode_direct=$hardcode_direct
20807
20808# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20809# DIR into the resulting binary and the resulting library dependency is
20810# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20811# library is relocated.
20812hardcode_direct_absolute=$hardcode_direct_absolute
20813
20814# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20815# into the resulting binary.
20816hardcode_minus_L=$hardcode_minus_L
20817
20818# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20819# into the resulting binary.
20820hardcode_shlibpath_var=$hardcode_shlibpath_var
20821
20822# Set to "yes" if building a shared library automatically hardcodes DIR
20823# into the library and all subsequent libraries and executables linked
20824# against it.
20825hardcode_automatic=$hardcode_automatic
20826
20827# Set to yes if linker adds runtime paths of dependent libraries
20828# to runtime path list.
20829inherit_rpath=$inherit_rpath
20830
20831# Whether libtool must link a program against all its dependency libraries.
20832link_all_deplibs=$link_all_deplibs
20833
20834# Set to "yes" if exported symbols are required.
20835always_export_symbols=$always_export_symbols
20836
20837# The commands to list exported symbols.
20838export_symbols_cmds=$lt_export_symbols_cmds
20839
20840# Symbols that should not be listed in the preloaded symbols.
20841exclude_expsyms=$lt_exclude_expsyms
20842
20843# Symbols that must always be exported.
20844include_expsyms=$lt_include_expsyms
20845
20846# Commands necessary for linking programs (against libraries) with templates.
20847prelink_cmds=$lt_prelink_cmds
20848
20849# Commands necessary for finishing linking programs.
20850postlink_cmds=$lt_postlink_cmds
20851
20852# Specify filename containing input files.
20853file_list_spec=$lt_file_list_spec
20854
20855# How to hardcode a shared library path into an executable.
20856hardcode_action=$hardcode_action
20857
20858# ### END LIBTOOL CONFIG
20859
20860_LT_EOF
20861
20862    cat <<'_LT_EOF' >> "$cfgfile"
20863
20864# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20865
20866# func_munge_path_list VARIABLE PATH
20867# -----------------------------------
20868# VARIABLE is name of variable containing _space_ separated list of
20869# directories to be munged by the contents of PATH, which is string
20870# having a format:
20871# "DIR[:DIR]:"
20872#       string "DIR[ DIR]" will be prepended to VARIABLE
20873# ":DIR[:DIR]"
20874#       string "DIR[ DIR]" will be appended to VARIABLE
20875# "DIRP[:DIRP]::[DIRA:]DIRA"
20876#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20877#       "DIRA[ DIRA]" will be appended to VARIABLE
20878# "DIR[:DIR]"
20879#       VARIABLE will be replaced by "DIR[ DIR]"
20880func_munge_path_list ()
20881{
20882    case x$2 in
20883    x)
20884        ;;
20885    *:)
20886        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20887        ;;
20888    x:*)
20889        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20890        ;;
20891    *::*)
20892        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20893        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20894        ;;
20895    *)
20896        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20897        ;;
20898    esac
20899}
20900
20901
20902# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20903func_cc_basename ()
20904{
20905    for cc_temp in $*""; do
20906      case $cc_temp in
20907        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20908        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20909        \-*) ;;
20910        *) break;;
20911      esac
20912    done
20913    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20914}
20915
20916
20917# ### END FUNCTIONS SHARED WITH CONFIGURE
20918
20919_LT_EOF
20920
20921  case $host_os in
20922  aix3*)
20923    cat <<\_LT_EOF >> "$cfgfile"
20924# AIX sometimes has problems with the GCC collect2 program.  For some
20925# reason, if we set the COLLECT_NAMES environment variable, the problems
20926# vanish in a puff of smoke.
20927if test set != "${COLLECT_NAMES+set}"; then
20928  COLLECT_NAMES=
20929  export COLLECT_NAMES
20930fi
20931_LT_EOF
20932    ;;
20933  esac
20934
20935
20936ltmain=$ac_aux_dir/ltmain.sh
20937
20938
20939  # We use sed instead of cat because bash on DJGPP gets confused if
20940  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20941  # text mode, it properly converts lines to CR/LF.  This bash problem
20942  # is reportedly fixed, but why not run on old versions too?
20943  sed '$q' "$ltmain" >> "$cfgfile" \
20944     || (rm -f "$cfgfile"; exit 1)
20945
20946   mv -f "$cfgfile" "$ofile" ||
20947    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20948  chmod +x "$ofile"
20949
20950 ;;
20951
20952  esac
20953done # for ac_tag
20954
20955
20956as_fn_exit 0
20957_ACEOF
20958ac_clean_files=$ac_clean_files_save
20959
20960test $ac_write_fail = 0 ||
20961  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20962
20963
20964# configure is writing to config.log, and then calls config.status.
20965# config.status does its own redirection, appending to config.log.
20966# Unfortunately, on DOS this fails, as config.log is still kept open
20967# by configure, so config.status won't be able to write to it; its
20968# output is simply discarded.  So we exec the FD to /dev/null,
20969# effectively closing config.log, so it can be properly (re)opened and
20970# appended to by config.status.  When coming back to configure, we
20971# need to make the FD available again.
20972if test "$no_create" != yes; then
20973  ac_cs_success=:
20974  ac_config_status_args=
20975  test "$silent" = yes &&
20976    ac_config_status_args="$ac_config_status_args --quiet"
20977  exec 5>/dev/null
20978  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20979  exec 5>>config.log
20980  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20981  # would make configure fail if this is the last instruction.
20982  $ac_cs_success || as_fn_exit 1
20983fi
20984if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20985  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20986$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20987fi
20988
20989