configure revision 6b526288
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXxf86misc 1.0.4.
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='libXxf86misc'
593PACKAGE_TARNAME='libXxf86misc'
594PACKAGE_VERSION='1.0.4'
595PACKAGE_STRING='libXxf86misc 1.0.4'
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
640XTMALLOC_ZERO_CFLAGS
641XMALLOC_ZERO_CFLAGS
642MALLOC_ZERO_CFLAGS
643XXF86MISC_LIBS
644XXF86MISC_CFLAGS
645LT_SYS_LIBRARY_PATH
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655DLLTOOL
656OBJDUMP
657LN_S
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LD
662FGREP
663LIBTOOL
664MAN_SUBSTS
665XORG_MAN_PAGE
666ADMIN_MAN_DIR
667DRIVER_MAN_DIR
668MISC_MAN_DIR
669FILE_MAN_DIR
670LIB_MAN_DIR
671APP_MAN_DIR
672ADMIN_MAN_SUFFIX
673DRIVER_MAN_SUFFIX
674MISC_MAN_SUFFIX
675FILE_MAN_SUFFIX
676LIB_MAN_SUFFIX
677APP_MAN_SUFFIX
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695EGREP
696GREP
697CPP
698am__fastdepCC_FALSE
699am__fastdepCC_TRUE
700CCDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715AM_BACKSLASH
716AM_DEFAULT_VERBOSITY
717AM_DEFAULT_V
718AM_V
719am__untar
720am__tar
721AMTAR
722am__leading_dot
723SET_MAKE
724AWK
725mkdir_p
726MKDIR_P
727INSTALL_STRIP_PROGRAM
728STRIP
729install_sh
730MAKEINFO
731AUTOHEADER
732AUTOMAKE
733AUTOCONF
734ACLOCAL
735VERSION
736PACKAGE
737CYGPATH_W
738am__isrc
739INSTALL_DATA
740INSTALL_SCRIPT
741INSTALL_PROGRAM
742target_alias
743host_alias
744build_alias
745LIBS
746ECHO_T
747ECHO_N
748ECHO_C
749DEFS
750mandir
751localedir
752libdir
753psdir
754pdfdir
755dvidir
756htmldir
757infodir
758docdir
759oldincludedir
760includedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_selective_werror
786enable_strict_compilation
787enable_shared
788enable_static
789with_pic
790enable_fast_install
791with_aix_soname
792with_gnu_ld
793with_sysroot
794enable_libtool_lock
795enable_malloc0returnsnull
796'
797      ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CPP
806PKG_CONFIG
807PKG_CONFIG_PATH
808PKG_CONFIG_LIBDIR
809LT_SYS_LIBRARY_PATH
810XXF86MISC_CFLAGS
811XXF86MISC_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures libXxf86misc 1.0.4 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXxf86misc]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of libXxf86misc 1.0.4:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --enable-dependency-tracking
1433                          do not reject slow dependency extractors
1434  --disable-dependency-tracking
1435                          speeds up one-time build
1436  --disable-selective-werror
1437                          Turn off selective compiler errors. (default:
1438                          enabled)
1439  --enable-strict-compilation
1440                          Enable all warnings from compiler and make them
1441                          errors (default: disabled)
1442  --enable-shared[=PKGS]  build shared libraries [default=yes]
1443  --enable-static[=PKGS]  build static libraries [default=yes]
1444  --enable-fast-install[=PKGS]
1445                          optimize for fast installation [default=yes]
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --enable-malloc0returnsnull
1448                          malloc(0) returns NULL (default: auto)
1449
1450Optional Packages:
1451  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1454                          both]
1455  --with-aix-soname=aix|svr4|both
1456                          shared library versioning (aka "SONAME") variant to
1457                          provide on AIX, [default=aix].
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1460                          compiler's sysroot if not specified).
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  CPP         C preprocessor
1471  PKG_CONFIG  path to pkg-config utility
1472  PKG_CONFIG_PATH
1473              directories to add to pkg-config's search path
1474  PKG_CONFIG_LIBDIR
1475              path overriding pkg-config's built-in search path
1476  LT_SYS_LIBRARY_PATH
1477              User-defined run-time library search path.
1478  XXF86MISC_CFLAGS
1479              C compiler flags for XXF86MISC, overriding pkg-config
1480  XXF86MISC_LIBS
1481              linker flags for XXF86MISC, overriding pkg-config
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for guested configure.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549libXxf86misc configure 1.0.4
1550generated by GNU Autoconf 2.69
1551
1552Copyright (C) 2012 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556  exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext
1570  if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_compile") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest.$ac_objext; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1602# ---------------------------------------------
1603# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1604# accordingly.
1605ac_fn_c_check_decl ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  as_decl_name=`echo $2|sed 's/ *(.*//'`
1609  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1611$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1612if eval \${$3+:} false; then :
1613  $as_echo_n "(cached) " >&6
1614else
1615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618int
1619main ()
1620{
1621#ifndef $as_decl_name
1622#ifdef __cplusplus
1623  (void) $as_decl_use;
1624#else
1625  (void) $as_decl_name;
1626#endif
1627#endif
1628
1629  ;
1630  return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  eval "$3=yes"
1635else
1636  eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_c_check_decl
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727# -------------------------------------------------------
1728# Tests whether HEADER exists and can be compiled using the include files in
1729# INCLUDES, setting the cache variable VAR accordingly.
1730ac_fn_c_check_header_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  eval "$3=yes"
1745else
1746  eval "$3=no"
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749fi
1750eval ac_res=\$$3
1751	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752$as_echo "$ac_res" >&6; }
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755} # ac_fn_c_check_header_compile
1756
1757# ac_fn_c_try_link LINENO
1758# -----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_link ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext conftest$ac_exeext
1764  if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771  (eval "$ac_link") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest$ac_exeext && {
1783	 test "$cross_compiling" = yes ||
1784	 test -x conftest$ac_exeext
1785       }; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
1793  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795  # interfere with the next link command; also delete a directory that is
1796  # left behind by Apple's compiler.  We do this before executing the actions.
1797  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_link
1802
1803# ac_fn_c_check_func LINENO FUNC VAR
1804# ----------------------------------
1805# Tests whether FUNC exists, setting the cache variable VAR accordingly
1806ac_fn_c_check_func ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813else
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818#define $2 innocuous_$2
1819
1820/* System header to define __stub macros and hopefully few prototypes,
1821    which can conflict with char $2 (); below.
1822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823    <limits.h> exists even on freestanding compilers.  */
1824
1825#ifdef __STDC__
1826# include <limits.h>
1827#else
1828# include <assert.h>
1829#endif
1830
1831#undef $2
1832
1833/* Override any GCC internal prototype to avoid an error.
1834   Use char because int might match the return type of a GCC
1835   builtin and then its argument prototype would still apply.  */
1836#ifdef __cplusplus
1837extern "C"
1838#endif
1839char $2 ();
1840/* The GNU C library defines this for functions which it implements
1841    to always fail with ENOSYS.  Some functions are actually named
1842    something starting with __ and the normal name is an alias.  */
1843#if defined __stub_$2 || defined __stub___$2
1844choke me
1845#endif
1846
1847int
1848main ()
1849{
1850return $2 ();
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_link "$LINENO"; then :
1856  eval "$3=yes"
1857else
1858  eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext \
1861    conftest$ac_exeext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_func
1869cat >config.log <<_ACEOF
1870This file contains any messages produced by compilers while
1871running configure, to aid debugging if configure makes a mistake.
1872
1873It was created by libXxf86misc $as_me 1.0.4, which was
1874generated by GNU Autoconf 2.69.  Invocation command line was
1875
1876  $ $0 $@
1877
1878_ACEOF
1879exec 5>>config.log
1880{
1881cat <<_ASUNAME
1882## --------- ##
1883## Platform. ##
1884## --------- ##
1885
1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1894
1895/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1896/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1899/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1900/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1901/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1902
1903_ASUNAME
1904
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910    $as_echo "PATH: $as_dir"
1911  done
1912IFS=$as_save_IFS
1913
1914} >&5
1915
1916cat >&5 <<_ACEOF
1917
1918
1919## ----------- ##
1920## Core tests. ##
1921## ----------- ##
1922
1923_ACEOF
1924
1925
1926# Keep a trace of the command line.
1927# Strip out --no-create and --no-recursion so they do not pile up.
1928# Strip out --silent because we don't want to record it for future runs.
1929# Also quote any args containing shell meta-characters.
1930# Make two passes to allow for proper duplicate-argument suppression.
1931ac_configure_args=
1932ac_configure_args0=
1933ac_configure_args1=
1934ac_must_keep_next=false
1935for ac_pass in 1 2
1936do
1937  for ac_arg
1938  do
1939    case $ac_arg in
1940    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942    | -silent | --silent | --silen | --sile | --sil)
1943      continue ;;
1944    *\'*)
1945      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946    esac
1947    case $ac_pass in
1948    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949    2)
1950      as_fn_append ac_configure_args1 " '$ac_arg'"
1951      if test $ac_must_keep_next = true; then
1952	ac_must_keep_next=false # Got value, back to normal.
1953      else
1954	case $ac_arg in
1955	  *=* | --config-cache | -C | -disable-* | --disable-* \
1956	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958	  | -with-* | --with-* | -without-* | --without-* | --x)
1959	    case "$ac_configure_args0 " in
1960	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961	    esac
1962	    ;;
1963	  -* ) ac_must_keep_next=true ;;
1964	esac
1965      fi
1966      as_fn_append ac_configure_args " '$ac_arg'"
1967      ;;
1968    esac
1969  done
1970done
1971{ ac_configure_args0=; unset ac_configure_args0;}
1972{ ac_configure_args1=; unset ac_configure_args1;}
1973
1974# When interrupted or exit'd, cleanup temporary files, and complete
1975# config.log.  We remove comments because anyway the quotes in there
1976# would cause problems or look ugly.
1977# WARNING: Use '\'' to represent an apostrophe within the trap.
1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979trap 'exit_status=$?
1980  # Save into config.log some information that might help in debugging.
1981  {
1982    echo
1983
1984    $as_echo "## ---------------- ##
1985## Cache variables. ##
1986## ---------------- ##"
1987    echo
1988    # The following way of writing the cache mishandles newlines in values,
1989(
1990  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1991    eval ac_val=\$$ac_var
1992    case $ac_val in #(
1993    *${as_nl}*)
1994      case $ac_var in #(
1995      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997      esac
1998      case $ac_var in #(
1999      _ | IFS | as_nl) ;; #(
2000      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2001      *) { eval $ac_var=; unset $ac_var;} ;;
2002      esac ;;
2003    esac
2004  done
2005  (set) 2>&1 |
2006    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2007    *${as_nl}ac_space=\ *)
2008      sed -n \
2009	"s/'\''/'\''\\\\'\'''\''/g;
2010	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011      ;; #(
2012    *)
2013      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014      ;;
2015    esac |
2016    sort
2017)
2018    echo
2019
2020    $as_echo "## ----------------- ##
2021## Output variables. ##
2022## ----------------- ##"
2023    echo
2024    for ac_var in $ac_subst_vars
2025    do
2026      eval ac_val=\$$ac_var
2027      case $ac_val in
2028      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029      esac
2030      $as_echo "$ac_var='\''$ac_val'\''"
2031    done | sort
2032    echo
2033
2034    if test -n "$ac_subst_files"; then
2035      $as_echo "## ------------------- ##
2036## File substitutions. ##
2037## ------------------- ##"
2038      echo
2039      for ac_var in $ac_subst_files
2040      do
2041	eval ac_val=\$$ac_var
2042	case $ac_val in
2043	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044	esac
2045	$as_echo "$ac_var='\''$ac_val'\''"
2046      done | sort
2047      echo
2048    fi
2049
2050    if test -s confdefs.h; then
2051      $as_echo "## ----------- ##
2052## confdefs.h. ##
2053## ----------- ##"
2054      echo
2055      cat confdefs.h
2056      echo
2057    fi
2058    test "$ac_signal" != 0 &&
2059      $as_echo "$as_me: caught signal $ac_signal"
2060    $as_echo "$as_me: exit $exit_status"
2061  } >&5
2062  rm -f core *.core core.conftest.* &&
2063    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064    exit $exit_status
2065' 0
2066for ac_signal in 1 2 13 15; do
2067  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068done
2069ac_signal=0
2070
2071# confdefs.h avoids OS command line length limits that DEFS can exceed.
2072rm -f -r conftest* confdefs.h
2073
2074$as_echo "/* confdefs.h */" > confdefs.h
2075
2076# Predefined preprocessor variables.
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_NAME "$PACKAGE_NAME"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_VERSION "$PACKAGE_VERSION"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_STRING "$PACKAGE_STRING"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_URL "$PACKAGE_URL"
2100_ACEOF
2101
2102
2103# Let the site file select an alternate cache file if it wants to.
2104# Prefer an explicitly selected file to automatically selected ones.
2105ac_site_file1=NONE
2106ac_site_file2=NONE
2107if test -n "$CONFIG_SITE"; then
2108  # We do not want a PATH search for config.site.
2109  case $CONFIG_SITE in #((
2110    -*)  ac_site_file1=./$CONFIG_SITE;;
2111    */*) ac_site_file1=$CONFIG_SITE;;
2112    *)   ac_site_file1=./$CONFIG_SITE;;
2113  esac
2114elif test "x$prefix" != xNONE; then
2115  ac_site_file1=$prefix/share/config.site
2116  ac_site_file2=$prefix/etc/config.site
2117else
2118  ac_site_file1=$ac_default_prefix/share/config.site
2119  ac_site_file2=$ac_default_prefix/etc/config.site
2120fi
2121for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122do
2123  test "x$ac_site_file" = xNONE && continue
2124  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2127    sed 's/^/| /' "$ac_site_file" >&5
2128    . "$ac_site_file" \
2129      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131as_fn_error $? "failed to load site script $ac_site_file
2132See \`config.log' for more details" "$LINENO" 5; }
2133  fi
2134done
2135
2136if test -r "$cache_file"; then
2137  # Some versions of bash will fail to source /dev/null (special files
2138  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2139  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2140    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141$as_echo "$as_me: loading cache $cache_file" >&6;}
2142    case $cache_file in
2143      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144      *)                      . "./$cache_file";;
2145    esac
2146  fi
2147else
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149$as_echo "$as_me: creating cache $cache_file" >&6;}
2150  >$cache_file
2151fi
2152
2153# Check that the precious variables saved in the cache have kept the same
2154# value.
2155ac_cache_corrupted=false
2156for ac_var in $ac_precious_vars; do
2157  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158  eval ac_new_set=\$ac_env_${ac_var}_set
2159  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160  eval ac_new_val=\$ac_env_${ac_var}_value
2161  case $ac_old_set,$ac_new_set in
2162    set,)
2163      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165      ac_cache_corrupted=: ;;
2166    ,set)
2167      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169      ac_cache_corrupted=: ;;
2170    ,);;
2171    *)
2172      if test "x$ac_old_val" != "x$ac_new_val"; then
2173	# differences in whitespace do not lead to failure.
2174	ac_old_val_w=`echo x $ac_old_val`
2175	ac_new_val_w=`echo x $ac_new_val`
2176	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179	  ac_cache_corrupted=:
2180	else
2181	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183	  eval $ac_var=\$ac_old_val
2184	fi
2185	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2186$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2188$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2189      fi;;
2190  esac
2191  # Pass precious variables to config.status.
2192  if test "$ac_new_set" = set; then
2193    case $ac_new_val in
2194    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195    *) ac_arg=$ac_var=$ac_new_val ;;
2196    esac
2197    case " $ac_configure_args " in
2198      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2199      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200    esac
2201  fi
2202done
2203if $ac_cache_corrupted; then
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209fi
2210## -------------------- ##
2211## Main body of script. ##
2212## -------------------- ##
2213
2214ac_ext=c
2215ac_cpp='$CPP $CPPFLAGS'
2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219
2220
2221
2222ac_config_headers="$ac_config_headers src/config.h"
2223
2224
2225# Initialize Automake
2226am__api_version='1.15'
2227
2228ac_aux_dir=
2229for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230  if test -f "$ac_dir/install-sh"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/install-sh -c"
2233    break
2234  elif test -f "$ac_dir/install.sh"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/install.sh -c"
2237    break
2238  elif test -f "$ac_dir/shtool"; then
2239    ac_aux_dir=$ac_dir
2240    ac_install_sh="$ac_aux_dir/shtool install -c"
2241    break
2242  fi
2243done
2244if test -z "$ac_aux_dir"; then
2245  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246fi
2247
2248# These three variables are undocumented and unsupported,
2249# and are intended to be withdrawn in a future Autoconf release.
2250# They can cause serious problems if a builder's source tree is in a directory
2251# whose full name contains unusual characters.
2252ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2253ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2254ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2255
2256
2257# Find a good install program.  We prefer a C program (faster),
2258# so one script is as good as another.  But avoid the broken or
2259# incompatible versions:
2260# SysV /etc/install, /usr/sbin/install
2261# SunOS /usr/etc/install
2262# IRIX /sbin/install
2263# AIX /bin/install
2264# AmigaOS /C/install, which installs bootblocks on floppy discs
2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268# OS/2's system install, which has a completely different semantic
2269# ./install, which can be erroneously created by make from ./install.sh.
2270# Reject install programs that cannot install multiple files.
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272$as_echo_n "checking for a BSD-compatible install... " >&6; }
2273if test -z "$INSTALL"; then
2274if ${ac_cv_path_install+:} false; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282    # Account for people who put trailing slashes in PATH elements.
2283case $as_dir/ in #((
2284  ./ | .// | /[cC]/* | \
2285  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287  /usr/ucb/* ) ;;
2288  *)
2289    # OSF1 and SCO ODT 3.0 have their own names for install.
2290    # Don't use installbsd from OSF since it installs stuff as root
2291    # by default.
2292    for ac_prog in ginstall scoinst install; do
2293      for ac_exec_ext in '' $ac_executable_extensions; do
2294	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295	  if test $ac_prog = install &&
2296	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297	    # AIX install.  It has an incompatible calling convention.
2298	    :
2299	  elif test $ac_prog = install &&
2300	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301	    # program-specific install script used by HP pwplus--don't use.
2302	    :
2303	  else
2304	    rm -rf conftest.one conftest.two conftest.dir
2305	    echo one > conftest.one
2306	    echo two > conftest.two
2307	    mkdir conftest.dir
2308	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309	      test -s conftest.one && test -s conftest.two &&
2310	      test -s conftest.dir/conftest.one &&
2311	      test -s conftest.dir/conftest.two
2312	    then
2313	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314	      break 3
2315	    fi
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322
2323  done
2324IFS=$as_save_IFS
2325
2326rm -rf conftest.one conftest.two conftest.dir
2327
2328fi
2329  if test "${ac_cv_path_install+set}" = set; then
2330    INSTALL=$ac_cv_path_install
2331  else
2332    # As a last resort, use the slow shell script.  Don't cache a
2333    # value for INSTALL within a source directory, because that will
2334    # break other packages using the cache if that directory is
2335    # removed, or if the value is a relative name.
2336    INSTALL=$ac_install_sh
2337  fi
2338fi
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340$as_echo "$INSTALL" >&6; }
2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351$as_echo_n "checking whether build environment is sane... " >&6; }
2352# Reject unsafe characters in $srcdir or the absolute working directory
2353# name.  Accept space and tab only in the latter.
2354am_lf='
2355'
2356case `pwd` in
2357  *[\\\"\#\$\&\'\`$am_lf]*)
2358    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359esac
2360case $srcdir in
2361  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2362    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363esac
2364
2365# Do 'set' in a subshell so we don't clobber the current shell's
2366# arguments.  Must try -L first in case configure is actually a
2367# symlink; some systems play weird games with the mod time of symlinks
2368# (eg FreeBSD returns the mod time of the symlink's containing
2369# directory).
2370if (
2371   am_has_slept=no
2372   for am_try in 1 2; do
2373     echo "timestamp, slept: $am_has_slept" > conftest.file
2374     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375     if test "$*" = "X"; then
2376	# -L didn't work.
2377	set X `ls -t "$srcdir/configure" conftest.file`
2378     fi
2379     if test "$*" != "X $srcdir/configure conftest.file" \
2380	&& test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382	# If neither matched, then we have a broken ls.  This can happen
2383	# if, for instance, CONFIG_SHELL is bash and it inherits a
2384	# broken ls alias from the environment.  This has actually
2385	# happened.  Such a system could not be considered "sane".
2386	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2387  alias in your environment" "$LINENO" 5
2388     fi
2389     if test "$2" = conftest.file || test $am_try -eq 2; then
2390       break
2391     fi
2392     # Just in case.
2393     sleep 1
2394     am_has_slept=yes
2395   done
2396   test "$2" = conftest.file
2397   )
2398then
2399   # Ok.
2400   :
2401else
2402   as_fn_error $? "newly created file is older than distributed files!
2403Check your system clock" "$LINENO" 5
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406$as_echo "yes" >&6; }
2407# If we didn't sleep, we still need to ensure time stamps of config.status and
2408# generated files are strictly newer.
2409am_sleep_pid=
2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411  ( sleep 1 ) &
2412  am_sleep_pid=$!
2413fi
2414
2415rm -f conftest.file
2416
2417test "$program_prefix" != NONE &&
2418  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419# Use a double $ so make ignores it.
2420test "$program_suffix" != NONE &&
2421  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422# Double any \ or $.
2423# By default was `s,x,x', remove it if useless.
2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427# Expand $ac_aux_dir to an absolute path.
2428am_aux_dir=`cd "$ac_aux_dir" && pwd`
2429
2430if test x"${MISSING+set}" != xset; then
2431  case $am_aux_dir in
2432  *\ * | *\	*)
2433    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434  *)
2435    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436  esac
2437fi
2438# Use eval to expand $SHELL
2439if eval "$MISSING --is-lightweight"; then
2440  am_missing_run="$MISSING "
2441else
2442  am_missing_run=
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445fi
2446
2447if test x"${install_sh+set}" != xset; then
2448  case $am_aux_dir in
2449  *\ * | *\	*)
2450    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451  *)
2452    install_sh="\${SHELL} $am_aux_dir/install-sh"
2453  esac
2454fi
2455
2456# Installed binaries are usually stripped using 'strip' when the user
2457# run "make install-strip".  However 'strip' might not be the right
2458# tool to use in cross-compilation environments, therefore Automake
2459# will honor the 'STRIP' environment variable to overrule this program.
2460if test "$cross_compiling" != no; then
2461  if test -n "$ac_tool_prefix"; then
2462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}strip; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if ${ac_cv_prog_STRIP+:} false; then :
2467  $as_echo_n "(cached) " >&6
2468else
2469  if test -n "$STRIP"; then
2470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    for ac_exec_ext in '' $ac_executable_extensions; do
2478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489STRIP=$ac_cv_prog_STRIP
2490if test -n "$STRIP"; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492$as_echo "$STRIP" >&6; }
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498
2499fi
2500if test -z "$ac_cv_prog_STRIP"; then
2501  ac_ct_STRIP=$STRIP
2502  # Extract the first word of "strip", so it can be a program name with args.
2503set dummy strip; ac_word=$2
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  if test -n "$ac_ct_STRIP"; then
2510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_exec_ext in '' $ac_executable_extensions; do
2518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519    ac_cv_prog_ac_ct_STRIP="strip"
2520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524  done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530if test -n "$ac_ct_STRIP"; then
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532$as_echo "$ac_ct_STRIP" >&6; }
2533else
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
2536fi
2537
2538  if test "x$ac_ct_STRIP" = x; then
2539    STRIP=":"
2540  else
2541    case $cross_compiling:$ac_tool_warned in
2542yes:)
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547    STRIP=$ac_ct_STRIP
2548  fi
2549else
2550  STRIP="$ac_cv_prog_STRIP"
2551fi
2552
2553fi
2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558if test -z "$MKDIR_P"; then
2559  if ${ac_cv_path_mkdir+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_prog in mkdir gmkdir; do
2568	 for ac_exec_ext in '' $ac_executable_extensions; do
2569	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571	     'mkdir (GNU coreutils) '* | \
2572	     'mkdir (coreutils) '* | \
2573	     'mkdir (fileutils) '4.1*)
2574	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575	       break 3;;
2576	   esac
2577	 done
2578       done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583
2584  test -d ./--version && rmdir ./--version
2585  if test "${ac_cv_path_mkdir+set}" = set; then
2586    MKDIR_P="$ac_cv_path_mkdir -p"
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for MKDIR_P within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    MKDIR_P="$ac_install_sh -d"
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596$as_echo "$MKDIR_P" >&6; }
2597
2598for ac_prog in gawk mawk nawk awk
2599do
2600  # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_AWK+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$AWK"; then
2608  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_AWK="$ac_prog"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627AWK=$ac_cv_prog_AWK
2628if test -n "$AWK"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630$as_echo "$AWK" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637  test -n "$AWK" && break
2638done
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642set x ${MAKE-make}
2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  cat >conftest.make <<\_ACEOF
2648SHELL = /bin/sh
2649all:
2650	@echo '@@@%%%=$(MAKE)=@@@%%%'
2651_ACEOF
2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654  *@@@%%%=?*=@@@%%%*)
2655    eval ac_cv_prog_make_${ac_make}_set=yes;;
2656  *)
2657    eval ac_cv_prog_make_${ac_make}_set=no;;
2658esac
2659rm -f conftest.make
2660fi
2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
2664  SET_MAKE=
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668  SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
2671rm -rf .tst 2>/dev/null
2672mkdir .tst 2>/dev/null
2673if test -d .tst; then
2674  am__leading_dot=.
2675else
2676  am__leading_dot=_
2677fi
2678rmdir .tst 2>/dev/null
2679
2680# Check whether --enable-silent-rules was given.
2681if test "${enable_silent_rules+set}" = set; then :
2682  enableval=$enable_silent_rules;
2683fi
2684
2685case $enable_silent_rules in # (((
2686  yes) AM_DEFAULT_VERBOSITY=0;;
2687   no) AM_DEFAULT_VERBOSITY=1;;
2688    *) AM_DEFAULT_VERBOSITY=1;;
2689esac
2690am_make=${MAKE-make}
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693if ${am_cv_make_support_nested_variables+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if $as_echo 'TRUE=$(BAR$(V))
2697BAR0=false
2698BAR1=true
2699V=1
2700am__doit:
2701	@$(TRUE)
2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703  am_cv_make_support_nested_variables=yes
2704else
2705  am_cv_make_support_nested_variables=no
2706fi
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709$as_echo "$am_cv_make_support_nested_variables" >&6; }
2710if test $am_cv_make_support_nested_variables = yes; then
2711    AM_V='$(V)'
2712  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713else
2714  AM_V=$AM_DEFAULT_VERBOSITY
2715  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716fi
2717AM_BACKSLASH='\'
2718
2719if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721  # is not polluted with repeated "-I."
2722  am__isrc=' -I$(srcdir)'
2723  # test to see if srcdir already configured
2724  if test -f $srcdir/config.status; then
2725    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726  fi
2727fi
2728
2729# test whether we have cygpath
2730if test -z "$CYGPATH_W"; then
2731  if (cygpath --version) >/dev/null 2>/dev/null; then
2732    CYGPATH_W='cygpath -w'
2733  else
2734    CYGPATH_W=echo
2735  fi
2736fi
2737
2738
2739# Define the identity of the package.
2740 PACKAGE='libXxf86misc'
2741 VERSION='1.0.4'
2742
2743
2744cat >>confdefs.h <<_ACEOF
2745#define PACKAGE "$PACKAGE"
2746_ACEOF
2747
2748
2749cat >>confdefs.h <<_ACEOF
2750#define VERSION "$VERSION"
2751_ACEOF
2752
2753# Some tools Automake needs.
2754
2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769# For better backward compatibility.  To be removed once Automake 1.9.x
2770# dies out for good.  For more background, see:
2771# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773mkdir_p='$(MKDIR_P)'
2774
2775# We need awk for the "check" target (and possibly the TAP driver).  The
2776# system "awk" is bad on some platforms.
2777# Always define AMTAR for backward compatibility.  Yes, it's still used
2778# in the wild :-(  We should find a proper way to deprecate it ...
2779AMTAR='$${TAR-tar}'
2780
2781
2782# We'll loop over all known methods to create a tar archive until one works.
2783_am_tools='gnutar  pax cpio none'
2784
2785am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792# POSIX will say in a future version that running "rm -f" with no argument
2793# is OK; and we want to be able to make that assumption in our Makefile
2794# recipes.  So use an aggressive probe to check that the usage we want is
2795# actually supported "in the wild" to an acceptable degree.
2796# See automake bug#10828.
2797# To make any issue more visible, cause the running configure to be aborted
2798# by default if the 'rm' program in use doesn't match our expectations; the
2799# user can still override this though.
2800if rm -f && rm -fr && rm -rf; then : OK; else
2801  cat >&2 <<'END'
2802Oops!
2803
2804Your 'rm' program seems unable to run without file operands specified
2805on the command line, even when the '-f' option is present.  This is contrary
2806to the behaviour of most rm programs out there, and not conforming with
2807the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809Please tell bug-automake@gnu.org about your system, including the value
2810of your $PATH and any error possibly output before this message.  This
2811can help us improve future automake versions.
2812
2813END
2814  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815    echo 'Configuration will proceed anyway, since you have set the' >&2
2816    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817    echo >&2
2818  else
2819    cat >&2 <<'END'
2820Aborting the configuration process, to ensure you take notice of the issue.
2821
2822You can download and install GNU coreutils to get an 'rm' implementation
2823that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825If you want to complete the configuration process using your problematic
2826'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827to "yes", and re-run configure.
2828
2829END
2830    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831  fi
2832fi
2833
2834
2835# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847DEPDIR="${am__leading_dot}deps"
2848
2849ac_config_commands="$ac_config_commands depfiles"
2850
2851
2852am_make=${MAKE-make}
2853cat > confinc << 'END'
2854am__doit:
2855	@echo this is the am__doit target
2856.PHONY: am__doit
2857END
2858# If we don't find an include directive, just comment out the code.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2860$as_echo_n "checking for style of include used by $am_make... " >&6; }
2861am__include="#"
2862am__quote=
2863_am_result=none
2864# First try GNU make style include.
2865echo "include confinc" > confmf
2866# Ignore all kinds of additional output from 'make'.
2867case `$am_make -s -f confmf 2> /dev/null` in #(
2868*the\ am__doit\ target*)
2869  am__include=include
2870  am__quote=
2871  _am_result=GNU
2872  ;;
2873esac
2874# Now try BSD make style include.
2875if test "$am__include" = "#"; then
2876   echo '.include "confinc"' > confmf
2877   case `$am_make -s -f confmf 2> /dev/null` in #(
2878   *the\ am__doit\ target*)
2879     am__include=.include
2880     am__quote="\""
2881     _am_result=BSD
2882     ;;
2883   esac
2884fi
2885
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2888$as_echo "$_am_result" >&6; }
2889rm -f confinc confmf
2890
2891# Check whether --enable-dependency-tracking was given.
2892if test "${enable_dependency_tracking+set}" = set; then :
2893  enableval=$enable_dependency_tracking;
2894fi
2895
2896if test "x$enable_dependency_tracking" != xno; then
2897  am_depcomp="$ac_aux_dir/depcomp"
2898  AMDEPBACKSLASH='\'
2899  am__nodep='_no'
2900fi
2901 if test "x$enable_dependency_tracking" != xno; then
2902  AMDEP_TRUE=
2903  AMDEP_FALSE='#'
2904else
2905  AMDEP_TRUE='#'
2906  AMDEP_FALSE=
2907fi
2908
2909
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955  ac_ct_CC=$CC
2956  # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_ac_ct_CC="gcc"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986$as_echo "$ac_ct_CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003else
3004  CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008          if test -n "$ac_tool_prefix"; then
3009    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_CC="${ac_tool_prefix}cc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  fi
3047fi
3048if test -z "$CC"; then
3049  # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059  ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068       ac_prog_rejected=yes
3069       continue
3070     fi
3071    ac_cv_prog_CC="cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080  # We found a bogon in the path, so make sure we never use it.
3081  set dummy $ac_cv_prog_CC
3082  shift
3083  if test $# != 0; then
3084    # We chose a different compiler from the bogus one.
3085    # However, it has the same basename, so the bogon will be chosen
3086    # first if we set CC to just the basename; use the full file name.
3087    shift
3088    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089  fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105  if test -n "$ac_tool_prefix"; then
3106  for ac_prog in cl.exe
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_CC+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145    test -n "$CC" && break
3146  done
3147fi
3148if test -z "$CC"; then
3149  ac_ct_CC=$CC
3150  for ac_prog in cl.exe
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_ac_ct_CC="$ac_prog"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  test -n "$ac_ct_CC" && break
3190done
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203fi
3204
3205fi
3206
3207
3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "no acceptable C compiler found in \$PATH
3211See \`config.log' for more details" "$LINENO" 5; }
3212
3213# Provide some information about the compiler.
3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215set X $ac_compile
3216ac_compiler=$2
3217for ac_option in --version -v -V -qversion; do
3218  { { ac_try="$ac_compiler $ac_option >&5"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    sed '10a\
3229... rest of stderr output deleted ...
3230         10q' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232  fi
3233  rm -f conftest.er1 conftest.err
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236done
3237
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267  esac
3268done
3269rm -f $ac_rmfiles
3270
3271if { { ac_try="$ac_link_default"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278  (eval "$ac_link_default") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }; then :
3282  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289  test -f "$ac_file" || continue
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292	;;
3293    [ab].out )
3294	# We found the default executable, but exeext='' is most
3295	# certainly right.
3296	break;;
3297    *.* )
3298	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299	then :; else
3300	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	fi
3302	# We set ac_cv_exeext here because the later test for it is not
3303	# safe: cross compilers may not add the suffix if given an `-o'
3304	# argument, so we may need to know it at that point already.
3305	# Even if this section looks crufty: it has the advantage of
3306	# actually working.
3307	break;;
3308    * )
3309	break;;
3310  esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315  ac_file=''
3316fi
3317if test -z "$ac_file"; then :
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error 77 "C compiler cannot create executables
3326See \`config.log' for more details" "$LINENO" 5; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332$as_echo_n "checking for C compiler default output file name... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334$as_echo "$ac_file" >&6; }
3335ac_exeext=$ac_cv_exeext
3336
3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338ac_clean_files=$ac_clean_files_save
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3340$as_echo_n "checking for suffix of executables... " >&6; }
3341if { { ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3354# work properly (i.e., refer to `conftest.exe'), while it won't with
3355# `rm'.
3356for ac_file in conftest.exe conftest conftest.*; do
3357  test -f "$ac_file" || continue
3358  case $ac_file in
3359    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361	  break;;
3362    * ) break;;
3363  esac
3364done
3365else
3366  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369See \`config.log' for more details" "$LINENO" 5; }
3370fi
3371rm -f conftest conftest$ac_cv_exeext
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3373$as_echo "$ac_cv_exeext" >&6; }
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380#include <stdio.h>
3381int
3382main ()
3383{
3384FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391ac_clean_files="$ac_clean_files conftest.out"
3392# Check that the compiler produces executables we can run.  If not, either
3393# the compiler is broken, or we cross compile.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395$as_echo_n "checking whether we are cross compiling... " >&6; }
3396if test "$cross_compiling" != yes; then
3397  { { ac_try="$ac_link"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_link") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }
3408  if { ac_try='./conftest$ac_cv_exeext'
3409  { { case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_try") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; }; then
3419    cross_compiling=no
3420  else
3421    if test "$cross_compiling" = maybe; then
3422	cross_compiling=yes
3423    else
3424	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot run C compiled programs.
3427If you meant to cross compile, use \`--host'.
3428See \`config.log' for more details" "$LINENO" 5; }
3429    fi
3430  fi
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3438$as_echo_n "checking for suffix of object files... " >&6; }
3439if ${ac_cv_objext+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.o conftest.obj
3454if { { ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_compile") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  for ac_file in conftest.o conftest.obj conftest.*; do
3466  test -f "$ac_file" || continue;
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3469    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470       break;;
3471  esac
3472done
3473else
3474  $as_echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "cannot compute suffix of object files: cannot compile
3480See \`config.log' for more details" "$LINENO" 5; }
3481fi
3482rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485$as_echo "$ac_cv_objext" >&6; }
3486OBJEXT=$ac_cv_objext
3487ac_objext=$OBJEXT
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3490if ${ac_cv_c_compiler_gnu+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499#ifndef __GNUC__
3500       choke me
3501#endif
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507if ac_fn_c_try_compile "$LINENO"; then :
3508  ac_compiler_gnu=yes
3509else
3510  ac_compiler_gnu=no
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518if test $ac_compiler_gnu = yes; then
3519  GCC=yes
3520else
3521  GCC=
3522fi
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3526$as_echo_n "checking whether $CC accepts -g... " >&6; }
3527if ${ac_cv_prog_cc_g+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  ac_save_c_werror_flag=$ac_c_werror_flag
3531   ac_c_werror_flag=yes
3532   ac_cv_prog_cc_g=no
3533   CFLAGS="-g"
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_g=yes
3547else
3548  CFLAGS=""
3549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561
3562else
3563  ac_c_werror_flag=$ac_save_c_werror_flag
3564	 CFLAGS="-g"
3565	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587$as_echo "$ac_cv_prog_cc_g" >&6; }
3588if test "$ac_test_CFLAGS" = set; then
3589  CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591  if test "$GCC" = yes; then
3592    CFLAGS="-g -O2"
3593  else
3594    CFLAGS="-g"
3595  fi
3596else
3597  if test "$GCC" = yes; then
3598    CFLAGS="-O2"
3599  else
3600    CFLAGS=
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605if ${ac_cv_prog_cc_c89+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <stdarg.h>
3613#include <stdio.h>
3614struct stat;
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619     char **p;
3620     int i;
3621{
3622  return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626  char *s;
3627  va_list v;
3628  va_start (v,p);
3629  s = g (p, va_arg (v,int));
3630  va_end (v);
3631  return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3635   function prototypes and stuff, but not '\xHH' hex character constants.
3636   These don't provoke an error unfortunately, instead are silently treated
3637   as 'x'.  The following induces an error, until -std is added to get
3638   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3639   array size at least.  It's necessary to write '\x00'==0 to get something
3640   that's true only with -std.  */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644   inside strings and character constants.  */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665  CC="$ac_save_CC $ac_arg"
3666  if ac_fn_c_try_compile "$LINENO"; then :
3667  ac_cv_prog_cc_c89=$ac_arg
3668fi
3669rm -f core conftest.err conftest.$ac_objext
3670  test "x$ac_cv_prog_cc_c89" != "xno" && break
3671done
3672rm -f conftest.$ac_ext
3673CC=$ac_save_CC
3674
3675fi
3676# AC_CACHE_VAL
3677case "x$ac_cv_prog_cc_c89" in
3678  x)
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680$as_echo "none needed" >&6; } ;;
3681  xno)
3682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683$as_echo "unsupported" >&6; } ;;
3684  *)
3685    CC="$CC $ac_cv_prog_cc_c89"
3686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3688esac
3689if test "x$ac_cv_prog_cc_c89" != xno; then :
3690
3691fi
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3705$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3706if ${am_cv_prog_cc_c_o+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711
3712int
3713main ()
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720  # Make sure it works both with $CC and with simple cc.
3721  # Following AC_PROG_CC_C_O, we do the test twice because some
3722  # compilers refuse to overwrite an existing .o file with -o,
3723  # though they will create one.
3724  am_cv_prog_cc_c_o=yes
3725  for am_i in 1 2; do
3726    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3727   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } \
3731         && test -f conftest2.$ac_objext; then
3732      : OK
3733    else
3734      am_cv_prog_cc_c_o=no
3735      break
3736    fi
3737  done
3738  rm -f core conftest*
3739  unset am_i
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3742$as_echo "$am_cv_prog_cc_c_o" >&6; }
3743if test "$am_cv_prog_cc_c_o" != yes; then
3744   # Losing compiler, so override with the script.
3745   # FIXME: It is wrong to rewrite CC.
3746   # But if we don't then we get into trouble of one sort or another.
3747   # A longer-term fix would be to have automake use am__CC in this case,
3748   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3749   CC="$am_aux_dir/compile $CC"
3750fi
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757
3758depcc="$CC"   am_compiler_list=
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761$as_echo_n "checking dependency style of $depcc... " >&6; }
3762if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766  # We make a subdir and do the tests there.  Otherwise we can end up
3767  # making bogus files that we don't know about and never remove.  For
3768  # instance it was reported that on HP-UX the gcc test will end up
3769  # making a dummy file named 'D' -- because '-MD' means "put the output
3770  # in D".
3771  rm -rf conftest.dir
3772  mkdir conftest.dir
3773  # Copy depcomp to subdir because otherwise we won't find it if we're
3774  # using a relative directory.
3775  cp "$am_depcomp" conftest.dir
3776  cd conftest.dir
3777  # We will build objects and dependencies in a subdirectory because
3778  # it helps to detect inapplicable dependency modes.  For instance
3779  # both Tru64's cc and ICC support -MD to output dependencies as a
3780  # side effect of compilation, but ICC will put the dependencies in
3781  # the current directory while Tru64 will put them in the object
3782  # directory.
3783  mkdir sub
3784
3785  am_cv_CC_dependencies_compiler_type=none
3786  if test "$am_compiler_list" = ""; then
3787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3788  fi
3789  am__universal=false
3790  case " $depcc " in #(
3791     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3792     esac
3793
3794  for depmode in $am_compiler_list; do
3795    # Setup a source with many dependencies, because some compilers
3796    # like to wrap large dependency lists on column 80 (with \), and
3797    # we should not choose a depcomp mode which is confused by this.
3798    #
3799    # We need to recreate these files for each test, as the compiler may
3800    # overwrite some of them when testing with obscure command lines.
3801    # This happens at least with the AIX C compiler.
3802    : > sub/conftest.c
3803    for i in 1 2 3 4 5 6; do
3804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3805      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3806      # Solaris 10 /bin/sh.
3807      echo '/* dummy */' > sub/conftst$i.h
3808    done
3809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810
3811    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3812    # mode.  It turns out that the SunPro C++ compiler does not properly
3813    # handle '-M -o', and we need to detect this.  Also, some Intel
3814    # versions had trouble with output in subdirs.
3815    am__obj=sub/conftest.${OBJEXT-o}
3816    am__minus_obj="-o $am__obj"
3817    case $depmode in
3818    gcc)
3819      # This depmode causes a compiler race in universal mode.
3820      test "$am__universal" = false || continue
3821      ;;
3822    nosideeffect)
3823      # After this tag, mechanisms are not by side-effect, so they'll
3824      # only be used when explicitly requested.
3825      if test "x$enable_dependency_tracking" = xyes; then
3826	continue
3827      else
3828	break
3829      fi
3830      ;;
3831    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3832      # This compiler won't grok '-c -o', but also, the minuso test has
3833      # not run yet.  These depmodes are late enough in the game, and
3834      # so weak that their functioning should not be impacted.
3835      am__obj=conftest.${OBJEXT-o}
3836      am__minus_obj=
3837      ;;
3838    none) break ;;
3839    esac
3840    if depmode=$depmode \
3841       source=sub/conftest.c object=$am__obj \
3842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3844         >/dev/null 2>conftest.err &&
3845       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3846       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3847       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3848       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3849      # icc doesn't choke on unknown options, it will just issue warnings
3850      # or remarks (even with -Werror).  So we grep stderr for any message
3851      # that says an option was ignored or not supported.
3852      # When given -MP, icc 7.0 and 7.1 complain thusly:
3853      #   icc: Command line warning: ignoring option '-M'; no argument required
3854      # The diagnosis changed in icc 8.0:
3855      #   icc: Command line remark: option '-MP' not supported
3856      if (grep 'ignoring option' conftest.err ||
3857          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3858        am_cv_CC_dependencies_compiler_type=$depmode
3859        break
3860      fi
3861    fi
3862  done
3863
3864  cd ..
3865  rm -rf conftest.dir
3866else
3867  am_cv_CC_dependencies_compiler_type=none
3868fi
3869
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3872$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3873CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3874
3875 if
3876  test "x$enable_dependency_tracking" != xno \
3877  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3878  am__fastdepCC_TRUE=
3879  am__fastdepCC_FALSE='#'
3880else
3881  am__fastdepCC_TRUE='#'
3882  am__fastdepCC_FALSE=
3883fi
3884
3885
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3887$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3888if ${ac_cv_prog_cc_c99+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  ac_cv_prog_cc_c99=no
3892ac_save_CC=$CC
3893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895#include <stdarg.h>
3896#include <stdbool.h>
3897#include <stdlib.h>
3898#include <wchar.h>
3899#include <stdio.h>
3900
3901// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3902#define debug(...) fprintf (stderr, __VA_ARGS__)
3903#define showlist(...) puts (#__VA_ARGS__)
3904#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3905static void
3906test_varargs_macros (void)
3907{
3908  int x = 1234;
3909  int y = 5678;
3910  debug ("Flag");
3911  debug ("X = %d\n", x);
3912  showlist (The first, second, and third items.);
3913  report (x>y, "x is %d but y is %d", x, y);
3914}
3915
3916// Check long long types.
3917#define BIG64 18446744073709551615ull
3918#define BIG32 4294967295ul
3919#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3920#if !BIG_OK
3921  your preprocessor is broken;
3922#endif
3923#if BIG_OK
3924#else
3925  your preprocessor is broken;
3926#endif
3927static long long int bignum = -9223372036854775807LL;
3928static unsigned long long int ubignum = BIG64;
3929
3930struct incomplete_array
3931{
3932  int datasize;
3933  double data[];
3934};
3935
3936struct named_init {
3937  int number;
3938  const wchar_t *name;
3939  double average;
3940};
3941
3942typedef const char *ccp;
3943
3944static inline int
3945test_restrict (ccp restrict text)
3946{
3947  // See if C++-style comments work.
3948  // Iterate through items via the restricted pointer.
3949  // Also check for declarations in for loops.
3950  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3951    continue;
3952  return 0;
3953}
3954
3955// Check varargs and va_copy.
3956static void
3957test_varargs (const char *format, ...)
3958{
3959  va_list args;
3960  va_start (args, format);
3961  va_list args_copy;
3962  va_copy (args_copy, args);
3963
3964  const char *str;
3965  int number;
3966  float fnumber;
3967
3968  while (*format)
3969    {
3970      switch (*format++)
3971	{
3972	case 's': // string
3973	  str = va_arg (args_copy, const char *);
3974	  break;
3975	case 'd': // int
3976	  number = va_arg (args_copy, int);
3977	  break;
3978	case 'f': // float
3979	  fnumber = va_arg (args_copy, double);
3980	  break;
3981	default:
3982	  break;
3983	}
3984    }
3985  va_end (args_copy);
3986  va_end (args);
3987}
3988
3989int
3990main ()
3991{
3992
3993  // Check bool.
3994  _Bool success = false;
3995
3996  // Check restrict.
3997  if (test_restrict ("String literal") == 0)
3998    success = true;
3999  char *restrict newvar = "Another string";
4000
4001  // Check varargs.
4002  test_varargs ("s, d' f .", "string", 65, 34.234);
4003  test_varargs_macros ();
4004
4005  // Check flexible array members.
4006  struct incomplete_array *ia =
4007    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4008  ia->datasize = 10;
4009  for (int i = 0; i < ia->datasize; ++i)
4010    ia->data[i] = i * 1.234;
4011
4012  // Check named initializers.
4013  struct named_init ni = {
4014    .number = 34,
4015    .name = L"Test wide string",
4016    .average = 543.34343,
4017  };
4018
4019  ni.number = 58;
4020
4021  int dynamic_array[ni.number];
4022  dynamic_array[ni.number - 1] = 543;
4023
4024  // work around unused variable warnings
4025  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4026	  || dynamic_array[ni.number - 1] != 543);
4027
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4033do
4034  CC="$ac_save_CC $ac_arg"
4035  if ac_fn_c_try_compile "$LINENO"; then :
4036  ac_cv_prog_cc_c99=$ac_arg
4037fi
4038rm -f core conftest.err conftest.$ac_objext
4039  test "x$ac_cv_prog_cc_c99" != "xno" && break
4040done
4041rm -f conftest.$ac_ext
4042CC=$ac_save_CC
4043
4044fi
4045# AC_CACHE_VAL
4046case "x$ac_cv_prog_cc_c99" in
4047  x)
4048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4049$as_echo "none needed" >&6; } ;;
4050  xno)
4051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4052$as_echo "unsupported" >&6; } ;;
4053  *)
4054    CC="$CC $ac_cv_prog_cc_c99"
4055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4056$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4057esac
4058if test "x$ac_cv_prog_cc_c99" != xno; then :
4059
4060fi
4061
4062
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070$as_echo_n "checking how to run the C preprocessor... " >&6; }
4071# On Suns, sometimes $CPP names a directory.
4072if test -n "$CPP" && test -d "$CPP"; then
4073  CPP=
4074fi
4075if test -z "$CPP"; then
4076  if ${ac_cv_prog_CPP+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079      # Double quotes because CPP needs to be expanded
4080    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081    do
4082      ac_preproc_ok=false
4083for ac_c_preproc_warn_flag in '' yes
4084do
4085  # Use a header file that comes with gcc, so configuring glibc
4086  # with a fresh cross-compiler works.
4087  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088  # <limits.h> exists even on freestanding compilers.
4089  # On the NeXT, cc -E runs the code through the compiler's parser,
4090  # not just through cpp. "Syntax error" is here to catch this case.
4091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093#ifdef __STDC__
4094# include <limits.h>
4095#else
4096# include <assert.h>
4097#endif
4098		     Syntax error
4099_ACEOF
4100if ac_fn_c_try_cpp "$LINENO"; then :
4101
4102else
4103  # Broken: fails on valid input.
4104continue
4105fi
4106rm -f conftest.err conftest.i conftest.$ac_ext
4107
4108  # OK, works on sane cases.  Now check whether nonexistent headers
4109  # can be detected and how.
4110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112#include <ac_nonexistent.h>
4113_ACEOF
4114if ac_fn_c_try_cpp "$LINENO"; then :
4115  # Broken: success on invalid input.
4116continue
4117else
4118  # Passes both tests.
4119ac_preproc_ok=:
4120break
4121fi
4122rm -f conftest.err conftest.i conftest.$ac_ext
4123
4124done
4125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126rm -f conftest.i conftest.err conftest.$ac_ext
4127if $ac_preproc_ok; then :
4128  break
4129fi
4130
4131    done
4132    ac_cv_prog_CPP=$CPP
4133
4134fi
4135  CPP=$ac_cv_prog_CPP
4136else
4137  ac_cv_prog_CPP=$CPP
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140$as_echo "$CPP" >&6; }
4141ac_preproc_ok=false
4142for ac_c_preproc_warn_flag in '' yes
4143do
4144  # Use a header file that comes with gcc, so configuring glibc
4145  # with a fresh cross-compiler works.
4146  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147  # <limits.h> exists even on freestanding compilers.
4148  # On the NeXT, cc -E runs the code through the compiler's parser,
4149  # not just through cpp. "Syntax error" is here to catch this case.
4150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h.  */
4152#ifdef __STDC__
4153# include <limits.h>
4154#else
4155# include <assert.h>
4156#endif
4157		     Syntax error
4158_ACEOF
4159if ac_fn_c_try_cpp "$LINENO"; then :
4160
4161else
4162  # Broken: fails on valid input.
4163continue
4164fi
4165rm -f conftest.err conftest.i conftest.$ac_ext
4166
4167  # OK, works on sane cases.  Now check whether nonexistent headers
4168  # can be detected and how.
4169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h.  */
4171#include <ac_nonexistent.h>
4172_ACEOF
4173if ac_fn_c_try_cpp "$LINENO"; then :
4174  # Broken: success on invalid input.
4175continue
4176else
4177  # Passes both tests.
4178ac_preproc_ok=:
4179break
4180fi
4181rm -f conftest.err conftest.i conftest.$ac_ext
4182
4183done
4184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185rm -f conftest.i conftest.err conftest.$ac_ext
4186if $ac_preproc_ok; then :
4187
4188else
4189  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4192See \`config.log' for more details" "$LINENO" 5; }
4193fi
4194
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4203$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4204if ${ac_cv_path_GREP+:} false; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  if test -z "$GREP"; then
4208  ac_path_GREP_found=false
4209  # Loop through the user's path and test for each of PROGNAME-LIST
4210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212do
4213  IFS=$as_save_IFS
4214  test -z "$as_dir" && as_dir=.
4215    for ac_prog in grep ggrep; do
4216    for ac_exec_ext in '' $ac_executable_extensions; do
4217      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4218      as_fn_executable_p "$ac_path_GREP" || continue
4219# Check for GNU ac_path_GREP and select it if it is found.
4220  # Check for GNU $ac_path_GREP
4221case `"$ac_path_GREP" --version 2>&1` in
4222*GNU*)
4223  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4224*)
4225  ac_count=0
4226  $as_echo_n 0123456789 >"conftest.in"
4227  while :
4228  do
4229    cat "conftest.in" "conftest.in" >"conftest.tmp"
4230    mv "conftest.tmp" "conftest.in"
4231    cp "conftest.in" "conftest.nl"
4232    $as_echo 'GREP' >> "conftest.nl"
4233    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235    as_fn_arith $ac_count + 1 && ac_count=$as_val
4236    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4237      # Best one so far, save it but keep looking for a better one
4238      ac_cv_path_GREP="$ac_path_GREP"
4239      ac_path_GREP_max=$ac_count
4240    fi
4241    # 10*(2^10) chars as input seems more than enough
4242    test $ac_count -gt 10 && break
4243  done
4244  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245esac
4246
4247      $ac_path_GREP_found && break 3
4248    done
4249  done
4250  done
4251IFS=$as_save_IFS
4252  if test -z "$ac_cv_path_GREP"; then
4253    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254  fi
4255else
4256  ac_cv_path_GREP=$GREP
4257fi
4258
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4261$as_echo "$ac_cv_path_GREP" >&6; }
4262 GREP="$ac_cv_path_GREP"
4263
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4266$as_echo_n "checking for egrep... " >&6; }
4267if ${ac_cv_path_EGREP+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4271   then ac_cv_path_EGREP="$GREP -E"
4272   else
4273     if test -z "$EGREP"; then
4274  ac_path_EGREP_found=false
4275  # Loop through the user's path and test for each of PROGNAME-LIST
4276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281    for ac_prog in egrep; do
4282    for ac_exec_ext in '' $ac_executable_extensions; do
4283      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4284      as_fn_executable_p "$ac_path_EGREP" || continue
4285# Check for GNU ac_path_EGREP and select it if it is found.
4286  # Check for GNU $ac_path_EGREP
4287case `"$ac_path_EGREP" --version 2>&1` in
4288*GNU*)
4289  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4290*)
4291  ac_count=0
4292  $as_echo_n 0123456789 >"conftest.in"
4293  while :
4294  do
4295    cat "conftest.in" "conftest.in" >"conftest.tmp"
4296    mv "conftest.tmp" "conftest.in"
4297    cp "conftest.in" "conftest.nl"
4298    $as_echo 'EGREP' >> "conftest.nl"
4299    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301    as_fn_arith $ac_count + 1 && ac_count=$as_val
4302    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303      # Best one so far, save it but keep looking for a better one
4304      ac_cv_path_EGREP="$ac_path_EGREP"
4305      ac_path_EGREP_max=$ac_count
4306    fi
4307    # 10*(2^10) chars as input seems more than enough
4308    test $ac_count -gt 10 && break
4309  done
4310  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311esac
4312
4313      $ac_path_EGREP_found && break 3
4314    done
4315  done
4316  done
4317IFS=$as_save_IFS
4318  if test -z "$ac_cv_path_EGREP"; then
4319    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320  fi
4321else
4322  ac_cv_path_EGREP=$EGREP
4323fi
4324
4325   fi
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4328$as_echo "$ac_cv_path_EGREP" >&6; }
4329 EGREP="$ac_cv_path_EGREP"
4330
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4333$as_echo_n "checking for ANSI C header files... " >&6; }
4334if ${ac_cv_header_stdc+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h.  */
4339#include <stdlib.h>
4340#include <stdarg.h>
4341#include <string.h>
4342#include <float.h>
4343
4344int
4345main ()
4346{
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352if ac_fn_c_try_compile "$LINENO"; then :
4353  ac_cv_header_stdc=yes
4354else
4355  ac_cv_header_stdc=no
4356fi
4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358
4359if test $ac_cv_header_stdc = yes; then
4360  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363#include <string.h>
4364
4365_ACEOF
4366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367  $EGREP "memchr" >/dev/null 2>&1; then :
4368
4369else
4370  ac_cv_header_stdc=no
4371fi
4372rm -f conftest*
4373
4374fi
4375
4376if test $ac_cv_header_stdc = yes; then
4377  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380#include <stdlib.h>
4381
4382_ACEOF
4383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384  $EGREP "free" >/dev/null 2>&1; then :
4385
4386else
4387  ac_cv_header_stdc=no
4388fi
4389rm -f conftest*
4390
4391fi
4392
4393if test $ac_cv_header_stdc = yes; then
4394  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4395  if test "$cross_compiling" = yes; then :
4396  :
4397else
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400#include <ctype.h>
4401#include <stdlib.h>
4402#if ((' ' & 0x0FF) == 0x020)
4403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4405#else
4406# define ISLOWER(c) \
4407		   (('a' <= (c) && (c) <= 'i') \
4408		     || ('j' <= (c) && (c) <= 'r') \
4409		     || ('s' <= (c) && (c) <= 'z'))
4410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4411#endif
4412
4413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4414int
4415main ()
4416{
4417  int i;
4418  for (i = 0; i < 256; i++)
4419    if (XOR (islower (i), ISLOWER (i))
4420	|| toupper (i) != TOUPPER (i))
4421      return 2;
4422  return 0;
4423}
4424_ACEOF
4425if ac_fn_c_try_run "$LINENO"; then :
4426
4427else
4428  ac_cv_header_stdc=no
4429fi
4430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4431  conftest.$ac_objext conftest.beam conftest.$ac_ext
4432fi
4433
4434fi
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4437$as_echo "$ac_cv_header_stdc" >&6; }
4438if test $ac_cv_header_stdc = yes; then
4439
4440$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4441
4442fi
4443
4444# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4445for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4446		  inttypes.h stdint.h unistd.h
4447do :
4448  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4450"
4451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4452  cat >>confdefs.h <<_ACEOF
4453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454_ACEOF
4455
4456fi
4457
4458done
4459
4460
4461
4462
4463
4464
4465ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4466if test "x$ac_cv_have_decl___clang__" = xyes; then :
4467  CLANGCC="yes"
4468else
4469  CLANGCC="no"
4470fi
4471
4472ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4473if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4474  INTELCC="yes"
4475else
4476  INTELCC="no"
4477fi
4478
4479ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4480if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4481  SUNCC="yes"
4482else
4483  SUNCC="no"
4484fi
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4495	if test -n "$ac_tool_prefix"; then
4496  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499$as_echo_n "checking for $ac_word... " >&6; }
4500if ${ac_cv_path_PKG_CONFIG+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  case $PKG_CONFIG in
4504  [\\/]* | ?:[\\/]*)
4505  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4506  ;;
4507  *)
4508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513    for ac_exec_ext in '' $ac_executable_extensions; do
4514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517    break 2
4518  fi
4519done
4520  done
4521IFS=$as_save_IFS
4522
4523  ;;
4524esac
4525fi
4526PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4527if test -n "$PKG_CONFIG"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4529$as_echo "$PKG_CONFIG" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536fi
4537if test -z "$ac_cv_path_PKG_CONFIG"; then
4538  ac_pt_PKG_CONFIG=$PKG_CONFIG
4539  # Extract the first word of "pkg-config", so it can be a program name with args.
4540set dummy pkg-config; ac_word=$2
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542$as_echo_n "checking for $ac_word... " >&6; }
4543if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  case $ac_pt_PKG_CONFIG in
4547  [\\/]* | ?:[\\/]*)
4548  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4549  ;;
4550  *)
4551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563  done
4564IFS=$as_save_IFS
4565
4566  ;;
4567esac
4568fi
4569ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4570if test -n "$ac_pt_PKG_CONFIG"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4572$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578  if test "x$ac_pt_PKG_CONFIG" = x; then
4579    PKG_CONFIG=""
4580  else
4581    case $cross_compiling:$ac_tool_warned in
4582yes:)
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585ac_tool_warned=yes ;;
4586esac
4587    PKG_CONFIG=$ac_pt_PKG_CONFIG
4588  fi
4589else
4590  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4591fi
4592
4593fi
4594if test -n "$PKG_CONFIG"; then
4595	_pkg_min_version=0.9.0
4596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4597$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4598	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600$as_echo "yes" >&6; }
4601	else
4602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604		PKG_CONFIG=""
4605	fi
4606fi
4607# Make sure we can run config.sub.
4608$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4609  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4612$as_echo_n "checking build system type... " >&6; }
4613if ${ac_cv_build+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  ac_build_alias=$build_alias
4617test "x$ac_build_alias" = x &&
4618  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4619test "x$ac_build_alias" = x &&
4620  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4621ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4622  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4623
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4626$as_echo "$ac_cv_build" >&6; }
4627case $ac_cv_build in
4628*-*-*) ;;
4629*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4630esac
4631build=$ac_cv_build
4632ac_save_IFS=$IFS; IFS='-'
4633set x $ac_cv_build
4634shift
4635build_cpu=$1
4636build_vendor=$2
4637shift; shift
4638# Remember, the first character of IFS is used to create $*,
4639# except with old shells:
4640build_os=$*
4641IFS=$ac_save_IFS
4642case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4643
4644
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4646$as_echo_n "checking host system type... " >&6; }
4647if ${ac_cv_host+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test "x$host_alias" = x; then
4651  ac_cv_host=$ac_cv_build
4652else
4653  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4654    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4655fi
4656
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4659$as_echo "$ac_cv_host" >&6; }
4660case $ac_cv_host in
4661*-*-*) ;;
4662*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4663esac
4664host=$ac_cv_host
4665ac_save_IFS=$IFS; IFS='-'
4666set x $ac_cv_host
4667shift
4668host_cpu=$1
4669host_vendor=$2
4670shift; shift
4671# Remember, the first character of IFS is used to create $*,
4672# except with old shells:
4673host_os=$*
4674IFS=$ac_save_IFS
4675case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4676
4677
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4679$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4680if ${ac_cv_path_SED+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4684     for ac_i in 1 2 3 4 5 6 7; do
4685       ac_script="$ac_script$as_nl$ac_script"
4686     done
4687     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4688     { ac_script=; unset ac_script;}
4689     if test -z "$SED"; then
4690  ac_path_SED_found=false
4691  # Loop through the user's path and test for each of PROGNAME-LIST
4692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_prog in sed gsed; do
4698    for ac_exec_ext in '' $ac_executable_extensions; do
4699      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4700      as_fn_executable_p "$ac_path_SED" || continue
4701# Check for GNU ac_path_SED and select it if it is found.
4702  # Check for GNU $ac_path_SED
4703case `"$ac_path_SED" --version 2>&1` in
4704*GNU*)
4705  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4706*)
4707  ac_count=0
4708  $as_echo_n 0123456789 >"conftest.in"
4709  while :
4710  do
4711    cat "conftest.in" "conftest.in" >"conftest.tmp"
4712    mv "conftest.tmp" "conftest.in"
4713    cp "conftest.in" "conftest.nl"
4714    $as_echo '' >> "conftest.nl"
4715    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717    as_fn_arith $ac_count + 1 && ac_count=$as_val
4718    if test $ac_count -gt ${ac_path_SED_max-0}; then
4719      # Best one so far, save it but keep looking for a better one
4720      ac_cv_path_SED="$ac_path_SED"
4721      ac_path_SED_max=$ac_count
4722    fi
4723    # 10*(2^10) chars as input seems more than enough
4724    test $ac_count -gt 10 && break
4725  done
4726  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727esac
4728
4729      $ac_path_SED_found && break 3
4730    done
4731  done
4732  done
4733IFS=$as_save_IFS
4734  if test -z "$ac_cv_path_SED"; then
4735    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4736  fi
4737else
4738  ac_cv_path_SED=$SED
4739fi
4740
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4743$as_echo "$ac_cv_path_SED" >&6; }
4744 SED="$ac_cv_path_SED"
4745  rm -f conftest.sed
4746
4747
4748
4749
4750
4751
4752# Check whether --enable-selective-werror was given.
4753if test "${enable_selective_werror+set}" = set; then :
4754  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4755else
4756  SELECTIVE_WERROR=yes
4757fi
4758
4759
4760
4761
4762
4763# -v is too short to test reliably with XORG_TESTSET_CFLAG
4764if test "x$SUNCC" = "xyes"; then
4765    BASE_CFLAGS="-v"
4766else
4767    BASE_CFLAGS=""
4768fi
4769
4770# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784xorg_testset_save_CFLAGS="$CFLAGS"
4785
4786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795int i;
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798  xorg_cv_cc_flag_unknown_warning_option=yes
4799else
4800  xorg_cv_cc_flag_unknown_warning_option=no
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4807	CFLAGS="$xorg_testset_save_CFLAGS"
4808fi
4809
4810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4813	fi
4814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822int i;
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"; then :
4825  xorg_cv_cc_flag_unused_command_line_argument=yes
4826else
4827  xorg_cv_cc_flag_unused_command_line_argument=no
4828fi
4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4834	CFLAGS="$xorg_testset_save_CFLAGS"
4835fi
4836
4837found="no"
4838
4839	if test $found = "no" ; then
4840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4842		fi
4843
4844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4846		fi
4847
4848		CFLAGS="$CFLAGS -Wall"
4849
4850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4851$as_echo_n "checking if $CC supports -Wall... " >&6; }
4852		cacheid=xorg_cv_cc_flag__Wall
4853		if eval \${$cacheid+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858int i;
4859int
4860main ()
4861{
4862
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867if ac_fn_c_try_link "$LINENO"; then :
4868  eval $cacheid=yes
4869else
4870  eval $cacheid=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext \
4873    conftest$ac_exeext conftest.$ac_ext
4874fi
4875
4876
4877		CFLAGS="$xorg_testset_save_CFLAGS"
4878
4879		eval supported=\$$cacheid
4880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4881$as_echo "$supported" >&6; }
4882		if test "$supported" = "yes" ; then
4883			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4884			found="yes"
4885		fi
4886	fi
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902xorg_testset_save_CFLAGS="$CFLAGS"
4903
4904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913int i;
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916  xorg_cv_cc_flag_unknown_warning_option=yes
4917else
4918  xorg_cv_cc_flag_unknown_warning_option=no
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4925	CFLAGS="$xorg_testset_save_CFLAGS"
4926fi
4927
4928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931	fi
4932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940int i;
4941_ACEOF
4942if ac_fn_c_try_compile "$LINENO"; then :
4943  xorg_cv_cc_flag_unused_command_line_argument=yes
4944else
4945  xorg_cv_cc_flag_unused_command_line_argument=no
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4952	CFLAGS="$xorg_testset_save_CFLAGS"
4953fi
4954
4955found="no"
4956
4957	if test $found = "no" ; then
4958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960		fi
4961
4962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4964		fi
4965
4966		CFLAGS="$CFLAGS -Wpointer-arith"
4967
4968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4969$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4970		cacheid=xorg_cv_cc_flag__Wpointer_arith
4971		if eval \${$cacheid+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976int i;
4977int
4978main ()
4979{
4980
4981  ;
4982  return 0;
4983}
4984_ACEOF
4985if ac_fn_c_try_link "$LINENO"; then :
4986  eval $cacheid=yes
4987else
4988  eval $cacheid=no
4989fi
4990rm -f core conftest.err conftest.$ac_objext \
4991    conftest$ac_exeext conftest.$ac_ext
4992fi
4993
4994
4995		CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997		eval supported=\$$cacheid
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999$as_echo "$supported" >&6; }
5000		if test "$supported" = "yes" ; then
5001			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5002			found="yes"
5003		fi
5004	fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020xorg_testset_save_CFLAGS="$CFLAGS"
5021
5022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h.  */
5031int i;
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  xorg_cv_cc_flag_unknown_warning_option=yes
5035else
5036  xorg_cv_cc_flag_unknown_warning_option=no
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5043	CFLAGS="$xorg_testset_save_CFLAGS"
5044fi
5045
5046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	fi
5050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059_ACEOF
5060if ac_fn_c_try_compile "$LINENO"; then :
5061  xorg_cv_cc_flag_unused_command_line_argument=yes
5062else
5063  xorg_cv_cc_flag_unused_command_line_argument=no
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5070	CFLAGS="$xorg_testset_save_CFLAGS"
5071fi
5072
5073found="no"
5074
5075	if test $found = "no" ; then
5076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5078		fi
5079
5080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5082		fi
5083
5084		CFLAGS="$CFLAGS -Wmissing-declarations"
5085
5086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5087$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5088		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5089		if eval \${$cacheid+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h.  */
5094int i;
5095int
5096main ()
5097{
5098
5099  ;
5100  return 0;
5101}
5102_ACEOF
5103if ac_fn_c_try_link "$LINENO"; then :
5104  eval $cacheid=yes
5105else
5106  eval $cacheid=no
5107fi
5108rm -f core conftest.err conftest.$ac_objext \
5109    conftest$ac_exeext conftest.$ac_ext
5110fi
5111
5112
5113		CFLAGS="$xorg_testset_save_CFLAGS"
5114
5115		eval supported=\$$cacheid
5116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5117$as_echo "$supported" >&6; }
5118		if test "$supported" = "yes" ; then
5119			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5120			found="yes"
5121		fi
5122	fi
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138xorg_testset_save_CFLAGS="$CFLAGS"
5139
5140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149int i;
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152  xorg_cv_cc_flag_unknown_warning_option=yes
5153else
5154  xorg_cv_cc_flag_unknown_warning_option=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5161	CFLAGS="$xorg_testset_save_CFLAGS"
5162fi
5163
5164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167	fi
5168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176int i;
5177_ACEOF
5178if ac_fn_c_try_compile "$LINENO"; then :
5179  xorg_cv_cc_flag_unused_command_line_argument=yes
5180else
5181  xorg_cv_cc_flag_unused_command_line_argument=no
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5188	CFLAGS="$xorg_testset_save_CFLAGS"
5189fi
5190
5191found="no"
5192
5193	if test $found = "no" ; then
5194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196		fi
5197
5198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5200		fi
5201
5202		CFLAGS="$CFLAGS -Wformat=2"
5203
5204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5205$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5206		cacheid=xorg_cv_cc_flag__Wformat_2
5207		if eval \${$cacheid+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213int
5214main ()
5215{
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221if ac_fn_c_try_link "$LINENO"; then :
5222  eval $cacheid=yes
5223else
5224  eval $cacheid=no
5225fi
5226rm -f core conftest.err conftest.$ac_objext \
5227    conftest$ac_exeext conftest.$ac_ext
5228fi
5229
5230
5231		CFLAGS="$xorg_testset_save_CFLAGS"
5232
5233		eval supported=\$$cacheid
5234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5235$as_echo "$supported" >&6; }
5236		if test "$supported" = "yes" ; then
5237			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5238			found="yes"
5239		fi
5240	fi
5241
5242	if test $found = "no" ; then
5243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245		fi
5246
5247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249		fi
5250
5251		CFLAGS="$CFLAGS -Wformat"
5252
5253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5254$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5255		cacheid=xorg_cv_cc_flag__Wformat
5256		if eval \${$cacheid+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h.  */
5261int i;
5262int
5263main ()
5264{
5265
5266  ;
5267  return 0;
5268}
5269_ACEOF
5270if ac_fn_c_try_link "$LINENO"; then :
5271  eval $cacheid=yes
5272else
5273  eval $cacheid=no
5274fi
5275rm -f core conftest.err conftest.$ac_objext \
5276    conftest$ac_exeext conftest.$ac_ext
5277fi
5278
5279
5280		CFLAGS="$xorg_testset_save_CFLAGS"
5281
5282		eval supported=\$$cacheid
5283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5284$as_echo "$supported" >&6; }
5285		if test "$supported" = "yes" ; then
5286			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5287			found="yes"
5288		fi
5289	fi
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307xorg_testset_save_CFLAGS="$CFLAGS"
5308
5309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321  xorg_cv_cc_flag_unknown_warning_option=yes
5322else
5323  xorg_cv_cc_flag_unknown_warning_option=no
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5330	CFLAGS="$xorg_testset_save_CFLAGS"
5331fi
5332
5333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336	fi
5337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345int i;
5346_ACEOF
5347if ac_fn_c_try_compile "$LINENO"; then :
5348  xorg_cv_cc_flag_unused_command_line_argument=yes
5349else
5350  xorg_cv_cc_flag_unused_command_line_argument=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5357	CFLAGS="$xorg_testset_save_CFLAGS"
5358fi
5359
5360found="no"
5361
5362	if test $found = "no" ; then
5363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365		fi
5366
5367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5369		fi
5370
5371		CFLAGS="$CFLAGS -Wstrict-prototypes"
5372
5373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5374$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5375		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5376		if eval \${$cacheid+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381int i;
5382int
5383main ()
5384{
5385
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_link "$LINENO"; then :
5391  eval $cacheid=yes
5392else
5393  eval $cacheid=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext \
5396    conftest$ac_exeext conftest.$ac_ext
5397fi
5398
5399
5400		CFLAGS="$xorg_testset_save_CFLAGS"
5401
5402		eval supported=\$$cacheid
5403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5404$as_echo "$supported" >&6; }
5405		if test "$supported" = "yes" ; then
5406			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5407			found="yes"
5408		fi
5409	fi
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425xorg_testset_save_CFLAGS="$CFLAGS"
5426
5427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439  xorg_cv_cc_flag_unknown_warning_option=yes
5440else
5441  xorg_cv_cc_flag_unknown_warning_option=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5448	CFLAGS="$xorg_testset_save_CFLAGS"
5449fi
5450
5451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	fi
5455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"; then :
5466  xorg_cv_cc_flag_unused_command_line_argument=yes
5467else
5468  xorg_cv_cc_flag_unused_command_line_argument=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5475	CFLAGS="$xorg_testset_save_CFLAGS"
5476fi
5477
5478found="no"
5479
5480	if test $found = "no" ; then
5481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483		fi
5484
5485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5487		fi
5488
5489		CFLAGS="$CFLAGS -Wmissing-prototypes"
5490
5491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5492$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5493		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5494		if eval \${$cacheid+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500int
5501main ()
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_link "$LINENO"; then :
5509  eval $cacheid=yes
5510else
5511  eval $cacheid=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext \
5514    conftest$ac_exeext conftest.$ac_ext
5515fi
5516
5517
5518		CFLAGS="$xorg_testset_save_CFLAGS"
5519
5520		eval supported=\$$cacheid
5521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5522$as_echo "$supported" >&6; }
5523		if test "$supported" = "yes" ; then
5524			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5525			found="yes"
5526		fi
5527	fi
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  xorg_cv_cc_flag_unknown_warning_option=yes
5558else
5559  xorg_cv_cc_flag_unknown_warning_option=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	fi
5573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581int i;
5582_ACEOF
5583if ac_fn_c_try_compile "$LINENO"; then :
5584  xorg_cv_cc_flag_unused_command_line_argument=yes
5585else
5586  xorg_cv_cc_flag_unused_command_line_argument=no
5587fi
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5593	CFLAGS="$xorg_testset_save_CFLAGS"
5594fi
5595
5596found="no"
5597
5598	if test $found = "no" ; then
5599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601		fi
5602
5603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5605		fi
5606
5607		CFLAGS="$CFLAGS -Wnested-externs"
5608
5609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5610$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5611		cacheid=xorg_cv_cc_flag__Wnested_externs
5612		if eval \${$cacheid+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618int
5619main ()
5620{
5621
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_link "$LINENO"; then :
5627  eval $cacheid=yes
5628else
5629  eval $cacheid=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext \
5632    conftest$ac_exeext conftest.$ac_ext
5633fi
5634
5635
5636		CFLAGS="$xorg_testset_save_CFLAGS"
5637
5638		eval supported=\$$cacheid
5639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5640$as_echo "$supported" >&6; }
5641		if test "$supported" = "yes" ; then
5642			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5643			found="yes"
5644		fi
5645	fi
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661xorg_testset_save_CFLAGS="$CFLAGS"
5662
5663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672int i;
5673_ACEOF
5674if ac_fn_c_try_compile "$LINENO"; then :
5675  xorg_cv_cc_flag_unknown_warning_option=yes
5676else
5677  xorg_cv_cc_flag_unknown_warning_option=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	fi
5691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699int i;
5700_ACEOF
5701if ac_fn_c_try_compile "$LINENO"; then :
5702  xorg_cv_cc_flag_unused_command_line_argument=yes
5703else
5704  xorg_cv_cc_flag_unused_command_line_argument=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5711	CFLAGS="$xorg_testset_save_CFLAGS"
5712fi
5713
5714found="no"
5715
5716	if test $found = "no" ; then
5717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719		fi
5720
5721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5723		fi
5724
5725		CFLAGS="$CFLAGS -Wbad-function-cast"
5726
5727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5728$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5729		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5730		if eval \${$cacheid+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735int i;
5736int
5737main ()
5738{
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744if ac_fn_c_try_link "$LINENO"; then :
5745  eval $cacheid=yes
5746else
5747  eval $cacheid=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext conftest.$ac_ext
5751fi
5752
5753
5754		CFLAGS="$xorg_testset_save_CFLAGS"
5755
5756		eval supported=\$$cacheid
5757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5758$as_echo "$supported" >&6; }
5759		if test "$supported" = "yes" ; then
5760			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5761			found="yes"
5762		fi
5763	fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779xorg_testset_save_CFLAGS="$CFLAGS"
5780
5781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793  xorg_cv_cc_flag_unknown_warning_option=yes
5794else
5795  xorg_cv_cc_flag_unknown_warning_option=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808	fi
5809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817int i;
5818_ACEOF
5819if ac_fn_c_try_compile "$LINENO"; then :
5820  xorg_cv_cc_flag_unused_command_line_argument=yes
5821else
5822  xorg_cv_cc_flag_unused_command_line_argument=no
5823fi
5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5829	CFLAGS="$xorg_testset_save_CFLAGS"
5830fi
5831
5832found="no"
5833
5834	if test $found = "no" ; then
5835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837		fi
5838
5839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5841		fi
5842
5843		CFLAGS="$CFLAGS -Wold-style-definition"
5844
5845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5846$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5847		cacheid=xorg_cv_cc_flag__Wold_style_definition
5848		if eval \${$cacheid+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h.  */
5853int i;
5854int
5855main ()
5856{
5857
5858  ;
5859  return 0;
5860}
5861_ACEOF
5862if ac_fn_c_try_link "$LINENO"; then :
5863  eval $cacheid=yes
5864else
5865  eval $cacheid=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext \
5868    conftest$ac_exeext conftest.$ac_ext
5869fi
5870
5871
5872		CFLAGS="$xorg_testset_save_CFLAGS"
5873
5874		eval supported=\$$cacheid
5875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5876$as_echo "$supported" >&6; }
5877		if test "$supported" = "yes" ; then
5878			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5879			found="yes"
5880		fi
5881	fi
5882
5883	if test $found = "no" ; then
5884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886		fi
5887
5888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890		fi
5891
5892		CFLAGS="$CFLAGS -fd"
5893
5894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5895$as_echo_n "checking if $CC supports -fd... " >&6; }
5896		cacheid=xorg_cv_cc_flag__fd
5897		if eval \${$cacheid+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902int i;
5903int
5904main ()
5905{
5906
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911if ac_fn_c_try_link "$LINENO"; then :
5912  eval $cacheid=yes
5913else
5914  eval $cacheid=no
5915fi
5916rm -f core conftest.err conftest.$ac_objext \
5917    conftest$ac_exeext conftest.$ac_ext
5918fi
5919
5920
5921		CFLAGS="$xorg_testset_save_CFLAGS"
5922
5923		eval supported=\$$cacheid
5924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5925$as_echo "$supported" >&6; }
5926		if test "$supported" = "yes" ; then
5927			BASE_CFLAGS="$BASE_CFLAGS -fd"
5928			found="yes"
5929		fi
5930	fi
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946xorg_testset_save_CFLAGS="$CFLAGS"
5947
5948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957int i;
5958_ACEOF
5959if ac_fn_c_try_compile "$LINENO"; then :
5960  xorg_cv_cc_flag_unknown_warning_option=yes
5961else
5962  xorg_cv_cc_flag_unknown_warning_option=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975	fi
5976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984int i;
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"; then :
5987  xorg_cv_cc_flag_unused_command_line_argument=yes
5988else
5989  xorg_cv_cc_flag_unused_command_line_argument=no
5990fi
5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5996	CFLAGS="$xorg_testset_save_CFLAGS"
5997fi
5998
5999found="no"
6000
6001	if test $found = "no" ; then
6002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004		fi
6005
6006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008		fi
6009
6010		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6011
6012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6013$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6014		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6015		if eval \${$cacheid+:} false; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020int i;
6021int
6022main ()
6023{
6024
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_link "$LINENO"; then :
6030  eval $cacheid=yes
6031else
6032  eval $cacheid=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext \
6035    conftest$ac_exeext conftest.$ac_ext
6036fi
6037
6038
6039		CFLAGS="$xorg_testset_save_CFLAGS"
6040
6041		eval supported=\$$cacheid
6042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6043$as_echo "$supported" >&6; }
6044		if test "$supported" = "yes" ; then
6045			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6046			found="yes"
6047		fi
6048	fi
6049
6050
6051
6052
6053
6054# This chunk adds additional warnings that could catch undesired effects.
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068xorg_testset_save_CFLAGS="$CFLAGS"
6069
6070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079int i;
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"; then :
6082  xorg_cv_cc_flag_unknown_warning_option=yes
6083else
6084  xorg_cv_cc_flag_unknown_warning_option=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087fi
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6091	CFLAGS="$xorg_testset_save_CFLAGS"
6092fi
6093
6094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	fi
6098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106int i;
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"; then :
6109  xorg_cv_cc_flag_unused_command_line_argument=yes
6110else
6111  xorg_cv_cc_flag_unused_command_line_argument=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121found="no"
6122
6123	if test $found = "no" ; then
6124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126		fi
6127
6128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130		fi
6131
6132		CFLAGS="$CFLAGS -Wunused"
6133
6134		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6135$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6136		cacheid=xorg_cv_cc_flag__Wunused
6137		if eval \${$cacheid+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143int
6144main ()
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_link "$LINENO"; then :
6152  eval $cacheid=yes
6153else
6154  eval $cacheid=no
6155fi
6156rm -f core conftest.err conftest.$ac_objext \
6157    conftest$ac_exeext conftest.$ac_ext
6158fi
6159
6160
6161		CFLAGS="$xorg_testset_save_CFLAGS"
6162
6163		eval supported=\$$cacheid
6164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6165$as_echo "$supported" >&6; }
6166		if test "$supported" = "yes" ; then
6167			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6168			found="yes"
6169		fi
6170	fi
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186xorg_testset_save_CFLAGS="$CFLAGS"
6187
6188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197int i;
6198_ACEOF
6199if ac_fn_c_try_compile "$LINENO"; then :
6200  xorg_cv_cc_flag_unknown_warning_option=yes
6201else
6202  xorg_cv_cc_flag_unknown_warning_option=no
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205fi
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6209	CFLAGS="$xorg_testset_save_CFLAGS"
6210fi
6211
6212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215	fi
6216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6220  $as_echo_n "(cached) " >&6
6221else
6222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"; then :
6227  xorg_cv_cc_flag_unused_command_line_argument=yes
6228else
6229  xorg_cv_cc_flag_unused_command_line_argument=no
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6236	CFLAGS="$xorg_testset_save_CFLAGS"
6237fi
6238
6239found="no"
6240
6241	if test $found = "no" ; then
6242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244		fi
6245
6246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248		fi
6249
6250		CFLAGS="$CFLAGS -Wuninitialized"
6251
6252		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6253$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6254		cacheid=xorg_cv_cc_flag__Wuninitialized
6255		if eval \${$cacheid+:} false; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260int i;
6261int
6262main ()
6263{
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_link "$LINENO"; then :
6270  eval $cacheid=yes
6271else
6272  eval $cacheid=no
6273fi
6274rm -f core conftest.err conftest.$ac_objext \
6275    conftest$ac_exeext conftest.$ac_ext
6276fi
6277
6278
6279		CFLAGS="$xorg_testset_save_CFLAGS"
6280
6281		eval supported=\$$cacheid
6282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6283$as_echo "$supported" >&6; }
6284		if test "$supported" = "yes" ; then
6285			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6286			found="yes"
6287		fi
6288	fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304xorg_testset_save_CFLAGS="$CFLAGS"
6305
6306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315int i;
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  xorg_cv_cc_flag_unknown_warning_option=yes
6319else
6320  xorg_cv_cc_flag_unknown_warning_option=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6327	CFLAGS="$xorg_testset_save_CFLAGS"
6328fi
6329
6330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333	fi
6334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342int i;
6343_ACEOF
6344if ac_fn_c_try_compile "$LINENO"; then :
6345  xorg_cv_cc_flag_unused_command_line_argument=yes
6346else
6347  xorg_cv_cc_flag_unused_command_line_argument=no
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6354	CFLAGS="$xorg_testset_save_CFLAGS"
6355fi
6356
6357found="no"
6358
6359	if test $found = "no" ; then
6360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362		fi
6363
6364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366		fi
6367
6368		CFLAGS="$CFLAGS -Wshadow"
6369
6370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6371$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6372		cacheid=xorg_cv_cc_flag__Wshadow
6373		if eval \${$cacheid+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378int i;
6379int
6380main ()
6381{
6382
6383  ;
6384  return 0;
6385}
6386_ACEOF
6387if ac_fn_c_try_link "$LINENO"; then :
6388  eval $cacheid=yes
6389else
6390  eval $cacheid=no
6391fi
6392rm -f core conftest.err conftest.$ac_objext \
6393    conftest$ac_exeext conftest.$ac_ext
6394fi
6395
6396
6397		CFLAGS="$xorg_testset_save_CFLAGS"
6398
6399		eval supported=\$$cacheid
6400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6401$as_echo "$supported" >&6; }
6402		if test "$supported" = "yes" ; then
6403			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6404			found="yes"
6405		fi
6406	fi
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422xorg_testset_save_CFLAGS="$CFLAGS"
6423
6424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433int i;
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"; then :
6436  xorg_cv_cc_flag_unknown_warning_option=yes
6437else
6438  xorg_cv_cc_flag_unknown_warning_option=no
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6445	CFLAGS="$xorg_testset_save_CFLAGS"
6446fi
6447
6448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	fi
6452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460int i;
6461_ACEOF
6462if ac_fn_c_try_compile "$LINENO"; then :
6463  xorg_cv_cc_flag_unused_command_line_argument=yes
6464else
6465  xorg_cv_cc_flag_unused_command_line_argument=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6472	CFLAGS="$xorg_testset_save_CFLAGS"
6473fi
6474
6475found="no"
6476
6477	if test $found = "no" ; then
6478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480		fi
6481
6482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484		fi
6485
6486		CFLAGS="$CFLAGS -Wmissing-noreturn"
6487
6488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6489$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6490		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6491		if eval \${$cacheid+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496int i;
6497int
6498main ()
6499{
6500
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505if ac_fn_c_try_link "$LINENO"; then :
6506  eval $cacheid=yes
6507else
6508  eval $cacheid=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext \
6511    conftest$ac_exeext conftest.$ac_ext
6512fi
6513
6514
6515		CFLAGS="$xorg_testset_save_CFLAGS"
6516
6517		eval supported=\$$cacheid
6518		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6519$as_echo "$supported" >&6; }
6520		if test "$supported" = "yes" ; then
6521			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6522			found="yes"
6523		fi
6524	fi
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540xorg_testset_save_CFLAGS="$CFLAGS"
6541
6542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h.  */
6551int i;
6552_ACEOF
6553if ac_fn_c_try_compile "$LINENO"; then :
6554  xorg_cv_cc_flag_unknown_warning_option=yes
6555else
6556  xorg_cv_cc_flag_unknown_warning_option=no
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6563	CFLAGS="$xorg_testset_save_CFLAGS"
6564fi
6565
6566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	fi
6570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578int i;
6579_ACEOF
6580if ac_fn_c_try_compile "$LINENO"; then :
6581  xorg_cv_cc_flag_unused_command_line_argument=yes
6582else
6583  xorg_cv_cc_flag_unused_command_line_argument=no
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586fi
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6590	CFLAGS="$xorg_testset_save_CFLAGS"
6591fi
6592
6593found="no"
6594
6595	if test $found = "no" ; then
6596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598		fi
6599
6600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6602		fi
6603
6604		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6605
6606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6607$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6608		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6609		if eval \${$cacheid+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614int i;
6615int
6616main ()
6617{
6618
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_link "$LINENO"; then :
6624  eval $cacheid=yes
6625else
6626  eval $cacheid=no
6627fi
6628rm -f core conftest.err conftest.$ac_objext \
6629    conftest$ac_exeext conftest.$ac_ext
6630fi
6631
6632
6633		CFLAGS="$xorg_testset_save_CFLAGS"
6634
6635		eval supported=\$$cacheid
6636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6637$as_echo "$supported" >&6; }
6638		if test "$supported" = "yes" ; then
6639			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6640			found="yes"
6641		fi
6642	fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658xorg_testset_save_CFLAGS="$CFLAGS"
6659
6660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670_ACEOF
6671if ac_fn_c_try_compile "$LINENO"; then :
6672  xorg_cv_cc_flag_unknown_warning_option=yes
6673else
6674  xorg_cv_cc_flag_unknown_warning_option=no
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677fi
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6681	CFLAGS="$xorg_testset_save_CFLAGS"
6682fi
6683
6684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687	fi
6688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696int i;
6697_ACEOF
6698if ac_fn_c_try_compile "$LINENO"; then :
6699  xorg_cv_cc_flag_unused_command_line_argument=yes
6700else
6701  xorg_cv_cc_flag_unused_command_line_argument=no
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6708	CFLAGS="$xorg_testset_save_CFLAGS"
6709fi
6710
6711found="no"
6712
6713	if test $found = "no" ; then
6714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716		fi
6717
6718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720		fi
6721
6722		CFLAGS="$CFLAGS -Wredundant-decls"
6723
6724		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6725$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6726		cacheid=xorg_cv_cc_flag__Wredundant_decls
6727		if eval \${$cacheid+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732int i;
6733int
6734main ()
6735{
6736
6737  ;
6738  return 0;
6739}
6740_ACEOF
6741if ac_fn_c_try_link "$LINENO"; then :
6742  eval $cacheid=yes
6743else
6744  eval $cacheid=no
6745fi
6746rm -f core conftest.err conftest.$ac_objext \
6747    conftest$ac_exeext conftest.$ac_ext
6748fi
6749
6750
6751		CFLAGS="$xorg_testset_save_CFLAGS"
6752
6753		eval supported=\$$cacheid
6754		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6755$as_echo "$supported" >&6; }
6756		if test "$supported" = "yes" ; then
6757			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6758			found="yes"
6759		fi
6760	fi
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776xorg_testset_save_CFLAGS="$CFLAGS"
6777
6778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788_ACEOF
6789if ac_fn_c_try_compile "$LINENO"; then :
6790  xorg_cv_cc_flag_unknown_warning_option=yes
6791else
6792  xorg_cv_cc_flag_unknown_warning_option=no
6793fi
6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6799	CFLAGS="$xorg_testset_save_CFLAGS"
6800fi
6801
6802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	fi
6806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814int i;
6815_ACEOF
6816if ac_fn_c_try_compile "$LINENO"; then :
6817  xorg_cv_cc_flag_unused_command_line_argument=yes
6818else
6819  xorg_cv_cc_flag_unused_command_line_argument=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822fi
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826	CFLAGS="$xorg_testset_save_CFLAGS"
6827fi
6828
6829found="no"
6830
6831	if test $found = "no" ; then
6832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834		fi
6835
6836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838		fi
6839
6840		CFLAGS="$CFLAGS -Wlogical-op"
6841
6842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6843$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6844		cacheid=xorg_cv_cc_flag__Wlogical_op
6845		if eval \${$cacheid+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851int
6852main ()
6853{
6854
6855  ;
6856  return 0;
6857}
6858_ACEOF
6859if ac_fn_c_try_link "$LINENO"; then :
6860  eval $cacheid=yes
6861else
6862  eval $cacheid=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext \
6865    conftest$ac_exeext conftest.$ac_ext
6866fi
6867
6868
6869		CFLAGS="$xorg_testset_save_CFLAGS"
6870
6871		eval supported=\$$cacheid
6872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873$as_echo "$supported" >&6; }
6874		if test "$supported" = "yes" ; then
6875			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6876			found="yes"
6877		fi
6878	fi
6879
6880
6881
6882# These are currently disabled because they are noisy.  They will be enabled
6883# in the future once the codebase is sufficiently modernized to silence
6884# them.  For now, I don't want them to drown out the other warnings.
6885# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6886# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6887# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6888
6889# Turn some warnings into errors, so we don't accidently get successful builds
6890# when there are problems that should be fixed.
6891
6892if test "x$SELECTIVE_WERROR" = "xyes" ; then
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906xorg_testset_save_CFLAGS="$CFLAGS"
6907
6908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918_ACEOF
6919if ac_fn_c_try_compile "$LINENO"; then :
6920  xorg_cv_cc_flag_unknown_warning_option=yes
6921else
6922  xorg_cv_cc_flag_unknown_warning_option=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925fi
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6929	CFLAGS="$xorg_testset_save_CFLAGS"
6930fi
6931
6932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935	fi
6936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944int i;
6945_ACEOF
6946if ac_fn_c_try_compile "$LINENO"; then :
6947  xorg_cv_cc_flag_unused_command_line_argument=yes
6948else
6949  xorg_cv_cc_flag_unused_command_line_argument=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6956	CFLAGS="$xorg_testset_save_CFLAGS"
6957fi
6958
6959found="no"
6960
6961	if test $found = "no" ; then
6962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964		fi
6965
6966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968		fi
6969
6970		CFLAGS="$CFLAGS -Werror=implicit"
6971
6972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6973$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6974		cacheid=xorg_cv_cc_flag__Werror_implicit
6975		if eval \${$cacheid+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981int
6982main ()
6983{
6984
6985  ;
6986  return 0;
6987}
6988_ACEOF
6989if ac_fn_c_try_link "$LINENO"; then :
6990  eval $cacheid=yes
6991else
6992  eval $cacheid=no
6993fi
6994rm -f core conftest.err conftest.$ac_objext \
6995    conftest$ac_exeext conftest.$ac_ext
6996fi
6997
6998
6999		CFLAGS="$xorg_testset_save_CFLAGS"
7000
7001		eval supported=\$$cacheid
7002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7003$as_echo "$supported" >&6; }
7004		if test "$supported" = "yes" ; then
7005			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7006			found="yes"
7007		fi
7008	fi
7009
7010	if test $found = "no" ; then
7011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013		fi
7014
7015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017		fi
7018
7019		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7020
7021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7022$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7023		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7024		if eval \${$cacheid+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h.  */
7029int i;
7030int
7031main ()
7032{
7033
7034  ;
7035  return 0;
7036}
7037_ACEOF
7038if ac_fn_c_try_link "$LINENO"; then :
7039  eval $cacheid=yes
7040else
7041  eval $cacheid=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext \
7044    conftest$ac_exeext conftest.$ac_ext
7045fi
7046
7047
7048		CFLAGS="$xorg_testset_save_CFLAGS"
7049
7050		eval supported=\$$cacheid
7051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7052$as_echo "$supported" >&6; }
7053		if test "$supported" = "yes" ; then
7054			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7055			found="yes"
7056		fi
7057	fi
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073xorg_testset_save_CFLAGS="$CFLAGS"
7074
7075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7080  $as_echo_n "(cached) " >&6
7081else
7082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083/* end confdefs.h.  */
7084int i;
7085_ACEOF
7086if ac_fn_c_try_compile "$LINENO"; then :
7087  xorg_cv_cc_flag_unknown_warning_option=yes
7088else
7089  xorg_cv_cc_flag_unknown_warning_option=no
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092fi
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7096	CFLAGS="$xorg_testset_save_CFLAGS"
7097fi
7098
7099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102	fi
7103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111int i;
7112_ACEOF
7113if ac_fn_c_try_compile "$LINENO"; then :
7114  xorg_cv_cc_flag_unused_command_line_argument=yes
7115else
7116  xorg_cv_cc_flag_unused_command_line_argument=no
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119fi
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7123	CFLAGS="$xorg_testset_save_CFLAGS"
7124fi
7125
7126found="no"
7127
7128	if test $found = "no" ; then
7129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131		fi
7132
7133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135		fi
7136
7137		CFLAGS="$CFLAGS -Werror=nonnull"
7138
7139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7140$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7141		cacheid=xorg_cv_cc_flag__Werror_nonnull
7142		if eval \${$cacheid+:} false; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147int i;
7148int
7149main ()
7150{
7151
7152  ;
7153  return 0;
7154}
7155_ACEOF
7156if ac_fn_c_try_link "$LINENO"; then :
7157  eval $cacheid=yes
7158else
7159  eval $cacheid=no
7160fi
7161rm -f core conftest.err conftest.$ac_objext \
7162    conftest$ac_exeext conftest.$ac_ext
7163fi
7164
7165
7166		CFLAGS="$xorg_testset_save_CFLAGS"
7167
7168		eval supported=\$$cacheid
7169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7170$as_echo "$supported" >&6; }
7171		if test "$supported" = "yes" ; then
7172			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7173			found="yes"
7174		fi
7175	fi
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191xorg_testset_save_CFLAGS="$CFLAGS"
7192
7193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202int i;
7203_ACEOF
7204if ac_fn_c_try_compile "$LINENO"; then :
7205  xorg_cv_cc_flag_unknown_warning_option=yes
7206else
7207  xorg_cv_cc_flag_unknown_warning_option=no
7208fi
7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7214	CFLAGS="$xorg_testset_save_CFLAGS"
7215fi
7216
7217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220	fi
7221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229int i;
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  xorg_cv_cc_flag_unused_command_line_argument=yes
7233else
7234  xorg_cv_cc_flag_unused_command_line_argument=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7241	CFLAGS="$xorg_testset_save_CFLAGS"
7242fi
7243
7244found="no"
7245
7246	if test $found = "no" ; then
7247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249		fi
7250
7251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253		fi
7254
7255		CFLAGS="$CFLAGS -Werror=init-self"
7256
7257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7258$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7259		cacheid=xorg_cv_cc_flag__Werror_init_self
7260		if eval \${$cacheid+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264/* end confdefs.h.  */
7265int i;
7266int
7267main ()
7268{
7269
7270  ;
7271  return 0;
7272}
7273_ACEOF
7274if ac_fn_c_try_link "$LINENO"; then :
7275  eval $cacheid=yes
7276else
7277  eval $cacheid=no
7278fi
7279rm -f core conftest.err conftest.$ac_objext \
7280    conftest$ac_exeext conftest.$ac_ext
7281fi
7282
7283
7284		CFLAGS="$xorg_testset_save_CFLAGS"
7285
7286		eval supported=\$$cacheid
7287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7288$as_echo "$supported" >&6; }
7289		if test "$supported" = "yes" ; then
7290			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7291			found="yes"
7292		fi
7293	fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309xorg_testset_save_CFLAGS="$CFLAGS"
7310
7311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"; then :
7323  xorg_cv_cc_flag_unknown_warning_option=yes
7324else
7325  xorg_cv_cc_flag_unknown_warning_option=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7332	CFLAGS="$xorg_testset_save_CFLAGS"
7333fi
7334
7335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	fi
7339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348_ACEOF
7349if ac_fn_c_try_compile "$LINENO"; then :
7350  xorg_cv_cc_flag_unused_command_line_argument=yes
7351else
7352  xorg_cv_cc_flag_unused_command_line_argument=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7359	CFLAGS="$xorg_testset_save_CFLAGS"
7360fi
7361
7362found="no"
7363
7364	if test $found = "no" ; then
7365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367		fi
7368
7369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371		fi
7372
7373		CFLAGS="$CFLAGS -Werror=main"
7374
7375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7376$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7377		cacheid=xorg_cv_cc_flag__Werror_main
7378		if eval \${$cacheid+:} false; then :
7379  $as_echo_n "(cached) " >&6
7380else
7381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383int i;
7384int
7385main ()
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"; then :
7393  eval $cacheid=yes
7394else
7395  eval $cacheid=no
7396fi
7397rm -f core conftest.err conftest.$ac_objext \
7398    conftest$ac_exeext conftest.$ac_ext
7399fi
7400
7401
7402		CFLAGS="$xorg_testset_save_CFLAGS"
7403
7404		eval supported=\$$cacheid
7405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7406$as_echo "$supported" >&6; }
7407		if test "$supported" = "yes" ; then
7408			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7409			found="yes"
7410		fi
7411	fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427xorg_testset_save_CFLAGS="$CFLAGS"
7428
7429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"; then :
7441  xorg_cv_cc_flag_unknown_warning_option=yes
7442else
7443  xorg_cv_cc_flag_unknown_warning_option=no
7444fi
7445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7450	CFLAGS="$xorg_testset_save_CFLAGS"
7451fi
7452
7453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456	fi
7457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465int i;
7466_ACEOF
7467if ac_fn_c_try_compile "$LINENO"; then :
7468  xorg_cv_cc_flag_unused_command_line_argument=yes
7469else
7470  xorg_cv_cc_flag_unused_command_line_argument=no
7471fi
7472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473fi
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7477	CFLAGS="$xorg_testset_save_CFLAGS"
7478fi
7479
7480found="no"
7481
7482	if test $found = "no" ; then
7483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485		fi
7486
7487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7489		fi
7490
7491		CFLAGS="$CFLAGS -Werror=missing-braces"
7492
7493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7494$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7495		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7496		if eval \${$cacheid+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501int i;
7502int
7503main ()
7504{
7505
7506  ;
7507  return 0;
7508}
7509_ACEOF
7510if ac_fn_c_try_link "$LINENO"; then :
7511  eval $cacheid=yes
7512else
7513  eval $cacheid=no
7514fi
7515rm -f core conftest.err conftest.$ac_objext \
7516    conftest$ac_exeext conftest.$ac_ext
7517fi
7518
7519
7520		CFLAGS="$xorg_testset_save_CFLAGS"
7521
7522		eval supported=\$$cacheid
7523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7524$as_echo "$supported" >&6; }
7525		if test "$supported" = "yes" ; then
7526			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7527			found="yes"
7528		fi
7529	fi
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545xorg_testset_save_CFLAGS="$CFLAGS"
7546
7547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h.  */
7556int i;
7557_ACEOF
7558if ac_fn_c_try_compile "$LINENO"; then :
7559  xorg_cv_cc_flag_unknown_warning_option=yes
7560else
7561  xorg_cv_cc_flag_unknown_warning_option=no
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564fi
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7568	CFLAGS="$xorg_testset_save_CFLAGS"
7569fi
7570
7571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574	fi
7575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h.  */
7583int i;
7584_ACEOF
7585if ac_fn_c_try_compile "$LINENO"; then :
7586  xorg_cv_cc_flag_unused_command_line_argument=yes
7587else
7588  xorg_cv_cc_flag_unused_command_line_argument=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7595	CFLAGS="$xorg_testset_save_CFLAGS"
7596fi
7597
7598found="no"
7599
7600	if test $found = "no" ; then
7601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603		fi
7604
7605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607		fi
7608
7609		CFLAGS="$CFLAGS -Werror=sequence-point"
7610
7611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7612$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7613		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7614		if eval \${$cacheid+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620int
7621main ()
7622{
7623
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_link "$LINENO"; then :
7629  eval $cacheid=yes
7630else
7631  eval $cacheid=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext \
7634    conftest$ac_exeext conftest.$ac_ext
7635fi
7636
7637
7638		CFLAGS="$xorg_testset_save_CFLAGS"
7639
7640		eval supported=\$$cacheid
7641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7642$as_echo "$supported" >&6; }
7643		if test "$supported" = "yes" ; then
7644			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7645			found="yes"
7646		fi
7647	fi
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663xorg_testset_save_CFLAGS="$CFLAGS"
7664
7665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  xorg_cv_cc_flag_unknown_warning_option=yes
7678else
7679  xorg_cv_cc_flag_unknown_warning_option=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7686	CFLAGS="$xorg_testset_save_CFLAGS"
7687fi
7688
7689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692	fi
7693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702_ACEOF
7703if ac_fn_c_try_compile "$LINENO"; then :
7704  xorg_cv_cc_flag_unused_command_line_argument=yes
7705else
7706  xorg_cv_cc_flag_unused_command_line_argument=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7713	CFLAGS="$xorg_testset_save_CFLAGS"
7714fi
7715
7716found="no"
7717
7718	if test $found = "no" ; then
7719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721		fi
7722
7723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725		fi
7726
7727		CFLAGS="$CFLAGS -Werror=return-type"
7728
7729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7730$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7731		cacheid=xorg_cv_cc_flag__Werror_return_type
7732		if eval \${$cacheid+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737int i;
7738int
7739main ()
7740{
7741
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746if ac_fn_c_try_link "$LINENO"; then :
7747  eval $cacheid=yes
7748else
7749  eval $cacheid=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext \
7752    conftest$ac_exeext conftest.$ac_ext
7753fi
7754
7755
7756		CFLAGS="$xorg_testset_save_CFLAGS"
7757
7758		eval supported=\$$cacheid
7759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7760$as_echo "$supported" >&6; }
7761		if test "$supported" = "yes" ; then
7762			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7763			found="yes"
7764		fi
7765	fi
7766
7767	if test $found = "no" ; then
7768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770		fi
7771
7772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774		fi
7775
7776		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7777
7778		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7779$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7780		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7781		if eval \${$cacheid+:} false; then :
7782  $as_echo_n "(cached) " >&6
7783else
7784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h.  */
7786int i;
7787int
7788main ()
7789{
7790
7791  ;
7792  return 0;
7793}
7794_ACEOF
7795if ac_fn_c_try_link "$LINENO"; then :
7796  eval $cacheid=yes
7797else
7798  eval $cacheid=no
7799fi
7800rm -f core conftest.err conftest.$ac_objext \
7801    conftest$ac_exeext conftest.$ac_ext
7802fi
7803
7804
7805		CFLAGS="$xorg_testset_save_CFLAGS"
7806
7807		eval supported=\$$cacheid
7808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7809$as_echo "$supported" >&6; }
7810		if test "$supported" = "yes" ; then
7811			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7812			found="yes"
7813		fi
7814	fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830xorg_testset_save_CFLAGS="$CFLAGS"
7831
7832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841int i;
7842_ACEOF
7843if ac_fn_c_try_compile "$LINENO"; then :
7844  xorg_cv_cc_flag_unknown_warning_option=yes
7845else
7846  xorg_cv_cc_flag_unknown_warning_option=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7853	CFLAGS="$xorg_testset_save_CFLAGS"
7854fi
7855
7856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859	fi
7860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7864  $as_echo_n "(cached) " >&6
7865else
7866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"; then :
7871  xorg_cv_cc_flag_unused_command_line_argument=yes
7872else
7873  xorg_cv_cc_flag_unused_command_line_argument=no
7874fi
7875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7880	CFLAGS="$xorg_testset_save_CFLAGS"
7881fi
7882
7883found="no"
7884
7885	if test $found = "no" ; then
7886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7888		fi
7889
7890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7892		fi
7893
7894		CFLAGS="$CFLAGS -Werror=trigraphs"
7895
7896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7897$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7898		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7899		if eval \${$cacheid+:} false; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904int i;
7905int
7906main ()
7907{
7908
7909  ;
7910  return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_link "$LINENO"; then :
7914  eval $cacheid=yes
7915else
7916  eval $cacheid=no
7917fi
7918rm -f core conftest.err conftest.$ac_objext \
7919    conftest$ac_exeext conftest.$ac_ext
7920fi
7921
7922
7923		CFLAGS="$xorg_testset_save_CFLAGS"
7924
7925		eval supported=\$$cacheid
7926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7927$as_echo "$supported" >&6; }
7928		if test "$supported" = "yes" ; then
7929			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7930			found="yes"
7931		fi
7932	fi
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948xorg_testset_save_CFLAGS="$CFLAGS"
7949
7950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959int i;
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"; then :
7962  xorg_cv_cc_flag_unknown_warning_option=yes
7963else
7964  xorg_cv_cc_flag_unknown_warning_option=no
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7971	CFLAGS="$xorg_testset_save_CFLAGS"
7972fi
7973
7974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977	fi
7978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7982  $as_echo_n "(cached) " >&6
7983else
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987_ACEOF
7988if ac_fn_c_try_compile "$LINENO"; then :
7989  xorg_cv_cc_flag_unused_command_line_argument=yes
7990else
7991  xorg_cv_cc_flag_unused_command_line_argument=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7998	CFLAGS="$xorg_testset_save_CFLAGS"
7999fi
8000
8001found="no"
8002
8003	if test $found = "no" ; then
8004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006		fi
8007
8008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8010		fi
8011
8012		CFLAGS="$CFLAGS -Werror=array-bounds"
8013
8014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8015$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8016		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8017		if eval \${$cacheid+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022int i;
8023int
8024main ()
8025{
8026
8027  ;
8028  return 0;
8029}
8030_ACEOF
8031if ac_fn_c_try_link "$LINENO"; then :
8032  eval $cacheid=yes
8033else
8034  eval $cacheid=no
8035fi
8036rm -f core conftest.err conftest.$ac_objext \
8037    conftest$ac_exeext conftest.$ac_ext
8038fi
8039
8040
8041		CFLAGS="$xorg_testset_save_CFLAGS"
8042
8043		eval supported=\$$cacheid
8044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8045$as_echo "$supported" >&6; }
8046		if test "$supported" = "yes" ; then
8047			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8048			found="yes"
8049		fi
8050	fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066xorg_testset_save_CFLAGS="$CFLAGS"
8067
8068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h.  */
8077int i;
8078_ACEOF
8079if ac_fn_c_try_compile "$LINENO"; then :
8080  xorg_cv_cc_flag_unknown_warning_option=yes
8081else
8082  xorg_cv_cc_flag_unknown_warning_option=no
8083fi
8084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8089	CFLAGS="$xorg_testset_save_CFLAGS"
8090fi
8091
8092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095	fi
8096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103/* end confdefs.h.  */
8104int i;
8105_ACEOF
8106if ac_fn_c_try_compile "$LINENO"; then :
8107  xorg_cv_cc_flag_unused_command_line_argument=yes
8108else
8109  xorg_cv_cc_flag_unused_command_line_argument=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8116	CFLAGS="$xorg_testset_save_CFLAGS"
8117fi
8118
8119found="no"
8120
8121	if test $found = "no" ; then
8122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124		fi
8125
8126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8128		fi
8129
8130		CFLAGS="$CFLAGS -Werror=write-strings"
8131
8132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8133$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8134		cacheid=xorg_cv_cc_flag__Werror_write_strings
8135		if eval \${$cacheid+:} false; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141int
8142main ()
8143{
8144
8145  ;
8146  return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_link "$LINENO"; then :
8150  eval $cacheid=yes
8151else
8152  eval $cacheid=no
8153fi
8154rm -f core conftest.err conftest.$ac_objext \
8155    conftest$ac_exeext conftest.$ac_ext
8156fi
8157
8158
8159		CFLAGS="$xorg_testset_save_CFLAGS"
8160
8161		eval supported=\$$cacheid
8162		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8163$as_echo "$supported" >&6; }
8164		if test "$supported" = "yes" ; then
8165			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8166			found="yes"
8167		fi
8168	fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184xorg_testset_save_CFLAGS="$CFLAGS"
8185
8186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h.  */
8195int i;
8196_ACEOF
8197if ac_fn_c_try_compile "$LINENO"; then :
8198  xorg_cv_cc_flag_unknown_warning_option=yes
8199else
8200  xorg_cv_cc_flag_unknown_warning_option=no
8201fi
8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203fi
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8207	CFLAGS="$xorg_testset_save_CFLAGS"
8208fi
8209
8210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213	fi
8214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221/* end confdefs.h.  */
8222int i;
8223_ACEOF
8224if ac_fn_c_try_compile "$LINENO"; then :
8225  xorg_cv_cc_flag_unused_command_line_argument=yes
8226else
8227  xorg_cv_cc_flag_unused_command_line_argument=no
8228fi
8229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230fi
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8234	CFLAGS="$xorg_testset_save_CFLAGS"
8235fi
8236
8237found="no"
8238
8239	if test $found = "no" ; then
8240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242		fi
8243
8244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8246		fi
8247
8248		CFLAGS="$CFLAGS -Werror=address"
8249
8250		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8251$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8252		cacheid=xorg_cv_cc_flag__Werror_address
8253		if eval \${$cacheid+:} false; then :
8254  $as_echo_n "(cached) " >&6
8255else
8256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258int i;
8259int
8260main ()
8261{
8262
8263  ;
8264  return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_link "$LINENO"; then :
8268  eval $cacheid=yes
8269else
8270  eval $cacheid=no
8271fi
8272rm -f core conftest.err conftest.$ac_objext \
8273    conftest$ac_exeext conftest.$ac_ext
8274fi
8275
8276
8277		CFLAGS="$xorg_testset_save_CFLAGS"
8278
8279		eval supported=\$$cacheid
8280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8281$as_echo "$supported" >&6; }
8282		if test "$supported" = "yes" ; then
8283			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8284			found="yes"
8285		fi
8286	fi
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302xorg_testset_save_CFLAGS="$CFLAGS"
8303
8304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313int i;
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316  xorg_cv_cc_flag_unknown_warning_option=yes
8317else
8318  xorg_cv_cc_flag_unknown_warning_option=no
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8325	CFLAGS="$xorg_testset_save_CFLAGS"
8326fi
8327
8328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331	fi
8332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341_ACEOF
8342if ac_fn_c_try_compile "$LINENO"; then :
8343  xorg_cv_cc_flag_unused_command_line_argument=yes
8344else
8345  xorg_cv_cc_flag_unused_command_line_argument=no
8346fi
8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8352	CFLAGS="$xorg_testset_save_CFLAGS"
8353fi
8354
8355found="no"
8356
8357	if test $found = "no" ; then
8358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8360		fi
8361
8362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8364		fi
8365
8366		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8367
8368		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8369$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8370		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8371		if eval \${$cacheid+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376int i;
8377int
8378main ()
8379{
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_link "$LINENO"; then :
8386  eval $cacheid=yes
8387else
8388  eval $cacheid=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext \
8391    conftest$ac_exeext conftest.$ac_ext
8392fi
8393
8394
8395		CFLAGS="$xorg_testset_save_CFLAGS"
8396
8397		eval supported=\$$cacheid
8398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8399$as_echo "$supported" >&6; }
8400		if test "$supported" = "yes" ; then
8401			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8402			found="yes"
8403		fi
8404	fi
8405
8406	if test $found = "no" ; then
8407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409		fi
8410
8411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413		fi
8414
8415		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8416
8417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8418$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8419		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8420		if eval \${$cacheid+:} false; then :
8421  $as_echo_n "(cached) " >&6
8422else
8423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425int i;
8426int
8427main ()
8428{
8429
8430  ;
8431  return 0;
8432}
8433_ACEOF
8434if ac_fn_c_try_link "$LINENO"; then :
8435  eval $cacheid=yes
8436else
8437  eval $cacheid=no
8438fi
8439rm -f core conftest.err conftest.$ac_objext \
8440    conftest$ac_exeext conftest.$ac_ext
8441fi
8442
8443
8444		CFLAGS="$xorg_testset_save_CFLAGS"
8445
8446		eval supported=\$$cacheid
8447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8448$as_echo "$supported" >&6; }
8449		if test "$supported" = "yes" ; then
8450			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8451			found="yes"
8452		fi
8453	fi
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469xorg_testset_save_CFLAGS="$CFLAGS"
8470
8471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480int i;
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"; then :
8483  xorg_cv_cc_flag_unknown_warning_option=yes
8484else
8485  xorg_cv_cc_flag_unknown_warning_option=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	fi
8499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h.  */
8507int i;
8508_ACEOF
8509if ac_fn_c_try_compile "$LINENO"; then :
8510  xorg_cv_cc_flag_unused_command_line_argument=yes
8511else
8512  xorg_cv_cc_flag_unused_command_line_argument=no
8513fi
8514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8519	CFLAGS="$xorg_testset_save_CFLAGS"
8520fi
8521
8522found="no"
8523
8524	if test $found = "no" ; then
8525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527		fi
8528
8529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8531		fi
8532
8533		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8534
8535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8536$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8537		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8538		if eval \${$cacheid+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544int
8545main ()
8546{
8547
8548  ;
8549  return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_link "$LINENO"; then :
8553  eval $cacheid=yes
8554else
8555  eval $cacheid=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext \
8558    conftest$ac_exeext conftest.$ac_ext
8559fi
8560
8561
8562		CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564		eval supported=\$$cacheid
8565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8566$as_echo "$supported" >&6; }
8567		if test "$supported" = "yes" ; then
8568			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8569			found="yes"
8570		fi
8571	fi
8572
8573 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8574else
8575{ $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
8576$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;}
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590xorg_testset_save_CFLAGS="$CFLAGS"
8591
8592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h.  */
8601int i;
8602_ACEOF
8603if ac_fn_c_try_compile "$LINENO"; then :
8604  xorg_cv_cc_flag_unknown_warning_option=yes
8605else
8606  xorg_cv_cc_flag_unknown_warning_option=no
8607fi
8608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609fi
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8613	CFLAGS="$xorg_testset_save_CFLAGS"
8614fi
8615
8616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619	fi
8620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627/* end confdefs.h.  */
8628int i;
8629_ACEOF
8630if ac_fn_c_try_compile "$LINENO"; then :
8631  xorg_cv_cc_flag_unused_command_line_argument=yes
8632else
8633  xorg_cv_cc_flag_unused_command_line_argument=no
8634fi
8635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636fi
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8640	CFLAGS="$xorg_testset_save_CFLAGS"
8641fi
8642
8643found="no"
8644
8645	if test $found = "no" ; then
8646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648		fi
8649
8650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8652		fi
8653
8654		CFLAGS="$CFLAGS -Wimplicit"
8655
8656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8657$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8658		cacheid=xorg_cv_cc_flag__Wimplicit
8659		if eval \${$cacheid+:} false; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664int i;
8665int
8666main ()
8667{
8668
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673if ac_fn_c_try_link "$LINENO"; then :
8674  eval $cacheid=yes
8675else
8676  eval $cacheid=no
8677fi
8678rm -f core conftest.err conftest.$ac_objext \
8679    conftest$ac_exeext conftest.$ac_ext
8680fi
8681
8682
8683		CFLAGS="$xorg_testset_save_CFLAGS"
8684
8685		eval supported=\$$cacheid
8686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8687$as_echo "$supported" >&6; }
8688		if test "$supported" = "yes" ; then
8689			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8690			found="yes"
8691		fi
8692	fi
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708xorg_testset_save_CFLAGS="$CFLAGS"
8709
8710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8715  $as_echo_n "(cached) " >&6
8716else
8717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719int i;
8720_ACEOF
8721if ac_fn_c_try_compile "$LINENO"; then :
8722  xorg_cv_cc_flag_unknown_warning_option=yes
8723else
8724  xorg_cv_cc_flag_unknown_warning_option=no
8725fi
8726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727fi
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8731	CFLAGS="$xorg_testset_save_CFLAGS"
8732fi
8733
8734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737	fi
8738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8742  $as_echo_n "(cached) " >&6
8743else
8744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h.  */
8746int i;
8747_ACEOF
8748if ac_fn_c_try_compile "$LINENO"; then :
8749  xorg_cv_cc_flag_unused_command_line_argument=yes
8750else
8751  xorg_cv_cc_flag_unused_command_line_argument=no
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754fi
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8758	CFLAGS="$xorg_testset_save_CFLAGS"
8759fi
8760
8761found="no"
8762
8763	if test $found = "no" ; then
8764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766		fi
8767
8768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770		fi
8771
8772		CFLAGS="$CFLAGS -Wnonnull"
8773
8774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8775$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8776		cacheid=xorg_cv_cc_flag__Wnonnull
8777		if eval \${$cacheid+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782int i;
8783int
8784main ()
8785{
8786
8787  ;
8788  return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_link "$LINENO"; then :
8792  eval $cacheid=yes
8793else
8794  eval $cacheid=no
8795fi
8796rm -f core conftest.err conftest.$ac_objext \
8797    conftest$ac_exeext conftest.$ac_ext
8798fi
8799
8800
8801		CFLAGS="$xorg_testset_save_CFLAGS"
8802
8803		eval supported=\$$cacheid
8804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8805$as_echo "$supported" >&6; }
8806		if test "$supported" = "yes" ; then
8807			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8808			found="yes"
8809		fi
8810	fi
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826xorg_testset_save_CFLAGS="$CFLAGS"
8827
8828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836/* end confdefs.h.  */
8837int i;
8838_ACEOF
8839if ac_fn_c_try_compile "$LINENO"; then :
8840  xorg_cv_cc_flag_unknown_warning_option=yes
8841else
8842  xorg_cv_cc_flag_unknown_warning_option=no
8843fi
8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8849	CFLAGS="$xorg_testset_save_CFLAGS"
8850fi
8851
8852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855	fi
8856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8860  $as_echo_n "(cached) " >&6
8861else
8862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h.  */
8864int i;
8865_ACEOF
8866if ac_fn_c_try_compile "$LINENO"; then :
8867  xorg_cv_cc_flag_unused_command_line_argument=yes
8868else
8869  xorg_cv_cc_flag_unused_command_line_argument=no
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8876	CFLAGS="$xorg_testset_save_CFLAGS"
8877fi
8878
8879found="no"
8880
8881	if test $found = "no" ; then
8882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884		fi
8885
8886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888		fi
8889
8890		CFLAGS="$CFLAGS -Winit-self"
8891
8892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8893$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8894		cacheid=xorg_cv_cc_flag__Winit_self
8895		if eval \${$cacheid+:} false; then :
8896  $as_echo_n "(cached) " >&6
8897else
8898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h.  */
8900int i;
8901int
8902main ()
8903{
8904
8905  ;
8906  return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_link "$LINENO"; then :
8910  eval $cacheid=yes
8911else
8912  eval $cacheid=no
8913fi
8914rm -f core conftest.err conftest.$ac_objext \
8915    conftest$ac_exeext conftest.$ac_ext
8916fi
8917
8918
8919		CFLAGS="$xorg_testset_save_CFLAGS"
8920
8921		eval supported=\$$cacheid
8922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8923$as_echo "$supported" >&6; }
8924		if test "$supported" = "yes" ; then
8925			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8926			found="yes"
8927		fi
8928	fi
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944xorg_testset_save_CFLAGS="$CFLAGS"
8945
8946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8951  $as_echo_n "(cached) " >&6
8952else
8953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954/* end confdefs.h.  */
8955int i;
8956_ACEOF
8957if ac_fn_c_try_compile "$LINENO"; then :
8958  xorg_cv_cc_flag_unknown_warning_option=yes
8959else
8960  xorg_cv_cc_flag_unknown_warning_option=no
8961fi
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963fi
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8967	CFLAGS="$xorg_testset_save_CFLAGS"
8968fi
8969
8970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	fi
8974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h.  */
8982int i;
8983_ACEOF
8984if ac_fn_c_try_compile "$LINENO"; then :
8985  xorg_cv_cc_flag_unused_command_line_argument=yes
8986else
8987  xorg_cv_cc_flag_unused_command_line_argument=no
8988fi
8989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990fi
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8994	CFLAGS="$xorg_testset_save_CFLAGS"
8995fi
8996
8997found="no"
8998
8999	if test $found = "no" ; then
9000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002		fi
9003
9004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9006		fi
9007
9008		CFLAGS="$CFLAGS -Wmain"
9009
9010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9011$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9012		cacheid=xorg_cv_cc_flag__Wmain
9013		if eval \${$cacheid+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018int i;
9019int
9020main ()
9021{
9022
9023  ;
9024  return 0;
9025}
9026_ACEOF
9027if ac_fn_c_try_link "$LINENO"; then :
9028  eval $cacheid=yes
9029else
9030  eval $cacheid=no
9031fi
9032rm -f core conftest.err conftest.$ac_objext \
9033    conftest$ac_exeext conftest.$ac_ext
9034fi
9035
9036
9037		CFLAGS="$xorg_testset_save_CFLAGS"
9038
9039		eval supported=\$$cacheid
9040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9041$as_echo "$supported" >&6; }
9042		if test "$supported" = "yes" ; then
9043			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9044			found="yes"
9045		fi
9046	fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062xorg_testset_save_CFLAGS="$CFLAGS"
9063
9064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9069  $as_echo_n "(cached) " >&6
9070else
9071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073int i;
9074_ACEOF
9075if ac_fn_c_try_compile "$LINENO"; then :
9076  xorg_cv_cc_flag_unknown_warning_option=yes
9077else
9078  xorg_cv_cc_flag_unknown_warning_option=no
9079fi
9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9085	CFLAGS="$xorg_testset_save_CFLAGS"
9086fi
9087
9088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091	fi
9092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099/* end confdefs.h.  */
9100int i;
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"; then :
9103  xorg_cv_cc_flag_unused_command_line_argument=yes
9104else
9105  xorg_cv_cc_flag_unused_command_line_argument=no
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108fi
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9112	CFLAGS="$xorg_testset_save_CFLAGS"
9113fi
9114
9115found="no"
9116
9117	if test $found = "no" ; then
9118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120		fi
9121
9122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9124		fi
9125
9126		CFLAGS="$CFLAGS -Wmissing-braces"
9127
9128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9129$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9130		cacheid=xorg_cv_cc_flag__Wmissing_braces
9131		if eval \${$cacheid+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135/* end confdefs.h.  */
9136int i;
9137int
9138main ()
9139{
9140
9141  ;
9142  return 0;
9143}
9144_ACEOF
9145if ac_fn_c_try_link "$LINENO"; then :
9146  eval $cacheid=yes
9147else
9148  eval $cacheid=no
9149fi
9150rm -f core conftest.err conftest.$ac_objext \
9151    conftest$ac_exeext conftest.$ac_ext
9152fi
9153
9154
9155		CFLAGS="$xorg_testset_save_CFLAGS"
9156
9157		eval supported=\$$cacheid
9158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9159$as_echo "$supported" >&6; }
9160		if test "$supported" = "yes" ; then
9161			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9162			found="yes"
9163		fi
9164	fi
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180xorg_testset_save_CFLAGS="$CFLAGS"
9181
9182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191int i;
9192_ACEOF
9193if ac_fn_c_try_compile "$LINENO"; then :
9194  xorg_cv_cc_flag_unknown_warning_option=yes
9195else
9196  xorg_cv_cc_flag_unknown_warning_option=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9203	CFLAGS="$xorg_testset_save_CFLAGS"
9204fi
9205
9206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209	fi
9210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"; then :
9221  xorg_cv_cc_flag_unused_command_line_argument=yes
9222else
9223  xorg_cv_cc_flag_unused_command_line_argument=no
9224fi
9225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9230	CFLAGS="$xorg_testset_save_CFLAGS"
9231fi
9232
9233found="no"
9234
9235	if test $found = "no" ; then
9236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238		fi
9239
9240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242		fi
9243
9244		CFLAGS="$CFLAGS -Wsequence-point"
9245
9246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9247$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9248		cacheid=xorg_cv_cc_flag__Wsequence_point
9249		if eval \${$cacheid+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254int i;
9255int
9256main ()
9257{
9258
9259  ;
9260  return 0;
9261}
9262_ACEOF
9263if ac_fn_c_try_link "$LINENO"; then :
9264  eval $cacheid=yes
9265else
9266  eval $cacheid=no
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269    conftest$ac_exeext conftest.$ac_ext
9270fi
9271
9272
9273		CFLAGS="$xorg_testset_save_CFLAGS"
9274
9275		eval supported=\$$cacheid
9276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9277$as_echo "$supported" >&6; }
9278		if test "$supported" = "yes" ; then
9279			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9280			found="yes"
9281		fi
9282	fi
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298xorg_testset_save_CFLAGS="$CFLAGS"
9299
9300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9305  $as_echo_n "(cached) " >&6
9306else
9307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"; then :
9312  xorg_cv_cc_flag_unknown_warning_option=yes
9313else
9314  xorg_cv_cc_flag_unknown_warning_option=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	fi
9328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9332  $as_echo_n "(cached) " >&6
9333else
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337_ACEOF
9338if ac_fn_c_try_compile "$LINENO"; then :
9339  xorg_cv_cc_flag_unused_command_line_argument=yes
9340else
9341  xorg_cv_cc_flag_unused_command_line_argument=no
9342fi
9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9348	CFLAGS="$xorg_testset_save_CFLAGS"
9349fi
9350
9351found="no"
9352
9353	if test $found = "no" ; then
9354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356		fi
9357
9358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360		fi
9361
9362		CFLAGS="$CFLAGS -Wreturn-type"
9363
9364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9365$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9366		cacheid=xorg_cv_cc_flag__Wreturn_type
9367		if eval \${$cacheid+:} false; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h.  */
9372int i;
9373int
9374main ()
9375{
9376
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381if ac_fn_c_try_link "$LINENO"; then :
9382  eval $cacheid=yes
9383else
9384  eval $cacheid=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext \
9387    conftest$ac_exeext conftest.$ac_ext
9388fi
9389
9390
9391		CFLAGS="$xorg_testset_save_CFLAGS"
9392
9393		eval supported=\$$cacheid
9394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9395$as_echo "$supported" >&6; }
9396		if test "$supported" = "yes" ; then
9397			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9398			found="yes"
9399		fi
9400	fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416xorg_testset_save_CFLAGS="$CFLAGS"
9417
9418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427int i;
9428_ACEOF
9429if ac_fn_c_try_compile "$LINENO"; then :
9430  xorg_cv_cc_flag_unknown_warning_option=yes
9431else
9432  xorg_cv_cc_flag_unknown_warning_option=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9439	CFLAGS="$xorg_testset_save_CFLAGS"
9440fi
9441
9442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445	fi
9446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454int i;
9455_ACEOF
9456if ac_fn_c_try_compile "$LINENO"; then :
9457  xorg_cv_cc_flag_unused_command_line_argument=yes
9458else
9459  xorg_cv_cc_flag_unused_command_line_argument=no
9460fi
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9466	CFLAGS="$xorg_testset_save_CFLAGS"
9467fi
9468
9469found="no"
9470
9471	if test $found = "no" ; then
9472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474		fi
9475
9476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9478		fi
9479
9480		CFLAGS="$CFLAGS -Wtrigraphs"
9481
9482		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9483$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9484		cacheid=xorg_cv_cc_flag__Wtrigraphs
9485		if eval \${$cacheid+:} false; then :
9486  $as_echo_n "(cached) " >&6
9487else
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491int
9492main ()
9493{
9494
9495  ;
9496  return 0;
9497}
9498_ACEOF
9499if ac_fn_c_try_link "$LINENO"; then :
9500  eval $cacheid=yes
9501else
9502  eval $cacheid=no
9503fi
9504rm -f core conftest.err conftest.$ac_objext \
9505    conftest$ac_exeext conftest.$ac_ext
9506fi
9507
9508
9509		CFLAGS="$xorg_testset_save_CFLAGS"
9510
9511		eval supported=\$$cacheid
9512		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9513$as_echo "$supported" >&6; }
9514		if test "$supported" = "yes" ; then
9515			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9516			found="yes"
9517		fi
9518	fi
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534xorg_testset_save_CFLAGS="$CFLAGS"
9535
9536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9541  $as_echo_n "(cached) " >&6
9542else
9543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h.  */
9545int i;
9546_ACEOF
9547if ac_fn_c_try_compile "$LINENO"; then :
9548  xorg_cv_cc_flag_unknown_warning_option=yes
9549else
9550  xorg_cv_cc_flag_unknown_warning_option=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9557	CFLAGS="$xorg_testset_save_CFLAGS"
9558fi
9559
9560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563	fi
9564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h.  */
9572int i;
9573_ACEOF
9574if ac_fn_c_try_compile "$LINENO"; then :
9575  xorg_cv_cc_flag_unused_command_line_argument=yes
9576else
9577  xorg_cv_cc_flag_unused_command_line_argument=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9584	CFLAGS="$xorg_testset_save_CFLAGS"
9585fi
9586
9587found="no"
9588
9589	if test $found = "no" ; then
9590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592		fi
9593
9594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596		fi
9597
9598		CFLAGS="$CFLAGS -Warray-bounds"
9599
9600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9601$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9602		cacheid=xorg_cv_cc_flag__Warray_bounds
9603		if eval \${$cacheid+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609int
9610main ()
9611{
9612
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617if ac_fn_c_try_link "$LINENO"; then :
9618  eval $cacheid=yes
9619else
9620  eval $cacheid=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext \
9623    conftest$ac_exeext conftest.$ac_ext
9624fi
9625
9626
9627		CFLAGS="$xorg_testset_save_CFLAGS"
9628
9629		eval supported=\$$cacheid
9630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9631$as_echo "$supported" >&6; }
9632		if test "$supported" = "yes" ; then
9633			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9634			found="yes"
9635		fi
9636	fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652xorg_testset_save_CFLAGS="$CFLAGS"
9653
9654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9659  $as_echo_n "(cached) " >&6
9660else
9661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663int i;
9664_ACEOF
9665if ac_fn_c_try_compile "$LINENO"; then :
9666  xorg_cv_cc_flag_unknown_warning_option=yes
9667else
9668  xorg_cv_cc_flag_unknown_warning_option=no
9669fi
9670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9675	CFLAGS="$xorg_testset_save_CFLAGS"
9676fi
9677
9678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681	fi
9682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h.  */
9690int i;
9691_ACEOF
9692if ac_fn_c_try_compile "$LINENO"; then :
9693  xorg_cv_cc_flag_unused_command_line_argument=yes
9694else
9695  xorg_cv_cc_flag_unused_command_line_argument=no
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698fi
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9702	CFLAGS="$xorg_testset_save_CFLAGS"
9703fi
9704
9705found="no"
9706
9707	if test $found = "no" ; then
9708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710		fi
9711
9712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714		fi
9715
9716		CFLAGS="$CFLAGS -Wwrite-strings"
9717
9718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9719$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9720		cacheid=xorg_cv_cc_flag__Wwrite_strings
9721		if eval \${$cacheid+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726int i;
9727int
9728main ()
9729{
9730
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736  eval $cacheid=yes
9737else
9738  eval $cacheid=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext \
9741    conftest$ac_exeext conftest.$ac_ext
9742fi
9743
9744
9745		CFLAGS="$xorg_testset_save_CFLAGS"
9746
9747		eval supported=\$$cacheid
9748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9749$as_echo "$supported" >&6; }
9750		if test "$supported" = "yes" ; then
9751			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9752			found="yes"
9753		fi
9754	fi
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770xorg_testset_save_CFLAGS="$CFLAGS"
9771
9772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"; then :
9784  xorg_cv_cc_flag_unknown_warning_option=yes
9785else
9786  xorg_cv_cc_flag_unknown_warning_option=no
9787fi
9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9793	CFLAGS="$xorg_testset_save_CFLAGS"
9794fi
9795
9796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799	fi
9800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9804  $as_echo_n "(cached) " >&6
9805else
9806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h.  */
9808int i;
9809_ACEOF
9810if ac_fn_c_try_compile "$LINENO"; then :
9811  xorg_cv_cc_flag_unused_command_line_argument=yes
9812else
9813  xorg_cv_cc_flag_unused_command_line_argument=no
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9820	CFLAGS="$xorg_testset_save_CFLAGS"
9821fi
9822
9823found="no"
9824
9825	if test $found = "no" ; then
9826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828		fi
9829
9830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832		fi
9833
9834		CFLAGS="$CFLAGS -Waddress"
9835
9836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9837$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9838		cacheid=xorg_cv_cc_flag__Waddress
9839		if eval \${$cacheid+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h.  */
9844int i;
9845int
9846main ()
9847{
9848
9849  ;
9850  return 0;
9851}
9852_ACEOF
9853if ac_fn_c_try_link "$LINENO"; then :
9854  eval $cacheid=yes
9855else
9856  eval $cacheid=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859    conftest$ac_exeext conftest.$ac_ext
9860fi
9861
9862
9863		CFLAGS="$xorg_testset_save_CFLAGS"
9864
9865		eval supported=\$$cacheid
9866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9867$as_echo "$supported" >&6; }
9868		if test "$supported" = "yes" ; then
9869			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9870			found="yes"
9871		fi
9872	fi
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888xorg_testset_save_CFLAGS="$CFLAGS"
9889
9890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"; then :
9902  xorg_cv_cc_flag_unknown_warning_option=yes
9903else
9904  xorg_cv_cc_flag_unknown_warning_option=no
9905fi
9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907fi
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9911	CFLAGS="$xorg_testset_save_CFLAGS"
9912fi
9913
9914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917	fi
9918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9922  $as_echo_n "(cached) " >&6
9923else
9924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h.  */
9926int i;
9927_ACEOF
9928if ac_fn_c_try_compile "$LINENO"; then :
9929  xorg_cv_cc_flag_unused_command_line_argument=yes
9930else
9931  xorg_cv_cc_flag_unused_command_line_argument=no
9932fi
9933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9938	CFLAGS="$xorg_testset_save_CFLAGS"
9939fi
9940
9941found="no"
9942
9943	if test $found = "no" ; then
9944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946		fi
9947
9948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9950		fi
9951
9952		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9953
9954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9955$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9956		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9957		if eval \${$cacheid+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962int i;
9963int
9964main ()
9965{
9966
9967  ;
9968  return 0;
9969}
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"; then :
9972  eval $cacheid=yes
9973else
9974  eval $cacheid=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext \
9977    conftest$ac_exeext conftest.$ac_ext
9978fi
9979
9980
9981		CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983		eval supported=\$$cacheid
9984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985$as_echo "$supported" >&6; }
9986		if test "$supported" = "yes" ; then
9987			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9988			found="yes"
9989		fi
9990	fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018_ACEOF
10019if ac_fn_c_try_compile "$LINENO"; then :
10020  xorg_cv_cc_flag_unknown_warning_option=yes
10021else
10022  xorg_cv_cc_flag_unknown_warning_option=no
10023fi
10024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025fi
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10029	CFLAGS="$xorg_testset_save_CFLAGS"
10030fi
10031
10032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035	fi
10036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10040  $as_echo_n "(cached) " >&6
10041else
10042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043/* end confdefs.h.  */
10044int i;
10045_ACEOF
10046if ac_fn_c_try_compile "$LINENO"; then :
10047  xorg_cv_cc_flag_unused_command_line_argument=yes
10048else
10049  xorg_cv_cc_flag_unused_command_line_argument=no
10050fi
10051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052fi
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10056	CFLAGS="$xorg_testset_save_CFLAGS"
10057fi
10058
10059found="no"
10060
10061	if test $found = "no" ; then
10062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064		fi
10065
10066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10068		fi
10069
10070		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10071
10072		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10073$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10074		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10075		if eval \${$cacheid+:} false; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080int i;
10081int
10082main ()
10083{
10084
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089if ac_fn_c_try_link "$LINENO"; then :
10090  eval $cacheid=yes
10091else
10092  eval $cacheid=no
10093fi
10094rm -f core conftest.err conftest.$ac_objext \
10095    conftest$ac_exeext conftest.$ac_ext
10096fi
10097
10098
10099		CFLAGS="$xorg_testset_save_CFLAGS"
10100
10101		eval supported=\$$cacheid
10102		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10103$as_echo "$supported" >&6; }
10104		if test "$supported" = "yes" ; then
10105			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10106			found="yes"
10107		fi
10108	fi
10109
10110
10111fi
10112
10113
10114
10115
10116
10117
10118
10119		CWARNFLAGS="$BASE_CFLAGS"
10120		if  test "x$GCC" = xyes ; then
10121		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10122		fi
10123
10124
10125
10126
10127
10128
10129
10130
10131# Check whether --enable-strict-compilation was given.
10132if test "${enable_strict_compilation+set}" = set; then :
10133  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10134else
10135  STRICT_COMPILE=no
10136fi
10137
10138
10139
10140
10141
10142
10143STRICT_CFLAGS=""
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157xorg_testset_save_CFLAGS="$CFLAGS"
10158
10159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168int i;
10169_ACEOF
10170if ac_fn_c_try_compile "$LINENO"; then :
10171  xorg_cv_cc_flag_unknown_warning_option=yes
10172else
10173  xorg_cv_cc_flag_unknown_warning_option=no
10174fi
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176fi
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10180	CFLAGS="$xorg_testset_save_CFLAGS"
10181fi
10182
10183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10186	fi
10187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10191  $as_echo_n "(cached) " >&6
10192else
10193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h.  */
10195int i;
10196_ACEOF
10197if ac_fn_c_try_compile "$LINENO"; then :
10198  xorg_cv_cc_flag_unused_command_line_argument=yes
10199else
10200  xorg_cv_cc_flag_unused_command_line_argument=no
10201fi
10202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203fi
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10207	CFLAGS="$xorg_testset_save_CFLAGS"
10208fi
10209
10210found="no"
10211
10212	if test $found = "no" ; then
10213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215		fi
10216
10217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219		fi
10220
10221		CFLAGS="$CFLAGS -pedantic"
10222
10223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10224$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10225		cacheid=xorg_cv_cc_flag__pedantic
10226		if eval \${$cacheid+:} false; then :
10227  $as_echo_n "(cached) " >&6
10228else
10229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h.  */
10231int i;
10232int
10233main ()
10234{
10235
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240if ac_fn_c_try_link "$LINENO"; then :
10241  eval $cacheid=yes
10242else
10243  eval $cacheid=no
10244fi
10245rm -f core conftest.err conftest.$ac_objext \
10246    conftest$ac_exeext conftest.$ac_ext
10247fi
10248
10249
10250		CFLAGS="$xorg_testset_save_CFLAGS"
10251
10252		eval supported=\$$cacheid
10253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10254$as_echo "$supported" >&6; }
10255		if test "$supported" = "yes" ; then
10256			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10257			found="yes"
10258		fi
10259	fi
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275xorg_testset_save_CFLAGS="$CFLAGS"
10276
10277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10282  $as_echo_n "(cached) " >&6
10283else
10284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h.  */
10286int i;
10287_ACEOF
10288if ac_fn_c_try_compile "$LINENO"; then :
10289  xorg_cv_cc_flag_unknown_warning_option=yes
10290else
10291  xorg_cv_cc_flag_unknown_warning_option=no
10292fi
10293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294fi
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10298	CFLAGS="$xorg_testset_save_CFLAGS"
10299fi
10300
10301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304	fi
10305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10309  $as_echo_n "(cached) " >&6
10310else
10311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313int i;
10314_ACEOF
10315if ac_fn_c_try_compile "$LINENO"; then :
10316  xorg_cv_cc_flag_unused_command_line_argument=yes
10317else
10318  xorg_cv_cc_flag_unused_command_line_argument=no
10319fi
10320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10325	CFLAGS="$xorg_testset_save_CFLAGS"
10326fi
10327
10328found="no"
10329
10330	if test $found = "no" ; then
10331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10333		fi
10334
10335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10337		fi
10338
10339		CFLAGS="$CFLAGS -Werror"
10340
10341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10342$as_echo_n "checking if $CC supports -Werror... " >&6; }
10343		cacheid=xorg_cv_cc_flag__Werror
10344		if eval \${$cacheid+:} false; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349int i;
10350int
10351main ()
10352{
10353
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"; then :
10359  eval $cacheid=yes
10360else
10361  eval $cacheid=no
10362fi
10363rm -f core conftest.err conftest.$ac_objext \
10364    conftest$ac_exeext conftest.$ac_ext
10365fi
10366
10367
10368		CFLAGS="$xorg_testset_save_CFLAGS"
10369
10370		eval supported=\$$cacheid
10371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10372$as_echo "$supported" >&6; }
10373		if test "$supported" = "yes" ; then
10374			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10375			found="yes"
10376		fi
10377	fi
10378
10379	if test $found = "no" ; then
10380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10382		fi
10383
10384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10386		fi
10387
10388		CFLAGS="$CFLAGS -errwarn"
10389
10390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10391$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10392		cacheid=xorg_cv_cc_flag__errwarn
10393		if eval \${$cacheid+:} false; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399int
10400main ()
10401{
10402
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408  eval $cacheid=yes
10409else
10410  eval $cacheid=no
10411fi
10412rm -f core conftest.err conftest.$ac_objext \
10413    conftest$ac_exeext conftest.$ac_ext
10414fi
10415
10416
10417		CFLAGS="$xorg_testset_save_CFLAGS"
10418
10419		eval supported=\$$cacheid
10420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10421$as_echo "$supported" >&6; }
10422		if test "$supported" = "yes" ; then
10423			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10424			found="yes"
10425		fi
10426	fi
10427
10428
10429
10430# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10431# activate it with -Werror, so we add it here explicitly.
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445xorg_testset_save_CFLAGS="$CFLAGS"
10446
10447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10452  $as_echo_n "(cached) " >&6
10453else
10454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455/* end confdefs.h.  */
10456int i;
10457_ACEOF
10458if ac_fn_c_try_compile "$LINENO"; then :
10459  xorg_cv_cc_flag_unknown_warning_option=yes
10460else
10461  xorg_cv_cc_flag_unknown_warning_option=no
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10468	CFLAGS="$xorg_testset_save_CFLAGS"
10469fi
10470
10471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474	fi
10475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10479  $as_echo_n "(cached) " >&6
10480else
10481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h.  */
10483int i;
10484_ACEOF
10485if ac_fn_c_try_compile "$LINENO"; then :
10486  xorg_cv_cc_flag_unused_command_line_argument=yes
10487else
10488  xorg_cv_cc_flag_unused_command_line_argument=no
10489fi
10490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10491fi
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10495	CFLAGS="$xorg_testset_save_CFLAGS"
10496fi
10497
10498found="no"
10499
10500	if test $found = "no" ; then
10501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503		fi
10504
10505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10507		fi
10508
10509		CFLAGS="$CFLAGS -Werror=attributes"
10510
10511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10512$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10513		cacheid=xorg_cv_cc_flag__Werror_attributes
10514		if eval \${$cacheid+:} false; then :
10515  $as_echo_n "(cached) " >&6
10516else
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519int i;
10520int
10521main ()
10522{
10523
10524  ;
10525  return 0;
10526}
10527_ACEOF
10528if ac_fn_c_try_link "$LINENO"; then :
10529  eval $cacheid=yes
10530else
10531  eval $cacheid=no
10532fi
10533rm -f core conftest.err conftest.$ac_objext \
10534    conftest$ac_exeext conftest.$ac_ext
10535fi
10536
10537
10538		CFLAGS="$xorg_testset_save_CFLAGS"
10539
10540		eval supported=\$$cacheid
10541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10542$as_echo "$supported" >&6; }
10543		if test "$supported" = "yes" ; then
10544			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10545			found="yes"
10546		fi
10547	fi
10548
10549
10550
10551if test "x$STRICT_COMPILE" = "xyes"; then
10552    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10553    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10554fi
10555
10556
10557
10558
10559
10560
10561cat >>confdefs.h <<_ACEOF
10562#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10563_ACEOF
10564
10565	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10566	if test "x$PVM" = "x"; then
10567		PVM="0"
10568	fi
10569
10570cat >>confdefs.h <<_ACEOF
10571#define PACKAGE_VERSION_MINOR $PVM
10572_ACEOF
10573
10574	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10575	if test "x$PVP" = "x"; then
10576		PVP="0"
10577	fi
10578
10579cat >>confdefs.h <<_ACEOF
10580#define PACKAGE_VERSION_PATCHLEVEL $PVP
10581_ACEOF
10582
10583
10584
10585CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10586mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10587|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10588echo 'git directory not found: installing possibly empty changelog.' >&2)"
10589
10590
10591
10592
10593macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10594INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10595mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10596|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10597echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10598
10599
10600
10601
10602
10603
10604if test x$APP_MAN_SUFFIX = x    ; then
10605    APP_MAN_SUFFIX=1
10606fi
10607if test x$APP_MAN_DIR = x    ; then
10608    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10609fi
10610
10611if test x$LIB_MAN_SUFFIX = x    ; then
10612    LIB_MAN_SUFFIX=3
10613fi
10614if test x$LIB_MAN_DIR = x    ; then
10615    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10616fi
10617
10618if test x$FILE_MAN_SUFFIX = x    ; then
10619    case $host_os in
10620	solaris*)	FILE_MAN_SUFFIX=4  ;;
10621	*)		FILE_MAN_SUFFIX=5  ;;
10622    esac
10623fi
10624if test x$FILE_MAN_DIR = x    ; then
10625    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10626fi
10627
10628if test x$MISC_MAN_SUFFIX = x    ; then
10629    case $host_os in
10630	solaris*)	MISC_MAN_SUFFIX=5  ;;
10631	*)		MISC_MAN_SUFFIX=7  ;;
10632    esac
10633fi
10634if test x$MISC_MAN_DIR = x    ; then
10635    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10636fi
10637
10638if test x$DRIVER_MAN_SUFFIX = x    ; then
10639    case $host_os in
10640	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10641	*)		DRIVER_MAN_SUFFIX=4  ;;
10642    esac
10643fi
10644if test x$DRIVER_MAN_DIR = x    ; then
10645    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10646fi
10647
10648if test x$ADMIN_MAN_SUFFIX = x    ; then
10649    case $host_os in
10650	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10651	*)		ADMIN_MAN_SUFFIX=8  ;;
10652    esac
10653fi
10654if test x$ADMIN_MAN_DIR = x    ; then
10655    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10656fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672XORG_MAN_PAGE="X Version 11"
10673
10674MAN_SUBSTS="\
10675	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10676	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10677	-e 's|__xservername__|Xorg|g' \
10678	-e 's|__xconfigfile__|xorg.conf|g' \
10679	-e 's|__projectroot__|\$(prefix)|g' \
10680	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10681	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10682	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10683	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10684	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10685	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10686	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10687
10688
10689
10690# Check whether --enable-silent-rules was given.
10691if test "${enable_silent_rules+set}" = set; then :
10692  enableval=$enable_silent_rules;
10693fi
10694
10695case $enable_silent_rules in # (((
10696  yes) AM_DEFAULT_VERBOSITY=0;;
10697   no) AM_DEFAULT_VERBOSITY=1;;
10698    *) AM_DEFAULT_VERBOSITY=0;;
10699esac
10700am_make=${MAKE-make}
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10702$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10703if ${am_cv_make_support_nested_variables+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  if $as_echo 'TRUE=$(BAR$(V))
10707BAR0=false
10708BAR1=true
10709V=1
10710am__doit:
10711	@$(TRUE)
10712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10713  am_cv_make_support_nested_variables=yes
10714else
10715  am_cv_make_support_nested_variables=no
10716fi
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10719$as_echo "$am_cv_make_support_nested_variables" >&6; }
10720if test $am_cv_make_support_nested_variables = yes; then
10721    AM_V='$(V)'
10722  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10723else
10724  AM_V=$AM_DEFAULT_VERBOSITY
10725  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10726fi
10727AM_BACKSLASH='\'
10728
10729
10730
10731# Check for progs
10732case `pwd` in
10733  *\ * | *\	*)
10734    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10735$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10736esac
10737
10738
10739
10740macro_version='2.4.6'
10741macro_revision='2.4.6'
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755ltmain=$ac_aux_dir/ltmain.sh
10756
10757# Backslashify metacharacters that are still active within
10758# double-quoted strings.
10759sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10760
10761# Same as above, but do not quote variable references.
10762double_quote_subst='s/\(["`\\]\)/\\\1/g'
10763
10764# Sed substitution to delay expansion of an escaped shell variable in a
10765# double_quote_subst'ed string.
10766delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10767
10768# Sed substitution to delay expansion of an escaped single quote.
10769delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10770
10771# Sed substitution to avoid accidental globbing in evaled expressions
10772no_glob_subst='s/\*/\\\*/g'
10773
10774ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10775ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10776ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10777
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10779$as_echo_n "checking how to print strings... " >&6; }
10780# Test print first, because it will be a builtin if present.
10781if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10782   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10783  ECHO='print -r --'
10784elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10785  ECHO='printf %s\n'
10786else
10787  # Use this function as a fallback that always works.
10788  func_fallback_echo ()
10789  {
10790    eval 'cat <<_LTECHO_EOF
10791$1
10792_LTECHO_EOF'
10793  }
10794  ECHO='func_fallback_echo'
10795fi
10796
10797# func_echo_all arg...
10798# Invoke $ECHO with all args, space-separated.
10799func_echo_all ()
10800{
10801    $ECHO ""
10802}
10803
10804case $ECHO in
10805  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10806$as_echo "printf" >&6; } ;;
10807  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10808$as_echo "print -r" >&6; } ;;
10809  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10810$as_echo "cat" >&6; } ;;
10811esac
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10827$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10828if ${ac_cv_path_SED+:} false; then :
10829  $as_echo_n "(cached) " >&6
10830else
10831            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10832     for ac_i in 1 2 3 4 5 6 7; do
10833       ac_script="$ac_script$as_nl$ac_script"
10834     done
10835     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10836     { ac_script=; unset ac_script;}
10837     if test -z "$SED"; then
10838  ac_path_SED_found=false
10839  # Loop through the user's path and test for each of PROGNAME-LIST
10840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843  IFS=$as_save_IFS
10844  test -z "$as_dir" && as_dir=.
10845    for ac_prog in sed gsed; do
10846    for ac_exec_ext in '' $ac_executable_extensions; do
10847      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10848      as_fn_executable_p "$ac_path_SED" || continue
10849# Check for GNU ac_path_SED and select it if it is found.
10850  # Check for GNU $ac_path_SED
10851case `"$ac_path_SED" --version 2>&1` in
10852*GNU*)
10853  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10854*)
10855  ac_count=0
10856  $as_echo_n 0123456789 >"conftest.in"
10857  while :
10858  do
10859    cat "conftest.in" "conftest.in" >"conftest.tmp"
10860    mv "conftest.tmp" "conftest.in"
10861    cp "conftest.in" "conftest.nl"
10862    $as_echo '' >> "conftest.nl"
10863    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10864    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10865    as_fn_arith $ac_count + 1 && ac_count=$as_val
10866    if test $ac_count -gt ${ac_path_SED_max-0}; then
10867      # Best one so far, save it but keep looking for a better one
10868      ac_cv_path_SED="$ac_path_SED"
10869      ac_path_SED_max=$ac_count
10870    fi
10871    # 10*(2^10) chars as input seems more than enough
10872    test $ac_count -gt 10 && break
10873  done
10874  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10875esac
10876
10877      $ac_path_SED_found && break 3
10878    done
10879  done
10880  done
10881IFS=$as_save_IFS
10882  if test -z "$ac_cv_path_SED"; then
10883    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10884  fi
10885else
10886  ac_cv_path_SED=$SED
10887fi
10888
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10891$as_echo "$ac_cv_path_SED" >&6; }
10892 SED="$ac_cv_path_SED"
10893  rm -f conftest.sed
10894
10895test -z "$SED" && SED=sed
10896Xsed="$SED -e 1s/^X//"
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10909$as_echo_n "checking for fgrep... " >&6; }
10910if ${ac_cv_path_FGREP+:} false; then :
10911  $as_echo_n "(cached) " >&6
10912else
10913  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10914   then ac_cv_path_FGREP="$GREP -F"
10915   else
10916     if test -z "$FGREP"; then
10917  ac_path_FGREP_found=false
10918  # Loop through the user's path and test for each of PROGNAME-LIST
10919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10921do
10922  IFS=$as_save_IFS
10923  test -z "$as_dir" && as_dir=.
10924    for ac_prog in fgrep; do
10925    for ac_exec_ext in '' $ac_executable_extensions; do
10926      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10927      as_fn_executable_p "$ac_path_FGREP" || continue
10928# Check for GNU ac_path_FGREP and select it if it is found.
10929  # Check for GNU $ac_path_FGREP
10930case `"$ac_path_FGREP" --version 2>&1` in
10931*GNU*)
10932  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10933*)
10934  ac_count=0
10935  $as_echo_n 0123456789 >"conftest.in"
10936  while :
10937  do
10938    cat "conftest.in" "conftest.in" >"conftest.tmp"
10939    mv "conftest.tmp" "conftest.in"
10940    cp "conftest.in" "conftest.nl"
10941    $as_echo 'FGREP' >> "conftest.nl"
10942    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10943    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10944    as_fn_arith $ac_count + 1 && ac_count=$as_val
10945    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10946      # Best one so far, save it but keep looking for a better one
10947      ac_cv_path_FGREP="$ac_path_FGREP"
10948      ac_path_FGREP_max=$ac_count
10949    fi
10950    # 10*(2^10) chars as input seems more than enough
10951    test $ac_count -gt 10 && break
10952  done
10953  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10954esac
10955
10956      $ac_path_FGREP_found && break 3
10957    done
10958  done
10959  done
10960IFS=$as_save_IFS
10961  if test -z "$ac_cv_path_FGREP"; then
10962    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10963  fi
10964else
10965  ac_cv_path_FGREP=$FGREP
10966fi
10967
10968   fi
10969fi
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10971$as_echo "$ac_cv_path_FGREP" >&6; }
10972 FGREP="$ac_cv_path_FGREP"
10973
10974
10975test -z "$GREP" && GREP=grep
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995# Check whether --with-gnu-ld was given.
10996if test "${with_gnu_ld+set}" = set; then :
10997  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10998else
10999  with_gnu_ld=no
11000fi
11001
11002ac_prog=ld
11003if test yes = "$GCC"; then
11004  # Check if gcc -print-prog-name=ld gives a path.
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11006$as_echo_n "checking for ld used by $CC... " >&6; }
11007  case $host in
11008  *-*-mingw*)
11009    # gcc leaves a trailing carriage return, which upsets mingw
11010    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11011  *)
11012    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11013  esac
11014  case $ac_prog in
11015    # Accept absolute paths.
11016    [\\/]* | ?:[\\/]*)
11017      re_direlt='/[^/][^/]*/\.\./'
11018      # Canonicalize the pathname of ld
11019      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11020      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11021	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11022      done
11023      test -z "$LD" && LD=$ac_prog
11024      ;;
11025  "")
11026    # If it fails, then pretend we aren't using GCC.
11027    ac_prog=ld
11028    ;;
11029  *)
11030    # If it is relative, then search for the first ld in PATH.
11031    with_gnu_ld=unknown
11032    ;;
11033  esac
11034elif test yes = "$with_gnu_ld"; then
11035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11036$as_echo_n "checking for GNU ld... " >&6; }
11037else
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11039$as_echo_n "checking for non-GNU ld... " >&6; }
11040fi
11041if ${lt_cv_path_LD+:} false; then :
11042  $as_echo_n "(cached) " >&6
11043else
11044  if test -z "$LD"; then
11045  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11046  for ac_dir in $PATH; do
11047    IFS=$lt_save_ifs
11048    test -z "$ac_dir" && ac_dir=.
11049    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11050      lt_cv_path_LD=$ac_dir/$ac_prog
11051      # Check to see if the program is GNU ld.  I'd rather use --version,
11052      # but apparently some variants of GNU ld only accept -v.
11053      # Break only if it was the GNU/non-GNU ld that we prefer.
11054      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11055      *GNU* | *'with BFD'*)
11056	test no != "$with_gnu_ld" && break
11057	;;
11058      *)
11059	test yes != "$with_gnu_ld" && break
11060	;;
11061      esac
11062    fi
11063  done
11064  IFS=$lt_save_ifs
11065else
11066  lt_cv_path_LD=$LD # Let the user override the test with a path.
11067fi
11068fi
11069
11070LD=$lt_cv_path_LD
11071if test -n "$LD"; then
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11073$as_echo "$LD" >&6; }
11074else
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077fi
11078test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11080$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11081if ${lt_cv_prog_gnu_ld+:} false; then :
11082  $as_echo_n "(cached) " >&6
11083else
11084  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11085case `$LD -v 2>&1 </dev/null` in
11086*GNU* | *'with BFD'*)
11087  lt_cv_prog_gnu_ld=yes
11088  ;;
11089*)
11090  lt_cv_prog_gnu_ld=no
11091  ;;
11092esac
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11095$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11096with_gnu_ld=$lt_cv_prog_gnu_ld
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11107$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11108if ${lt_cv_path_NM+:} false; then :
11109  $as_echo_n "(cached) " >&6
11110else
11111  if test -n "$NM"; then
11112  # Let the user override the test.
11113  lt_cv_path_NM=$NM
11114else
11115  lt_nm_to_check=${ac_tool_prefix}nm
11116  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11117    lt_nm_to_check="$lt_nm_to_check nm"
11118  fi
11119  for lt_tmp_nm in $lt_nm_to_check; do
11120    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11121    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11122      IFS=$lt_save_ifs
11123      test -z "$ac_dir" && ac_dir=.
11124      tmp_nm=$ac_dir/$lt_tmp_nm
11125      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11126	# Check to see if the nm accepts a BSD-compat flag.
11127	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11128	#   nm: unknown option "B" ignored
11129	# Tru64's nm complains that /dev/null is an invalid object file
11130	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11131	case $build_os in
11132	mingw*) lt_bad_file=conftest.nm/nofile ;;
11133	*) lt_bad_file=/dev/null ;;
11134	esac
11135	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11136	*$lt_bad_file* | *'Invalid file or object type'*)
11137	  lt_cv_path_NM="$tmp_nm -B"
11138	  break 2
11139	  ;;
11140	*)
11141	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11142	  */dev/null*)
11143	    lt_cv_path_NM="$tmp_nm -p"
11144	    break 2
11145	    ;;
11146	  *)
11147	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11148	    continue # so that we can try to find one that supports BSD flags
11149	    ;;
11150	  esac
11151	  ;;
11152	esac
11153      fi
11154    done
11155    IFS=$lt_save_ifs
11156  done
11157  : ${lt_cv_path_NM=no}
11158fi
11159fi
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11161$as_echo "$lt_cv_path_NM" >&6; }
11162if test no != "$lt_cv_path_NM"; then
11163  NM=$lt_cv_path_NM
11164else
11165  # Didn't find any BSD compatible name lister, look for dumpbin.
11166  if test -n "$DUMPBIN"; then :
11167    # Let the user override the test.
11168  else
11169    if test -n "$ac_tool_prefix"; then
11170  for ac_prog in dumpbin "link -dump"
11171  do
11172    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11173set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175$as_echo_n "checking for $ac_word... " >&6; }
11176if ${ac_cv_prog_DUMPBIN+:} false; then :
11177  $as_echo_n "(cached) " >&6
11178else
11179  if test -n "$DUMPBIN"; then
11180  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11181else
11182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $PATH
11184do
11185  IFS=$as_save_IFS
11186  test -z "$as_dir" && as_dir=.
11187    for ac_exec_ext in '' $ac_executable_extensions; do
11188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191    break 2
11192  fi
11193done
11194  done
11195IFS=$as_save_IFS
11196
11197fi
11198fi
11199DUMPBIN=$ac_cv_prog_DUMPBIN
11200if test -n "$DUMPBIN"; then
11201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11202$as_echo "$DUMPBIN" >&6; }
11203else
11204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205$as_echo "no" >&6; }
11206fi
11207
11208
11209    test -n "$DUMPBIN" && break
11210  done
11211fi
11212if test -z "$DUMPBIN"; then
11213  ac_ct_DUMPBIN=$DUMPBIN
11214  for ac_prog in dumpbin "link -dump"
11215do
11216  # Extract the first word of "$ac_prog", so it can be a program name with args.
11217set dummy $ac_prog; ac_word=$2
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219$as_echo_n "checking for $ac_word... " >&6; }
11220if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11221  $as_echo_n "(cached) " >&6
11222else
11223  if test -n "$ac_ct_DUMPBIN"; then
11224  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11225else
11226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227for as_dir in $PATH
11228do
11229  IFS=$as_save_IFS
11230  test -z "$as_dir" && as_dir=.
11231    for ac_exec_ext in '' $ac_executable_extensions; do
11232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11235    break 2
11236  fi
11237done
11238  done
11239IFS=$as_save_IFS
11240
11241fi
11242fi
11243ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11244if test -n "$ac_ct_DUMPBIN"; then
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11246$as_echo "$ac_ct_DUMPBIN" >&6; }
11247else
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
11250fi
11251
11252
11253  test -n "$ac_ct_DUMPBIN" && break
11254done
11255
11256  if test "x$ac_ct_DUMPBIN" = x; then
11257    DUMPBIN=":"
11258  else
11259    case $cross_compiling:$ac_tool_warned in
11260yes:)
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11263ac_tool_warned=yes ;;
11264esac
11265    DUMPBIN=$ac_ct_DUMPBIN
11266  fi
11267fi
11268
11269    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11270    *COFF*)
11271      DUMPBIN="$DUMPBIN -symbols -headers"
11272      ;;
11273    *)
11274      DUMPBIN=:
11275      ;;
11276    esac
11277  fi
11278
11279  if test : != "$DUMPBIN"; then
11280    NM=$DUMPBIN
11281  fi
11282fi
11283test -z "$NM" && NM=nm
11284
11285
11286
11287
11288
11289
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11291$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11292if ${lt_cv_nm_interface+:} false; then :
11293  $as_echo_n "(cached) " >&6
11294else
11295  lt_cv_nm_interface="BSD nm"
11296  echo "int some_variable = 0;" > conftest.$ac_ext
11297  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11298  (eval "$ac_compile" 2>conftest.err)
11299  cat conftest.err >&5
11300  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11301  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11302  cat conftest.err >&5
11303  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11304  cat conftest.out >&5
11305  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11306    lt_cv_nm_interface="MS dumpbin"
11307  fi
11308  rm -f conftest*
11309fi
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11311$as_echo "$lt_cv_nm_interface" >&6; }
11312
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11314$as_echo_n "checking whether ln -s works... " >&6; }
11315LN_S=$as_ln_s
11316if test "$LN_S" = "ln -s"; then
11317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318$as_echo "yes" >&6; }
11319else
11320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11321$as_echo "no, using $LN_S" >&6; }
11322fi
11323
11324# find the maximum length of command line arguments
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11326$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11327if ${lt_cv_sys_max_cmd_len+:} false; then :
11328  $as_echo_n "(cached) " >&6
11329else
11330    i=0
11331  teststring=ABCD
11332
11333  case $build_os in
11334  msdosdjgpp*)
11335    # On DJGPP, this test can blow up pretty badly due to problems in libc
11336    # (any single argument exceeding 2000 bytes causes a buffer overrun
11337    # during glob expansion).  Even if it were fixed, the result of this
11338    # check would be larger than it should be.
11339    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11340    ;;
11341
11342  gnu*)
11343    # Under GNU Hurd, this test is not required because there is
11344    # no limit to the length of command line arguments.
11345    # Libtool will interpret -1 as no limit whatsoever
11346    lt_cv_sys_max_cmd_len=-1;
11347    ;;
11348
11349  cygwin* | mingw* | cegcc*)
11350    # On Win9x/ME, this test blows up -- it succeeds, but takes
11351    # about 5 minutes as the teststring grows exponentially.
11352    # Worse, since 9x/ME are not pre-emptively multitasking,
11353    # you end up with a "frozen" computer, even though with patience
11354    # the test eventually succeeds (with a max line length of 256k).
11355    # Instead, let's just punt: use the minimum linelength reported by
11356    # all of the supported platforms: 8192 (on NT/2K/XP).
11357    lt_cv_sys_max_cmd_len=8192;
11358    ;;
11359
11360  mint*)
11361    # On MiNT this can take a long time and run out of memory.
11362    lt_cv_sys_max_cmd_len=8192;
11363    ;;
11364
11365  amigaos*)
11366    # On AmigaOS with pdksh, this test takes hours, literally.
11367    # So we just punt and use a minimum line length of 8192.
11368    lt_cv_sys_max_cmd_len=8192;
11369    ;;
11370
11371  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11372    # This has been around since 386BSD, at least.  Likely further.
11373    if test -x /sbin/sysctl; then
11374      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11375    elif test -x /usr/sbin/sysctl; then
11376      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11377    else
11378      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11379    fi
11380    # And add a safety zone
11381    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11382    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11383    ;;
11384
11385  interix*)
11386    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11387    lt_cv_sys_max_cmd_len=196608
11388    ;;
11389
11390  os2*)
11391    # The test takes a long time on OS/2.
11392    lt_cv_sys_max_cmd_len=8192
11393    ;;
11394
11395  osf*)
11396    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11397    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11398    # nice to cause kernel panics so lets avoid the loop below.
11399    # First set a reasonable default.
11400    lt_cv_sys_max_cmd_len=16384
11401    #
11402    if test -x /sbin/sysconfig; then
11403      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11404        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11405      esac
11406    fi
11407    ;;
11408  sco3.2v5*)
11409    lt_cv_sys_max_cmd_len=102400
11410    ;;
11411  sysv5* | sco5v6* | sysv4.2uw2*)
11412    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11413    if test -n "$kargmax"; then
11414      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11415    else
11416      lt_cv_sys_max_cmd_len=32768
11417    fi
11418    ;;
11419  *)
11420    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11421    if test -n "$lt_cv_sys_max_cmd_len" && \
11422       test undefined != "$lt_cv_sys_max_cmd_len"; then
11423      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11424      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11425    else
11426      # Make teststring a little bigger before we do anything with it.
11427      # a 1K string should be a reasonable start.
11428      for i in 1 2 3 4 5 6 7 8; do
11429        teststring=$teststring$teststring
11430      done
11431      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11432      # If test is not a shell built-in, we'll probably end up computing a
11433      # maximum length that is only half of the actual maximum length, but
11434      # we can't tell.
11435      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11436	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11437	      test 17 != "$i" # 1/2 MB should be enough
11438      do
11439        i=`expr $i + 1`
11440        teststring=$teststring$teststring
11441      done
11442      # Only check the string length outside the loop.
11443      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11444      teststring=
11445      # Add a significant safety factor because C++ compilers can tack on
11446      # massive amounts of additional arguments before passing them to the
11447      # linker.  It appears as though 1/2 is a usable value.
11448      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11449    fi
11450    ;;
11451  esac
11452
11453fi
11454
11455if test -n "$lt_cv_sys_max_cmd_len"; then
11456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11457$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11458else
11459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11460$as_echo "none" >&6; }
11461fi
11462max_cmd_len=$lt_cv_sys_max_cmd_len
11463
11464
11465
11466
11467
11468
11469: ${CP="cp -f"}
11470: ${MV="mv -f"}
11471: ${RM="rm -f"}
11472
11473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11474  lt_unset=unset
11475else
11476  lt_unset=false
11477fi
11478
11479
11480
11481
11482
11483# test EBCDIC or ASCII
11484case `echo X|tr X '\101'` in
11485 A) # ASCII based system
11486    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11487  lt_SP2NL='tr \040 \012'
11488  lt_NL2SP='tr \015\012 \040\040'
11489  ;;
11490 *) # EBCDIC based system
11491  lt_SP2NL='tr \100 \n'
11492  lt_NL2SP='tr \r\n \100\100'
11493  ;;
11494esac
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11505$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11506if ${lt_cv_to_host_file_cmd+:} false; then :
11507  $as_echo_n "(cached) " >&6
11508else
11509  case $host in
11510  *-*-mingw* )
11511    case $build in
11512      *-*-mingw* ) # actually msys
11513        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11514        ;;
11515      *-*-cygwin* )
11516        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11517        ;;
11518      * ) # otherwise, assume *nix
11519        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11520        ;;
11521    esac
11522    ;;
11523  *-*-cygwin* )
11524    case $build in
11525      *-*-mingw* ) # actually msys
11526        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11527        ;;
11528      *-*-cygwin* )
11529        lt_cv_to_host_file_cmd=func_convert_file_noop
11530        ;;
11531      * ) # otherwise, assume *nix
11532        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11533        ;;
11534    esac
11535    ;;
11536  * ) # unhandled hosts (and "normal" native builds)
11537    lt_cv_to_host_file_cmd=func_convert_file_noop
11538    ;;
11539esac
11540
11541fi
11542
11543to_host_file_cmd=$lt_cv_to_host_file_cmd
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11545$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11546
11547
11548
11549
11550
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11552$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11553if ${lt_cv_to_tool_file_cmd+:} false; then :
11554  $as_echo_n "(cached) " >&6
11555else
11556  #assume ordinary cross tools, or native build.
11557lt_cv_to_tool_file_cmd=func_convert_file_noop
11558case $host in
11559  *-*-mingw* )
11560    case $build in
11561      *-*-mingw* ) # actually msys
11562        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11563        ;;
11564    esac
11565    ;;
11566esac
11567
11568fi
11569
11570to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11572$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11573
11574
11575
11576
11577
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11579$as_echo_n "checking for $LD option to reload object files... " >&6; }
11580if ${lt_cv_ld_reload_flag+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  lt_cv_ld_reload_flag='-r'
11584fi
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11586$as_echo "$lt_cv_ld_reload_flag" >&6; }
11587reload_flag=$lt_cv_ld_reload_flag
11588case $reload_flag in
11589"" | " "*) ;;
11590*) reload_flag=" $reload_flag" ;;
11591esac
11592reload_cmds='$LD$reload_flag -o $output$reload_objs'
11593case $host_os in
11594  cygwin* | mingw* | pw32* | cegcc*)
11595    if test yes != "$GCC"; then
11596      reload_cmds=false
11597    fi
11598    ;;
11599  darwin*)
11600    if test yes = "$GCC"; then
11601      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11602    else
11603      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11604    fi
11605    ;;
11606esac
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616if test -n "$ac_tool_prefix"; then
11617  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11618set dummy ${ac_tool_prefix}objdump; ac_word=$2
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620$as_echo_n "checking for $ac_word... " >&6; }
11621if ${ac_cv_prog_OBJDUMP+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  if test -n "$OBJDUMP"; then
11625  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11626else
11627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628for as_dir in $PATH
11629do
11630  IFS=$as_save_IFS
11631  test -z "$as_dir" && as_dir=.
11632    for ac_exec_ext in '' $ac_executable_extensions; do
11633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636    break 2
11637  fi
11638done
11639  done
11640IFS=$as_save_IFS
11641
11642fi
11643fi
11644OBJDUMP=$ac_cv_prog_OBJDUMP
11645if test -n "$OBJDUMP"; then
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11647$as_echo "$OBJDUMP" >&6; }
11648else
11649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
11651fi
11652
11653
11654fi
11655if test -z "$ac_cv_prog_OBJDUMP"; then
11656  ac_ct_OBJDUMP=$OBJDUMP
11657  # Extract the first word of "objdump", so it can be a program name with args.
11658set dummy objdump; ac_word=$2
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11662  $as_echo_n "(cached) " >&6
11663else
11664  if test -n "$ac_ct_OBJDUMP"; then
11665  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670  IFS=$as_save_IFS
11671  test -z "$as_dir" && as_dir=.
11672    for ac_exec_ext in '' $ac_executable_extensions; do
11673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676    break 2
11677  fi
11678done
11679  done
11680IFS=$as_save_IFS
11681
11682fi
11683fi
11684ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11685if test -n "$ac_ct_OBJDUMP"; then
11686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11687$as_echo "$ac_ct_OBJDUMP" >&6; }
11688else
11689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
11691fi
11692
11693  if test "x$ac_ct_OBJDUMP" = x; then
11694    OBJDUMP="false"
11695  else
11696    case $cross_compiling:$ac_tool_warned in
11697yes:)
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11700ac_tool_warned=yes ;;
11701esac
11702    OBJDUMP=$ac_ct_OBJDUMP
11703  fi
11704else
11705  OBJDUMP="$ac_cv_prog_OBJDUMP"
11706fi
11707
11708test -z "$OBJDUMP" && OBJDUMP=objdump
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11719$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11720if ${lt_cv_deplibs_check_method+:} false; then :
11721  $as_echo_n "(cached) " >&6
11722else
11723  lt_cv_file_magic_cmd='$MAGIC_CMD'
11724lt_cv_file_magic_test_file=
11725lt_cv_deplibs_check_method='unknown'
11726# Need to set the preceding variable on all platforms that support
11727# interlibrary dependencies.
11728# 'none' -- dependencies not supported.
11729# 'unknown' -- same as none, but documents that we really don't know.
11730# 'pass_all' -- all dependencies passed with no checks.
11731# 'test_compile' -- check by making test program.
11732# 'file_magic [[regex]]' -- check by looking for files in library path
11733# that responds to the $file_magic_cmd with a given extended regex.
11734# If you have 'file' or equivalent on your system and you're not sure
11735# whether 'pass_all' will *always* work, you probably want this one.
11736
11737case $host_os in
11738aix[4-9]*)
11739  lt_cv_deplibs_check_method=pass_all
11740  ;;
11741
11742beos*)
11743  lt_cv_deplibs_check_method=pass_all
11744  ;;
11745
11746bsdi[45]*)
11747  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11748  lt_cv_file_magic_cmd='/usr/bin/file -L'
11749  lt_cv_file_magic_test_file=/shlib/libc.so
11750  ;;
11751
11752cygwin*)
11753  # func_win32_libid is a shell function defined in ltmain.sh
11754  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11755  lt_cv_file_magic_cmd='func_win32_libid'
11756  ;;
11757
11758mingw* | pw32*)
11759  # Base MSYS/MinGW do not provide the 'file' command needed by
11760  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11761  # unless we find 'file', for example because we are cross-compiling.
11762  if ( file / ) >/dev/null 2>&1; then
11763    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11764    lt_cv_file_magic_cmd='func_win32_libid'
11765  else
11766    # Keep this pattern in sync with the one in func_win32_libid.
11767    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11768    lt_cv_file_magic_cmd='$OBJDUMP -f'
11769  fi
11770  ;;
11771
11772cegcc*)
11773  # use the weaker test based on 'objdump'. See mingw*.
11774  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11775  lt_cv_file_magic_cmd='$OBJDUMP -f'
11776  ;;
11777
11778darwin* | rhapsody*)
11779  lt_cv_deplibs_check_method=pass_all
11780  ;;
11781
11782freebsd* | dragonfly*)
11783  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11784    case $host_cpu in
11785    i*86 )
11786      # Not sure whether the presence of OpenBSD here was a mistake.
11787      # Let's accept both of them until this is cleared up.
11788      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11789      lt_cv_file_magic_cmd=/usr/bin/file
11790      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11791      ;;
11792    esac
11793  else
11794    lt_cv_deplibs_check_method=pass_all
11795  fi
11796  ;;
11797
11798haiku*)
11799  lt_cv_deplibs_check_method=pass_all
11800  ;;
11801
11802hpux10.20* | hpux11*)
11803  lt_cv_file_magic_cmd=/usr/bin/file
11804  case $host_cpu in
11805  ia64*)
11806    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11807    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11808    ;;
11809  hppa*64*)
11810    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]'
11811    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11812    ;;
11813  *)
11814    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11815    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11816    ;;
11817  esac
11818  ;;
11819
11820interix[3-9]*)
11821  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11822  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11823  ;;
11824
11825irix5* | irix6* | nonstopux*)
11826  case $LD in
11827  *-32|*"-32 ") libmagic=32-bit;;
11828  *-n32|*"-n32 ") libmagic=N32;;
11829  *-64|*"-64 ") libmagic=64-bit;;
11830  *) libmagic=never-match;;
11831  esac
11832  lt_cv_deplibs_check_method=pass_all
11833  ;;
11834
11835# This must be glibc/ELF.
11836linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11837  lt_cv_deplibs_check_method=pass_all
11838  ;;
11839
11840netbsd*)
11841  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11842    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11843  else
11844    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11845  fi
11846  ;;
11847
11848newos6*)
11849  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11850  lt_cv_file_magic_cmd=/usr/bin/file
11851  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11852  ;;
11853
11854*nto* | *qnx*)
11855  lt_cv_deplibs_check_method=pass_all
11856  ;;
11857
11858openbsd* | bitrig*)
11859  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11860    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11861  else
11862    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11863  fi
11864  ;;
11865
11866osf3* | osf4* | osf5*)
11867  lt_cv_deplibs_check_method=pass_all
11868  ;;
11869
11870rdos*)
11871  lt_cv_deplibs_check_method=pass_all
11872  ;;
11873
11874solaris*)
11875  lt_cv_deplibs_check_method=pass_all
11876  ;;
11877
11878sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11879  lt_cv_deplibs_check_method=pass_all
11880  ;;
11881
11882sysv4 | sysv4.3*)
11883  case $host_vendor in
11884  motorola)
11885    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]'
11886    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11887    ;;
11888  ncr)
11889    lt_cv_deplibs_check_method=pass_all
11890    ;;
11891  sequent)
11892    lt_cv_file_magic_cmd='/bin/file'
11893    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11894    ;;
11895  sni)
11896    lt_cv_file_magic_cmd='/bin/file'
11897    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11898    lt_cv_file_magic_test_file=/lib/libc.so
11899    ;;
11900  siemens)
11901    lt_cv_deplibs_check_method=pass_all
11902    ;;
11903  pc)
11904    lt_cv_deplibs_check_method=pass_all
11905    ;;
11906  esac
11907  ;;
11908
11909tpf*)
11910  lt_cv_deplibs_check_method=pass_all
11911  ;;
11912os2*)
11913  lt_cv_deplibs_check_method=pass_all
11914  ;;
11915esac
11916
11917fi
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11919$as_echo "$lt_cv_deplibs_check_method" >&6; }
11920
11921file_magic_glob=
11922want_nocaseglob=no
11923if test "$build" = "$host"; then
11924  case $host_os in
11925  mingw* | pw32*)
11926    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11927      want_nocaseglob=yes
11928    else
11929      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11930    fi
11931    ;;
11932  esac
11933fi
11934
11935file_magic_cmd=$lt_cv_file_magic_cmd
11936deplibs_check_method=$lt_cv_deplibs_check_method
11937test -z "$deplibs_check_method" && deplibs_check_method=unknown
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960if test -n "$ac_tool_prefix"; then
11961  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11962set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964$as_echo_n "checking for $ac_word... " >&6; }
11965if ${ac_cv_prog_DLLTOOL+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  if test -n "$DLLTOOL"; then
11969  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11970else
11971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $PATH
11973do
11974  IFS=$as_save_IFS
11975  test -z "$as_dir" && as_dir=.
11976    for ac_exec_ext in '' $ac_executable_extensions; do
11977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980    break 2
11981  fi
11982done
11983  done
11984IFS=$as_save_IFS
11985
11986fi
11987fi
11988DLLTOOL=$ac_cv_prog_DLLTOOL
11989if test -n "$DLLTOOL"; then
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11991$as_echo "$DLLTOOL" >&6; }
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
11996
11997
11998fi
11999if test -z "$ac_cv_prog_DLLTOOL"; then
12000  ac_ct_DLLTOOL=$DLLTOOL
12001  # Extract the first word of "dlltool", so it can be a program name with args.
12002set dummy dlltool; ac_word=$2
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004$as_echo_n "checking for $ac_word... " >&6; }
12005if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  if test -n "$ac_ct_DLLTOOL"; then
12009  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12010else
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014  IFS=$as_save_IFS
12015  test -z "$as_dir" && as_dir=.
12016    for ac_exec_ext in '' $ac_executable_extensions; do
12017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020    break 2
12021  fi
12022done
12023  done
12024IFS=$as_save_IFS
12025
12026fi
12027fi
12028ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12029if test -n "$ac_ct_DLLTOOL"; then
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12031$as_echo "$ac_ct_DLLTOOL" >&6; }
12032else
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035fi
12036
12037  if test "x$ac_ct_DLLTOOL" = x; then
12038    DLLTOOL="false"
12039  else
12040    case $cross_compiling:$ac_tool_warned in
12041yes:)
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044ac_tool_warned=yes ;;
12045esac
12046    DLLTOOL=$ac_ct_DLLTOOL
12047  fi
12048else
12049  DLLTOOL="$ac_cv_prog_DLLTOOL"
12050fi
12051
12052test -z "$DLLTOOL" && DLLTOOL=dlltool
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12064$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12065if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12066  $as_echo_n "(cached) " >&6
12067else
12068  lt_cv_sharedlib_from_linklib_cmd='unknown'
12069
12070case $host_os in
12071cygwin* | mingw* | pw32* | cegcc*)
12072  # two different shell functions defined in ltmain.sh;
12073  # decide which one to use based on capabilities of $DLLTOOL
12074  case `$DLLTOOL --help 2>&1` in
12075  *--identify-strict*)
12076    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12077    ;;
12078  *)
12079    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12080    ;;
12081  esac
12082  ;;
12083*)
12084  # fallback: assume linklib IS sharedlib
12085  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12086  ;;
12087esac
12088
12089fi
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12091$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12092sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12093test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12094
12095
12096
12097
12098
12099
12100
12101if test -n "$ac_tool_prefix"; then
12102  for ac_prog in ar
12103  do
12104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107$as_echo_n "checking for $ac_word... " >&6; }
12108if ${ac_cv_prog_AR+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111  if test -n "$AR"; then
12112  ac_cv_prog_AR="$AR" # Let the user override the test.
12113else
12114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115for as_dir in $PATH
12116do
12117  IFS=$as_save_IFS
12118  test -z "$as_dir" && as_dir=.
12119    for ac_exec_ext in '' $ac_executable_extensions; do
12120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123    break 2
12124  fi
12125done
12126  done
12127IFS=$as_save_IFS
12128
12129fi
12130fi
12131AR=$ac_cv_prog_AR
12132if test -n "$AR"; then
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12134$as_echo "$AR" >&6; }
12135else
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138fi
12139
12140
12141    test -n "$AR" && break
12142  done
12143fi
12144if test -z "$AR"; then
12145  ac_ct_AR=$AR
12146  for ac_prog in ar
12147do
12148  # Extract the first word of "$ac_prog", so it can be a program name with args.
12149set dummy $ac_prog; ac_word=$2
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151$as_echo_n "checking for $ac_word... " >&6; }
12152if ${ac_cv_prog_ac_ct_AR+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  if test -n "$ac_ct_AR"; then
12156  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12157else
12158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159for as_dir in $PATH
12160do
12161  IFS=$as_save_IFS
12162  test -z "$as_dir" && as_dir=.
12163    for ac_exec_ext in '' $ac_executable_extensions; do
12164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165    ac_cv_prog_ac_ct_AR="$ac_prog"
12166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167    break 2
12168  fi
12169done
12170  done
12171IFS=$as_save_IFS
12172
12173fi
12174fi
12175ac_ct_AR=$ac_cv_prog_ac_ct_AR
12176if test -n "$ac_ct_AR"; then
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12178$as_echo "$ac_ct_AR" >&6; }
12179else
12180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
12182fi
12183
12184
12185  test -n "$ac_ct_AR" && break
12186done
12187
12188  if test "x$ac_ct_AR" = x; then
12189    AR="false"
12190  else
12191    case $cross_compiling:$ac_tool_warned in
12192yes:)
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12195ac_tool_warned=yes ;;
12196esac
12197    AR=$ac_ct_AR
12198  fi
12199fi
12200
12201: ${AR=ar}
12202: ${AR_FLAGS=cru}
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12215$as_echo_n "checking for archiver @FILE support... " >&6; }
12216if ${lt_cv_ar_at_file+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  lt_cv_ar_at_file=no
12220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221/* end confdefs.h.  */
12222
12223int
12224main ()
12225{
12226
12227  ;
12228  return 0;
12229}
12230_ACEOF
12231if ac_fn_c_try_compile "$LINENO"; then :
12232  echo conftest.$ac_objext > conftest.lst
12233      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12234      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12235  (eval $lt_ar_try) 2>&5
12236  ac_status=$?
12237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238  test $ac_status = 0; }
12239      if test 0 -eq "$ac_status"; then
12240	# Ensure the archiver fails upon bogus file names.
12241	rm -f conftest.$ac_objext libconftest.a
12242	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12243  (eval $lt_ar_try) 2>&5
12244  ac_status=$?
12245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12246  test $ac_status = 0; }
12247	if test 0 -ne "$ac_status"; then
12248          lt_cv_ar_at_file=@
12249        fi
12250      fi
12251      rm -f conftest.* libconftest.a
12252
12253fi
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255
12256fi
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12258$as_echo "$lt_cv_ar_at_file" >&6; }
12259
12260if test no = "$lt_cv_ar_at_file"; then
12261  archiver_list_spec=
12262else
12263  archiver_list_spec=$lt_cv_ar_at_file
12264fi
12265
12266
12267
12268
12269
12270
12271
12272if test -n "$ac_tool_prefix"; then
12273  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12274set dummy ${ac_tool_prefix}strip; ac_word=$2
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if ${ac_cv_prog_STRIP+:} false; then :
12278  $as_echo_n "(cached) " >&6
12279else
12280  if test -n "$STRIP"; then
12281  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286  IFS=$as_save_IFS
12287  test -z "$as_dir" && as_dir=.
12288    for ac_exec_ext in '' $ac_executable_extensions; do
12289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292    break 2
12293  fi
12294done
12295  done
12296IFS=$as_save_IFS
12297
12298fi
12299fi
12300STRIP=$ac_cv_prog_STRIP
12301if test -n "$STRIP"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12303$as_echo "$STRIP" >&6; }
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310fi
12311if test -z "$ac_cv_prog_STRIP"; then
12312  ac_ct_STRIP=$STRIP
12313  # Extract the first word of "strip", so it can be a program name with args.
12314set dummy strip; ac_word=$2
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316$as_echo_n "checking for $ac_word... " >&6; }
12317if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12318  $as_echo_n "(cached) " >&6
12319else
12320  if test -n "$ac_ct_STRIP"; then
12321  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12322else
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326  IFS=$as_save_IFS
12327  test -z "$as_dir" && as_dir=.
12328    for ac_exec_ext in '' $ac_executable_extensions; do
12329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330    ac_cv_prog_ac_ct_STRIP="strip"
12331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332    break 2
12333  fi
12334done
12335  done
12336IFS=$as_save_IFS
12337
12338fi
12339fi
12340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12341if test -n "$ac_ct_STRIP"; then
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12343$as_echo "$ac_ct_STRIP" >&6; }
12344else
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
12347fi
12348
12349  if test "x$ac_ct_STRIP" = x; then
12350    STRIP=":"
12351  else
12352    case $cross_compiling:$ac_tool_warned in
12353yes:)
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12356ac_tool_warned=yes ;;
12357esac
12358    STRIP=$ac_ct_STRIP
12359  fi
12360else
12361  STRIP="$ac_cv_prog_STRIP"
12362fi
12363
12364test -z "$STRIP" && STRIP=:
12365
12366
12367
12368
12369
12370
12371if test -n "$ac_tool_prefix"; then
12372  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12373set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
12376if ${ac_cv_prog_RANLIB+:} false; then :
12377  $as_echo_n "(cached) " >&6
12378else
12379  if test -n "$RANLIB"; then
12380  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385  IFS=$as_save_IFS
12386  test -z "$as_dir" && as_dir=.
12387    for ac_exec_ext in '' $ac_executable_extensions; do
12388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391    break 2
12392  fi
12393done
12394  done
12395IFS=$as_save_IFS
12396
12397fi
12398fi
12399RANLIB=$ac_cv_prog_RANLIB
12400if test -n "$RANLIB"; then
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12402$as_echo "$RANLIB" >&6; }
12403else
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
12406fi
12407
12408
12409fi
12410if test -z "$ac_cv_prog_RANLIB"; then
12411  ac_ct_RANLIB=$RANLIB
12412  # Extract the first word of "ranlib", so it can be a program name with args.
12413set dummy ranlib; ac_word=$2
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415$as_echo_n "checking for $ac_word... " >&6; }
12416if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12417  $as_echo_n "(cached) " >&6
12418else
12419  if test -n "$ac_ct_RANLIB"; then
12420  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12421else
12422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425  IFS=$as_save_IFS
12426  test -z "$as_dir" && as_dir=.
12427    for ac_exec_ext in '' $ac_executable_extensions; do
12428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12429    ac_cv_prog_ac_ct_RANLIB="ranlib"
12430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431    break 2
12432  fi
12433done
12434  done
12435IFS=$as_save_IFS
12436
12437fi
12438fi
12439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12440if test -n "$ac_ct_RANLIB"; then
12441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12442$as_echo "$ac_ct_RANLIB" >&6; }
12443else
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445$as_echo "no" >&6; }
12446fi
12447
12448  if test "x$ac_ct_RANLIB" = x; then
12449    RANLIB=":"
12450  else
12451    case $cross_compiling:$ac_tool_warned in
12452yes:)
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12455ac_tool_warned=yes ;;
12456esac
12457    RANLIB=$ac_ct_RANLIB
12458  fi
12459else
12460  RANLIB="$ac_cv_prog_RANLIB"
12461fi
12462
12463test -z "$RANLIB" && RANLIB=:
12464
12465
12466
12467
12468
12469
12470# Determine commands to create old-style static archives.
12471old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12472old_postinstall_cmds='chmod 644 $oldlib'
12473old_postuninstall_cmds=
12474
12475if test -n "$RANLIB"; then
12476  case $host_os in
12477  bitrig* | openbsd*)
12478    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12479    ;;
12480  *)
12481    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12482    ;;
12483  esac
12484  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12485fi
12486
12487case $host_os in
12488  darwin*)
12489    lock_old_archive_extraction=yes ;;
12490  *)
12491    lock_old_archive_extraction=no ;;
12492esac
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532# If no C compiler was specified, use CC.
12533LTCC=${LTCC-"$CC"}
12534
12535# If no C compiler flags were specified, use CFLAGS.
12536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12537
12538# Allow CC to be a program name with arguments.
12539compiler=$CC
12540
12541
12542# Check for command to grab the raw symbol name followed by C symbol from nm.
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12544$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12545if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548
12549# These are sane defaults that work on at least a few old systems.
12550# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12551
12552# Character class describing NM global symbol codes.
12553symcode='[BCDEGRST]'
12554
12555# Regexp to match symbols that can be accessed directly from C.
12556sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12557
12558# Define system-specific variables.
12559case $host_os in
12560aix*)
12561  symcode='[BCDT]'
12562  ;;
12563cygwin* | mingw* | pw32* | cegcc*)
12564  symcode='[ABCDGISTW]'
12565  ;;
12566hpux*)
12567  if test ia64 = "$host_cpu"; then
12568    symcode='[ABCDEGRST]'
12569  fi
12570  ;;
12571irix* | nonstopux*)
12572  symcode='[BCDEGRST]'
12573  ;;
12574osf*)
12575  symcode='[BCDEGQRST]'
12576  ;;
12577solaris*)
12578  symcode='[BDRT]'
12579  ;;
12580sco3.2v5*)
12581  symcode='[DT]'
12582  ;;
12583sysv4.2uw2*)
12584  symcode='[DT]'
12585  ;;
12586sysv5* | sco5v6* | unixware* | OpenUNIX*)
12587  symcode='[ABDT]'
12588  ;;
12589sysv4)
12590  symcode='[DFNSTU]'
12591  ;;
12592esac
12593
12594# If we're using GNU nm, then use its standard symbol codes.
12595case `$NM -V 2>&1` in
12596*GNU* | *'with BFD'*)
12597  symcode='[ABCDGIRSTW]' ;;
12598esac
12599
12600if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12601  # Gets list of data symbols to import.
12602  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12603  # Adjust the below global symbol transforms to fixup imported variables.
12604  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12605  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12606  lt_c_name_lib_hook="\
12607  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12608  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12609else
12610  # Disable hooks by default.
12611  lt_cv_sys_global_symbol_to_import=
12612  lt_cdecl_hook=
12613  lt_c_name_hook=
12614  lt_c_name_lib_hook=
12615fi
12616
12617# Transform an extracted symbol line into a proper C declaration.
12618# Some systems (esp. on ia64) link data and code symbols differently,
12619# so use this general approach.
12620lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12621$lt_cdecl_hook\
12622" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12623" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12624
12625# Transform an extracted symbol line into symbol name and symbol address
12626lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12627$lt_c_name_hook\
12628" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12629" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12630
12631# Transform an extracted symbol line into symbol name with lib prefix and
12632# symbol address.
12633lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12634$lt_c_name_lib_hook\
12635" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12636" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12637" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12638
12639# Handle CRLF in mingw tool chain
12640opt_cr=
12641case $build_os in
12642mingw*)
12643  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12644  ;;
12645esac
12646
12647# Try without a prefix underscore, then with it.
12648for ac_symprfx in "" "_"; do
12649
12650  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12651  symxfrm="\\1 $ac_symprfx\\2 \\2"
12652
12653  # Write the raw and C identifiers.
12654  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12655    # Fake it for dumpbin and say T for any non-static function,
12656    # D for any global variable and I for any imported variable.
12657    # Also find C++ and __fastcall symbols from MSVC++,
12658    # which start with @ or ?.
12659    lt_cv_sys_global_symbol_pipe="$AWK '"\
12660"     {last_section=section; section=\$ 3};"\
12661"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12662"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12663"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12664"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12665"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12666"     \$ 0!~/External *\|/{next};"\
12667"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12668"     {if(hide[section]) next};"\
12669"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12670"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12671"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12672"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12673"     ' prfx=^$ac_symprfx"
12674  else
12675    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12676  fi
12677  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12678
12679  # Check to see that the pipe works correctly.
12680  pipe_works=no
12681
12682  rm -f conftest*
12683  cat > conftest.$ac_ext <<_LT_EOF
12684#ifdef __cplusplus
12685extern "C" {
12686#endif
12687char nm_test_var;
12688void nm_test_func(void);
12689void nm_test_func(void){}
12690#ifdef __cplusplus
12691}
12692#endif
12693int main(){nm_test_var='a';nm_test_func();return(0);}
12694_LT_EOF
12695
12696  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12697  (eval $ac_compile) 2>&5
12698  ac_status=$?
12699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700  test $ac_status = 0; }; then
12701    # Now try to grab the symbols.
12702    nlist=conftest.nm
12703    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12704  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12705  ac_status=$?
12706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12707  test $ac_status = 0; } && test -s "$nlist"; then
12708      # Try sorting and uniquifying the output.
12709      if sort "$nlist" | uniq > "$nlist"T; then
12710	mv -f "$nlist"T "$nlist"
12711      else
12712	rm -f "$nlist"T
12713      fi
12714
12715      # Make sure that we snagged all the symbols we need.
12716      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12717	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12718	  cat <<_LT_EOF > conftest.$ac_ext
12719/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12720#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12721/* DATA imports from DLLs on WIN32 can't be const, because runtime
12722   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12723# define LT_DLSYM_CONST
12724#elif defined __osf__
12725/* This system does not cope well with relocations in const data.  */
12726# define LT_DLSYM_CONST
12727#else
12728# define LT_DLSYM_CONST const
12729#endif
12730
12731#ifdef __cplusplus
12732extern "C" {
12733#endif
12734
12735_LT_EOF
12736	  # Now generate the symbol file.
12737	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12738
12739	  cat <<_LT_EOF >> conftest.$ac_ext
12740
12741/* The mapping between symbol names and symbols.  */
12742LT_DLSYM_CONST struct {
12743  const char *name;
12744  void       *address;
12745}
12746lt__PROGRAM__LTX_preloaded_symbols[] =
12747{
12748  { "@PROGRAM@", (void *) 0 },
12749_LT_EOF
12750	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12751	  cat <<\_LT_EOF >> conftest.$ac_ext
12752  {0, (void *) 0}
12753};
12754
12755/* This works around a problem in FreeBSD linker */
12756#ifdef FREEBSD_WORKAROUND
12757static const void *lt_preloaded_setup() {
12758  return lt__PROGRAM__LTX_preloaded_symbols;
12759}
12760#endif
12761
12762#ifdef __cplusplus
12763}
12764#endif
12765_LT_EOF
12766	  # Now try linking the two files.
12767	  mv conftest.$ac_objext conftstm.$ac_objext
12768	  lt_globsym_save_LIBS=$LIBS
12769	  lt_globsym_save_CFLAGS=$CFLAGS
12770	  LIBS=conftstm.$ac_objext
12771	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12772	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12773  (eval $ac_link) 2>&5
12774  ac_status=$?
12775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12776  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12777	    pipe_works=yes
12778	  fi
12779	  LIBS=$lt_globsym_save_LIBS
12780	  CFLAGS=$lt_globsym_save_CFLAGS
12781	else
12782	  echo "cannot find nm_test_func in $nlist" >&5
12783	fi
12784      else
12785	echo "cannot find nm_test_var in $nlist" >&5
12786      fi
12787    else
12788      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12789    fi
12790  else
12791    echo "$progname: failed program was:" >&5
12792    cat conftest.$ac_ext >&5
12793  fi
12794  rm -rf conftest* conftst*
12795
12796  # Do not use the global_symbol_pipe unless it works.
12797  if test yes = "$pipe_works"; then
12798    break
12799  else
12800    lt_cv_sys_global_symbol_pipe=
12801  fi
12802done
12803
12804fi
12805
12806if test -z "$lt_cv_sys_global_symbol_pipe"; then
12807  lt_cv_sys_global_symbol_to_cdecl=
12808fi
12809if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12811$as_echo "failed" >&6; }
12812else
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12814$as_echo "ok" >&6; }
12815fi
12816
12817# Response file support.
12818if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12819  nm_file_list_spec='@'
12820elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12821  nm_file_list_spec='@'
12822fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12861$as_echo_n "checking for sysroot... " >&6; }
12862
12863# Check whether --with-sysroot was given.
12864if test "${with_sysroot+set}" = set; then :
12865  withval=$with_sysroot;
12866else
12867  with_sysroot=no
12868fi
12869
12870
12871lt_sysroot=
12872case $with_sysroot in #(
12873 yes)
12874   if test yes = "$GCC"; then
12875     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12876   fi
12877   ;; #(
12878 /*)
12879   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12880   ;; #(
12881 no|'')
12882   ;; #(
12883 *)
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12885$as_echo "$with_sysroot" >&6; }
12886   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12887   ;;
12888esac
12889
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12891$as_echo "${lt_sysroot:-no}" >&6; }
12892
12893
12894
12895
12896
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12898$as_echo_n "checking for a working dd... " >&6; }
12899if ${ac_cv_path_lt_DD+:} false; then :
12900  $as_echo_n "(cached) " >&6
12901else
12902  printf 0123456789abcdef0123456789abcdef >conftest.i
12903cat conftest.i conftest.i >conftest2.i
12904: ${lt_DD:=$DD}
12905if test -z "$lt_DD"; then
12906  ac_path_lt_DD_found=false
12907  # Loop through the user's path and test for each of PROGNAME-LIST
12908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909for as_dir in $PATH
12910do
12911  IFS=$as_save_IFS
12912  test -z "$as_dir" && as_dir=.
12913    for ac_prog in dd; do
12914    for ac_exec_ext in '' $ac_executable_extensions; do
12915      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12916      as_fn_executable_p "$ac_path_lt_DD" || continue
12917if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12918  cmp -s conftest.i conftest.out \
12919  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12920fi
12921      $ac_path_lt_DD_found && break 3
12922    done
12923  done
12924  done
12925IFS=$as_save_IFS
12926  if test -z "$ac_cv_path_lt_DD"; then
12927    :
12928  fi
12929else
12930  ac_cv_path_lt_DD=$lt_DD
12931fi
12932
12933rm -f conftest.i conftest2.i conftest.out
12934fi
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12936$as_echo "$ac_cv_path_lt_DD" >&6; }
12937
12938
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12940$as_echo_n "checking how to truncate binary pipes... " >&6; }
12941if ${lt_cv_truncate_bin+:} false; then :
12942  $as_echo_n "(cached) " >&6
12943else
12944  printf 0123456789abcdef0123456789abcdef >conftest.i
12945cat conftest.i conftest.i >conftest2.i
12946lt_cv_truncate_bin=
12947if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12948  cmp -s conftest.i conftest.out \
12949  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12950fi
12951rm -f conftest.i conftest2.i conftest.out
12952test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12953fi
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12955$as_echo "$lt_cv_truncate_bin" >&6; }
12956
12957
12958
12959
12960
12961
12962
12963# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
12964func_cc_basename ()
12965{
12966    for cc_temp in $*""; do
12967      case $cc_temp in
12968        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12969        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12970        \-*) ;;
12971        *) break;;
12972      esac
12973    done
12974    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12975}
12976
12977# Check whether --enable-libtool-lock was given.
12978if test "${enable_libtool_lock+set}" = set; then :
12979  enableval=$enable_libtool_lock;
12980fi
12981
12982test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12983
12984# Some flags need to be propagated to the compiler or linker for good
12985# libtool support.
12986case $host in
12987ia64-*-hpux*)
12988  # Find out what ABI is being produced by ac_compile, and set mode
12989  # options accordingly.
12990  echo 'int i;' > conftest.$ac_ext
12991  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12992  (eval $ac_compile) 2>&5
12993  ac_status=$?
12994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995  test $ac_status = 0; }; then
12996    case `/usr/bin/file conftest.$ac_objext` in
12997      *ELF-32*)
12998	HPUX_IA64_MODE=32
12999	;;
13000      *ELF-64*)
13001	HPUX_IA64_MODE=64
13002	;;
13003    esac
13004  fi
13005  rm -rf conftest*
13006  ;;
13007*-*-irix6*)
13008  # Find out what ABI is being produced by ac_compile, and set linker
13009  # options accordingly.
13010  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13011  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13012  (eval $ac_compile) 2>&5
13013  ac_status=$?
13014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015  test $ac_status = 0; }; then
13016    if test yes = "$lt_cv_prog_gnu_ld"; then
13017      case `/usr/bin/file conftest.$ac_objext` in
13018	*32-bit*)
13019	  LD="${LD-ld} -melf32bsmip"
13020	  ;;
13021	*N32*)
13022	  LD="${LD-ld} -melf32bmipn32"
13023	  ;;
13024	*64-bit*)
13025	  LD="${LD-ld} -melf64bmip"
13026	;;
13027      esac
13028    else
13029      case `/usr/bin/file conftest.$ac_objext` in
13030	*32-bit*)
13031	  LD="${LD-ld} -32"
13032	  ;;
13033	*N32*)
13034	  LD="${LD-ld} -n32"
13035	  ;;
13036	*64-bit*)
13037	  LD="${LD-ld} -64"
13038	  ;;
13039      esac
13040    fi
13041  fi
13042  rm -rf conftest*
13043  ;;
13044
13045mips64*-*linux*)
13046  # Find out what ABI is being produced by ac_compile, and set linker
13047  # options accordingly.
13048  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13049  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13050  (eval $ac_compile) 2>&5
13051  ac_status=$?
13052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13053  test $ac_status = 0; }; then
13054    emul=elf
13055    case `/usr/bin/file conftest.$ac_objext` in
13056      *32-bit*)
13057	emul="${emul}32"
13058	;;
13059      *64-bit*)
13060	emul="${emul}64"
13061	;;
13062    esac
13063    case `/usr/bin/file conftest.$ac_objext` in
13064      *MSB*)
13065	emul="${emul}btsmip"
13066	;;
13067      *LSB*)
13068	emul="${emul}ltsmip"
13069	;;
13070    esac
13071    case `/usr/bin/file conftest.$ac_objext` in
13072      *N32*)
13073	emul="${emul}n32"
13074	;;
13075    esac
13076    LD="${LD-ld} -m $emul"
13077  fi
13078  rm -rf conftest*
13079  ;;
13080
13081x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13082s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13083  # Find out what ABI is being produced by ac_compile, and set linker
13084  # options accordingly.  Note that the listed cases only cover the
13085  # situations where additional linker options are needed (such as when
13086  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13087  # vice versa); the common cases where no linker options are needed do
13088  # not appear in the list.
13089  echo 'int i;' > conftest.$ac_ext
13090  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13091  (eval $ac_compile) 2>&5
13092  ac_status=$?
13093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13094  test $ac_status = 0; }; then
13095    case `/usr/bin/file conftest.o` in
13096      *32-bit*)
13097	case $host in
13098	  x86_64-*kfreebsd*-gnu)
13099	    LD="${LD-ld} -m elf_i386_fbsd"
13100	    ;;
13101	  x86_64-*linux*)
13102	    case `/usr/bin/file conftest.o` in
13103	      *x86-64*)
13104		LD="${LD-ld} -m elf32_x86_64"
13105		;;
13106	      *)
13107		LD="${LD-ld} -m elf_i386"
13108		;;
13109	    esac
13110	    ;;
13111	  powerpc64le-*linux*)
13112	    LD="${LD-ld} -m elf32lppclinux"
13113	    ;;
13114	  powerpc64-*linux*)
13115	    LD="${LD-ld} -m elf32ppclinux"
13116	    ;;
13117	  s390x-*linux*)
13118	    LD="${LD-ld} -m elf_s390"
13119	    ;;
13120	  sparc64-*linux*)
13121	    LD="${LD-ld} -m elf32_sparc"
13122	    ;;
13123	esac
13124	;;
13125      *64-bit*)
13126	case $host in
13127	  x86_64-*kfreebsd*-gnu)
13128	    LD="${LD-ld} -m elf_x86_64_fbsd"
13129	    ;;
13130	  x86_64-*linux*)
13131	    LD="${LD-ld} -m elf_x86_64"
13132	    ;;
13133	  powerpcle-*linux*)
13134	    LD="${LD-ld} -m elf64lppc"
13135	    ;;
13136	  powerpc-*linux*)
13137	    LD="${LD-ld} -m elf64ppc"
13138	    ;;
13139	  s390*-*linux*|s390*-*tpf*)
13140	    LD="${LD-ld} -m elf64_s390"
13141	    ;;
13142	  sparc*-*linux*)
13143	    LD="${LD-ld} -m elf64_sparc"
13144	    ;;
13145	esac
13146	;;
13147    esac
13148  fi
13149  rm -rf conftest*
13150  ;;
13151
13152*-*-sco3.2v5*)
13153  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13154  SAVE_CFLAGS=$CFLAGS
13155  CFLAGS="$CFLAGS -belf"
13156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13157$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13158if ${lt_cv_cc_needs_belf+:} false; then :
13159  $as_echo_n "(cached) " >&6
13160else
13161  ac_ext=c
13162ac_cpp='$CPP $CPPFLAGS'
13163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165ac_compiler_gnu=$ac_cv_c_compiler_gnu
13166
13167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168/* end confdefs.h.  */
13169
13170int
13171main ()
13172{
13173
13174  ;
13175  return 0;
13176}
13177_ACEOF
13178if ac_fn_c_try_link "$LINENO"; then :
13179  lt_cv_cc_needs_belf=yes
13180else
13181  lt_cv_cc_needs_belf=no
13182fi
13183rm -f core conftest.err conftest.$ac_objext \
13184    conftest$ac_exeext conftest.$ac_ext
13185     ac_ext=c
13186ac_cpp='$CPP $CPPFLAGS'
13187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189ac_compiler_gnu=$ac_cv_c_compiler_gnu
13190
13191fi
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13193$as_echo "$lt_cv_cc_needs_belf" >&6; }
13194  if test yes != "$lt_cv_cc_needs_belf"; then
13195    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13196    CFLAGS=$SAVE_CFLAGS
13197  fi
13198  ;;
13199*-*solaris*)
13200  # Find out what ABI is being produced by ac_compile, and set linker
13201  # options accordingly.
13202  echo 'int i;' > conftest.$ac_ext
13203  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13204  (eval $ac_compile) 2>&5
13205  ac_status=$?
13206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13207  test $ac_status = 0; }; then
13208    case `/usr/bin/file conftest.o` in
13209    *64-bit*)
13210      case $lt_cv_prog_gnu_ld in
13211      yes*)
13212        case $host in
13213        i?86-*-solaris*|x86_64-*-solaris*)
13214          LD="${LD-ld} -m elf_x86_64"
13215          ;;
13216        sparc*-*-solaris*)
13217          LD="${LD-ld} -m elf64_sparc"
13218          ;;
13219        esac
13220        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13221        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13222          LD=${LD-ld}_sol2
13223        fi
13224        ;;
13225      *)
13226	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13227	  LD="${LD-ld} -64"
13228	fi
13229	;;
13230      esac
13231      ;;
13232    esac
13233  fi
13234  rm -rf conftest*
13235  ;;
13236esac
13237
13238need_locks=$enable_libtool_lock
13239
13240if test -n "$ac_tool_prefix"; then
13241  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13242set dummy ${ac_tool_prefix}mt; ac_word=$2
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244$as_echo_n "checking for $ac_word... " >&6; }
13245if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13246  $as_echo_n "(cached) " >&6
13247else
13248  if test -n "$MANIFEST_TOOL"; then
13249  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13250else
13251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $PATH
13253do
13254  IFS=$as_save_IFS
13255  test -z "$as_dir" && as_dir=.
13256    for ac_exec_ext in '' $ac_executable_extensions; do
13257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13258    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260    break 2
13261  fi
13262done
13263  done
13264IFS=$as_save_IFS
13265
13266fi
13267fi
13268MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13269if test -n "$MANIFEST_TOOL"; then
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13271$as_echo "$MANIFEST_TOOL" >&6; }
13272else
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274$as_echo "no" >&6; }
13275fi
13276
13277
13278fi
13279if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13280  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13281  # Extract the first word of "mt", so it can be a program name with args.
13282set dummy mt; ac_word=$2
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284$as_echo_n "checking for $ac_word... " >&6; }
13285if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13286  $as_echo_n "(cached) " >&6
13287else
13288  if test -n "$ac_ct_MANIFEST_TOOL"; then
13289  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13290else
13291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294  IFS=$as_save_IFS
13295  test -z "$as_dir" && as_dir=.
13296    for ac_exec_ext in '' $ac_executable_extensions; do
13297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13298    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300    break 2
13301  fi
13302done
13303  done
13304IFS=$as_save_IFS
13305
13306fi
13307fi
13308ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13309if test -n "$ac_ct_MANIFEST_TOOL"; then
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13311$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13312else
13313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315fi
13316
13317  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13318    MANIFEST_TOOL=":"
13319  else
13320    case $cross_compiling:$ac_tool_warned in
13321yes:)
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13324ac_tool_warned=yes ;;
13325esac
13326    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13327  fi
13328else
13329  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13330fi
13331
13332test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13334$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13335if ${lt_cv_path_mainfest_tool+:} false; then :
13336  $as_echo_n "(cached) " >&6
13337else
13338  lt_cv_path_mainfest_tool=no
13339  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13340  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13341  cat conftest.err >&5
13342  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13343    lt_cv_path_mainfest_tool=yes
13344  fi
13345  rm -f conftest*
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13348$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13349if test yes != "$lt_cv_path_mainfest_tool"; then
13350  MANIFEST_TOOL=:
13351fi
13352
13353
13354
13355
13356
13357
13358  case $host_os in
13359    rhapsody* | darwin*)
13360    if test -n "$ac_tool_prefix"; then
13361  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13362set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
13365if ${ac_cv_prog_DSYMUTIL+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  if test -n "$DSYMUTIL"; then
13369  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13370else
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374  IFS=$as_save_IFS
13375  test -z "$as_dir" && as_dir=.
13376    for ac_exec_ext in '' $ac_executable_extensions; do
13377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380    break 2
13381  fi
13382done
13383  done
13384IFS=$as_save_IFS
13385
13386fi
13387fi
13388DSYMUTIL=$ac_cv_prog_DSYMUTIL
13389if test -n "$DSYMUTIL"; then
13390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13391$as_echo "$DSYMUTIL" >&6; }
13392else
13393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
13395fi
13396
13397
13398fi
13399if test -z "$ac_cv_prog_DSYMUTIL"; then
13400  ac_ct_DSYMUTIL=$DSYMUTIL
13401  # Extract the first word of "dsymutil", so it can be a program name with args.
13402set dummy dsymutil; ac_word=$2
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13404$as_echo_n "checking for $ac_word... " >&6; }
13405if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13406  $as_echo_n "(cached) " >&6
13407else
13408  if test -n "$ac_ct_DSYMUTIL"; then
13409  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13410else
13411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412for as_dir in $PATH
13413do
13414  IFS=$as_save_IFS
13415  test -z "$as_dir" && as_dir=.
13416    for ac_exec_ext in '' $ac_executable_extensions; do
13417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13418    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13420    break 2
13421  fi
13422done
13423  done
13424IFS=$as_save_IFS
13425
13426fi
13427fi
13428ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13429if test -n "$ac_ct_DSYMUTIL"; then
13430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13431$as_echo "$ac_ct_DSYMUTIL" >&6; }
13432else
13433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434$as_echo "no" >&6; }
13435fi
13436
13437  if test "x$ac_ct_DSYMUTIL" = x; then
13438    DSYMUTIL=":"
13439  else
13440    case $cross_compiling:$ac_tool_warned in
13441yes:)
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13444ac_tool_warned=yes ;;
13445esac
13446    DSYMUTIL=$ac_ct_DSYMUTIL
13447  fi
13448else
13449  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13450fi
13451
13452    if test -n "$ac_tool_prefix"; then
13453  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13454set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
13457if ${ac_cv_prog_NMEDIT+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  if test -n "$NMEDIT"; then
13461  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466  IFS=$as_save_IFS
13467  test -z "$as_dir" && as_dir=.
13468    for ac_exec_ext in '' $ac_executable_extensions; do
13469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13470    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472    break 2
13473  fi
13474done
13475  done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480NMEDIT=$ac_cv_prog_NMEDIT
13481if test -n "$NMEDIT"; then
13482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13483$as_echo "$NMEDIT" >&6; }
13484else
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489
13490fi
13491if test -z "$ac_cv_prog_NMEDIT"; then
13492  ac_ct_NMEDIT=$NMEDIT
13493  # Extract the first word of "nmedit", so it can be a program name with args.
13494set dummy nmedit; ac_word=$2
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
13497if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13498  $as_echo_n "(cached) " >&6
13499else
13500  if test -n "$ac_ct_NMEDIT"; then
13501  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506  IFS=$as_save_IFS
13507  test -z "$as_dir" && as_dir=.
13508    for ac_exec_ext in '' $ac_executable_extensions; do
13509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13510    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512    break 2
13513  fi
13514done
13515  done
13516IFS=$as_save_IFS
13517
13518fi
13519fi
13520ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13521if test -n "$ac_ct_NMEDIT"; then
13522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13523$as_echo "$ac_ct_NMEDIT" >&6; }
13524else
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527fi
13528
13529  if test "x$ac_ct_NMEDIT" = x; then
13530    NMEDIT=":"
13531  else
13532    case $cross_compiling:$ac_tool_warned in
13533yes:)
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13536ac_tool_warned=yes ;;
13537esac
13538    NMEDIT=$ac_ct_NMEDIT
13539  fi
13540else
13541  NMEDIT="$ac_cv_prog_NMEDIT"
13542fi
13543
13544    if test -n "$ac_tool_prefix"; then
13545  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13546set dummy ${ac_tool_prefix}lipo; ac_word=$2
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548$as_echo_n "checking for $ac_word... " >&6; }
13549if ${ac_cv_prog_LIPO+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552  if test -n "$LIPO"; then
13553  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13554else
13555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558  IFS=$as_save_IFS
13559  test -z "$as_dir" && as_dir=.
13560    for ac_exec_ext in '' $ac_executable_extensions; do
13561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564    break 2
13565  fi
13566done
13567  done
13568IFS=$as_save_IFS
13569
13570fi
13571fi
13572LIPO=$ac_cv_prog_LIPO
13573if test -n "$LIPO"; then
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13575$as_echo "$LIPO" >&6; }
13576else
13577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581
13582fi
13583if test -z "$ac_cv_prog_LIPO"; then
13584  ac_ct_LIPO=$LIPO
13585  # Extract the first word of "lipo", so it can be a program name with args.
13586set dummy lipo; ac_word=$2
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
13589if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13590  $as_echo_n "(cached) " >&6
13591else
13592  if test -n "$ac_ct_LIPO"; then
13593  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13594else
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598  IFS=$as_save_IFS
13599  test -z "$as_dir" && as_dir=.
13600    for ac_exec_ext in '' $ac_executable_extensions; do
13601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602    ac_cv_prog_ac_ct_LIPO="lipo"
13603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604    break 2
13605  fi
13606done
13607  done
13608IFS=$as_save_IFS
13609
13610fi
13611fi
13612ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13613if test -n "$ac_ct_LIPO"; then
13614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13615$as_echo "$ac_ct_LIPO" >&6; }
13616else
13617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
13619fi
13620
13621  if test "x$ac_ct_LIPO" = x; then
13622    LIPO=":"
13623  else
13624    case $cross_compiling:$ac_tool_warned in
13625yes:)
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13628ac_tool_warned=yes ;;
13629esac
13630    LIPO=$ac_ct_LIPO
13631  fi
13632else
13633  LIPO="$ac_cv_prog_LIPO"
13634fi
13635
13636    if test -n "$ac_tool_prefix"; then
13637  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13638set dummy ${ac_tool_prefix}otool; ac_word=$2
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
13641if ${ac_cv_prog_OTOOL+:} false; then :
13642  $as_echo_n "(cached) " >&6
13643else
13644  if test -n "$OTOOL"; then
13645  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13646else
13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648for as_dir in $PATH
13649do
13650  IFS=$as_save_IFS
13651  test -z "$as_dir" && as_dir=.
13652    for ac_exec_ext in '' $ac_executable_extensions; do
13653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13654    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656    break 2
13657  fi
13658done
13659  done
13660IFS=$as_save_IFS
13661
13662fi
13663fi
13664OTOOL=$ac_cv_prog_OTOOL
13665if test -n "$OTOOL"; then
13666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13667$as_echo "$OTOOL" >&6; }
13668else
13669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
13671fi
13672
13673
13674fi
13675if test -z "$ac_cv_prog_OTOOL"; then
13676  ac_ct_OTOOL=$OTOOL
13677  # Extract the first word of "otool", so it can be a program name with args.
13678set dummy otool; ac_word=$2
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13680$as_echo_n "checking for $ac_word... " >&6; }
13681if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13682  $as_echo_n "(cached) " >&6
13683else
13684  if test -n "$ac_ct_OTOOL"; then
13685  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13686else
13687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688for as_dir in $PATH
13689do
13690  IFS=$as_save_IFS
13691  test -z "$as_dir" && as_dir=.
13692    for ac_exec_ext in '' $ac_executable_extensions; do
13693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694    ac_cv_prog_ac_ct_OTOOL="otool"
13695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696    break 2
13697  fi
13698done
13699  done
13700IFS=$as_save_IFS
13701
13702fi
13703fi
13704ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13705if test -n "$ac_ct_OTOOL"; then
13706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13707$as_echo "$ac_ct_OTOOL" >&6; }
13708else
13709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710$as_echo "no" >&6; }
13711fi
13712
13713  if test "x$ac_ct_OTOOL" = x; then
13714    OTOOL=":"
13715  else
13716    case $cross_compiling:$ac_tool_warned in
13717yes:)
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13720ac_tool_warned=yes ;;
13721esac
13722    OTOOL=$ac_ct_OTOOL
13723  fi
13724else
13725  OTOOL="$ac_cv_prog_OTOOL"
13726fi
13727
13728    if test -n "$ac_tool_prefix"; then
13729  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13730set dummy ${ac_tool_prefix}otool64; ac_word=$2
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732$as_echo_n "checking for $ac_word... " >&6; }
13733if ${ac_cv_prog_OTOOL64+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  if test -n "$OTOOL64"; then
13737  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13738else
13739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740for as_dir in $PATH
13741do
13742  IFS=$as_save_IFS
13743  test -z "$as_dir" && as_dir=.
13744    for ac_exec_ext in '' $ac_executable_extensions; do
13745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748    break 2
13749  fi
13750done
13751  done
13752IFS=$as_save_IFS
13753
13754fi
13755fi
13756OTOOL64=$ac_cv_prog_OTOOL64
13757if test -n "$OTOOL64"; then
13758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13759$as_echo "$OTOOL64" >&6; }
13760else
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762$as_echo "no" >&6; }
13763fi
13764
13765
13766fi
13767if test -z "$ac_cv_prog_OTOOL64"; then
13768  ac_ct_OTOOL64=$OTOOL64
13769  # Extract the first word of "otool64", so it can be a program name with args.
13770set dummy otool64; ac_word=$2
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772$as_echo_n "checking for $ac_word... " >&6; }
13773if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13774  $as_echo_n "(cached) " >&6
13775else
13776  if test -n "$ac_ct_OTOOL64"; then
13777  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13778else
13779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782  IFS=$as_save_IFS
13783  test -z "$as_dir" && as_dir=.
13784    for ac_exec_ext in '' $ac_executable_extensions; do
13785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786    ac_cv_prog_ac_ct_OTOOL64="otool64"
13787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788    break 2
13789  fi
13790done
13791  done
13792IFS=$as_save_IFS
13793
13794fi
13795fi
13796ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13797if test -n "$ac_ct_OTOOL64"; then
13798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13799$as_echo "$ac_ct_OTOOL64" >&6; }
13800else
13801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802$as_echo "no" >&6; }
13803fi
13804
13805  if test "x$ac_ct_OTOOL64" = x; then
13806    OTOOL64=":"
13807  else
13808    case $cross_compiling:$ac_tool_warned in
13809yes:)
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13812ac_tool_warned=yes ;;
13813esac
13814    OTOOL64=$ac_ct_OTOOL64
13815  fi
13816else
13817  OTOOL64="$ac_cv_prog_OTOOL64"
13818fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13847$as_echo_n "checking for -single_module linker flag... " >&6; }
13848if ${lt_cv_apple_cc_single_mod+:} false; then :
13849  $as_echo_n "(cached) " >&6
13850else
13851  lt_cv_apple_cc_single_mod=no
13852      if test -z "$LT_MULTI_MODULE"; then
13853	# By default we will add the -single_module flag. You can override
13854	# by either setting the environment variable LT_MULTI_MODULE
13855	# non-empty at configure time, or by adding -multi_module to the
13856	# link flags.
13857	rm -rf libconftest.dylib*
13858	echo "int foo(void){return 1;}" > conftest.c
13859	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13860-dynamiclib -Wl,-single_module conftest.c" >&5
13861	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13862	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13863        _lt_result=$?
13864	# If there is a non-empty error log, and "single_module"
13865	# appears in it, assume the flag caused a linker warning
13866        if test -s conftest.err && $GREP single_module conftest.err; then
13867	  cat conftest.err >&5
13868	# Otherwise, if the output was created with a 0 exit code from
13869	# the compiler, it worked.
13870	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13871	  lt_cv_apple_cc_single_mod=yes
13872	else
13873	  cat conftest.err >&5
13874	fi
13875	rm -rf libconftest.dylib*
13876	rm -f conftest.*
13877      fi
13878fi
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13880$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13881
13882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13883$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13884if ${lt_cv_ld_exported_symbols_list+:} false; then :
13885  $as_echo_n "(cached) " >&6
13886else
13887  lt_cv_ld_exported_symbols_list=no
13888      save_LDFLAGS=$LDFLAGS
13889      echo "_main" > conftest.sym
13890      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13891      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892/* end confdefs.h.  */
13893
13894int
13895main ()
13896{
13897
13898  ;
13899  return 0;
13900}
13901_ACEOF
13902if ac_fn_c_try_link "$LINENO"; then :
13903  lt_cv_ld_exported_symbols_list=yes
13904else
13905  lt_cv_ld_exported_symbols_list=no
13906fi
13907rm -f core conftest.err conftest.$ac_objext \
13908    conftest$ac_exeext conftest.$ac_ext
13909	LDFLAGS=$save_LDFLAGS
13910
13911fi
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13913$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13914
13915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13916$as_echo_n "checking for -force_load linker flag... " >&6; }
13917if ${lt_cv_ld_force_load+:} false; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  lt_cv_ld_force_load=no
13921      cat > conftest.c << _LT_EOF
13922int forced_loaded() { return 2;}
13923_LT_EOF
13924      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13925      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13926      echo "$AR cru libconftest.a conftest.o" >&5
13927      $AR cru libconftest.a conftest.o 2>&5
13928      echo "$RANLIB libconftest.a" >&5
13929      $RANLIB libconftest.a 2>&5
13930      cat > conftest.c << _LT_EOF
13931int main() { return 0;}
13932_LT_EOF
13933      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13934      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13935      _lt_result=$?
13936      if test -s conftest.err && $GREP force_load conftest.err; then
13937	cat conftest.err >&5
13938      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13939	lt_cv_ld_force_load=yes
13940      else
13941	cat conftest.err >&5
13942      fi
13943        rm -f conftest.err libconftest.a conftest conftest.c
13944        rm -rf conftest.dSYM
13945
13946fi
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13948$as_echo "$lt_cv_ld_force_load" >&6; }
13949    case $host_os in
13950    rhapsody* | darwin1.[012])
13951      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13952    darwin1.*)
13953      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13954    darwin*) # darwin 5.x on
13955      # if running on 10.5 or later, the deployment target defaults
13956      # to the OS version, if on x86, and 10.4, the deployment
13957      # target defaults to 10.4. Don't you love it?
13958      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13959	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13960	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13961	10.[012][,.]*)
13962	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13963	10.*)
13964	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13965      esac
13966    ;;
13967  esac
13968    if test yes = "$lt_cv_apple_cc_single_mod"; then
13969      _lt_dar_single_mod='$single_module'
13970    fi
13971    if test yes = "$lt_cv_ld_exported_symbols_list"; then
13972      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13973    else
13974      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13975    fi
13976    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13977      _lt_dsymutil='~$DSYMUTIL $lib || :'
13978    else
13979      _lt_dsymutil=
13980    fi
13981    ;;
13982  esac
13983
13984# func_munge_path_list VARIABLE PATH
13985# -----------------------------------
13986# VARIABLE is name of variable containing _space_ separated list of
13987# directories to be munged by the contents of PATH, which is string
13988# having a format:
13989# "DIR[:DIR]:"
13990#       string "DIR[ DIR]" will be prepended to VARIABLE
13991# ":DIR[:DIR]"
13992#       string "DIR[ DIR]" will be appended to VARIABLE
13993# "DIRP[:DIRP]::[DIRA:]DIRA"
13994#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13995#       "DIRA[ DIRA]" will be appended to VARIABLE
13996# "DIR[:DIR]"
13997#       VARIABLE will be replaced by "DIR[ DIR]"
13998func_munge_path_list ()
13999{
14000    case x$2 in
14001    x)
14002        ;;
14003    *:)
14004        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14005        ;;
14006    x:*)
14007        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14008        ;;
14009    *::*)
14010        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14011        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14012        ;;
14013    *)
14014        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14015        ;;
14016    esac
14017}
14018
14019for ac_header in dlfcn.h
14020do :
14021  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14022"
14023if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14024  cat >>confdefs.h <<_ACEOF
14025#define HAVE_DLFCN_H 1
14026_ACEOF
14027
14028fi
14029
14030done
14031
14032
14033
14034
14035
14036# Set options
14037
14038
14039
14040        enable_dlopen=no
14041
14042
14043  enable_win32_dll=no
14044
14045
14046            # Check whether --enable-shared was given.
14047if test "${enable_shared+set}" = set; then :
14048  enableval=$enable_shared; p=${PACKAGE-default}
14049    case $enableval in
14050    yes) enable_shared=yes ;;
14051    no) enable_shared=no ;;
14052    *)
14053      enable_shared=no
14054      # Look at the argument we got.  We use all the common list separators.
14055      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14056      for pkg in $enableval; do
14057	IFS=$lt_save_ifs
14058	if test "X$pkg" = "X$p"; then
14059	  enable_shared=yes
14060	fi
14061      done
14062      IFS=$lt_save_ifs
14063      ;;
14064    esac
14065else
14066  enable_shared=yes
14067fi
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077  # Check whether --enable-static was given.
14078if test "${enable_static+set}" = set; then :
14079  enableval=$enable_static; p=${PACKAGE-default}
14080    case $enableval in
14081    yes) enable_static=yes ;;
14082    no) enable_static=no ;;
14083    *)
14084     enable_static=no
14085      # Look at the argument we got.  We use all the common list separators.
14086      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14087      for pkg in $enableval; do
14088	IFS=$lt_save_ifs
14089	if test "X$pkg" = "X$p"; then
14090	  enable_static=yes
14091	fi
14092      done
14093      IFS=$lt_save_ifs
14094      ;;
14095    esac
14096else
14097  enable_static=yes
14098fi
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109# Check whether --with-pic was given.
14110if test "${with_pic+set}" = set; then :
14111  withval=$with_pic; lt_p=${PACKAGE-default}
14112    case $withval in
14113    yes|no) pic_mode=$withval ;;
14114    *)
14115      pic_mode=default
14116      # Look at the argument we got.  We use all the common list separators.
14117      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14118      for lt_pkg in $withval; do
14119	IFS=$lt_save_ifs
14120	if test "X$lt_pkg" = "X$lt_p"; then
14121	  pic_mode=yes
14122	fi
14123      done
14124      IFS=$lt_save_ifs
14125      ;;
14126    esac
14127else
14128  pic_mode=default
14129fi
14130
14131
14132
14133
14134
14135
14136
14137
14138  # Check whether --enable-fast-install was given.
14139if test "${enable_fast_install+set}" = set; then :
14140  enableval=$enable_fast_install; p=${PACKAGE-default}
14141    case $enableval in
14142    yes) enable_fast_install=yes ;;
14143    no) enable_fast_install=no ;;
14144    *)
14145      enable_fast_install=no
14146      # Look at the argument we got.  We use all the common list separators.
14147      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14148      for pkg in $enableval; do
14149	IFS=$lt_save_ifs
14150	if test "X$pkg" = "X$p"; then
14151	  enable_fast_install=yes
14152	fi
14153      done
14154      IFS=$lt_save_ifs
14155      ;;
14156    esac
14157else
14158  enable_fast_install=yes
14159fi
14160
14161
14162
14163
14164
14165
14166
14167
14168  shared_archive_member_spec=
14169case $host,$enable_shared in
14170power*-*-aix[5-9]*,yes)
14171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14172$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14173
14174# Check whether --with-aix-soname was given.
14175if test "${with_aix_soname+set}" = set; then :
14176  withval=$with_aix_soname; case $withval in
14177    aix|svr4|both)
14178      ;;
14179    *)
14180      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14181      ;;
14182    esac
14183    lt_cv_with_aix_soname=$with_aix_soname
14184else
14185  if ${lt_cv_with_aix_soname+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188  lt_cv_with_aix_soname=aix
14189fi
14190
14191    with_aix_soname=$lt_cv_with_aix_soname
14192fi
14193
14194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14195$as_echo "$with_aix_soname" >&6; }
14196  if test aix != "$with_aix_soname"; then
14197    # For the AIX way of multilib, we name the shared archive member
14198    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14199    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14200    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14201    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14202    if test 64 = "${OBJECT_MODE-32}"; then
14203      shared_archive_member_spec=shr_64
14204    else
14205      shared_archive_member_spec=shr
14206    fi
14207  fi
14208  ;;
14209*)
14210  with_aix_soname=aix
14211  ;;
14212esac
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223# This can be used to rebuild libtool when needed
14224LIBTOOL_DEPS=$ltmain
14225
14226# Always use our own libtool.
14227LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258test -z "$LN_S" && LN_S="ln -s"
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273if test -n "${ZSH_VERSION+set}"; then
14274   setopt NO_GLOB_SUBST
14275fi
14276
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14278$as_echo_n "checking for objdir... " >&6; }
14279if ${lt_cv_objdir+:} false; then :
14280  $as_echo_n "(cached) " >&6
14281else
14282  rm -f .libs 2>/dev/null
14283mkdir .libs 2>/dev/null
14284if test -d .libs; then
14285  lt_cv_objdir=.libs
14286else
14287  # MS-DOS does not allow filenames that begin with a dot.
14288  lt_cv_objdir=_libs
14289fi
14290rmdir .libs 2>/dev/null
14291fi
14292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14293$as_echo "$lt_cv_objdir" >&6; }
14294objdir=$lt_cv_objdir
14295
14296
14297
14298
14299
14300cat >>confdefs.h <<_ACEOF
14301#define LT_OBJDIR "$lt_cv_objdir/"
14302_ACEOF
14303
14304
14305
14306
14307case $host_os in
14308aix3*)
14309  # AIX sometimes has problems with the GCC collect2 program.  For some
14310  # reason, if we set the COLLECT_NAMES environment variable, the problems
14311  # vanish in a puff of smoke.
14312  if test set != "${COLLECT_NAMES+set}"; then
14313    COLLECT_NAMES=
14314    export COLLECT_NAMES
14315  fi
14316  ;;
14317esac
14318
14319# Global variables:
14320ofile=libtool
14321can_build_shared=yes
14322
14323# All known linkers require a '.a' archive for static linking (except MSVC,
14324# which needs '.lib').
14325libext=a
14326
14327with_gnu_ld=$lt_cv_prog_gnu_ld
14328
14329old_CC=$CC
14330old_CFLAGS=$CFLAGS
14331
14332# Set sane defaults for various variables
14333test -z "$CC" && CC=cc
14334test -z "$LTCC" && LTCC=$CC
14335test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14336test -z "$LD" && LD=ld
14337test -z "$ac_objext" && ac_objext=o
14338
14339func_cc_basename $compiler
14340cc_basename=$func_cc_basename_result
14341
14342
14343# Only perform the check for file, if the check method requires it
14344test -z "$MAGIC_CMD" && MAGIC_CMD=file
14345case $deplibs_check_method in
14346file_magic*)
14347  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14349$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14350if ${lt_cv_path_MAGIC_CMD+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353  case $MAGIC_CMD in
14354[\\/*] |  ?:[\\/]*)
14355  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14356  ;;
14357*)
14358  lt_save_MAGIC_CMD=$MAGIC_CMD
14359  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14360  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14361  for ac_dir in $ac_dummy; do
14362    IFS=$lt_save_ifs
14363    test -z "$ac_dir" && ac_dir=.
14364    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14365      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14366      if test -n "$file_magic_test_file"; then
14367	case $deplibs_check_method in
14368	"file_magic "*)
14369	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14370	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14371	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14372	    $EGREP "$file_magic_regex" > /dev/null; then
14373	    :
14374	  else
14375	    cat <<_LT_EOF 1>&2
14376
14377*** Warning: the command libtool uses to detect shared libraries,
14378*** $file_magic_cmd, produces output that libtool cannot recognize.
14379*** The result is that libtool may fail to recognize shared libraries
14380*** as such.  This will affect the creation of libtool libraries that
14381*** depend on shared libraries, but programs linked with such libtool
14382*** libraries will work regardless of this problem.  Nevertheless, you
14383*** may want to report the problem to your system manager and/or to
14384*** bug-libtool@gnu.org
14385
14386_LT_EOF
14387	  fi ;;
14388	esac
14389      fi
14390      break
14391    fi
14392  done
14393  IFS=$lt_save_ifs
14394  MAGIC_CMD=$lt_save_MAGIC_CMD
14395  ;;
14396esac
14397fi
14398
14399MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14400if test -n "$MAGIC_CMD"; then
14401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14402$as_echo "$MAGIC_CMD" >&6; }
14403else
14404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405$as_echo "no" >&6; }
14406fi
14407
14408
14409
14410
14411
14412if test -z "$lt_cv_path_MAGIC_CMD"; then
14413  if test -n "$ac_tool_prefix"; then
14414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14415$as_echo_n "checking for file... " >&6; }
14416if ${lt_cv_path_MAGIC_CMD+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  case $MAGIC_CMD in
14420[\\/*] |  ?:[\\/]*)
14421  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14422  ;;
14423*)
14424  lt_save_MAGIC_CMD=$MAGIC_CMD
14425  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14426  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14427  for ac_dir in $ac_dummy; do
14428    IFS=$lt_save_ifs
14429    test -z "$ac_dir" && ac_dir=.
14430    if test -f "$ac_dir/file"; then
14431      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14432      if test -n "$file_magic_test_file"; then
14433	case $deplibs_check_method in
14434	"file_magic "*)
14435	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14436	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14437	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14438	    $EGREP "$file_magic_regex" > /dev/null; then
14439	    :
14440	  else
14441	    cat <<_LT_EOF 1>&2
14442
14443*** Warning: the command libtool uses to detect shared libraries,
14444*** $file_magic_cmd, produces output that libtool cannot recognize.
14445*** The result is that libtool may fail to recognize shared libraries
14446*** as such.  This will affect the creation of libtool libraries that
14447*** depend on shared libraries, but programs linked with such libtool
14448*** libraries will work regardless of this problem.  Nevertheless, you
14449*** may want to report the problem to your system manager and/or to
14450*** bug-libtool@gnu.org
14451
14452_LT_EOF
14453	  fi ;;
14454	esac
14455      fi
14456      break
14457    fi
14458  done
14459  IFS=$lt_save_ifs
14460  MAGIC_CMD=$lt_save_MAGIC_CMD
14461  ;;
14462esac
14463fi
14464
14465MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14466if test -n "$MAGIC_CMD"; then
14467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14468$as_echo "$MAGIC_CMD" >&6; }
14469else
14470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471$as_echo "no" >&6; }
14472fi
14473
14474
14475  else
14476    MAGIC_CMD=:
14477  fi
14478fi
14479
14480  fi
14481  ;;
14482esac
14483
14484# Use C for the default configuration in the libtool script
14485
14486lt_save_CC=$CC
14487ac_ext=c
14488ac_cpp='$CPP $CPPFLAGS'
14489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14491ac_compiler_gnu=$ac_cv_c_compiler_gnu
14492
14493
14494# Source file extension for C test sources.
14495ac_ext=c
14496
14497# Object file extension for compiled C test sources.
14498objext=o
14499objext=$objext
14500
14501# Code to be used in simple compile tests
14502lt_simple_compile_test_code="int some_variable = 0;"
14503
14504# Code to be used in simple link tests
14505lt_simple_link_test_code='int main(){return(0);}'
14506
14507
14508
14509
14510
14511
14512
14513# If no C compiler was specified, use CC.
14514LTCC=${LTCC-"$CC"}
14515
14516# If no C compiler flags were specified, use CFLAGS.
14517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14518
14519# Allow CC to be a program name with arguments.
14520compiler=$CC
14521
14522# Save the default compiler, since it gets overwritten when the other
14523# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14524compiler_DEFAULT=$CC
14525
14526# save warnings/boilerplate of simple test code
14527ac_outfile=conftest.$ac_objext
14528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14530_lt_compiler_boilerplate=`cat conftest.err`
14531$RM conftest*
14532
14533ac_outfile=conftest.$ac_objext
14534echo "$lt_simple_link_test_code" >conftest.$ac_ext
14535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14536_lt_linker_boilerplate=`cat conftest.err`
14537$RM -r conftest*
14538
14539
14540if test -n "$compiler"; then
14541
14542lt_prog_compiler_no_builtin_flag=
14543
14544if test yes = "$GCC"; then
14545  case $cc_basename in
14546  nvcc*)
14547    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14548  *)
14549    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14550  esac
14551
14552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14553$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14554if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  lt_cv_prog_compiler_rtti_exceptions=no
14558   ac_outfile=conftest.$ac_objext
14559   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14560   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14561   # Insert the option either (1) after the last *FLAGS variable, or
14562   # (2) before a word containing "conftest.", or (3) at the end.
14563   # Note that $ac_compile itself does not contain backslashes and begins
14564   # with a dollar sign (not a hyphen), so the echo should work correctly.
14565   # The option is referenced via a variable to avoid confusing sed.
14566   lt_compile=`echo "$ac_compile" | $SED \
14567   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569   -e 's:$: $lt_compiler_flag:'`
14570   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14571   (eval "$lt_compile" 2>conftest.err)
14572   ac_status=$?
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   if (exit $ac_status) && test -s "$ac_outfile"; then
14576     # The compiler can only warn and ignore the option if not recognized
14577     # So say no if there are warnings other than the usual output.
14578     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14579     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14581       lt_cv_prog_compiler_rtti_exceptions=yes
14582     fi
14583   fi
14584   $RM conftest*
14585
14586fi
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14588$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14589
14590if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14591    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14592else
14593    :
14594fi
14595
14596fi
14597
14598
14599
14600
14601
14602
14603  lt_prog_compiler_wl=
14604lt_prog_compiler_pic=
14605lt_prog_compiler_static=
14606
14607
14608  if test yes = "$GCC"; then
14609    lt_prog_compiler_wl='-Wl,'
14610    lt_prog_compiler_static='-static'
14611
14612    case $host_os in
14613      aix*)
14614      # All AIX code is PIC.
14615      if test ia64 = "$host_cpu"; then
14616	# AIX 5 now supports IA64 processor
14617	lt_prog_compiler_static='-Bstatic'
14618      fi
14619      lt_prog_compiler_pic='-fPIC'
14620      ;;
14621
14622    amigaos*)
14623      case $host_cpu in
14624      powerpc)
14625            # see comment about AmigaOS4 .so support
14626            lt_prog_compiler_pic='-fPIC'
14627        ;;
14628      m68k)
14629            # FIXME: we need at least 68020 code to build shared libraries, but
14630            # adding the '-m68020' flag to GCC prevents building anything better,
14631            # like '-m68040'.
14632            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14633        ;;
14634      esac
14635      ;;
14636
14637    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14638      # PIC is the default for these OSes.
14639      ;;
14640
14641    mingw* | cygwin* | pw32* | os2* | cegcc*)
14642      # This hack is so that the source file can tell whether it is being
14643      # built for inclusion in a dll (and should export symbols for example).
14644      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14645      # (--disable-auto-import) libraries
14646      lt_prog_compiler_pic='-DDLL_EXPORT'
14647      case $host_os in
14648      os2*)
14649	lt_prog_compiler_static='$wl-static'
14650	;;
14651      esac
14652      ;;
14653
14654    darwin* | rhapsody*)
14655      # PIC is the default on this platform
14656      # Common symbols not allowed in MH_DYLIB files
14657      lt_prog_compiler_pic='-fno-common'
14658      ;;
14659
14660    haiku*)
14661      # PIC is the default for Haiku.
14662      # The "-static" flag exists, but is broken.
14663      lt_prog_compiler_static=
14664      ;;
14665
14666    hpux*)
14667      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14668      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14669      # sets the default TLS model and affects inlining.
14670      case $host_cpu in
14671      hppa*64*)
14672	# +Z the default
14673	;;
14674      *)
14675	lt_prog_compiler_pic='-fPIC'
14676	;;
14677      esac
14678      ;;
14679
14680    interix[3-9]*)
14681      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14682      # Instead, we relocate shared libraries at runtime.
14683      ;;
14684
14685    msdosdjgpp*)
14686      # Just because we use GCC doesn't mean we suddenly get shared libraries
14687      # on systems that don't support them.
14688      lt_prog_compiler_can_build_shared=no
14689      enable_shared=no
14690      ;;
14691
14692    *nto* | *qnx*)
14693      # QNX uses GNU C++, but need to define -shared option too, otherwise
14694      # it will coredump.
14695      lt_prog_compiler_pic='-fPIC -shared'
14696      ;;
14697
14698    sysv4*MP*)
14699      if test -d /usr/nec; then
14700	lt_prog_compiler_pic=-Kconform_pic
14701      fi
14702      ;;
14703
14704    *)
14705      lt_prog_compiler_pic='-fPIC'
14706      ;;
14707    esac
14708
14709    case $cc_basename in
14710    nvcc*) # Cuda Compiler Driver 2.2
14711      lt_prog_compiler_wl='-Xlinker '
14712      if test -n "$lt_prog_compiler_pic"; then
14713        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14714      fi
14715      ;;
14716    esac
14717  else
14718    # PORTME Check for flag to pass linker flags through the system compiler.
14719    case $host_os in
14720    aix*)
14721      lt_prog_compiler_wl='-Wl,'
14722      if test ia64 = "$host_cpu"; then
14723	# AIX 5 now supports IA64 processor
14724	lt_prog_compiler_static='-Bstatic'
14725      else
14726	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14727      fi
14728      ;;
14729
14730    darwin* | rhapsody*)
14731      # PIC is the default on this platform
14732      # Common symbols not allowed in MH_DYLIB files
14733      lt_prog_compiler_pic='-fno-common'
14734      case $cc_basename in
14735      nagfor*)
14736        # NAG Fortran compiler
14737        lt_prog_compiler_wl='-Wl,-Wl,,'
14738        lt_prog_compiler_pic='-PIC'
14739        lt_prog_compiler_static='-Bstatic'
14740        ;;
14741      esac
14742      ;;
14743
14744    mingw* | cygwin* | pw32* | os2* | cegcc*)
14745      # This hack is so that the source file can tell whether it is being
14746      # built for inclusion in a dll (and should export symbols for example).
14747      lt_prog_compiler_pic='-DDLL_EXPORT'
14748      case $host_os in
14749      os2*)
14750	lt_prog_compiler_static='$wl-static'
14751	;;
14752      esac
14753      ;;
14754
14755    hpux9* | hpux10* | hpux11*)
14756      lt_prog_compiler_wl='-Wl,'
14757      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14758      # not for PA HP-UX.
14759      case $host_cpu in
14760      hppa*64*|ia64*)
14761	# +Z the default
14762	;;
14763      *)
14764	lt_prog_compiler_pic='+Z'
14765	;;
14766      esac
14767      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14768      lt_prog_compiler_static='$wl-a ${wl}archive'
14769      ;;
14770
14771    irix5* | irix6* | nonstopux*)
14772      lt_prog_compiler_wl='-Wl,'
14773      # PIC (with -KPIC) is the default.
14774      lt_prog_compiler_static='-non_shared'
14775      ;;
14776
14777    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14778      case $cc_basename in
14779      # old Intel for x86_64, which still supported -KPIC.
14780      ecc*)
14781	lt_prog_compiler_wl='-Wl,'
14782	lt_prog_compiler_pic='-KPIC'
14783	lt_prog_compiler_static='-static'
14784        ;;
14785      # icc used to be incompatible with GCC.
14786      # ICC 10 doesn't accept -KPIC any more.
14787      icc* | ifort*)
14788	lt_prog_compiler_wl='-Wl,'
14789	lt_prog_compiler_pic='-fPIC'
14790	lt_prog_compiler_static='-static'
14791        ;;
14792      # Lahey Fortran 8.1.
14793      lf95*)
14794	lt_prog_compiler_wl='-Wl,'
14795	lt_prog_compiler_pic='--shared'
14796	lt_prog_compiler_static='--static'
14797	;;
14798      nagfor*)
14799	# NAG Fortran compiler
14800	lt_prog_compiler_wl='-Wl,-Wl,,'
14801	lt_prog_compiler_pic='-PIC'
14802	lt_prog_compiler_static='-Bstatic'
14803	;;
14804      tcc*)
14805	# Fabrice Bellard et al's Tiny C Compiler
14806	lt_prog_compiler_wl='-Wl,'
14807	lt_prog_compiler_pic='-fPIC'
14808	lt_prog_compiler_static='-static'
14809	;;
14810      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14811        # Portland Group compilers (*not* the Pentium gcc compiler,
14812	# which looks to be a dead project)
14813	lt_prog_compiler_wl='-Wl,'
14814	lt_prog_compiler_pic='-fpic'
14815	lt_prog_compiler_static='-Bstatic'
14816        ;;
14817      ccc*)
14818        lt_prog_compiler_wl='-Wl,'
14819        # All Alpha code is PIC.
14820        lt_prog_compiler_static='-non_shared'
14821        ;;
14822      xl* | bgxl* | bgf* | mpixl*)
14823	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14824	lt_prog_compiler_wl='-Wl,'
14825	lt_prog_compiler_pic='-qpic'
14826	lt_prog_compiler_static='-qstaticlink'
14827	;;
14828      *)
14829	case `$CC -V 2>&1 | sed 5q` in
14830	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14831	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14832	  lt_prog_compiler_pic='-KPIC'
14833	  lt_prog_compiler_static='-Bstatic'
14834	  lt_prog_compiler_wl=''
14835	  ;;
14836	*Sun\ F* | *Sun*Fortran*)
14837	  lt_prog_compiler_pic='-KPIC'
14838	  lt_prog_compiler_static='-Bstatic'
14839	  lt_prog_compiler_wl='-Qoption ld '
14840	  ;;
14841	*Sun\ C*)
14842	  # Sun C 5.9
14843	  lt_prog_compiler_pic='-KPIC'
14844	  lt_prog_compiler_static='-Bstatic'
14845	  lt_prog_compiler_wl='-Wl,'
14846	  ;;
14847        *Intel*\ [CF]*Compiler*)
14848	  lt_prog_compiler_wl='-Wl,'
14849	  lt_prog_compiler_pic='-fPIC'
14850	  lt_prog_compiler_static='-static'
14851	  ;;
14852	*Portland\ Group*)
14853	  lt_prog_compiler_wl='-Wl,'
14854	  lt_prog_compiler_pic='-fpic'
14855	  lt_prog_compiler_static='-Bstatic'
14856	  ;;
14857	esac
14858	;;
14859      esac
14860      ;;
14861
14862    newsos6)
14863      lt_prog_compiler_pic='-KPIC'
14864      lt_prog_compiler_static='-Bstatic'
14865      ;;
14866
14867    *nto* | *qnx*)
14868      # QNX uses GNU C++, but need to define -shared option too, otherwise
14869      # it will coredump.
14870      lt_prog_compiler_pic='-fPIC -shared'
14871      ;;
14872
14873    osf3* | osf4* | osf5*)
14874      lt_prog_compiler_wl='-Wl,'
14875      # All OSF/1 code is PIC.
14876      lt_prog_compiler_static='-non_shared'
14877      ;;
14878
14879    rdos*)
14880      lt_prog_compiler_static='-non_shared'
14881      ;;
14882
14883    solaris*)
14884      lt_prog_compiler_pic='-KPIC'
14885      lt_prog_compiler_static='-Bstatic'
14886      case $cc_basename in
14887      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14888	lt_prog_compiler_wl='-Qoption ld ';;
14889      *)
14890	lt_prog_compiler_wl='-Wl,';;
14891      esac
14892      ;;
14893
14894    sunos4*)
14895      lt_prog_compiler_wl='-Qoption ld '
14896      lt_prog_compiler_pic='-PIC'
14897      lt_prog_compiler_static='-Bstatic'
14898      ;;
14899
14900    sysv4 | sysv4.2uw2* | sysv4.3*)
14901      lt_prog_compiler_wl='-Wl,'
14902      lt_prog_compiler_pic='-KPIC'
14903      lt_prog_compiler_static='-Bstatic'
14904      ;;
14905
14906    sysv4*MP*)
14907      if test -d /usr/nec; then
14908	lt_prog_compiler_pic='-Kconform_pic'
14909	lt_prog_compiler_static='-Bstatic'
14910      fi
14911      ;;
14912
14913    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14914      lt_prog_compiler_wl='-Wl,'
14915      lt_prog_compiler_pic='-KPIC'
14916      lt_prog_compiler_static='-Bstatic'
14917      ;;
14918
14919    unicos*)
14920      lt_prog_compiler_wl='-Wl,'
14921      lt_prog_compiler_can_build_shared=no
14922      ;;
14923
14924    uts4*)
14925      lt_prog_compiler_pic='-pic'
14926      lt_prog_compiler_static='-Bstatic'
14927      ;;
14928
14929    *)
14930      lt_prog_compiler_can_build_shared=no
14931      ;;
14932    esac
14933  fi
14934
14935case $host_os in
14936  # For platforms that do not support PIC, -DPIC is meaningless:
14937  *djgpp*)
14938    lt_prog_compiler_pic=
14939    ;;
14940  *)
14941    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14942    ;;
14943esac
14944
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14947if ${lt_cv_prog_compiler_pic+:} false; then :
14948  $as_echo_n "(cached) " >&6
14949else
14950  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14951fi
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14953$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14954lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14955
14956#
14957# Check to make sure the PIC flag actually works.
14958#
14959if test -n "$lt_prog_compiler_pic"; then
14960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14961$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14962if ${lt_cv_prog_compiler_pic_works+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  lt_cv_prog_compiler_pic_works=no
14966   ac_outfile=conftest.$ac_objext
14967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14969   # Insert the option either (1) after the last *FLAGS variable, or
14970   # (2) before a word containing "conftest.", or (3) at the end.
14971   # Note that $ac_compile itself does not contain backslashes and begins
14972   # with a dollar sign (not a hyphen), so the echo should work correctly.
14973   # The option is referenced via a variable to avoid confusing sed.
14974   lt_compile=`echo "$ac_compile" | $SED \
14975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977   -e 's:$: $lt_compiler_flag:'`
14978   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14979   (eval "$lt_compile" 2>conftest.err)
14980   ac_status=$?
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   if (exit $ac_status) && test -s "$ac_outfile"; then
14984     # The compiler can only warn and ignore the option if not recognized
14985     # So say no if there are warnings other than the usual output.
14986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14987     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14988     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14989       lt_cv_prog_compiler_pic_works=yes
14990     fi
14991   fi
14992   $RM conftest*
14993
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14996$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14997
14998if test yes = "$lt_cv_prog_compiler_pic_works"; then
14999    case $lt_prog_compiler_pic in
15000     "" | " "*) ;;
15001     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15002     esac
15003else
15004    lt_prog_compiler_pic=
15005     lt_prog_compiler_can_build_shared=no
15006fi
15007
15008fi
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020#
15021# Check to make sure the static flag actually works.
15022#
15023wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15025$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15026if ${lt_cv_prog_compiler_static_works+:} false; then :
15027  $as_echo_n "(cached) " >&6
15028else
15029  lt_cv_prog_compiler_static_works=no
15030   save_LDFLAGS=$LDFLAGS
15031   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15032   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15033   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15034     # The linker can only warn and ignore the option if not recognized
15035     # So say no if there are warnings
15036     if test -s conftest.err; then
15037       # Append any errors to the config.log.
15038       cat conftest.err 1>&5
15039       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15040       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15041       if diff conftest.exp conftest.er2 >/dev/null; then
15042         lt_cv_prog_compiler_static_works=yes
15043       fi
15044     else
15045       lt_cv_prog_compiler_static_works=yes
15046     fi
15047   fi
15048   $RM -r conftest*
15049   LDFLAGS=$save_LDFLAGS
15050
15051fi
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15053$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15054
15055if test yes = "$lt_cv_prog_compiler_static_works"; then
15056    :
15057else
15058    lt_prog_compiler_static=
15059fi
15060
15061
15062
15063
15064
15065
15066
15067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15068$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15069if ${lt_cv_prog_compiler_c_o+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  lt_cv_prog_compiler_c_o=no
15073   $RM -r conftest 2>/dev/null
15074   mkdir conftest
15075   cd conftest
15076   mkdir out
15077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15078
15079   lt_compiler_flag="-o out/conftest2.$ac_objext"
15080   # Insert the option either (1) after the last *FLAGS variable, or
15081   # (2) before a word containing "conftest.", or (3) at the end.
15082   # Note that $ac_compile itself does not contain backslashes and begins
15083   # with a dollar sign (not a hyphen), so the echo should work correctly.
15084   lt_compile=`echo "$ac_compile" | $SED \
15085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15087   -e 's:$: $lt_compiler_flag:'`
15088   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15089   (eval "$lt_compile" 2>out/conftest.err)
15090   ac_status=$?
15091   cat out/conftest.err >&5
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15094   then
15095     # The compiler can only warn and ignore the option if not recognized
15096     # So say no if there are warnings
15097     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15100       lt_cv_prog_compiler_c_o=yes
15101     fi
15102   fi
15103   chmod u+w . 2>&5
15104   $RM conftest*
15105   # SGI C++ compiler will create directory out/ii_files/ for
15106   # template instantiation
15107   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15108   $RM out/* && rmdir out
15109   cd ..
15110   $RM -r conftest
15111   $RM conftest*
15112
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15115$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15116
15117
15118
15119
15120
15121
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15123$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15124if ${lt_cv_prog_compiler_c_o+:} false; then :
15125  $as_echo_n "(cached) " >&6
15126else
15127  lt_cv_prog_compiler_c_o=no
15128   $RM -r conftest 2>/dev/null
15129   mkdir conftest
15130   cd conftest
15131   mkdir out
15132   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15133
15134   lt_compiler_flag="-o out/conftest2.$ac_objext"
15135   # Insert the option either (1) after the last *FLAGS variable, or
15136   # (2) before a word containing "conftest.", or (3) at the end.
15137   # Note that $ac_compile itself does not contain backslashes and begins
15138   # with a dollar sign (not a hyphen), so the echo should work correctly.
15139   lt_compile=`echo "$ac_compile" | $SED \
15140   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15142   -e 's:$: $lt_compiler_flag:'`
15143   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15144   (eval "$lt_compile" 2>out/conftest.err)
15145   ac_status=$?
15146   cat out/conftest.err >&5
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15149   then
15150     # The compiler can only warn and ignore the option if not recognized
15151     # So say no if there are warnings
15152     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15153     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15154     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15155       lt_cv_prog_compiler_c_o=yes
15156     fi
15157   fi
15158   chmod u+w . 2>&5
15159   $RM conftest*
15160   # SGI C++ compiler will create directory out/ii_files/ for
15161   # template instantiation
15162   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15163   $RM out/* && rmdir out
15164   cd ..
15165   $RM -r conftest
15166   $RM conftest*
15167
15168fi
15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15170$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15171
15172
15173
15174
15175hard_links=nottested
15176if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15177  # do not overwrite the value of need_locks provided by the user
15178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15179$as_echo_n "checking if we can lock with hard links... " >&6; }
15180  hard_links=yes
15181  $RM conftest*
15182  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183  touch conftest.a
15184  ln conftest.a conftest.b 2>&5 || hard_links=no
15185  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15187$as_echo "$hard_links" >&6; }
15188  if test no = "$hard_links"; then
15189    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15190$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15191    need_locks=warn
15192  fi
15193else
15194  need_locks=no
15195fi
15196
15197
15198
15199
15200
15201
15202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15203$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15204
15205  runpath_var=
15206  allow_undefined_flag=
15207  always_export_symbols=no
15208  archive_cmds=
15209  archive_expsym_cmds=
15210  compiler_needs_object=no
15211  enable_shared_with_static_runtimes=no
15212  export_dynamic_flag_spec=
15213  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15214  hardcode_automatic=no
15215  hardcode_direct=no
15216  hardcode_direct_absolute=no
15217  hardcode_libdir_flag_spec=
15218  hardcode_libdir_separator=
15219  hardcode_minus_L=no
15220  hardcode_shlibpath_var=unsupported
15221  inherit_rpath=no
15222  link_all_deplibs=unknown
15223  module_cmds=
15224  module_expsym_cmds=
15225  old_archive_from_new_cmds=
15226  old_archive_from_expsyms_cmds=
15227  thread_safe_flag_spec=
15228  whole_archive_flag_spec=
15229  # include_expsyms should be a list of space-separated symbols to be *always*
15230  # included in the symbol list
15231  include_expsyms=
15232  # exclude_expsyms can be an extended regexp of symbols to exclude
15233  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15234  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15235  # as well as any symbol that contains 'd'.
15236  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15237  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15238  # platforms (ab)use it in PIC code, but their linkers get confused if
15239  # the symbol is explicitly referenced.  Since portable code cannot
15240  # rely on this symbol name, it's probably fine to never include it in
15241  # preloaded symbol tables.
15242  # Exclude shared library initialization/finalization symbols.
15243  extract_expsyms_cmds=
15244
15245  case $host_os in
15246  cygwin* | mingw* | pw32* | cegcc*)
15247    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15248    # When not using gcc, we currently assume that we are using
15249    # Microsoft Visual C++.
15250    if test yes != "$GCC"; then
15251      with_gnu_ld=no
15252    fi
15253    ;;
15254  interix*)
15255    # we just hope/assume this is gcc and not c89 (= MSVC++)
15256    with_gnu_ld=yes
15257    ;;
15258  openbsd* | bitrig*)
15259    with_gnu_ld=no
15260    ;;
15261  esac
15262
15263  ld_shlibs=yes
15264
15265  # On some targets, GNU ld is compatible enough with the native linker
15266  # that we're better off using the native interface for both.
15267  lt_use_gnu_ld_interface=no
15268  if test yes = "$with_gnu_ld"; then
15269    case $host_os in
15270      aix*)
15271	# The AIX port of GNU ld has always aspired to compatibility
15272	# with the native linker.  However, as the warning in the GNU ld
15273	# block says, versions before 2.19.5* couldn't really create working
15274	# shared libraries, regardless of the interface used.
15275	case `$LD -v 2>&1` in
15276	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15277	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15278	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15279	  *)
15280	    lt_use_gnu_ld_interface=yes
15281	    ;;
15282	esac
15283	;;
15284      *)
15285	lt_use_gnu_ld_interface=yes
15286	;;
15287    esac
15288  fi
15289
15290  if test yes = "$lt_use_gnu_ld_interface"; then
15291    # If archive_cmds runs LD, not CC, wlarc should be empty
15292    wlarc='$wl'
15293
15294    # Set some defaults for GNU ld with shared library support. These
15295    # are reset later if shared libraries are not supported. Putting them
15296    # here allows them to be overridden if necessary.
15297    runpath_var=LD_RUN_PATH
15298    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15299    export_dynamic_flag_spec='$wl--export-dynamic'
15300    # ancient GNU ld didn't support --whole-archive et. al.
15301    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15302      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15303    else
15304      whole_archive_flag_spec=
15305    fi
15306    supports_anon_versioning=no
15307    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15308      *GNU\ gold*) supports_anon_versioning=yes ;;
15309      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15310      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15311      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15312      *\ 2.11.*) ;; # other 2.11 versions
15313      *) supports_anon_versioning=yes ;;
15314    esac
15315
15316    # See if GNU ld supports shared libraries.
15317    case $host_os in
15318    aix[3-9]*)
15319      # On AIX/PPC, the GNU linker is very broken
15320      if test ia64 != "$host_cpu"; then
15321	ld_shlibs=no
15322	cat <<_LT_EOF 1>&2
15323
15324*** Warning: the GNU linker, at least up to release 2.19, is reported
15325*** to be unable to reliably create shared libraries on AIX.
15326*** Therefore, libtool is disabling shared libraries support.  If you
15327*** really care for shared libraries, you may want to install binutils
15328*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15329*** You will then need to restart the configuration process.
15330
15331_LT_EOF
15332      fi
15333      ;;
15334
15335    amigaos*)
15336      case $host_cpu in
15337      powerpc)
15338            # see comment about AmigaOS4 .so support
15339            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15340            archive_expsym_cmds=''
15341        ;;
15342      m68k)
15343            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)'
15344            hardcode_libdir_flag_spec='-L$libdir'
15345            hardcode_minus_L=yes
15346        ;;
15347      esac
15348      ;;
15349
15350    beos*)
15351      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15352	allow_undefined_flag=unsupported
15353	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15354	# support --undefined.  This deserves some investigation.  FIXME
15355	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15356      else
15357	ld_shlibs=no
15358      fi
15359      ;;
15360
15361    cygwin* | mingw* | pw32* | cegcc*)
15362      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15363      # as there is no search path for DLLs.
15364      hardcode_libdir_flag_spec='-L$libdir'
15365      export_dynamic_flag_spec='$wl--export-all-symbols'
15366      allow_undefined_flag=unsupported
15367      always_export_symbols=no
15368      enable_shared_with_static_runtimes=yes
15369      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'
15370      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15371
15372      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15373        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15374	# If the export-symbols file already is a .def file, use it as
15375	# is; otherwise, prepend EXPORTS...
15376	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15377          cp $export_symbols $output_objdir/$soname.def;
15378        else
15379          echo EXPORTS > $output_objdir/$soname.def;
15380          cat $export_symbols >> $output_objdir/$soname.def;
15381        fi~
15382        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15383      else
15384	ld_shlibs=no
15385      fi
15386      ;;
15387
15388    haiku*)
15389      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15390      link_all_deplibs=yes
15391      ;;
15392
15393    os2*)
15394      hardcode_libdir_flag_spec='-L$libdir'
15395      hardcode_minus_L=yes
15396      allow_undefined_flag=unsupported
15397      shrext_cmds=.dll
15398      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15399	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15400	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15401	$ECHO EXPORTS >> $output_objdir/$libname.def~
15402	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15403	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15404	emximp -o $lib $output_objdir/$libname.def'
15405      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15406	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15407	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15408	$ECHO EXPORTS >> $output_objdir/$libname.def~
15409	prefix_cmds="$SED"~
15410	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15411	  prefix_cmds="$prefix_cmds -e 1d";
15412	fi~
15413	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15414	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15415	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15416	emximp -o $lib $output_objdir/$libname.def'
15417      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15418      enable_shared_with_static_runtimes=yes
15419      ;;
15420
15421    interix[3-9]*)
15422      hardcode_direct=no
15423      hardcode_shlibpath_var=no
15424      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15425      export_dynamic_flag_spec='$wl-E'
15426      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15427      # Instead, shared libraries are loaded at an image base (0x10000000 by
15428      # default) and relocated if they conflict, which is a slow very memory
15429      # consuming and fragmenting process.  To avoid this, we pick a random,
15430      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15431      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15432      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15433      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'
15434      ;;
15435
15436    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15437      tmp_diet=no
15438      if test linux-dietlibc = "$host_os"; then
15439	case $cc_basename in
15440	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15441	esac
15442      fi
15443      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15444	 && test no = "$tmp_diet"
15445      then
15446	tmp_addflag=' $pic_flag'
15447	tmp_sharedflag='-shared'
15448	case $cc_basename,$host_cpu in
15449        pgcc*)				# Portland Group C compiler
15450	  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'
15451	  tmp_addflag=' $pic_flag'
15452	  ;;
15453	pgf77* | pgf90* | pgf95* | pgfortran*)
15454					# Portland Group f77 and f90 compilers
15455	  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'
15456	  tmp_addflag=' $pic_flag -Mnomain' ;;
15457	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15458	  tmp_addflag=' -i_dynamic' ;;
15459	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15460	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15461	ifc* | ifort*)			# Intel Fortran compiler
15462	  tmp_addflag=' -nofor_main' ;;
15463	lf95*)				# Lahey Fortran 8.1
15464	  whole_archive_flag_spec=
15465	  tmp_sharedflag='--shared' ;;
15466        nagfor*)                        # NAGFOR 5.3
15467          tmp_sharedflag='-Wl,-shared' ;;
15468	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15469	  tmp_sharedflag='-qmkshrobj'
15470	  tmp_addflag= ;;
15471	nvcc*)	# Cuda Compiler Driver 2.2
15472	  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'
15473	  compiler_needs_object=yes
15474	  ;;
15475	esac
15476	case `$CC -V 2>&1 | sed 5q` in
15477	*Sun\ C*)			# Sun C 5.9
15478	  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'
15479	  compiler_needs_object=yes
15480	  tmp_sharedflag='-G' ;;
15481	*Sun\ F*)			# Sun Fortran 8.3
15482	  tmp_sharedflag='-G' ;;
15483	esac
15484	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15485
15486        if test yes = "$supports_anon_versioning"; then
15487          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15488            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15489            echo "local: *; };" >> $output_objdir/$libname.ver~
15490            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15491        fi
15492
15493	case $cc_basename in
15494	tcc*)
15495	  export_dynamic_flag_spec='-rdynamic'
15496	  ;;
15497	xlf* | bgf* | bgxlf* | mpixlf*)
15498	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15499	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15500	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15501	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15502	  if test yes = "$supports_anon_versioning"; then
15503	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15504              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15505              echo "local: *; };" >> $output_objdir/$libname.ver~
15506              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15507	  fi
15508	  ;;
15509	esac
15510      else
15511        ld_shlibs=no
15512      fi
15513      ;;
15514
15515    netbsd*)
15516      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15517	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15518	wlarc=
15519      else
15520	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15521	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15522      fi
15523      ;;
15524
15525    solaris*)
15526      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15527	ld_shlibs=no
15528	cat <<_LT_EOF 1>&2
15529
15530*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15531*** create shared libraries on Solaris systems.  Therefore, libtool
15532*** is disabling shared libraries support.  We urge you to upgrade GNU
15533*** binutils to release 2.9.1 or newer.  Another option is to modify
15534*** your PATH or compiler configuration so that the native linker is
15535*** used, and then restart.
15536
15537_LT_EOF
15538      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15539	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15540	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15541      else
15542	ld_shlibs=no
15543      fi
15544      ;;
15545
15546    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15547      case `$LD -v 2>&1` in
15548        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15549	ld_shlibs=no
15550	cat <<_LT_EOF 1>&2
15551
15552*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15553*** reliably create shared libraries on SCO systems.  Therefore, libtool
15554*** is disabling shared libraries support.  We urge you to upgrade GNU
15555*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15556*** your PATH or compiler configuration so that the native linker is
15557*** used, and then restart.
15558
15559_LT_EOF
15560	;;
15561	*)
15562	  # For security reasons, it is highly recommended that you always
15563	  # use absolute paths for naming shared libraries, and exclude the
15564	  # DT_RUNPATH tag from executables and libraries.  But doing so
15565	  # requires that you compile everything twice, which is a pain.
15566	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15567	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15568	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15569	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15570	  else
15571	    ld_shlibs=no
15572	  fi
15573	;;
15574      esac
15575      ;;
15576
15577    sunos4*)
15578      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579      wlarc=
15580      hardcode_direct=yes
15581      hardcode_shlibpath_var=no
15582      ;;
15583
15584    *)
15585      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15586	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15587	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15588      else
15589	ld_shlibs=no
15590      fi
15591      ;;
15592    esac
15593
15594    if test no = "$ld_shlibs"; then
15595      runpath_var=
15596      hardcode_libdir_flag_spec=
15597      export_dynamic_flag_spec=
15598      whole_archive_flag_spec=
15599    fi
15600  else
15601    # PORTME fill in a description of your system's linker (not GNU ld)
15602    case $host_os in
15603    aix3*)
15604      allow_undefined_flag=unsupported
15605      always_export_symbols=yes
15606      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'
15607      # Note: this linker hardcodes the directories in LIBPATH if there
15608      # are no directories specified by -L.
15609      hardcode_minus_L=yes
15610      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15611	# Neither direct hardcoding nor static linking is supported with a
15612	# broken collect2.
15613	hardcode_direct=unsupported
15614      fi
15615      ;;
15616
15617    aix[4-9]*)
15618      if test ia64 = "$host_cpu"; then
15619	# On IA64, the linker does run time linking by default, so we don't
15620	# have to do anything special.
15621	aix_use_runtimelinking=no
15622	exp_sym_flag='-Bexport'
15623	no_entry_flag=
15624      else
15625	# If we're using GNU nm, then we don't want the "-C" option.
15626	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15627	# Without the "-l" option, or with the "-B" option, AIX nm treats
15628	# weak defined symbols like other global defined symbols, whereas
15629	# GNU nm marks them as "W".
15630	# While the 'weak' keyword is ignored in the Export File, we need
15631	# it in the Import File for the 'aix-soname' feature, so we have
15632	# to replace the "-B" option with "-P" for AIX nm.
15633	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15634	  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'
15635	else
15636	  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'
15637	fi
15638	aix_use_runtimelinking=no
15639
15640	# Test if we are trying to use run time linking or normal
15641	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15642	# have runtime linking enabled, and use it for executables.
15643	# For shared libraries, we enable/disable runtime linking
15644	# depending on the kind of the shared library created -
15645	# when "with_aix_soname,aix_use_runtimelinking" is:
15646	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15647	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15648	#            lib.a           static archive
15649	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15650	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15651	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15652	#            lib.a(lib.so.V) shared, rtl:no
15653	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15654	#            lib.a           static archive
15655	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15656	  for ld_flag in $LDFLAGS; do
15657	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15658	    aix_use_runtimelinking=yes
15659	    break
15660	  fi
15661	  done
15662	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15663	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15664	    # so we don't have lib.a shared libs to link our executables.
15665	    # We have to force runtime linking in this case.
15666	    aix_use_runtimelinking=yes
15667	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15668	  fi
15669	  ;;
15670	esac
15671
15672	exp_sym_flag='-bexport'
15673	no_entry_flag='-bnoentry'
15674      fi
15675
15676      # When large executables or shared objects are built, AIX ld can
15677      # have problems creating the table of contents.  If linking a library
15678      # or program results in "error TOC overflow" add -mminimal-toc to
15679      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15680      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15681
15682      archive_cmds=''
15683      hardcode_direct=yes
15684      hardcode_direct_absolute=yes
15685      hardcode_libdir_separator=':'
15686      link_all_deplibs=yes
15687      file_list_spec='$wl-f,'
15688      case $with_aix_soname,$aix_use_runtimelinking in
15689      aix,*) ;; # traditional, no import file
15690      svr4,* | *,yes) # use import file
15691	# The Import File defines what to hardcode.
15692	hardcode_direct=no
15693	hardcode_direct_absolute=no
15694	;;
15695      esac
15696
15697      if test yes = "$GCC"; then
15698	case $host_os in aix4.[012]|aix4.[012].*)
15699	# We only want to do this on AIX 4.2 and lower, the check
15700	# below for broken collect2 doesn't work under 4.3+
15701	  collect2name=`$CC -print-prog-name=collect2`
15702	  if test -f "$collect2name" &&
15703	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15704	  then
15705	  # We have reworked collect2
15706	  :
15707	  else
15708	  # We have old collect2
15709	  hardcode_direct=unsupported
15710	  # It fails to find uninstalled libraries when the uninstalled
15711	  # path is not listed in the libpath.  Setting hardcode_minus_L
15712	  # to unsupported forces relinking
15713	  hardcode_minus_L=yes
15714	  hardcode_libdir_flag_spec='-L$libdir'
15715	  hardcode_libdir_separator=
15716	  fi
15717	  ;;
15718	esac
15719	shared_flag='-shared'
15720	if test yes = "$aix_use_runtimelinking"; then
15721	  shared_flag="$shared_flag "'$wl-G'
15722	fi
15723	# Need to ensure runtime linking is disabled for the traditional
15724	# shared library, or the linker may eventually find shared libraries
15725	# /with/ Import File - we do not want to mix them.
15726	shared_flag_aix='-shared'
15727	shared_flag_svr4='-shared $wl-G'
15728      else
15729	# not using gcc
15730	if test ia64 = "$host_cpu"; then
15731	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15732	# chokes on -Wl,-G. The following line is correct:
15733	  shared_flag='-G'
15734	else
15735	  if test yes = "$aix_use_runtimelinking"; then
15736	    shared_flag='$wl-G'
15737	  else
15738	    shared_flag='$wl-bM:SRE'
15739	  fi
15740	  shared_flag_aix='$wl-bM:SRE'
15741	  shared_flag_svr4='$wl-G'
15742	fi
15743      fi
15744
15745      export_dynamic_flag_spec='$wl-bexpall'
15746      # It seems that -bexpall does not export symbols beginning with
15747      # underscore (_), so it is better to generate a list of symbols to export.
15748      always_export_symbols=yes
15749      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15750	# Warning - without using the other runtime loading flags (-brtl),
15751	# -berok will link without error, but may produce a broken library.
15752	allow_undefined_flag='-berok'
15753        # Determine the default libpath from the value encoded in an
15754        # empty executable.
15755        if test set = "${lt_cv_aix_libpath+set}"; then
15756  aix_libpath=$lt_cv_aix_libpath
15757else
15758  if ${lt_cv_aix_libpath_+:} false; then :
15759  $as_echo_n "(cached) " >&6
15760else
15761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h.  */
15763
15764int
15765main ()
15766{
15767
15768  ;
15769  return 0;
15770}
15771_ACEOF
15772if ac_fn_c_try_link "$LINENO"; then :
15773
15774  lt_aix_libpath_sed='
15775      /Import File Strings/,/^$/ {
15776	  /^0/ {
15777	      s/^0  *\([^ ]*\) *$/\1/
15778	      p
15779	  }
15780      }'
15781  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15782  # Check for a 64-bit object if we didn't find anything.
15783  if test -z "$lt_cv_aix_libpath_"; then
15784    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15785  fi
15786fi
15787rm -f core conftest.err conftest.$ac_objext \
15788    conftest$ac_exeext conftest.$ac_ext
15789  if test -z "$lt_cv_aix_libpath_"; then
15790    lt_cv_aix_libpath_=/usr/lib:/lib
15791  fi
15792
15793fi
15794
15795  aix_libpath=$lt_cv_aix_libpath_
15796fi
15797
15798        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15799        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
15800      else
15801	if test ia64 = "$host_cpu"; then
15802	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15803	  allow_undefined_flag="-z nodefs"
15804	  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"
15805	else
15806	 # Determine the default libpath from the value encoded in an
15807	 # empty executable.
15808	 if test set = "${lt_cv_aix_libpath+set}"; then
15809  aix_libpath=$lt_cv_aix_libpath
15810else
15811  if ${lt_cv_aix_libpath_+:} false; then :
15812  $as_echo_n "(cached) " >&6
15813else
15814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815/* end confdefs.h.  */
15816
15817int
15818main ()
15819{
15820
15821  ;
15822  return 0;
15823}
15824_ACEOF
15825if ac_fn_c_try_link "$LINENO"; then :
15826
15827  lt_aix_libpath_sed='
15828      /Import File Strings/,/^$/ {
15829	  /^0/ {
15830	      s/^0  *\([^ ]*\) *$/\1/
15831	      p
15832	  }
15833      }'
15834  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15835  # Check for a 64-bit object if we didn't find anything.
15836  if test -z "$lt_cv_aix_libpath_"; then
15837    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15838  fi
15839fi
15840rm -f core conftest.err conftest.$ac_objext \
15841    conftest$ac_exeext conftest.$ac_ext
15842  if test -z "$lt_cv_aix_libpath_"; then
15843    lt_cv_aix_libpath_=/usr/lib:/lib
15844  fi
15845
15846fi
15847
15848  aix_libpath=$lt_cv_aix_libpath_
15849fi
15850
15851	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15852	  # Warning - without using the other run time loading flags,
15853	  # -berok will link without error, but may produce a broken library.
15854	  no_undefined_flag=' $wl-bernotok'
15855	  allow_undefined_flag=' $wl-berok'
15856	  if test yes = "$with_gnu_ld"; then
15857	    # We only use this code for GNU lds that support --whole-archive.
15858	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15859	  else
15860	    # Exported symbols can be pulled into shared objects from archives
15861	    whole_archive_flag_spec='$convenience'
15862	  fi
15863	  archive_cmds_need_lc=yes
15864	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15865	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15866	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15867	  if test svr4 != "$with_aix_soname"; then
15868	    # This is similar to how AIX traditionally builds its shared libraries.
15869	    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'
15870	  fi
15871	  if test aix != "$with_aix_soname"; then
15872	    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'
15873	  else
15874	    # used by -dlpreopen to get the symbols
15875	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15876	  fi
15877	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15878	fi
15879      fi
15880      ;;
15881
15882    amigaos*)
15883      case $host_cpu in
15884      powerpc)
15885            # see comment about AmigaOS4 .so support
15886            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15887            archive_expsym_cmds=''
15888        ;;
15889      m68k)
15890            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)'
15891            hardcode_libdir_flag_spec='-L$libdir'
15892            hardcode_minus_L=yes
15893        ;;
15894      esac
15895      ;;
15896
15897    bsdi[45]*)
15898      export_dynamic_flag_spec=-rdynamic
15899      ;;
15900
15901    cygwin* | mingw* | pw32* | cegcc*)
15902      # When not using gcc, we currently assume that we are using
15903      # Microsoft Visual C++.
15904      # hardcode_libdir_flag_spec is actually meaningless, as there is
15905      # no search path for DLLs.
15906      case $cc_basename in
15907      cl*)
15908	# Native MSVC
15909	hardcode_libdir_flag_spec=' '
15910	allow_undefined_flag=unsupported
15911	always_export_symbols=yes
15912	file_list_spec='@'
15913	# Tell ltmain to make .lib files, not .a files.
15914	libext=lib
15915	# Tell ltmain to make .dll files, not .so files.
15916	shrext_cmds=.dll
15917	# FIXME: Setting linknames here is a bad hack.
15918	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15919	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15920            cp "$export_symbols" "$output_objdir/$soname.def";
15921            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15922          else
15923            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15924          fi~
15925          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15926          linknames='
15927	# The linker will not automatically build a static lib if we build a DLL.
15928	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15929	enable_shared_with_static_runtimes=yes
15930	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15931	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15932	# Don't use ranlib
15933	old_postinstall_cmds='chmod 644 $oldlib'
15934	postlink_cmds='lt_outputfile="@OUTPUT@"~
15935          lt_tool_outputfile="@TOOL_OUTPUT@"~
15936          case $lt_outputfile in
15937            *.exe|*.EXE) ;;
15938            *)
15939              lt_outputfile=$lt_outputfile.exe
15940              lt_tool_outputfile=$lt_tool_outputfile.exe
15941              ;;
15942          esac~
15943          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15944            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15945            $RM "$lt_outputfile.manifest";
15946          fi'
15947	;;
15948      *)
15949	# Assume MSVC wrapper
15950	hardcode_libdir_flag_spec=' '
15951	allow_undefined_flag=unsupported
15952	# Tell ltmain to make .lib files, not .a files.
15953	libext=lib
15954	# Tell ltmain to make .dll files, not .so files.
15955	shrext_cmds=.dll
15956	# FIXME: Setting linknames here is a bad hack.
15957	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15958	# The linker will automatically build a .lib file if we build a DLL.
15959	old_archive_from_new_cmds='true'
15960	# FIXME: Should let the user specify the lib program.
15961	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15962	enable_shared_with_static_runtimes=yes
15963	;;
15964      esac
15965      ;;
15966
15967    darwin* | rhapsody*)
15968
15969
15970  archive_cmds_need_lc=no
15971  hardcode_direct=no
15972  hardcode_automatic=yes
15973  hardcode_shlibpath_var=unsupported
15974  if test yes = "$lt_cv_ld_force_load"; then
15975    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\"`'
15976
15977  else
15978    whole_archive_flag_spec=''
15979  fi
15980  link_all_deplibs=yes
15981  allow_undefined_flag=$_lt_dar_allow_undefined
15982  case $cc_basename in
15983     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15984     *) _lt_dar_can_shared=$GCC ;;
15985  esac
15986  if test yes = "$_lt_dar_can_shared"; then
15987    output_verbose_link_cmd=func_echo_all
15988    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15989    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15990    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"
15991    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"
15992
15993  else
15994  ld_shlibs=no
15995  fi
15996
15997      ;;
15998
15999    dgux*)
16000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001      hardcode_libdir_flag_spec='-L$libdir'
16002      hardcode_shlibpath_var=no
16003      ;;
16004
16005    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16006    # support.  Future versions do this automatically, but an explicit c++rt0.o
16007    # does not break anything, and helps significantly (at the cost of a little
16008    # extra space).
16009    freebsd2.2*)
16010      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16011      hardcode_libdir_flag_spec='-R$libdir'
16012      hardcode_direct=yes
16013      hardcode_shlibpath_var=no
16014      ;;
16015
16016    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16017    freebsd2.*)
16018      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019      hardcode_direct=yes
16020      hardcode_minus_L=yes
16021      hardcode_shlibpath_var=no
16022      ;;
16023
16024    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16025    freebsd* | dragonfly*)
16026      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16027      hardcode_libdir_flag_spec='-R$libdir'
16028      hardcode_direct=yes
16029      hardcode_shlibpath_var=no
16030      ;;
16031
16032    hpux9*)
16033      if test yes = "$GCC"; then
16034	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'
16035      else
16036	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'
16037      fi
16038      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16039      hardcode_libdir_separator=:
16040      hardcode_direct=yes
16041
16042      # hardcode_minus_L: Not really in the search PATH,
16043      # but as the default location of the library.
16044      hardcode_minus_L=yes
16045      export_dynamic_flag_spec='$wl-E'
16046      ;;
16047
16048    hpux10*)
16049      if test yes,no = "$GCC,$with_gnu_ld"; then
16050	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16051      else
16052	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16053      fi
16054      if test no = "$with_gnu_ld"; then
16055	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16056	hardcode_libdir_separator=:
16057	hardcode_direct=yes
16058	hardcode_direct_absolute=yes
16059	export_dynamic_flag_spec='$wl-E'
16060	# hardcode_minus_L: Not really in the search PATH,
16061	# but as the default location of the library.
16062	hardcode_minus_L=yes
16063      fi
16064      ;;
16065
16066    hpux11*)
16067      if test yes,no = "$GCC,$with_gnu_ld"; then
16068	case $host_cpu in
16069	hppa*64*)
16070	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16071	  ;;
16072	ia64*)
16073	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16074	  ;;
16075	*)
16076	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16077	  ;;
16078	esac
16079      else
16080	case $host_cpu in
16081	hppa*64*)
16082	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16083	  ;;
16084	ia64*)
16085	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16086	  ;;
16087	*)
16088
16089	  # Older versions of the 11.00 compiler do not understand -b yet
16090	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16091	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16092$as_echo_n "checking if $CC understands -b... " >&6; }
16093if ${lt_cv_prog_compiler__b+:} false; then :
16094  $as_echo_n "(cached) " >&6
16095else
16096  lt_cv_prog_compiler__b=no
16097   save_LDFLAGS=$LDFLAGS
16098   LDFLAGS="$LDFLAGS -b"
16099   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16100   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16101     # The linker can only warn and ignore the option if not recognized
16102     # So say no if there are warnings
16103     if test -s conftest.err; then
16104       # Append any errors to the config.log.
16105       cat conftest.err 1>&5
16106       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16107       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16108       if diff conftest.exp conftest.er2 >/dev/null; then
16109         lt_cv_prog_compiler__b=yes
16110       fi
16111     else
16112       lt_cv_prog_compiler__b=yes
16113     fi
16114   fi
16115   $RM -r conftest*
16116   LDFLAGS=$save_LDFLAGS
16117
16118fi
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16120$as_echo "$lt_cv_prog_compiler__b" >&6; }
16121
16122if test yes = "$lt_cv_prog_compiler__b"; then
16123    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16124else
16125    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16126fi
16127
16128	  ;;
16129	esac
16130      fi
16131      if test no = "$with_gnu_ld"; then
16132	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16133	hardcode_libdir_separator=:
16134
16135	case $host_cpu in
16136	hppa*64*|ia64*)
16137	  hardcode_direct=no
16138	  hardcode_shlibpath_var=no
16139	  ;;
16140	*)
16141	  hardcode_direct=yes
16142	  hardcode_direct_absolute=yes
16143	  export_dynamic_flag_spec='$wl-E'
16144
16145	  # hardcode_minus_L: Not really in the search PATH,
16146	  # but as the default location of the library.
16147	  hardcode_minus_L=yes
16148	  ;;
16149	esac
16150      fi
16151      ;;
16152
16153    irix5* | irix6* | nonstopux*)
16154      if test yes = "$GCC"; then
16155	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'
16156	# Try to use the -exported_symbol ld option, if it does not
16157	# work, assume that -exports_file does not work either and
16158	# implicitly export all symbols.
16159	# This should be the same for all languages, so no per-tag cache variable.
16160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16161$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16162if ${lt_cv_irix_exported_symbol+:} false; then :
16163  $as_echo_n "(cached) " >&6
16164else
16165  save_LDFLAGS=$LDFLAGS
16166	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16167	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h.  */
16169int foo (void) { return 0; }
16170_ACEOF
16171if ac_fn_c_try_link "$LINENO"; then :
16172  lt_cv_irix_exported_symbol=yes
16173else
16174  lt_cv_irix_exported_symbol=no
16175fi
16176rm -f core conftest.err conftest.$ac_objext \
16177    conftest$ac_exeext conftest.$ac_ext
16178           LDFLAGS=$save_LDFLAGS
16179fi
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16181$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16182	if test yes = "$lt_cv_irix_exported_symbol"; then
16183          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'
16184	fi
16185      else
16186	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'
16187	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'
16188      fi
16189      archive_cmds_need_lc='no'
16190      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16191      hardcode_libdir_separator=:
16192      inherit_rpath=yes
16193      link_all_deplibs=yes
16194      ;;
16195
16196    linux*)
16197      case $cc_basename in
16198      tcc*)
16199	# Fabrice Bellard et al's Tiny C Compiler
16200	ld_shlibs=yes
16201	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16202	;;
16203      esac
16204      ;;
16205
16206    netbsd*)
16207      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16208	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16209      else
16210	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16211      fi
16212      hardcode_libdir_flag_spec='-R$libdir'
16213      hardcode_direct=yes
16214      hardcode_shlibpath_var=no
16215      ;;
16216
16217    newsos6)
16218      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16219      hardcode_direct=yes
16220      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16221      hardcode_libdir_separator=:
16222      hardcode_shlibpath_var=no
16223      ;;
16224
16225    *nto* | *qnx*)
16226      ;;
16227
16228    openbsd* | bitrig*)
16229      if test -f /usr/libexec/ld.so; then
16230	hardcode_direct=yes
16231	hardcode_shlibpath_var=no
16232	hardcode_direct_absolute=yes
16233	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16234	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16235	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16236	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16237	  export_dynamic_flag_spec='$wl-E'
16238	else
16239	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16240	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16241	fi
16242      else
16243	ld_shlibs=no
16244      fi
16245      ;;
16246
16247    os2*)
16248      hardcode_libdir_flag_spec='-L$libdir'
16249      hardcode_minus_L=yes
16250      allow_undefined_flag=unsupported
16251      shrext_cmds=.dll
16252      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16253	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16254	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16255	$ECHO EXPORTS >> $output_objdir/$libname.def~
16256	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16257	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16258	emximp -o $lib $output_objdir/$libname.def'
16259      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16260	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16261	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16262	$ECHO EXPORTS >> $output_objdir/$libname.def~
16263	prefix_cmds="$SED"~
16264	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16265	  prefix_cmds="$prefix_cmds -e 1d";
16266	fi~
16267	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16268	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16269	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16270	emximp -o $lib $output_objdir/$libname.def'
16271      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16272      enable_shared_with_static_runtimes=yes
16273      ;;
16274
16275    osf3*)
16276      if test yes = "$GCC"; then
16277	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16278	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'
16279      else
16280	allow_undefined_flag=' -expect_unresolved \*'
16281	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'
16282      fi
16283      archive_cmds_need_lc='no'
16284      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16285      hardcode_libdir_separator=:
16286      ;;
16287
16288    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16289      if test yes = "$GCC"; then
16290	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16291	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'
16292	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16293      else
16294	allow_undefined_flag=' -expect_unresolved \*'
16295	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'
16296	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~
16297          $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'
16298
16299	# Both c and cxx compiler support -rpath directly
16300	hardcode_libdir_flag_spec='-rpath $libdir'
16301      fi
16302      archive_cmds_need_lc='no'
16303      hardcode_libdir_separator=:
16304      ;;
16305
16306    solaris*)
16307      no_undefined_flag=' -z defs'
16308      if test yes = "$GCC"; then
16309	wlarc='$wl'
16310	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16311	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16312          $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'
16313      else
16314	case `$CC -V 2>&1` in
16315	*"Compilers 5.0"*)
16316	  wlarc=''
16317	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16319            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16320	  ;;
16321	*)
16322	  wlarc='$wl'
16323	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16324	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16325            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16326	  ;;
16327	esac
16328      fi
16329      hardcode_libdir_flag_spec='-R$libdir'
16330      hardcode_shlibpath_var=no
16331      case $host_os in
16332      solaris2.[0-5] | solaris2.[0-5].*) ;;
16333      *)
16334	# The compiler driver will combine and reorder linker options,
16335	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16336	# but is careful enough not to reorder.
16337	# Supported since Solaris 2.6 (maybe 2.5.1?)
16338	if test yes = "$GCC"; then
16339	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16340	else
16341	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16342	fi
16343	;;
16344      esac
16345      link_all_deplibs=yes
16346      ;;
16347
16348    sunos4*)
16349      if test sequent = "$host_vendor"; then
16350	# Use $CC to link under sequent, because it throws in some extra .o
16351	# files that make .init and .fini sections work.
16352	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16353      else
16354	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16355      fi
16356      hardcode_libdir_flag_spec='-L$libdir'
16357      hardcode_direct=yes
16358      hardcode_minus_L=yes
16359      hardcode_shlibpath_var=no
16360      ;;
16361
16362    sysv4)
16363      case $host_vendor in
16364	sni)
16365	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366	  hardcode_direct=yes # is this really true???
16367	;;
16368	siemens)
16369	  ## LD is ld it makes a PLAMLIB
16370	  ## CC just makes a GrossModule.
16371	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16372	  reload_cmds='$CC -r -o $output$reload_objs'
16373	  hardcode_direct=no
16374        ;;
16375	motorola)
16376	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16377	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16378	;;
16379      esac
16380      runpath_var='LD_RUN_PATH'
16381      hardcode_shlibpath_var=no
16382      ;;
16383
16384    sysv4.3*)
16385      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16386      hardcode_shlibpath_var=no
16387      export_dynamic_flag_spec='-Bexport'
16388      ;;
16389
16390    sysv4*MP*)
16391      if test -d /usr/nec; then
16392	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393	hardcode_shlibpath_var=no
16394	runpath_var=LD_RUN_PATH
16395	hardcode_runpath_var=yes
16396	ld_shlibs=yes
16397      fi
16398      ;;
16399
16400    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16401      no_undefined_flag='$wl-z,text'
16402      archive_cmds_need_lc=no
16403      hardcode_shlibpath_var=no
16404      runpath_var='LD_RUN_PATH'
16405
16406      if test yes = "$GCC"; then
16407	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16409      else
16410	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16411	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16412      fi
16413      ;;
16414
16415    sysv5* | sco3.2v5* | sco5v6*)
16416      # Note: We CANNOT use -z defs as we might desire, because we do not
16417      # link with -lc, and that would cause any symbols used from libc to
16418      # always be unresolved, which means just about no library would
16419      # ever link correctly.  If we're not using GNU ld we use -z text
16420      # though, which does catch some bad symbols but isn't as heavy-handed
16421      # as -z defs.
16422      no_undefined_flag='$wl-z,text'
16423      allow_undefined_flag='$wl-z,nodefs'
16424      archive_cmds_need_lc=no
16425      hardcode_shlibpath_var=no
16426      hardcode_libdir_flag_spec='$wl-R,$libdir'
16427      hardcode_libdir_separator=':'
16428      link_all_deplibs=yes
16429      export_dynamic_flag_spec='$wl-Bexport'
16430      runpath_var='LD_RUN_PATH'
16431
16432      if test yes = "$GCC"; then
16433	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16434	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16435      else
16436	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16437	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16438      fi
16439      ;;
16440
16441    uts4*)
16442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443      hardcode_libdir_flag_spec='-L$libdir'
16444      hardcode_shlibpath_var=no
16445      ;;
16446
16447    *)
16448      ld_shlibs=no
16449      ;;
16450    esac
16451
16452    if test sni = "$host_vendor"; then
16453      case $host in
16454      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16455	export_dynamic_flag_spec='$wl-Blargedynsym'
16456	;;
16457      esac
16458    fi
16459  fi
16460
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16462$as_echo "$ld_shlibs" >&6; }
16463test no = "$ld_shlibs" && can_build_shared=no
16464
16465with_gnu_ld=$with_gnu_ld
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481#
16482# Do we need to explicitly link libc?
16483#
16484case "x$archive_cmds_need_lc" in
16485x|xyes)
16486  # Assume -lc should be added
16487  archive_cmds_need_lc=yes
16488
16489  if test yes,yes = "$GCC,$enable_shared"; then
16490    case $archive_cmds in
16491    *'~'*)
16492      # FIXME: we may have to deal with multi-command sequences.
16493      ;;
16494    '$CC '*)
16495      # Test whether the compiler implicitly links with -lc since on some
16496      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16497      # to ld, don't add -lc before -lgcc.
16498      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16499$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16500if ${lt_cv_archive_cmds_need_lc+:} false; then :
16501  $as_echo_n "(cached) " >&6
16502else
16503  $RM conftest*
16504	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16505
16506	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16507  (eval $ac_compile) 2>&5
16508  ac_status=$?
16509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510  test $ac_status = 0; } 2>conftest.err; then
16511	  soname=conftest
16512	  lib=conftest
16513	  libobjs=conftest.$ac_objext
16514	  deplibs=
16515	  wl=$lt_prog_compiler_wl
16516	  pic_flag=$lt_prog_compiler_pic
16517	  compiler_flags=-v
16518	  linker_flags=-v
16519	  verstring=
16520	  output_objdir=.
16521	  libname=conftest
16522	  lt_save_allow_undefined_flag=$allow_undefined_flag
16523	  allow_undefined_flag=
16524	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16525  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16526  ac_status=$?
16527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16528  test $ac_status = 0; }
16529	  then
16530	    lt_cv_archive_cmds_need_lc=no
16531	  else
16532	    lt_cv_archive_cmds_need_lc=yes
16533	  fi
16534	  allow_undefined_flag=$lt_save_allow_undefined_flag
16535	else
16536	  cat conftest.err 1>&5
16537	fi
16538	$RM conftest*
16539
16540fi
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16542$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16543      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16544      ;;
16545    esac
16546  fi
16547  ;;
16548esac
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16702$as_echo_n "checking dynamic linker characteristics... " >&6; }
16703
16704if test yes = "$GCC"; then
16705  case $host_os in
16706    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16707    *) lt_awk_arg='/^libraries:/' ;;
16708  esac
16709  case $host_os in
16710    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16711    *) lt_sed_strip_eq='s|=/|/|g' ;;
16712  esac
16713  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16714  case $lt_search_path_spec in
16715  *\;*)
16716    # if the path contains ";" then we assume it to be the separator
16717    # otherwise default to the standard path separator (i.e. ":") - it is
16718    # assumed that no part of a normal pathname contains ";" but that should
16719    # okay in the real world where ";" in dirpaths is itself problematic.
16720    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16721    ;;
16722  *)
16723    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16724    ;;
16725  esac
16726  # Ok, now we have the path, separated by spaces, we can step through it
16727  # and add multilib dir if necessary...
16728  lt_tmp_lt_search_path_spec=
16729  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16730  # ...but if some path component already ends with the multilib dir we assume
16731  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16732  case "$lt_multi_os_dir; $lt_search_path_spec " in
16733  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16734    lt_multi_os_dir=
16735    ;;
16736  esac
16737  for lt_sys_path in $lt_search_path_spec; do
16738    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16739      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16740    elif test -n "$lt_multi_os_dir"; then
16741      test -d "$lt_sys_path" && \
16742	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16743    fi
16744  done
16745  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16746BEGIN {RS = " "; FS = "/|\n";} {
16747  lt_foo = "";
16748  lt_count = 0;
16749  for (lt_i = NF; lt_i > 0; lt_i--) {
16750    if ($lt_i != "" && $lt_i != ".") {
16751      if ($lt_i == "..") {
16752        lt_count++;
16753      } else {
16754        if (lt_count == 0) {
16755          lt_foo = "/" $lt_i lt_foo;
16756        } else {
16757          lt_count--;
16758        }
16759      }
16760    }
16761  }
16762  if (lt_foo != "") { lt_freq[lt_foo]++; }
16763  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16764}'`
16765  # AWK program above erroneously prepends '/' to C:/dos/paths
16766  # for these hosts.
16767  case $host_os in
16768    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16769      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16770  esac
16771  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16772else
16773  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16774fi
16775library_names_spec=
16776libname_spec='lib$name'
16777soname_spec=
16778shrext_cmds=.so
16779postinstall_cmds=
16780postuninstall_cmds=
16781finish_cmds=
16782finish_eval=
16783shlibpath_var=
16784shlibpath_overrides_runpath=unknown
16785version_type=none
16786dynamic_linker="$host_os ld.so"
16787sys_lib_dlsearch_path_spec="/lib /usr/lib"
16788need_lib_prefix=unknown
16789hardcode_into_libs=no
16790
16791# when you set need_version to no, make sure it does not cause -set_version
16792# flags to be left without arguments
16793need_version=unknown
16794
16795
16796
16797case $host_os in
16798aix3*)
16799  version_type=linux # correct to gnu/linux during the next big refactor
16800  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16801  shlibpath_var=LIBPATH
16802
16803  # AIX 3 has no versioning support, so we append a major version to the name.
16804  soname_spec='$libname$release$shared_ext$major'
16805  ;;
16806
16807aix[4-9]*)
16808  version_type=linux # correct to gnu/linux during the next big refactor
16809  need_lib_prefix=no
16810  need_version=no
16811  hardcode_into_libs=yes
16812  if test ia64 = "$host_cpu"; then
16813    # AIX 5 supports IA64
16814    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16815    shlibpath_var=LD_LIBRARY_PATH
16816  else
16817    # With GCC up to 2.95.x, collect2 would create an import file
16818    # for dependence libraries.  The import file would start with
16819    # the line '#! .'.  This would cause the generated library to
16820    # depend on '.', always an invalid library.  This was fixed in
16821    # development snapshots of GCC prior to 3.0.
16822    case $host_os in
16823      aix4 | aix4.[01] | aix4.[01].*)
16824      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16825	   echo ' yes '
16826	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16827	:
16828      else
16829	can_build_shared=no
16830      fi
16831      ;;
16832    esac
16833    # Using Import Files as archive members, it is possible to support
16834    # filename-based versioning of shared library archives on AIX. While
16835    # this would work for both with and without runtime linking, it will
16836    # prevent static linking of such archives. So we do filename-based
16837    # shared library versioning with .so extension only, which is used
16838    # when both runtime linking and shared linking is enabled.
16839    # Unfortunately, runtime linking may impact performance, so we do
16840    # not want this to be the default eventually. Also, we use the
16841    # versioned .so libs for executables only if there is the -brtl
16842    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16843    # To allow for filename-based versioning support, we need to create
16844    # libNAME.so.V as an archive file, containing:
16845    # *) an Import File, referring to the versioned filename of the
16846    #    archive as well as the shared archive member, telling the
16847    #    bitwidth (32 or 64) of that shared object, and providing the
16848    #    list of exported symbols of that shared object, eventually
16849    #    decorated with the 'weak' keyword
16850    # *) the shared object with the F_LOADONLY flag set, to really avoid
16851    #    it being seen by the linker.
16852    # At run time we better use the real file rather than another symlink,
16853    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16854
16855    case $with_aix_soname,$aix_use_runtimelinking in
16856    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16857    # soname into executable. Probably we can add versioning support to
16858    # collect2, so additional links can be useful in future.
16859    aix,yes) # traditional libtool
16860      dynamic_linker='AIX unversionable lib.so'
16861      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16862      # instead of lib<name>.a to let people know that these are not
16863      # typical AIX shared libraries.
16864      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16865      ;;
16866    aix,no) # traditional AIX only
16867      dynamic_linker='AIX lib.a(lib.so.V)'
16868      # We preserve .a as extension for shared libraries through AIX4.2
16869      # and later when we are not doing run time linking.
16870      library_names_spec='$libname$release.a $libname.a'
16871      soname_spec='$libname$release$shared_ext$major'
16872      ;;
16873    svr4,*) # full svr4 only
16874      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16875      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16876      # We do not specify a path in Import Files, so LIBPATH fires.
16877      shlibpath_overrides_runpath=yes
16878      ;;
16879    *,yes) # both, prefer svr4
16880      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16881      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16882      # unpreferred sharedlib libNAME.a needs extra handling
16883      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"'
16884      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"'
16885      # We do not specify a path in Import Files, so LIBPATH fires.
16886      shlibpath_overrides_runpath=yes
16887      ;;
16888    *,no) # both, prefer aix
16889      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16890      library_names_spec='$libname$release.a $libname.a'
16891      soname_spec='$libname$release$shared_ext$major'
16892      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16893      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)'
16894      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"'
16895      ;;
16896    esac
16897    shlibpath_var=LIBPATH
16898  fi
16899  ;;
16900
16901amigaos*)
16902  case $host_cpu in
16903  powerpc)
16904    # Since July 2007 AmigaOS4 officially supports .so libraries.
16905    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16906    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16907    ;;
16908  m68k)
16909    library_names_spec='$libname.ixlibrary $libname.a'
16910    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16911    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'
16912    ;;
16913  esac
16914  ;;
16915
16916beos*)
16917  library_names_spec='$libname$shared_ext'
16918  dynamic_linker="$host_os ld.so"
16919  shlibpath_var=LIBRARY_PATH
16920  ;;
16921
16922bsdi[45]*)
16923  version_type=linux # correct to gnu/linux during the next big refactor
16924  need_version=no
16925  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16926  soname_spec='$libname$release$shared_ext$major'
16927  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16928  shlibpath_var=LD_LIBRARY_PATH
16929  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16930  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16931  # the default ld.so.conf also contains /usr/contrib/lib and
16932  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16933  # libtool to hard-code these into programs
16934  ;;
16935
16936cygwin* | mingw* | pw32* | cegcc*)
16937  version_type=windows
16938  shrext_cmds=.dll
16939  need_version=no
16940  need_lib_prefix=no
16941
16942  case $GCC,$cc_basename in
16943  yes,*)
16944    # gcc
16945    library_names_spec='$libname.dll.a'
16946    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16947    postinstall_cmds='base_file=`basename \$file`~
16948      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16949      dldir=$destdir/`dirname \$dlpath`~
16950      test -d \$dldir || mkdir -p \$dldir~
16951      $install_prog $dir/$dlname \$dldir/$dlname~
16952      chmod a+x \$dldir/$dlname~
16953      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16954        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16955      fi'
16956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16957      dlpath=$dir/\$dldll~
16958       $RM \$dlpath'
16959    shlibpath_overrides_runpath=yes
16960
16961    case $host_os in
16962    cygwin*)
16963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16964      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16965
16966      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16967      ;;
16968    mingw* | cegcc*)
16969      # MinGW DLLs use traditional 'lib' prefix
16970      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16971      ;;
16972    pw32*)
16973      # pw32 DLLs use 'pw' prefix rather than 'lib'
16974      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16975      ;;
16976    esac
16977    dynamic_linker='Win32 ld.exe'
16978    ;;
16979
16980  *,cl*)
16981    # Native MSVC
16982    libname_spec='$name'
16983    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16984    library_names_spec='$libname.dll.lib'
16985
16986    case $build_os in
16987    mingw*)
16988      sys_lib_search_path_spec=
16989      lt_save_ifs=$IFS
16990      IFS=';'
16991      for lt_path in $LIB
16992      do
16993        IFS=$lt_save_ifs
16994        # Let DOS variable expansion print the short 8.3 style file name.
16995        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16996        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16997      done
16998      IFS=$lt_save_ifs
16999      # Convert to MSYS style.
17000      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17001      ;;
17002    cygwin*)
17003      # Convert to unix form, then to dos form, then back to unix form
17004      # but this time dos style (no spaces!) so that the unix form looks
17005      # like /cygdrive/c/PROGRA~1:/cygdr...
17006      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17007      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17008      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17009      ;;
17010    *)
17011      sys_lib_search_path_spec=$LIB
17012      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17013        # It is most probably a Windows format PATH.
17014        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17015      else
17016        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17017      fi
17018      # FIXME: find the short name or the path components, as spaces are
17019      # common. (e.g. "Program Files" -> "PROGRA~1")
17020      ;;
17021    esac
17022
17023    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024    postinstall_cmds='base_file=`basename \$file`~
17025      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17026      dldir=$destdir/`dirname \$dlpath`~
17027      test -d \$dldir || mkdir -p \$dldir~
17028      $install_prog $dir/$dlname \$dldir/$dlname'
17029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030      dlpath=$dir/\$dldll~
17031       $RM \$dlpath'
17032    shlibpath_overrides_runpath=yes
17033    dynamic_linker='Win32 link.exe'
17034    ;;
17035
17036  *)
17037    # Assume MSVC wrapper
17038    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17039    dynamic_linker='Win32 ld.exe'
17040    ;;
17041  esac
17042  # FIXME: first we should search . and the directory the executable is in
17043  shlibpath_var=PATH
17044  ;;
17045
17046darwin* | rhapsody*)
17047  dynamic_linker="$host_os dyld"
17048  version_type=darwin
17049  need_lib_prefix=no
17050  need_version=no
17051  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17052  soname_spec='$libname$release$major$shared_ext'
17053  shlibpath_overrides_runpath=yes
17054  shlibpath_var=DYLD_LIBRARY_PATH
17055  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17056
17057  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17058  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17059  ;;
17060
17061dgux*)
17062  version_type=linux # correct to gnu/linux during the next big refactor
17063  need_lib_prefix=no
17064  need_version=no
17065  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17066  soname_spec='$libname$release$shared_ext$major'
17067  shlibpath_var=LD_LIBRARY_PATH
17068  ;;
17069
17070freebsd* | dragonfly*)
17071  # DragonFly does not have aout.  When/if they implement a new
17072  # versioning mechanism, adjust this.
17073  if test -x /usr/bin/objformat; then
17074    objformat=`/usr/bin/objformat`
17075  else
17076    case $host_os in
17077    freebsd[23].*) objformat=aout ;;
17078    *) objformat=elf ;;
17079    esac
17080  fi
17081  version_type=freebsd-$objformat
17082  case $version_type in
17083    freebsd-elf*)
17084      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17085      soname_spec='$libname$release$shared_ext$major'
17086      need_version=no
17087      need_lib_prefix=no
17088      ;;
17089    freebsd-*)
17090      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17091      need_version=yes
17092      ;;
17093  esac
17094  shlibpath_var=LD_LIBRARY_PATH
17095  case $host_os in
17096  freebsd2.*)
17097    shlibpath_overrides_runpath=yes
17098    ;;
17099  freebsd3.[01]* | freebsdelf3.[01]*)
17100    shlibpath_overrides_runpath=yes
17101    hardcode_into_libs=yes
17102    ;;
17103  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17104  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17105    shlibpath_overrides_runpath=no
17106    hardcode_into_libs=yes
17107    ;;
17108  *) # from 4.6 on, and DragonFly
17109    shlibpath_overrides_runpath=yes
17110    hardcode_into_libs=yes
17111    ;;
17112  esac
17113  ;;
17114
17115haiku*)
17116  version_type=linux # correct to gnu/linux during the next big refactor
17117  need_lib_prefix=no
17118  need_version=no
17119  dynamic_linker="$host_os runtime_loader"
17120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17121  soname_spec='$libname$release$shared_ext$major'
17122  shlibpath_var=LIBRARY_PATH
17123  shlibpath_overrides_runpath=no
17124  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17125  hardcode_into_libs=yes
17126  ;;
17127
17128hpux9* | hpux10* | hpux11*)
17129  # Give a soname corresponding to the major version so that dld.sl refuses to
17130  # link against other versions.
17131  version_type=sunos
17132  need_lib_prefix=no
17133  need_version=no
17134  case $host_cpu in
17135  ia64*)
17136    shrext_cmds='.so'
17137    hardcode_into_libs=yes
17138    dynamic_linker="$host_os dld.so"
17139    shlibpath_var=LD_LIBRARY_PATH
17140    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17141    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17142    soname_spec='$libname$release$shared_ext$major'
17143    if test 32 = "$HPUX_IA64_MODE"; then
17144      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17145      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17146    else
17147      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17148      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17149    fi
17150    ;;
17151  hppa*64*)
17152    shrext_cmds='.sl'
17153    hardcode_into_libs=yes
17154    dynamic_linker="$host_os dld.sl"
17155    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17156    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17157    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17158    soname_spec='$libname$release$shared_ext$major'
17159    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17160    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17161    ;;
17162  *)
17163    shrext_cmds='.sl'
17164    dynamic_linker="$host_os dld.sl"
17165    shlibpath_var=SHLIB_PATH
17166    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17167    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17168    soname_spec='$libname$release$shared_ext$major'
17169    ;;
17170  esac
17171  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17172  postinstall_cmds='chmod 555 $lib'
17173  # or fails outright, so override atomically:
17174  install_override_mode=555
17175  ;;
17176
17177interix[3-9]*)
17178  version_type=linux # correct to gnu/linux during the next big refactor
17179  need_lib_prefix=no
17180  need_version=no
17181  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17182  soname_spec='$libname$release$shared_ext$major'
17183  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17184  shlibpath_var=LD_LIBRARY_PATH
17185  shlibpath_overrides_runpath=no
17186  hardcode_into_libs=yes
17187  ;;
17188
17189irix5* | irix6* | nonstopux*)
17190  case $host_os in
17191    nonstopux*) version_type=nonstopux ;;
17192    *)
17193	if test yes = "$lt_cv_prog_gnu_ld"; then
17194		version_type=linux # correct to gnu/linux during the next big refactor
17195	else
17196		version_type=irix
17197	fi ;;
17198  esac
17199  need_lib_prefix=no
17200  need_version=no
17201  soname_spec='$libname$release$shared_ext$major'
17202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17203  case $host_os in
17204  irix5* | nonstopux*)
17205    libsuff= shlibsuff=
17206    ;;
17207  *)
17208    case $LD in # libtool.m4 will add one of these switches to LD
17209    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17210      libsuff= shlibsuff= libmagic=32-bit;;
17211    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17212      libsuff=32 shlibsuff=N32 libmagic=N32;;
17213    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17214      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17215    *) libsuff= shlibsuff= libmagic=never-match;;
17216    esac
17217    ;;
17218  esac
17219  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17220  shlibpath_overrides_runpath=no
17221  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17222  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17223  hardcode_into_libs=yes
17224  ;;
17225
17226# No shared lib support for Linux oldld, aout, or coff.
17227linux*oldld* | linux*aout* | linux*coff*)
17228  dynamic_linker=no
17229  ;;
17230
17231linux*android*)
17232  version_type=none # Android doesn't support versioned libraries.
17233  need_lib_prefix=no
17234  need_version=no
17235  library_names_spec='$libname$release$shared_ext'
17236  soname_spec='$libname$release$shared_ext'
17237  finish_cmds=
17238  shlibpath_var=LD_LIBRARY_PATH
17239  shlibpath_overrides_runpath=yes
17240
17241  # This implies no fast_install, which is unacceptable.
17242  # Some rework will be needed to allow for fast_install
17243  # before this can be enabled.
17244  hardcode_into_libs=yes
17245
17246  dynamic_linker='Android linker'
17247  # Don't embed -rpath directories since the linker doesn't support them.
17248  hardcode_libdir_flag_spec='-L$libdir'
17249  ;;
17250
17251# This must be glibc/ELF.
17252linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17253  version_type=linux # correct to gnu/linux during the next big refactor
17254  need_lib_prefix=no
17255  need_version=no
17256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17257  soname_spec='$libname$release$shared_ext$major'
17258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  shlibpath_overrides_runpath=no
17261
17262  # Some binutils ld are patched to set DT_RUNPATH
17263  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17264  $as_echo_n "(cached) " >&6
17265else
17266  lt_cv_shlibpath_overrides_runpath=no
17267    save_LDFLAGS=$LDFLAGS
17268    save_libdir=$libdir
17269    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17270	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17271    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h.  */
17273
17274int
17275main ()
17276{
17277
17278  ;
17279  return 0;
17280}
17281_ACEOF
17282if ac_fn_c_try_link "$LINENO"; then :
17283  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17284  lt_cv_shlibpath_overrides_runpath=yes
17285fi
17286fi
17287rm -f core conftest.err conftest.$ac_objext \
17288    conftest$ac_exeext conftest.$ac_ext
17289    LDFLAGS=$save_LDFLAGS
17290    libdir=$save_libdir
17291
17292fi
17293
17294  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17295
17296  # This implies no fast_install, which is unacceptable.
17297  # Some rework will be needed to allow for fast_install
17298  # before this can be enabled.
17299  hardcode_into_libs=yes
17300
17301  # Add ABI-specific directories to the system library path.
17302  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17303
17304  # Ideally, we could use ldconfig to report *all* directores which are
17305  # searched for libraries, however this is still not possible.  Aside from not
17306  # being certain /sbin/ldconfig is available, command
17307  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17308  # even though it is searched at run-time.  Try to do the best guess by
17309  # appending ld.so.conf contents (and includes) to the search path.
17310  if test -f /etc/ld.so.conf; then
17311    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' ' '`
17312    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17313  fi
17314
17315  # We used to test for /lib/ld.so.1 and disable shared libraries on
17316  # powerpc, because MkLinux only supported shared libraries with the
17317  # GNU dynamic linker.  Since this was broken with cross compilers,
17318  # most powerpc-linux boxes support dynamic linking these days and
17319  # people can always --disable-shared, the test was removed, and we
17320  # assume the GNU/Linux dynamic linker is in use.
17321  dynamic_linker='GNU/Linux ld.so'
17322  ;;
17323
17324netbsd*)
17325  version_type=sunos
17326  need_lib_prefix=no
17327  need_version=no
17328  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17329    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17330    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17331    dynamic_linker='NetBSD (a.out) ld.so'
17332  else
17333    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17334    soname_spec='$libname$release$shared_ext$major'
17335    dynamic_linker='NetBSD ld.elf_so'
17336  fi
17337  shlibpath_var=LD_LIBRARY_PATH
17338  shlibpath_overrides_runpath=yes
17339  hardcode_into_libs=yes
17340  ;;
17341
17342newsos6)
17343  version_type=linux # correct to gnu/linux during the next big refactor
17344  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17345  shlibpath_var=LD_LIBRARY_PATH
17346  shlibpath_overrides_runpath=yes
17347  ;;
17348
17349*nto* | *qnx*)
17350  version_type=qnx
17351  need_lib_prefix=no
17352  need_version=no
17353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17354  soname_spec='$libname$release$shared_ext$major'
17355  shlibpath_var=LD_LIBRARY_PATH
17356  shlibpath_overrides_runpath=no
17357  hardcode_into_libs=yes
17358  dynamic_linker='ldqnx.so'
17359  ;;
17360
17361openbsd* | bitrig*)
17362  version_type=sunos
17363  sys_lib_dlsearch_path_spec=/usr/lib
17364  need_lib_prefix=no
17365  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17366    need_version=no
17367  else
17368    need_version=yes
17369  fi
17370  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17371  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17372  shlibpath_var=LD_LIBRARY_PATH
17373  shlibpath_overrides_runpath=yes
17374  ;;
17375
17376os2*)
17377  libname_spec='$name'
17378  version_type=windows
17379  shrext_cmds=.dll
17380  need_version=no
17381  need_lib_prefix=no
17382  # OS/2 can only load a DLL with a base name of 8 characters or less.
17383  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17384    v=$($ECHO $release$versuffix | tr -d .-);
17385    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17386    $ECHO $n$v`$shared_ext'
17387  library_names_spec='${libname}_dll.$libext'
17388  dynamic_linker='OS/2 ld.exe'
17389  shlibpath_var=BEGINLIBPATH
17390  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17391  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392  postinstall_cmds='base_file=`basename \$file`~
17393    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17394    dldir=$destdir/`dirname \$dlpath`~
17395    test -d \$dldir || mkdir -p \$dldir~
17396    $install_prog $dir/$dlname \$dldir/$dlname~
17397    chmod a+x \$dldir/$dlname~
17398    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17399      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17400    fi'
17401  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17402    dlpath=$dir/\$dldll~
17403    $RM \$dlpath'
17404  ;;
17405
17406osf3* | osf4* | osf5*)
17407  version_type=osf
17408  need_lib_prefix=no
17409  need_version=no
17410  soname_spec='$libname$release$shared_ext$major'
17411  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17412  shlibpath_var=LD_LIBRARY_PATH
17413  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17414  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17415  ;;
17416
17417rdos*)
17418  dynamic_linker=no
17419  ;;
17420
17421solaris*)
17422  version_type=linux # correct to gnu/linux during the next big refactor
17423  need_lib_prefix=no
17424  need_version=no
17425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17426  soname_spec='$libname$release$shared_ext$major'
17427  shlibpath_var=LD_LIBRARY_PATH
17428  shlibpath_overrides_runpath=yes
17429  hardcode_into_libs=yes
17430  # ldd complains unless libraries are executable
17431  postinstall_cmds='chmod +x $lib'
17432  ;;
17433
17434sunos4*)
17435  version_type=sunos
17436  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17437  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17438  shlibpath_var=LD_LIBRARY_PATH
17439  shlibpath_overrides_runpath=yes
17440  if test yes = "$with_gnu_ld"; then
17441    need_lib_prefix=no
17442  fi
17443  need_version=yes
17444  ;;
17445
17446sysv4 | sysv4.3*)
17447  version_type=linux # correct to gnu/linux during the next big refactor
17448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17449  soname_spec='$libname$release$shared_ext$major'
17450  shlibpath_var=LD_LIBRARY_PATH
17451  case $host_vendor in
17452    sni)
17453      shlibpath_overrides_runpath=no
17454      need_lib_prefix=no
17455      runpath_var=LD_RUN_PATH
17456      ;;
17457    siemens)
17458      need_lib_prefix=no
17459      ;;
17460    motorola)
17461      need_lib_prefix=no
17462      need_version=no
17463      shlibpath_overrides_runpath=no
17464      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17465      ;;
17466  esac
17467  ;;
17468
17469sysv4*MP*)
17470  if test -d /usr/nec; then
17471    version_type=linux # correct to gnu/linux during the next big refactor
17472    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17473    soname_spec='$libname$shared_ext.$major'
17474    shlibpath_var=LD_LIBRARY_PATH
17475  fi
17476  ;;
17477
17478sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17479  version_type=sco
17480  need_lib_prefix=no
17481  need_version=no
17482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17483  soname_spec='$libname$release$shared_ext$major'
17484  shlibpath_var=LD_LIBRARY_PATH
17485  shlibpath_overrides_runpath=yes
17486  hardcode_into_libs=yes
17487  if test yes = "$with_gnu_ld"; then
17488    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17489  else
17490    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17491    case $host_os in
17492      sco3.2v5*)
17493        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17494	;;
17495    esac
17496  fi
17497  sys_lib_dlsearch_path_spec='/usr/lib'
17498  ;;
17499
17500tpf*)
17501  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17502  version_type=linux # correct to gnu/linux during the next big refactor
17503  need_lib_prefix=no
17504  need_version=no
17505  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17506  shlibpath_var=LD_LIBRARY_PATH
17507  shlibpath_overrides_runpath=no
17508  hardcode_into_libs=yes
17509  ;;
17510
17511uts4*)
17512  version_type=linux # correct to gnu/linux during the next big refactor
17513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514  soname_spec='$libname$release$shared_ext$major'
17515  shlibpath_var=LD_LIBRARY_PATH
17516  ;;
17517
17518*)
17519  dynamic_linker=no
17520  ;;
17521esac
17522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17523$as_echo "$dynamic_linker" >&6; }
17524test no = "$dynamic_linker" && can_build_shared=no
17525
17526variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17527if test yes = "$GCC"; then
17528  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17529fi
17530
17531if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17532  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17533fi
17534
17535if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17536  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17537fi
17538
17539# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17540configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17541
17542# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17543func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17544
17545# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17546configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646hardcode_action=
17647if test -n "$hardcode_libdir_flag_spec" ||
17648   test -n "$runpath_var" ||
17649   test yes = "$hardcode_automatic"; then
17650
17651  # We can hardcode non-existent directories.
17652  if test no != "$hardcode_direct" &&
17653     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654     # have to relink, otherwise we might link with an installed library
17655     # when we should be linking with a yet-to-be-installed one
17656     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17657     test no != "$hardcode_minus_L"; then
17658    # Linking always hardcodes the temporary library directory.
17659    hardcode_action=relink
17660  else
17661    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662    hardcode_action=immediate
17663  fi
17664else
17665  # We cannot hardcode anything, or else we can only hardcode existing
17666  # directories.
17667  hardcode_action=unsupported
17668fi
17669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670$as_echo "$hardcode_action" >&6; }
17671
17672if test relink = "$hardcode_action" ||
17673   test yes = "$inherit_rpath"; then
17674  # Fast installation is not supported
17675  enable_fast_install=no
17676elif test yes = "$shlibpath_overrides_runpath" ||
17677     test no = "$enable_shared"; then
17678  # Fast installation is not necessary
17679  enable_fast_install=needless
17680fi
17681
17682
17683
17684
17685
17686
17687  if test yes != "$enable_dlopen"; then
17688  enable_dlopen=unknown
17689  enable_dlopen_self=unknown
17690  enable_dlopen_self_static=unknown
17691else
17692  lt_cv_dlopen=no
17693  lt_cv_dlopen_libs=
17694
17695  case $host_os in
17696  beos*)
17697    lt_cv_dlopen=load_add_on
17698    lt_cv_dlopen_libs=
17699    lt_cv_dlopen_self=yes
17700    ;;
17701
17702  mingw* | pw32* | cegcc*)
17703    lt_cv_dlopen=LoadLibrary
17704    lt_cv_dlopen_libs=
17705    ;;
17706
17707  cygwin*)
17708    lt_cv_dlopen=dlopen
17709    lt_cv_dlopen_libs=
17710    ;;
17711
17712  darwin*)
17713    # if libdl is installed we need to link against it
17714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715$as_echo_n "checking for dlopen in -ldl... " >&6; }
17716if ${ac_cv_lib_dl_dlopen+:} false; then :
17717  $as_echo_n "(cached) " >&6
17718else
17719  ac_check_lib_save_LIBS=$LIBS
17720LIBS="-ldl  $LIBS"
17721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722/* end confdefs.h.  */
17723
17724/* Override any GCC internal prototype to avoid an error.
17725   Use char because int might match the return type of a GCC
17726   builtin and then its argument prototype would still apply.  */
17727#ifdef __cplusplus
17728extern "C"
17729#endif
17730char dlopen ();
17731int
17732main ()
17733{
17734return dlopen ();
17735  ;
17736  return 0;
17737}
17738_ACEOF
17739if ac_fn_c_try_link "$LINENO"; then :
17740  ac_cv_lib_dl_dlopen=yes
17741else
17742  ac_cv_lib_dl_dlopen=no
17743fi
17744rm -f core conftest.err conftest.$ac_objext \
17745    conftest$ac_exeext conftest.$ac_ext
17746LIBS=$ac_check_lib_save_LIBS
17747fi
17748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17751  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17752else
17753
17754    lt_cv_dlopen=dyld
17755    lt_cv_dlopen_libs=
17756    lt_cv_dlopen_self=yes
17757
17758fi
17759
17760    ;;
17761
17762  tpf*)
17763    # Don't try to run any link tests for TPF.  We know it's impossible
17764    # because TPF is a cross-compiler, and we know how we open DSOs.
17765    lt_cv_dlopen=dlopen
17766    lt_cv_dlopen_libs=
17767    lt_cv_dlopen_self=no
17768    ;;
17769
17770  *)
17771    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17772if test "x$ac_cv_func_shl_load" = xyes; then :
17773  lt_cv_dlopen=shl_load
17774else
17775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17776$as_echo_n "checking for shl_load in -ldld... " >&6; }
17777if ${ac_cv_lib_dld_shl_load+:} false; then :
17778  $as_echo_n "(cached) " >&6
17779else
17780  ac_check_lib_save_LIBS=$LIBS
17781LIBS="-ldld  $LIBS"
17782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h.  */
17784
17785/* Override any GCC internal prototype to avoid an error.
17786   Use char because int might match the return type of a GCC
17787   builtin and then its argument prototype would still apply.  */
17788#ifdef __cplusplus
17789extern "C"
17790#endif
17791char shl_load ();
17792int
17793main ()
17794{
17795return shl_load ();
17796  ;
17797  return 0;
17798}
17799_ACEOF
17800if ac_fn_c_try_link "$LINENO"; then :
17801  ac_cv_lib_dld_shl_load=yes
17802else
17803  ac_cv_lib_dld_shl_load=no
17804fi
17805rm -f core conftest.err conftest.$ac_objext \
17806    conftest$ac_exeext conftest.$ac_ext
17807LIBS=$ac_check_lib_save_LIBS
17808fi
17809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17810$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17811if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17812  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17813else
17814  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17815if test "x$ac_cv_func_dlopen" = xyes; then :
17816  lt_cv_dlopen=dlopen
17817else
17818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17819$as_echo_n "checking for dlopen in -ldl... " >&6; }
17820if ${ac_cv_lib_dl_dlopen+:} false; then :
17821  $as_echo_n "(cached) " >&6
17822else
17823  ac_check_lib_save_LIBS=$LIBS
17824LIBS="-ldl  $LIBS"
17825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826/* end confdefs.h.  */
17827
17828/* Override any GCC internal prototype to avoid an error.
17829   Use char because int might match the return type of a GCC
17830   builtin and then its argument prototype would still apply.  */
17831#ifdef __cplusplus
17832extern "C"
17833#endif
17834char dlopen ();
17835int
17836main ()
17837{
17838return dlopen ();
17839  ;
17840  return 0;
17841}
17842_ACEOF
17843if ac_fn_c_try_link "$LINENO"; then :
17844  ac_cv_lib_dl_dlopen=yes
17845else
17846  ac_cv_lib_dl_dlopen=no
17847fi
17848rm -f core conftest.err conftest.$ac_objext \
17849    conftest$ac_exeext conftest.$ac_ext
17850LIBS=$ac_check_lib_save_LIBS
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17853$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17854if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17855  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17856else
17857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17858$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17859if ${ac_cv_lib_svld_dlopen+:} false; then :
17860  $as_echo_n "(cached) " >&6
17861else
17862  ac_check_lib_save_LIBS=$LIBS
17863LIBS="-lsvld  $LIBS"
17864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h.  */
17866
17867/* Override any GCC internal prototype to avoid an error.
17868   Use char because int might match the return type of a GCC
17869   builtin and then its argument prototype would still apply.  */
17870#ifdef __cplusplus
17871extern "C"
17872#endif
17873char dlopen ();
17874int
17875main ()
17876{
17877return dlopen ();
17878  ;
17879  return 0;
17880}
17881_ACEOF
17882if ac_fn_c_try_link "$LINENO"; then :
17883  ac_cv_lib_svld_dlopen=yes
17884else
17885  ac_cv_lib_svld_dlopen=no
17886fi
17887rm -f core conftest.err conftest.$ac_objext \
17888    conftest$ac_exeext conftest.$ac_ext
17889LIBS=$ac_check_lib_save_LIBS
17890fi
17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17892$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17893if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17894  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17895else
17896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17897$as_echo_n "checking for dld_link in -ldld... " >&6; }
17898if ${ac_cv_lib_dld_dld_link+:} false; then :
17899  $as_echo_n "(cached) " >&6
17900else
17901  ac_check_lib_save_LIBS=$LIBS
17902LIBS="-ldld  $LIBS"
17903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904/* end confdefs.h.  */
17905
17906/* Override any GCC internal prototype to avoid an error.
17907   Use char because int might match the return type of a GCC
17908   builtin and then its argument prototype would still apply.  */
17909#ifdef __cplusplus
17910extern "C"
17911#endif
17912char dld_link ();
17913int
17914main ()
17915{
17916return dld_link ();
17917  ;
17918  return 0;
17919}
17920_ACEOF
17921if ac_fn_c_try_link "$LINENO"; then :
17922  ac_cv_lib_dld_dld_link=yes
17923else
17924  ac_cv_lib_dld_dld_link=no
17925fi
17926rm -f core conftest.err conftest.$ac_objext \
17927    conftest$ac_exeext conftest.$ac_ext
17928LIBS=$ac_check_lib_save_LIBS
17929fi
17930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17931$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17932if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17933  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17934fi
17935
17936
17937fi
17938
17939
17940fi
17941
17942
17943fi
17944
17945
17946fi
17947
17948
17949fi
17950
17951    ;;
17952  esac
17953
17954  if test no = "$lt_cv_dlopen"; then
17955    enable_dlopen=no
17956  else
17957    enable_dlopen=yes
17958  fi
17959
17960  case $lt_cv_dlopen in
17961  dlopen)
17962    save_CPPFLAGS=$CPPFLAGS
17963    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17964
17965    save_LDFLAGS=$LDFLAGS
17966    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17967
17968    save_LIBS=$LIBS
17969    LIBS="$lt_cv_dlopen_libs $LIBS"
17970
17971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17972$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17973if ${lt_cv_dlopen_self+:} false; then :
17974  $as_echo_n "(cached) " >&6
17975else
17976  	  if test yes = "$cross_compiling"; then :
17977  lt_cv_dlopen_self=cross
17978else
17979  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17980  lt_status=$lt_dlunknown
17981  cat > conftest.$ac_ext <<_LT_EOF
17982#line $LINENO "configure"
17983#include "confdefs.h"
17984
17985#if HAVE_DLFCN_H
17986#include <dlfcn.h>
17987#endif
17988
17989#include <stdio.h>
17990
17991#ifdef RTLD_GLOBAL
17992#  define LT_DLGLOBAL		RTLD_GLOBAL
17993#else
17994#  ifdef DL_GLOBAL
17995#    define LT_DLGLOBAL		DL_GLOBAL
17996#  else
17997#    define LT_DLGLOBAL		0
17998#  endif
17999#endif
18000
18001/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18002   find out it does not work in some platform. */
18003#ifndef LT_DLLAZY_OR_NOW
18004#  ifdef RTLD_LAZY
18005#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18006#  else
18007#    ifdef DL_LAZY
18008#      define LT_DLLAZY_OR_NOW		DL_LAZY
18009#    else
18010#      ifdef RTLD_NOW
18011#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18012#      else
18013#        ifdef DL_NOW
18014#          define LT_DLLAZY_OR_NOW	DL_NOW
18015#        else
18016#          define LT_DLLAZY_OR_NOW	0
18017#        endif
18018#      endif
18019#    endif
18020#  endif
18021#endif
18022
18023/* When -fvisibility=hidden is used, assume the code has been annotated
18024   correspondingly for the symbols needed.  */
18025#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18026int fnord () __attribute__((visibility("default")));
18027#endif
18028
18029int fnord () { return 42; }
18030int main ()
18031{
18032  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18033  int status = $lt_dlunknown;
18034
18035  if (self)
18036    {
18037      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18038      else
18039        {
18040	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18041          else puts (dlerror ());
18042	}
18043      /* dlclose (self); */
18044    }
18045  else
18046    puts (dlerror ());
18047
18048  return status;
18049}
18050_LT_EOF
18051  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18052  (eval $ac_link) 2>&5
18053  ac_status=$?
18054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18056    (./conftest; exit; ) >&5 2>/dev/null
18057    lt_status=$?
18058    case x$lt_status in
18059      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18060      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18061      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18062    esac
18063  else :
18064    # compilation failed
18065    lt_cv_dlopen_self=no
18066  fi
18067fi
18068rm -fr conftest*
18069
18070
18071fi
18072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18073$as_echo "$lt_cv_dlopen_self" >&6; }
18074
18075    if test yes = "$lt_cv_dlopen_self"; then
18076      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18077      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18078$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18079if ${lt_cv_dlopen_self_static+:} false; then :
18080  $as_echo_n "(cached) " >&6
18081else
18082  	  if test yes = "$cross_compiling"; then :
18083  lt_cv_dlopen_self_static=cross
18084else
18085  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18086  lt_status=$lt_dlunknown
18087  cat > conftest.$ac_ext <<_LT_EOF
18088#line $LINENO "configure"
18089#include "confdefs.h"
18090
18091#if HAVE_DLFCN_H
18092#include <dlfcn.h>
18093#endif
18094
18095#include <stdio.h>
18096
18097#ifdef RTLD_GLOBAL
18098#  define LT_DLGLOBAL		RTLD_GLOBAL
18099#else
18100#  ifdef DL_GLOBAL
18101#    define LT_DLGLOBAL		DL_GLOBAL
18102#  else
18103#    define LT_DLGLOBAL		0
18104#  endif
18105#endif
18106
18107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18108   find out it does not work in some platform. */
18109#ifndef LT_DLLAZY_OR_NOW
18110#  ifdef RTLD_LAZY
18111#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18112#  else
18113#    ifdef DL_LAZY
18114#      define LT_DLLAZY_OR_NOW		DL_LAZY
18115#    else
18116#      ifdef RTLD_NOW
18117#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18118#      else
18119#        ifdef DL_NOW
18120#          define LT_DLLAZY_OR_NOW	DL_NOW
18121#        else
18122#          define LT_DLLAZY_OR_NOW	0
18123#        endif
18124#      endif
18125#    endif
18126#  endif
18127#endif
18128
18129/* When -fvisibility=hidden is used, assume the code has been annotated
18130   correspondingly for the symbols needed.  */
18131#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18132int fnord () __attribute__((visibility("default")));
18133#endif
18134
18135int fnord () { return 42; }
18136int main ()
18137{
18138  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18139  int status = $lt_dlunknown;
18140
18141  if (self)
18142    {
18143      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18144      else
18145        {
18146	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18147          else puts (dlerror ());
18148	}
18149      /* dlclose (self); */
18150    }
18151  else
18152    puts (dlerror ());
18153
18154  return status;
18155}
18156_LT_EOF
18157  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18158  (eval $ac_link) 2>&5
18159  ac_status=$?
18160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18161  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18162    (./conftest; exit; ) >&5 2>/dev/null
18163    lt_status=$?
18164    case x$lt_status in
18165      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18166      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18167      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18168    esac
18169  else :
18170    # compilation failed
18171    lt_cv_dlopen_self_static=no
18172  fi
18173fi
18174rm -fr conftest*
18175
18176
18177fi
18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18179$as_echo "$lt_cv_dlopen_self_static" >&6; }
18180    fi
18181
18182    CPPFLAGS=$save_CPPFLAGS
18183    LDFLAGS=$save_LDFLAGS
18184    LIBS=$save_LIBS
18185    ;;
18186  esac
18187
18188  case $lt_cv_dlopen_self in
18189  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18190  *) enable_dlopen_self=unknown ;;
18191  esac
18192
18193  case $lt_cv_dlopen_self_static in
18194  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18195  *) enable_dlopen_self_static=unknown ;;
18196  esac
18197fi
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215striplib=
18216old_striplib=
18217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18218$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18219if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18220  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18221  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223$as_echo "yes" >&6; }
18224else
18225# FIXME - insert some real tests, host_os isn't really good enough
18226  case $host_os in
18227  darwin*)
18228    if test -n "$STRIP"; then
18229      striplib="$STRIP -x"
18230      old_striplib="$STRIP -S"
18231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232$as_echo "yes" >&6; }
18233    else
18234      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235$as_echo "no" >&6; }
18236    fi
18237    ;;
18238  *)
18239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240$as_echo "no" >&6; }
18241    ;;
18242  esac
18243fi
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256  # Report what library types will actually be built
18257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18258$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18260$as_echo "$can_build_shared" >&6; }
18261
18262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18263$as_echo_n "checking whether to build shared libraries... " >&6; }
18264  test no = "$can_build_shared" && enable_shared=no
18265
18266  # On AIX, shared libraries and static libraries use the same namespace, and
18267  # are all built from PIC.
18268  case $host_os in
18269  aix3*)
18270    test yes = "$enable_shared" && enable_static=no
18271    if test -n "$RANLIB"; then
18272      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18273      postinstall_cmds='$RANLIB $lib'
18274    fi
18275    ;;
18276
18277  aix[4-9]*)
18278    if test ia64 != "$host_cpu"; then
18279      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18280      yes,aix,yes) ;;			# shared object as lib.so file only
18281      yes,svr4,*) ;;			# shared object as lib.so archive member only
18282      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18283      esac
18284    fi
18285    ;;
18286  esac
18287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18288$as_echo "$enable_shared" >&6; }
18289
18290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18291$as_echo_n "checking whether to build static libraries... " >&6; }
18292  # Make sure either enable_shared or enable_static is yes.
18293  test yes = "$enable_shared" || enable_static=yes
18294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18295$as_echo "$enable_static" >&6; }
18296
18297
18298
18299
18300fi
18301ac_ext=c
18302ac_cpp='$CPP $CPPFLAGS'
18303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305ac_compiler_gnu=$ac_cv_c_compiler_gnu
18306
18307CC=$lt_save_CC
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323        ac_config_commands="$ac_config_commands libtool"
18324
18325
18326
18327
18328# Only expand once:
18329
18330
18331
18332# Checks for pkg-config packages
18333
18334pkg_failed=no
18335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86MISC" >&5
18336$as_echo_n "checking for XXF86MISC... " >&6; }
18337
18338if test -n "$XXF86MISC_CFLAGS"; then
18339    pkg_cv_XXF86MISC_CFLAGS="$XXF86MISC_CFLAGS"
18340 elif test -n "$PKG_CONFIG"; then
18341    if test -n "$PKG_CONFIG" && \
18342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
18343  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
18344  ac_status=$?
18345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18346  test $ac_status = 0; }; then
18347  pkg_cv_XXF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
18348		      test "x$?" != "x0" && pkg_failed=yes
18349else
18350  pkg_failed=yes
18351fi
18352 else
18353    pkg_failed=untried
18354fi
18355if test -n "$XXF86MISC_LIBS"; then
18356    pkg_cv_XXF86MISC_LIBS="$XXF86MISC_LIBS"
18357 elif test -n "$PKG_CONFIG"; then
18358    if test -n "$PKG_CONFIG" && \
18359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
18360  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
18361  ac_status=$?
18362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18363  test $ac_status = 0; }; then
18364  pkg_cv_XXF86MISC_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
18365		      test "x$?" != "x0" && pkg_failed=yes
18366else
18367  pkg_failed=yes
18368fi
18369 else
18370    pkg_failed=untried
18371fi
18372
18373
18374
18375if test $pkg_failed = yes; then
18376   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377$as_echo "no" >&6; }
18378
18379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18380        _pkg_short_errors_supported=yes
18381else
18382        _pkg_short_errors_supported=no
18383fi
18384        if test $_pkg_short_errors_supported = yes; then
18385	        XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 xextproto xext xf86miscproto" 2>&1`
18386        else
18387	        XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 xextproto xext xf86miscproto" 2>&1`
18388        fi
18389	# Put the nasty error message in config.log where it belongs
18390	echo "$XXF86MISC_PKG_ERRORS" >&5
18391
18392	as_fn_error $? "Package requirements (xproto x11 xextproto xext xf86miscproto) were not met:
18393
18394$XXF86MISC_PKG_ERRORS
18395
18396Consider adjusting the PKG_CONFIG_PATH environment variable if you
18397installed software in a non-standard prefix.
18398
18399Alternatively, you may set the environment variables XXF86MISC_CFLAGS
18400and XXF86MISC_LIBS to avoid the need to call pkg-config.
18401See the pkg-config man page for more details." "$LINENO" 5
18402elif test $pkg_failed = untried; then
18403     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
18405	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18407as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18408is in your PATH or set the PKG_CONFIG environment variable to the full
18409path to pkg-config.
18410
18411Alternatively, you may set the environment variables XXF86MISC_CFLAGS
18412and XXF86MISC_LIBS to avoid the need to call pkg-config.
18413See the pkg-config man page for more details.
18414
18415To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18416See \`config.log' for more details" "$LINENO" 5; }
18417else
18418	XXF86MISC_CFLAGS=$pkg_cv_XXF86MISC_CFLAGS
18419	XXF86MISC_LIBS=$pkg_cv_XXF86MISC_LIBS
18420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421$as_echo "yes" >&6; }
18422
18423fi
18424
18425
18426# Check whether --enable-malloc0returnsnull was given.
18427if test "${enable_malloc0returnsnull+set}" = set; then :
18428  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18429else
18430  MALLOC_ZERO_RETURNS_NULL=auto
18431fi
18432
18433
18434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18435$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18436if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18437if ${xorg_cv_malloc0_returns_null+:} false; then :
18438  $as_echo_n "(cached) " >&6
18439else
18440  if test "$cross_compiling" = yes; then :
18441  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18443as_fn_error $? "cannot run test program while cross compiling
18444See \`config.log' for more details" "$LINENO" 5; }
18445else
18446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447/* end confdefs.h.  */
18448
18449#include <stdlib.h>
18450
18451int
18452main ()
18453{
18454
18455    char *m0, *r0, *c0, *p;
18456    m0 = malloc(0);
18457    p = malloc(10);
18458    r0 = realloc(p,0);
18459    c0 = calloc(0,10);
18460    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18461
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466if ac_fn_c_try_run "$LINENO"; then :
18467  xorg_cv_malloc0_returns_null=yes
18468else
18469  xorg_cv_malloc0_returns_null=no
18470fi
18471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18472  conftest.$ac_objext conftest.beam conftest.$ac_ext
18473fi
18474
18475fi
18476
18477MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18478fi
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18480$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18481
18482if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18483	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18484	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18485	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18486else
18487	MALLOC_ZERO_CFLAGS=""
18488	XMALLOC_ZERO_CFLAGS=""
18489	XTMALLOC_ZERO_CFLAGS=""
18490fi
18491
18492
18493
18494
18495
18496
18497ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86misc.pc"
18498
18499cat >confcache <<\_ACEOF
18500# This file is a shell script that caches the results of configure
18501# tests run on this system so they can be shared between configure
18502# scripts and configure runs, see configure's option --config-cache.
18503# It is not useful on other systems.  If it contains results you don't
18504# want to keep, you may remove or edit it.
18505#
18506# config.status only pays attention to the cache file if you give it
18507# the --recheck option to rerun configure.
18508#
18509# `ac_cv_env_foo' variables (set or unset) will be overridden when
18510# loading this file, other *unset* `ac_cv_foo' will be assigned the
18511# following values.
18512
18513_ACEOF
18514
18515# The following way of writing the cache mishandles newlines in values,
18516# but we know of no workaround that is simple, portable, and efficient.
18517# So, we kill variables containing newlines.
18518# Ultrix sh set writes to stderr and can't be redirected directly,
18519# and sets the high bit in the cache file unless we assign to the vars.
18520(
18521  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18522    eval ac_val=\$$ac_var
18523    case $ac_val in #(
18524    *${as_nl}*)
18525      case $ac_var in #(
18526      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18527$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18528      esac
18529      case $ac_var in #(
18530      _ | IFS | as_nl) ;; #(
18531      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18532      *) { eval $ac_var=; unset $ac_var;} ;;
18533      esac ;;
18534    esac
18535  done
18536
18537  (set) 2>&1 |
18538    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18539    *${as_nl}ac_space=\ *)
18540      # `set' does not quote correctly, so add quotes: double-quote
18541      # substitution turns \\\\ into \\, and sed turns \\ into \.
18542      sed -n \
18543	"s/'/'\\\\''/g;
18544	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18545      ;; #(
18546    *)
18547      # `set' quotes correctly as required by POSIX, so do not add quotes.
18548      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18549      ;;
18550    esac |
18551    sort
18552) |
18553  sed '
18554     /^ac_cv_env_/b end
18555     t clear
18556     :clear
18557     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18558     t end
18559     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18560     :end' >>confcache
18561if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18562  if test -w "$cache_file"; then
18563    if test "x$cache_file" != "x/dev/null"; then
18564      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18565$as_echo "$as_me: updating cache $cache_file" >&6;}
18566      if test ! -f "$cache_file" || test -h "$cache_file"; then
18567	cat confcache >"$cache_file"
18568      else
18569        case $cache_file in #(
18570        */* | ?:*)
18571	  mv -f confcache "$cache_file"$$ &&
18572	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18573        *)
18574	  mv -f confcache "$cache_file" ;;
18575	esac
18576      fi
18577    fi
18578  else
18579    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18581  fi
18582fi
18583rm -f confcache
18584
18585test "x$prefix" = xNONE && prefix=$ac_default_prefix
18586# Let make expand exec_prefix.
18587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18588
18589DEFS=-DHAVE_CONFIG_H
18590
18591ac_libobjs=
18592ac_ltlibobjs=
18593U=
18594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18595  # 1. Remove the extension, and $U if already installed.
18596  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18597  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18598  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18599  #    will be set to the directory where LIBOBJS objects are built.
18600  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18601  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18602done
18603LIBOBJS=$ac_libobjs
18604
18605LTLIBOBJS=$ac_ltlibobjs
18606
18607
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18609$as_echo_n "checking that generated files are newer than configure... " >&6; }
18610   if test -n "$am_sleep_pid"; then
18611     # Hide warnings about reused PIDs.
18612     wait $am_sleep_pid 2>/dev/null
18613   fi
18614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18615$as_echo "done" >&6; }
18616 if test -n "$EXEEXT"; then
18617  am__EXEEXT_TRUE=
18618  am__EXEEXT_FALSE='#'
18619else
18620  am__EXEEXT_TRUE='#'
18621  am__EXEEXT_FALSE=
18622fi
18623
18624if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18625  as_fn_error $? "conditional \"AMDEP\" was never defined.
18626Usually this means the macro was only invoked conditionally." "$LINENO" 5
18627fi
18628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18629  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18630Usually this means the macro was only invoked conditionally." "$LINENO" 5
18631fi
18632
18633: "${CONFIG_STATUS=./config.status}"
18634ac_write_fail=0
18635ac_clean_files_save=$ac_clean_files
18636ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18638$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18639as_write_fail=0
18640cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18641#! $SHELL
18642# Generated by $as_me.
18643# Run this file to recreate the current configuration.
18644# Compiler output produced by configure, useful for debugging
18645# configure, is in config.log if it exists.
18646
18647debug=false
18648ac_cs_recheck=false
18649ac_cs_silent=false
18650
18651SHELL=\${CONFIG_SHELL-$SHELL}
18652export SHELL
18653_ASEOF
18654cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18655## -------------------- ##
18656## M4sh Initialization. ##
18657## -------------------- ##
18658
18659# Be more Bourne compatible
18660DUALCASE=1; export DUALCASE # for MKS sh
18661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18662  emulate sh
18663  NULLCMD=:
18664  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18665  # is contrary to our usage.  Disable this feature.
18666  alias -g '${1+"$@"}'='"$@"'
18667  setopt NO_GLOB_SUBST
18668else
18669  case `(set -o) 2>/dev/null` in #(
18670  *posix*) :
18671    set -o posix ;; #(
18672  *) :
18673     ;;
18674esac
18675fi
18676
18677
18678as_nl='
18679'
18680export as_nl
18681# Printing a long string crashes Solaris 7 /usr/bin/printf.
18682as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18683as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18684as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18685# Prefer a ksh shell builtin over an external printf program on Solaris,
18686# but without wasting forks for bash or zsh.
18687if test -z "$BASH_VERSION$ZSH_VERSION" \
18688    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18689  as_echo='print -r --'
18690  as_echo_n='print -rn --'
18691elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18692  as_echo='printf %s\n'
18693  as_echo_n='printf %s'
18694else
18695  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18696    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18697    as_echo_n='/usr/ucb/echo -n'
18698  else
18699    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18700    as_echo_n_body='eval
18701      arg=$1;
18702      case $arg in #(
18703      *"$as_nl"*)
18704	expr "X$arg" : "X\\(.*\\)$as_nl";
18705	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18706      esac;
18707      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18708    '
18709    export as_echo_n_body
18710    as_echo_n='sh -c $as_echo_n_body as_echo'
18711  fi
18712  export as_echo_body
18713  as_echo='sh -c $as_echo_body as_echo'
18714fi
18715
18716# The user is always right.
18717if test "${PATH_SEPARATOR+set}" != set; then
18718  PATH_SEPARATOR=:
18719  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18720    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18721      PATH_SEPARATOR=';'
18722  }
18723fi
18724
18725
18726# IFS
18727# We need space, tab and new line, in precisely that order.  Quoting is
18728# there to prevent editors from complaining about space-tab.
18729# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18730# splitting by setting IFS to empty value.)
18731IFS=" ""	$as_nl"
18732
18733# Find who we are.  Look in the path if we contain no directory separator.
18734as_myself=
18735case $0 in #((
18736  *[\\/]* ) as_myself=$0 ;;
18737  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738for as_dir in $PATH
18739do
18740  IFS=$as_save_IFS
18741  test -z "$as_dir" && as_dir=.
18742    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18743  done
18744IFS=$as_save_IFS
18745
18746     ;;
18747esac
18748# We did not find ourselves, most probably we were run as `sh COMMAND'
18749# in which case we are not to be found in the path.
18750if test "x$as_myself" = x; then
18751  as_myself=$0
18752fi
18753if test ! -f "$as_myself"; then
18754  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18755  exit 1
18756fi
18757
18758# Unset variables that we do not need and which cause bugs (e.g. in
18759# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18760# suppresses any "Segmentation fault" message there.  '((' could
18761# trigger a bug in pdksh 5.2.14.
18762for as_var in BASH_ENV ENV MAIL MAILPATH
18763do eval test x\${$as_var+set} = xset \
18764  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18765done
18766PS1='$ '
18767PS2='> '
18768PS4='+ '
18769
18770# NLS nuisances.
18771LC_ALL=C
18772export LC_ALL
18773LANGUAGE=C
18774export LANGUAGE
18775
18776# CDPATH.
18777(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18778
18779
18780# as_fn_error STATUS ERROR [LINENO LOG_FD]
18781# ----------------------------------------
18782# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18783# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18784# script with STATUS, using 1 if that was 0.
18785as_fn_error ()
18786{
18787  as_status=$1; test $as_status -eq 0 && as_status=1
18788  if test "$4"; then
18789    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18790    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18791  fi
18792  $as_echo "$as_me: error: $2" >&2
18793  as_fn_exit $as_status
18794} # as_fn_error
18795
18796
18797# as_fn_set_status STATUS
18798# -----------------------
18799# Set $? to STATUS, without forking.
18800as_fn_set_status ()
18801{
18802  return $1
18803} # as_fn_set_status
18804
18805# as_fn_exit STATUS
18806# -----------------
18807# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18808as_fn_exit ()
18809{
18810  set +e
18811  as_fn_set_status $1
18812  exit $1
18813} # as_fn_exit
18814
18815# as_fn_unset VAR
18816# ---------------
18817# Portably unset VAR.
18818as_fn_unset ()
18819{
18820  { eval $1=; unset $1;}
18821}
18822as_unset=as_fn_unset
18823# as_fn_append VAR VALUE
18824# ----------------------
18825# Append the text in VALUE to the end of the definition contained in VAR. Take
18826# advantage of any shell optimizations that allow amortized linear growth over
18827# repeated appends, instead of the typical quadratic growth present in naive
18828# implementations.
18829if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18830  eval 'as_fn_append ()
18831  {
18832    eval $1+=\$2
18833  }'
18834else
18835  as_fn_append ()
18836  {
18837    eval $1=\$$1\$2
18838  }
18839fi # as_fn_append
18840
18841# as_fn_arith ARG...
18842# ------------------
18843# Perform arithmetic evaluation on the ARGs, and store the result in the
18844# global $as_val. Take advantage of shells that can avoid forks. The arguments
18845# must be portable across $(()) and expr.
18846if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18847  eval 'as_fn_arith ()
18848  {
18849    as_val=$(( $* ))
18850  }'
18851else
18852  as_fn_arith ()
18853  {
18854    as_val=`expr "$@" || test $? -eq 1`
18855  }
18856fi # as_fn_arith
18857
18858
18859if expr a : '\(a\)' >/dev/null 2>&1 &&
18860   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18861  as_expr=expr
18862else
18863  as_expr=false
18864fi
18865
18866if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18867  as_basename=basename
18868else
18869  as_basename=false
18870fi
18871
18872if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18873  as_dirname=dirname
18874else
18875  as_dirname=false
18876fi
18877
18878as_me=`$as_basename -- "$0" ||
18879$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18880	 X"$0" : 'X\(//\)$' \| \
18881	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18882$as_echo X/"$0" |
18883    sed '/^.*\/\([^/][^/]*\)\/*$/{
18884	    s//\1/
18885	    q
18886	  }
18887	  /^X\/\(\/\/\)$/{
18888	    s//\1/
18889	    q
18890	  }
18891	  /^X\/\(\/\).*/{
18892	    s//\1/
18893	    q
18894	  }
18895	  s/.*/./; q'`
18896
18897# Avoid depending upon Character Ranges.
18898as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18899as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18900as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18901as_cr_digits='0123456789'
18902as_cr_alnum=$as_cr_Letters$as_cr_digits
18903
18904ECHO_C= ECHO_N= ECHO_T=
18905case `echo -n x` in #(((((
18906-n*)
18907  case `echo 'xy\c'` in
18908  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18909  xy)  ECHO_C='\c';;
18910  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18911       ECHO_T='	';;
18912  esac;;
18913*)
18914  ECHO_N='-n';;
18915esac
18916
18917rm -f conf$$ conf$$.exe conf$$.file
18918if test -d conf$$.dir; then
18919  rm -f conf$$.dir/conf$$.file
18920else
18921  rm -f conf$$.dir
18922  mkdir conf$$.dir 2>/dev/null
18923fi
18924if (echo >conf$$.file) 2>/dev/null; then
18925  if ln -s conf$$.file conf$$ 2>/dev/null; then
18926    as_ln_s='ln -s'
18927    # ... but there are two gotchas:
18928    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18929    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18930    # In both cases, we have to default to `cp -pR'.
18931    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18932      as_ln_s='cp -pR'
18933  elif ln conf$$.file conf$$ 2>/dev/null; then
18934    as_ln_s=ln
18935  else
18936    as_ln_s='cp -pR'
18937  fi
18938else
18939  as_ln_s='cp -pR'
18940fi
18941rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18942rmdir conf$$.dir 2>/dev/null
18943
18944
18945# as_fn_mkdir_p
18946# -------------
18947# Create "$as_dir" as a directory, including parents if necessary.
18948as_fn_mkdir_p ()
18949{
18950
18951  case $as_dir in #(
18952  -*) as_dir=./$as_dir;;
18953  esac
18954  test -d "$as_dir" || eval $as_mkdir_p || {
18955    as_dirs=
18956    while :; do
18957      case $as_dir in #(
18958      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18959      *) as_qdir=$as_dir;;
18960      esac
18961      as_dirs="'$as_qdir' $as_dirs"
18962      as_dir=`$as_dirname -- "$as_dir" ||
18963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18964	 X"$as_dir" : 'X\(//\)[^/]' \| \
18965	 X"$as_dir" : 'X\(//\)$' \| \
18966	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18967$as_echo X"$as_dir" |
18968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18969	    s//\1/
18970	    q
18971	  }
18972	  /^X\(\/\/\)[^/].*/{
18973	    s//\1/
18974	    q
18975	  }
18976	  /^X\(\/\/\)$/{
18977	    s//\1/
18978	    q
18979	  }
18980	  /^X\(\/\).*/{
18981	    s//\1/
18982	    q
18983	  }
18984	  s/.*/./; q'`
18985      test -d "$as_dir" && break
18986    done
18987    test -z "$as_dirs" || eval "mkdir $as_dirs"
18988  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18989
18990
18991} # as_fn_mkdir_p
18992if mkdir -p . 2>/dev/null; then
18993  as_mkdir_p='mkdir -p "$as_dir"'
18994else
18995  test -d ./-p && rmdir ./-p
18996  as_mkdir_p=false
18997fi
18998
18999
19000# as_fn_executable_p FILE
19001# -----------------------
19002# Test if FILE is an executable regular file.
19003as_fn_executable_p ()
19004{
19005  test -f "$1" && test -x "$1"
19006} # as_fn_executable_p
19007as_test_x='test -x'
19008as_executable_p=as_fn_executable_p
19009
19010# Sed expression to map a string onto a valid CPP name.
19011as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19012
19013# Sed expression to map a string onto a valid variable name.
19014as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19015
19016
19017exec 6>&1
19018## ----------------------------------- ##
19019## Main body of $CONFIG_STATUS script. ##
19020## ----------------------------------- ##
19021_ASEOF
19022test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19023
19024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19025# Save the log message, to keep $0 and so on meaningful, and to
19026# report actual input values of CONFIG_FILES etc. instead of their
19027# values after options handling.
19028ac_log="
19029This file was extended by libXxf86misc $as_me 1.0.4, which was
19030generated by GNU Autoconf 2.69.  Invocation command line was
19031
19032  CONFIG_FILES    = $CONFIG_FILES
19033  CONFIG_HEADERS  = $CONFIG_HEADERS
19034  CONFIG_LINKS    = $CONFIG_LINKS
19035  CONFIG_COMMANDS = $CONFIG_COMMANDS
19036  $ $0 $@
19037
19038on `(hostname || uname -n) 2>/dev/null | sed 1q`
19039"
19040
19041_ACEOF
19042
19043case $ac_config_files in *"
19044"*) set x $ac_config_files; shift; ac_config_files=$*;;
19045esac
19046
19047case $ac_config_headers in *"
19048"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19049esac
19050
19051
19052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19053# Files that config.status was made for.
19054config_files="$ac_config_files"
19055config_headers="$ac_config_headers"
19056config_commands="$ac_config_commands"
19057
19058_ACEOF
19059
19060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19061ac_cs_usage="\
19062\`$as_me' instantiates files and other configuration actions
19063from templates according to the current configuration.  Unless the files
19064and actions are specified as TAGs, all are instantiated by default.
19065
19066Usage: $0 [OPTION]... [TAG]...
19067
19068  -h, --help       print this help, then exit
19069  -V, --version    print version number and configuration settings, then exit
19070      --config     print configuration, then exit
19071  -q, --quiet, --silent
19072                   do not print progress messages
19073  -d, --debug      don't remove temporary files
19074      --recheck    update $as_me by reconfiguring in the same conditions
19075      --file=FILE[:TEMPLATE]
19076                   instantiate the configuration file FILE
19077      --header=FILE[:TEMPLATE]
19078                   instantiate the configuration header FILE
19079
19080Configuration files:
19081$config_files
19082
19083Configuration headers:
19084$config_headers
19085
19086Configuration commands:
19087$config_commands
19088
19089Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19090
19091_ACEOF
19092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19093ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19094ac_cs_version="\\
19095libXxf86misc config.status 1.0.4
19096configured by $0, generated by GNU Autoconf 2.69,
19097  with options \\"\$ac_cs_config\\"
19098
19099Copyright (C) 2012 Free Software Foundation, Inc.
19100This config.status script is free software; the Free Software Foundation
19101gives unlimited permission to copy, distribute and modify it."
19102
19103ac_pwd='$ac_pwd'
19104srcdir='$srcdir'
19105INSTALL='$INSTALL'
19106MKDIR_P='$MKDIR_P'
19107AWK='$AWK'
19108test -n "\$AWK" || AWK=awk
19109_ACEOF
19110
19111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19112# The default lists apply if the user does not specify any file.
19113ac_need_defaults=:
19114while test $# != 0
19115do
19116  case $1 in
19117  --*=?*)
19118    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19119    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19120    ac_shift=:
19121    ;;
19122  --*=)
19123    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19124    ac_optarg=
19125    ac_shift=:
19126    ;;
19127  *)
19128    ac_option=$1
19129    ac_optarg=$2
19130    ac_shift=shift
19131    ;;
19132  esac
19133
19134  case $ac_option in
19135  # Handling of the options.
19136  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19137    ac_cs_recheck=: ;;
19138  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19139    $as_echo "$ac_cs_version"; exit ;;
19140  --config | --confi | --conf | --con | --co | --c )
19141    $as_echo "$ac_cs_config"; exit ;;
19142  --debug | --debu | --deb | --de | --d | -d )
19143    debug=: ;;
19144  --file | --fil | --fi | --f )
19145    $ac_shift
19146    case $ac_optarg in
19147    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19148    '') as_fn_error $? "missing file argument" ;;
19149    esac
19150    as_fn_append CONFIG_FILES " '$ac_optarg'"
19151    ac_need_defaults=false;;
19152  --header | --heade | --head | --hea )
19153    $ac_shift
19154    case $ac_optarg in
19155    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19156    esac
19157    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19158    ac_need_defaults=false;;
19159  --he | --h)
19160    # Conflict between --help and --header
19161    as_fn_error $? "ambiguous option: \`$1'
19162Try \`$0 --help' for more information.";;
19163  --help | --hel | -h )
19164    $as_echo "$ac_cs_usage"; exit ;;
19165  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19166  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19167    ac_cs_silent=: ;;
19168
19169  # This is an error.
19170  -*) as_fn_error $? "unrecognized option: \`$1'
19171Try \`$0 --help' for more information." ;;
19172
19173  *) as_fn_append ac_config_targets " $1"
19174     ac_need_defaults=false ;;
19175
19176  esac
19177  shift
19178done
19179
19180ac_configure_extra_args=
19181
19182if $ac_cs_silent; then
19183  exec 6>/dev/null
19184  ac_configure_extra_args="$ac_configure_extra_args --silent"
19185fi
19186
19187_ACEOF
19188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19189if \$ac_cs_recheck; then
19190  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19191  shift
19192  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19193  CONFIG_SHELL='$SHELL'
19194  export CONFIG_SHELL
19195  exec "\$@"
19196fi
19197
19198_ACEOF
19199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19200exec 5>>config.log
19201{
19202  echo
19203  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19204## Running $as_me. ##
19205_ASBOX
19206  $as_echo "$ac_log"
19207} >&5
19208
19209_ACEOF
19210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19211#
19212# INIT-COMMANDS
19213#
19214AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19215
19216
19217# The HP-UX ksh and POSIX shell print the target directory to stdout
19218# if CDPATH is set.
19219(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19220
19221sed_quote_subst='$sed_quote_subst'
19222double_quote_subst='$double_quote_subst'
19223delay_variable_subst='$delay_variable_subst'
19224macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19225macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19226enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19227enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19228pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19229enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19230shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19231SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19232ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19233PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19234host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19235host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19236host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19237build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19238build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19239build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19240SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19241Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19242GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19243EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19244FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19245LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19246NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19247LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19248max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19249ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19250exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19251lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19252lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19253lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19254lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19255lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19256reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19257reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19258OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19259deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19260file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19261file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19262want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19263DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19264sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19265AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19266AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19267archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19268STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19269RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19270old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19271old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19272old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19273lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19274CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19275CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19276compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19277GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19278lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19279lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19280lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19281lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19282lt_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"`'
19283lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19284nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19285lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19286lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19287objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19288MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19289lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19290lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19291lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19292lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19293lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19294need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19295MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19296DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19297NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19298LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19299OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19300OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19301libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19302shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19303extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19304archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19305enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19306export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19307whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19308compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19309old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19310old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19311archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19312archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19313module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19314module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19315with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19316allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19317no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19318hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19319hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19320hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19321hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19322hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19323hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19324hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19325inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19326link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19327always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19328export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19329exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19330include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19331prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19332postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19333file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19334variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19335need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19336need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19337version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19338runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19339shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19340shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19341libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19342library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19343soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19344install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19345postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19346postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19347finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19348finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19349hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19350sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19351configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19352configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19353hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19354enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19355enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19356enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19357old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19358striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19359
19360LTCC='$LTCC'
19361LTCFLAGS='$LTCFLAGS'
19362compiler='$compiler_DEFAULT'
19363
19364# A function that is used when there is no print builtin or printf.
19365func_fallback_echo ()
19366{
19367  eval 'cat <<_LTECHO_EOF
19368\$1
19369_LTECHO_EOF'
19370}
19371
19372# Quote evaled strings.
19373for var in SHELL \
19374ECHO \
19375PATH_SEPARATOR \
19376SED \
19377GREP \
19378EGREP \
19379FGREP \
19380LD \
19381NM \
19382LN_S \
19383lt_SP2NL \
19384lt_NL2SP \
19385reload_flag \
19386OBJDUMP \
19387deplibs_check_method \
19388file_magic_cmd \
19389file_magic_glob \
19390want_nocaseglob \
19391DLLTOOL \
19392sharedlib_from_linklib_cmd \
19393AR \
19394AR_FLAGS \
19395archiver_list_spec \
19396STRIP \
19397RANLIB \
19398CC \
19399CFLAGS \
19400compiler \
19401lt_cv_sys_global_symbol_pipe \
19402lt_cv_sys_global_symbol_to_cdecl \
19403lt_cv_sys_global_symbol_to_import \
19404lt_cv_sys_global_symbol_to_c_name_address \
19405lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19406lt_cv_nm_interface \
19407nm_file_list_spec \
19408lt_cv_truncate_bin \
19409lt_prog_compiler_no_builtin_flag \
19410lt_prog_compiler_pic \
19411lt_prog_compiler_wl \
19412lt_prog_compiler_static \
19413lt_cv_prog_compiler_c_o \
19414need_locks \
19415MANIFEST_TOOL \
19416DSYMUTIL \
19417NMEDIT \
19418LIPO \
19419OTOOL \
19420OTOOL64 \
19421shrext_cmds \
19422export_dynamic_flag_spec \
19423whole_archive_flag_spec \
19424compiler_needs_object \
19425with_gnu_ld \
19426allow_undefined_flag \
19427no_undefined_flag \
19428hardcode_libdir_flag_spec \
19429hardcode_libdir_separator \
19430exclude_expsyms \
19431include_expsyms \
19432file_list_spec \
19433variables_saved_for_relink \
19434libname_spec \
19435library_names_spec \
19436soname_spec \
19437install_override_mode \
19438finish_eval \
19439old_striplib \
19440striplib; do
19441    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19442    *[\\\\\\\`\\"\\\$]*)
19443      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19444      ;;
19445    *)
19446      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19447      ;;
19448    esac
19449done
19450
19451# Double-quote double-evaled strings.
19452for var in reload_cmds \
19453old_postinstall_cmds \
19454old_postuninstall_cmds \
19455old_archive_cmds \
19456extract_expsyms_cmds \
19457old_archive_from_new_cmds \
19458old_archive_from_expsyms_cmds \
19459archive_cmds \
19460archive_expsym_cmds \
19461module_cmds \
19462module_expsym_cmds \
19463export_symbols_cmds \
19464prelink_cmds \
19465postlink_cmds \
19466postinstall_cmds \
19467postuninstall_cmds \
19468finish_cmds \
19469sys_lib_search_path_spec \
19470configure_time_dlsearch_path \
19471configure_time_lt_sys_library_path; do
19472    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19473    *[\\\\\\\`\\"\\\$]*)
19474      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19475      ;;
19476    *)
19477      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19478      ;;
19479    esac
19480done
19481
19482ac_aux_dir='$ac_aux_dir'
19483
19484# See if we are running on zsh, and set the options that allow our
19485# commands through without removal of \ escapes INIT.
19486if test -n "\${ZSH_VERSION+set}"; then
19487   setopt NO_GLOB_SUBST
19488fi
19489
19490
19491    PACKAGE='$PACKAGE'
19492    VERSION='$VERSION'
19493    RM='$RM'
19494    ofile='$ofile'
19495
19496
19497
19498
19499_ACEOF
19500
19501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19502
19503# Handling of arguments.
19504for ac_config_target in $ac_config_targets
19505do
19506  case $ac_config_target in
19507    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19508    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19509    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19510    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19511    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19512    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19513    "xxf86misc.pc") CONFIG_FILES="$CONFIG_FILES xxf86misc.pc" ;;
19514
19515  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19516  esac
19517done
19518
19519
19520# If the user did not use the arguments to specify the items to instantiate,
19521# then the envvar interface is used.  Set only those that are not.
19522# We use the long form for the default assignment because of an extremely
19523# bizarre bug on SunOS 4.1.3.
19524if $ac_need_defaults; then
19525  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19526  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19527  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19528fi
19529
19530# Have a temporary directory for convenience.  Make it in the build tree
19531# simply because there is no reason against having it here, and in addition,
19532# creating and moving files from /tmp can sometimes cause problems.
19533# Hook for its removal unless debugging.
19534# Note that there is a small window in which the directory will not be cleaned:
19535# after its creation but before its name has been assigned to `$tmp'.
19536$debug ||
19537{
19538  tmp= ac_tmp=
19539  trap 'exit_status=$?
19540  : "${ac_tmp:=$tmp}"
19541  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19542' 0
19543  trap 'as_fn_exit 1' 1 2 13 15
19544}
19545# Create a (secure) tmp directory for tmp files.
19546
19547{
19548  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19549  test -d "$tmp"
19550}  ||
19551{
19552  tmp=./conf$$-$RANDOM
19553  (umask 077 && mkdir "$tmp")
19554} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19555ac_tmp=$tmp
19556
19557# Set up the scripts for CONFIG_FILES section.
19558# No need to generate them if there are no CONFIG_FILES.
19559# This happens for instance with `./config.status config.h'.
19560if test -n "$CONFIG_FILES"; then
19561
19562
19563ac_cr=`echo X | tr X '\015'`
19564# On cygwin, bash can eat \r inside `` if the user requested igncr.
19565# But we know of no other shell where ac_cr would be empty at this
19566# point, so we can use a bashism as a fallback.
19567if test "x$ac_cr" = x; then
19568  eval ac_cr=\$\'\\r\'
19569fi
19570ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19571if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19572  ac_cs_awk_cr='\\r'
19573else
19574  ac_cs_awk_cr=$ac_cr
19575fi
19576
19577echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19578_ACEOF
19579
19580
19581{
19582  echo "cat >conf$$subs.awk <<_ACEOF" &&
19583  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19584  echo "_ACEOF"
19585} >conf$$subs.sh ||
19586  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19587ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19588ac_delim='%!_!# '
19589for ac_last_try in false false false false false :; do
19590  . ./conf$$subs.sh ||
19591    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19592
19593  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19594  if test $ac_delim_n = $ac_delim_num; then
19595    break
19596  elif $ac_last_try; then
19597    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19598  else
19599    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19600  fi
19601done
19602rm -f conf$$subs.sh
19603
19604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19605cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19606_ACEOF
19607sed -n '
19608h
19609s/^/S["/; s/!.*/"]=/
19610p
19611g
19612s/^[^!]*!//
19613:repl
19614t repl
19615s/'"$ac_delim"'$//
19616t delim
19617:nl
19618h
19619s/\(.\{148\}\)..*/\1/
19620t more1
19621s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19622p
19623n
19624b repl
19625:more1
19626s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19627p
19628g
19629s/.\{148\}//
19630t nl
19631:delim
19632h
19633s/\(.\{148\}\)..*/\1/
19634t more2
19635s/["\\]/\\&/g; s/^/"/; s/$/"/
19636p
19637b
19638:more2
19639s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19640p
19641g
19642s/.\{148\}//
19643t delim
19644' <conf$$subs.awk | sed '
19645/^[^""]/{
19646  N
19647  s/\n//
19648}
19649' >>$CONFIG_STATUS || ac_write_fail=1
19650rm -f conf$$subs.awk
19651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19652_ACAWK
19653cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19654  for (key in S) S_is_set[key] = 1
19655  FS = ""
19656
19657}
19658{
19659  line = $ 0
19660  nfields = split(line, field, "@")
19661  substed = 0
19662  len = length(field[1])
19663  for (i = 2; i < nfields; i++) {
19664    key = field[i]
19665    keylen = length(key)
19666    if (S_is_set[key]) {
19667      value = S[key]
19668      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19669      len += length(value) + length(field[++i])
19670      substed = 1
19671    } else
19672      len += 1 + keylen
19673  }
19674
19675  print line
19676}
19677
19678_ACAWK
19679_ACEOF
19680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19681if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19682  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19683else
19684  cat
19685fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19686  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19687_ACEOF
19688
19689# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19690# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19691# trailing colons and then remove the whole line if VPATH becomes empty
19692# (actually we leave an empty line to preserve line numbers).
19693if test "x$srcdir" = x.; then
19694  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19695h
19696s///
19697s/^/:/
19698s/[	 ]*$/:/
19699s/:\$(srcdir):/:/g
19700s/:\${srcdir}:/:/g
19701s/:@srcdir@:/:/g
19702s/^:*//
19703s/:*$//
19704x
19705s/\(=[	 ]*\).*/\1/
19706G
19707s/\n//
19708s/^[^=]*=[	 ]*$//
19709}'
19710fi
19711
19712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19713fi # test -n "$CONFIG_FILES"
19714
19715# Set up the scripts for CONFIG_HEADERS section.
19716# No need to generate them if there are no CONFIG_HEADERS.
19717# This happens for instance with `./config.status Makefile'.
19718if test -n "$CONFIG_HEADERS"; then
19719cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19720BEGIN {
19721_ACEOF
19722
19723# Transform confdefs.h into an awk script `defines.awk', embedded as
19724# here-document in config.status, that substitutes the proper values into
19725# config.h.in to produce config.h.
19726
19727# Create a delimiter string that does not exist in confdefs.h, to ease
19728# handling of long lines.
19729ac_delim='%!_!# '
19730for ac_last_try in false false :; do
19731  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19732  if test -z "$ac_tt"; then
19733    break
19734  elif $ac_last_try; then
19735    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19736  else
19737    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19738  fi
19739done
19740
19741# For the awk script, D is an array of macro values keyed by name,
19742# likewise P contains macro parameters if any.  Preserve backslash
19743# newline sequences.
19744
19745ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19746sed -n '
19747s/.\{148\}/&'"$ac_delim"'/g
19748t rset
19749:rset
19750s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19751t def
19752d
19753:def
19754s/\\$//
19755t bsnl
19756s/["\\]/\\&/g
19757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19758D["\1"]=" \3"/p
19759s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19760d
19761:bsnl
19762s/["\\]/\\&/g
19763s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19764D["\1"]=" \3\\\\\\n"\\/p
19765t cont
19766s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19767t cont
19768d
19769:cont
19770n
19771s/.\{148\}/&'"$ac_delim"'/g
19772t clear
19773:clear
19774s/\\$//
19775t bsnlc
19776s/["\\]/\\&/g; s/^/"/; s/$/"/p
19777d
19778:bsnlc
19779s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19780b cont
19781' <confdefs.h | sed '
19782s/'"$ac_delim"'/"\\\
19783"/g' >>$CONFIG_STATUS || ac_write_fail=1
19784
19785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19786  for (key in D) D_is_set[key] = 1
19787  FS = ""
19788}
19789/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19790  line = \$ 0
19791  split(line, arg, " ")
19792  if (arg[1] == "#") {
19793    defundef = arg[2]
19794    mac1 = arg[3]
19795  } else {
19796    defundef = substr(arg[1], 2)
19797    mac1 = arg[2]
19798  }
19799  split(mac1, mac2, "(") #)
19800  macro = mac2[1]
19801  prefix = substr(line, 1, index(line, defundef) - 1)
19802  if (D_is_set[macro]) {
19803    # Preserve the white space surrounding the "#".
19804    print prefix "define", macro P[macro] D[macro]
19805    next
19806  } else {
19807    # Replace #undef with comments.  This is necessary, for example,
19808    # in the case of _POSIX_SOURCE, which is predefined and required
19809    # on some systems where configure will not decide to define it.
19810    if (defundef == "undef") {
19811      print "/*", prefix defundef, macro, "*/"
19812      next
19813    }
19814  }
19815}
19816{ print }
19817_ACAWK
19818_ACEOF
19819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19820  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19821fi # test -n "$CONFIG_HEADERS"
19822
19823
19824eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19825shift
19826for ac_tag
19827do
19828  case $ac_tag in
19829  :[FHLC]) ac_mode=$ac_tag; continue;;
19830  esac
19831  case $ac_mode$ac_tag in
19832  :[FHL]*:*);;
19833  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19834  :[FH]-) ac_tag=-:-;;
19835  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19836  esac
19837  ac_save_IFS=$IFS
19838  IFS=:
19839  set x $ac_tag
19840  IFS=$ac_save_IFS
19841  shift
19842  ac_file=$1
19843  shift
19844
19845  case $ac_mode in
19846  :L) ac_source=$1;;
19847  :[FH])
19848    ac_file_inputs=
19849    for ac_f
19850    do
19851      case $ac_f in
19852      -) ac_f="$ac_tmp/stdin";;
19853      *) # Look for the file first in the build tree, then in the source tree
19854	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19855	 # because $ac_f cannot contain `:'.
19856	 test -f "$ac_f" ||
19857	   case $ac_f in
19858	   [\\/$]*) false;;
19859	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19860	   esac ||
19861	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19862      esac
19863      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19864      as_fn_append ac_file_inputs " '$ac_f'"
19865    done
19866
19867    # Let's still pretend it is `configure' which instantiates (i.e., don't
19868    # use $as_me), people would be surprised to read:
19869    #    /* config.h.  Generated by config.status.  */
19870    configure_input='Generated from '`
19871	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19872	`' by configure.'
19873    if test x"$ac_file" != x-; then
19874      configure_input="$ac_file.  $configure_input"
19875      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19876$as_echo "$as_me: creating $ac_file" >&6;}
19877    fi
19878    # Neutralize special characters interpreted by sed in replacement strings.
19879    case $configure_input in #(
19880    *\&* | *\|* | *\\* )
19881       ac_sed_conf_input=`$as_echo "$configure_input" |
19882       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19883    *) ac_sed_conf_input=$configure_input;;
19884    esac
19885
19886    case $ac_tag in
19887    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19888      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19889    esac
19890    ;;
19891  esac
19892
19893  ac_dir=`$as_dirname -- "$ac_file" ||
19894$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19895	 X"$ac_file" : 'X\(//\)[^/]' \| \
19896	 X"$ac_file" : 'X\(//\)$' \| \
19897	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19898$as_echo X"$ac_file" |
19899    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19900	    s//\1/
19901	    q
19902	  }
19903	  /^X\(\/\/\)[^/].*/{
19904	    s//\1/
19905	    q
19906	  }
19907	  /^X\(\/\/\)$/{
19908	    s//\1/
19909	    q
19910	  }
19911	  /^X\(\/\).*/{
19912	    s//\1/
19913	    q
19914	  }
19915	  s/.*/./; q'`
19916  as_dir="$ac_dir"; as_fn_mkdir_p
19917  ac_builddir=.
19918
19919case "$ac_dir" in
19920.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19921*)
19922  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19923  # A ".." for each directory in $ac_dir_suffix.
19924  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19925  case $ac_top_builddir_sub in
19926  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19927  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19928  esac ;;
19929esac
19930ac_abs_top_builddir=$ac_pwd
19931ac_abs_builddir=$ac_pwd$ac_dir_suffix
19932# for backward compatibility:
19933ac_top_builddir=$ac_top_build_prefix
19934
19935case $srcdir in
19936  .)  # We are building in place.
19937    ac_srcdir=.
19938    ac_top_srcdir=$ac_top_builddir_sub
19939    ac_abs_top_srcdir=$ac_pwd ;;
19940  [\\/]* | ?:[\\/]* )  # Absolute name.
19941    ac_srcdir=$srcdir$ac_dir_suffix;
19942    ac_top_srcdir=$srcdir
19943    ac_abs_top_srcdir=$srcdir ;;
19944  *) # Relative name.
19945    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19946    ac_top_srcdir=$ac_top_build_prefix$srcdir
19947    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19948esac
19949ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19950
19951
19952  case $ac_mode in
19953  :F)
19954  #
19955  # CONFIG_FILE
19956  #
19957
19958  case $INSTALL in
19959  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19960  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19961  esac
19962  ac_MKDIR_P=$MKDIR_P
19963  case $MKDIR_P in
19964  [\\/$]* | ?:[\\/]* ) ;;
19965  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19966  esac
19967_ACEOF
19968
19969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19970# If the template does not know about datarootdir, expand it.
19971# FIXME: This hack should be removed a few years after 2.60.
19972ac_datarootdir_hack=; ac_datarootdir_seen=
19973ac_sed_dataroot='
19974/datarootdir/ {
19975  p
19976  q
19977}
19978/@datadir@/p
19979/@docdir@/p
19980/@infodir@/p
19981/@localedir@/p
19982/@mandir@/p'
19983case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19984*datarootdir*) ac_datarootdir_seen=yes;;
19985*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19986  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19987$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19988_ACEOF
19989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19990  ac_datarootdir_hack='
19991  s&@datadir@&$datadir&g
19992  s&@docdir@&$docdir&g
19993  s&@infodir@&$infodir&g
19994  s&@localedir@&$localedir&g
19995  s&@mandir@&$mandir&g
19996  s&\\\${datarootdir}&$datarootdir&g' ;;
19997esac
19998_ACEOF
19999
20000# Neutralize VPATH when `$srcdir' = `.'.
20001# Shell code in configure.ac might set extrasub.
20002# FIXME: do we really want to maintain this feature?
20003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20004ac_sed_extra="$ac_vpsub
20005$extrasub
20006_ACEOF
20007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20008:t
20009/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20010s|@configure_input@|$ac_sed_conf_input|;t t
20011s&@top_builddir@&$ac_top_builddir_sub&;t t
20012s&@top_build_prefix@&$ac_top_build_prefix&;t t
20013s&@srcdir@&$ac_srcdir&;t t
20014s&@abs_srcdir@&$ac_abs_srcdir&;t t
20015s&@top_srcdir@&$ac_top_srcdir&;t t
20016s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20017s&@builddir@&$ac_builddir&;t t
20018s&@abs_builddir@&$ac_abs_builddir&;t t
20019s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20020s&@INSTALL@&$ac_INSTALL&;t t
20021s&@MKDIR_P@&$ac_MKDIR_P&;t t
20022$ac_datarootdir_hack
20023"
20024eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20025  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20026
20027test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20028  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20029  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20030      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20031  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20032which seems to be undefined.  Please make sure it is defined" >&5
20033$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20034which seems to be undefined.  Please make sure it is defined" >&2;}
20035
20036  rm -f "$ac_tmp/stdin"
20037  case $ac_file in
20038  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20039  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20040  esac \
20041  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20042 ;;
20043  :H)
20044  #
20045  # CONFIG_HEADER
20046  #
20047  if test x"$ac_file" != x-; then
20048    {
20049      $as_echo "/* $configure_input  */" \
20050      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20051    } >"$ac_tmp/config.h" \
20052      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20053    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20054      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20055$as_echo "$as_me: $ac_file is unchanged" >&6;}
20056    else
20057      rm -f "$ac_file"
20058      mv "$ac_tmp/config.h" "$ac_file" \
20059	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20060    fi
20061  else
20062    $as_echo "/* $configure_input  */" \
20063      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20064      || as_fn_error $? "could not create -" "$LINENO" 5
20065  fi
20066# Compute "$ac_file"'s index in $config_headers.
20067_am_arg="$ac_file"
20068_am_stamp_count=1
20069for _am_header in $config_headers :; do
20070  case $_am_header in
20071    $_am_arg | $_am_arg:* )
20072      break ;;
20073    * )
20074      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20075  esac
20076done
20077echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20078$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20079	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20080	 X"$_am_arg" : 'X\(//\)$' \| \
20081	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20082$as_echo X"$_am_arg" |
20083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20084	    s//\1/
20085	    q
20086	  }
20087	  /^X\(\/\/\)[^/].*/{
20088	    s//\1/
20089	    q
20090	  }
20091	  /^X\(\/\/\)$/{
20092	    s//\1/
20093	    q
20094	  }
20095	  /^X\(\/\).*/{
20096	    s//\1/
20097	    q
20098	  }
20099	  s/.*/./; q'`/stamp-h$_am_stamp_count
20100 ;;
20101
20102  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20103$as_echo "$as_me: executing $ac_file commands" >&6;}
20104 ;;
20105  esac
20106
20107
20108  case $ac_file$ac_mode in
20109    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20110  # Older Autoconf quotes --file arguments for eval, but not when files
20111  # are listed without --file.  Let's play safe and only enable the eval
20112  # if we detect the quoting.
20113  case $CONFIG_FILES in
20114  *\'*) eval set x "$CONFIG_FILES" ;;
20115  *)   set x $CONFIG_FILES ;;
20116  esac
20117  shift
20118  for mf
20119  do
20120    # Strip MF so we end up with the name of the file.
20121    mf=`echo "$mf" | sed -e 's/:.*$//'`
20122    # Check whether this is an Automake generated Makefile or not.
20123    # We used to match only the files named 'Makefile.in', but
20124    # some people rename them; so instead we look at the file content.
20125    # Grep'ing the first line is not enough: some people post-process
20126    # each Makefile.in and add a new line on top of each file to say so.
20127    # Grep'ing the whole file is not good either: AIX grep has a line
20128    # limit of 2048, but all sed's we know have understand at least 4000.
20129    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20130      dirpart=`$as_dirname -- "$mf" ||
20131$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20132	 X"$mf" : 'X\(//\)[^/]' \| \
20133	 X"$mf" : 'X\(//\)$' \| \
20134	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20135$as_echo X"$mf" |
20136    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20137	    s//\1/
20138	    q
20139	  }
20140	  /^X\(\/\/\)[^/].*/{
20141	    s//\1/
20142	    q
20143	  }
20144	  /^X\(\/\/\)$/{
20145	    s//\1/
20146	    q
20147	  }
20148	  /^X\(\/\).*/{
20149	    s//\1/
20150	    q
20151	  }
20152	  s/.*/./; q'`
20153    else
20154      continue
20155    fi
20156    # Extract the definition of DEPDIR, am__include, and am__quote
20157    # from the Makefile without running 'make'.
20158    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20159    test -z "$DEPDIR" && continue
20160    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20161    test -z "$am__include" && continue
20162    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20163    # Find all dependency output files, they are included files with
20164    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20165    # simplest approach to changing $(DEPDIR) to its actual value in the
20166    # expansion.
20167    for file in `sed -n "
20168      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20169	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20170      # Make sure the directory exists.
20171      test -f "$dirpart/$file" && continue
20172      fdir=`$as_dirname -- "$file" ||
20173$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20174	 X"$file" : 'X\(//\)[^/]' \| \
20175	 X"$file" : 'X\(//\)$' \| \
20176	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20177$as_echo X"$file" |
20178    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20179	    s//\1/
20180	    q
20181	  }
20182	  /^X\(\/\/\)[^/].*/{
20183	    s//\1/
20184	    q
20185	  }
20186	  /^X\(\/\/\)$/{
20187	    s//\1/
20188	    q
20189	  }
20190	  /^X\(\/\).*/{
20191	    s//\1/
20192	    q
20193	  }
20194	  s/.*/./; q'`
20195      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20196      # echo "creating $dirpart/$file"
20197      echo '# dummy' > "$dirpart/$file"
20198    done
20199  done
20200}
20201 ;;
20202    "libtool":C)
20203
20204    # See if we are running on zsh, and set the options that allow our
20205    # commands through without removal of \ escapes.
20206    if test -n "${ZSH_VERSION+set}"; then
20207      setopt NO_GLOB_SUBST
20208    fi
20209
20210    cfgfile=${ofile}T
20211    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20212    $RM "$cfgfile"
20213
20214    cat <<_LT_EOF >> "$cfgfile"
20215#! $SHELL
20216# Generated automatically by $as_me ($PACKAGE) $VERSION
20217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20218# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20219
20220# Provide generalized library-building support services.
20221# Written by Gordon Matzigkeit, 1996
20222
20223# Copyright (C) 2014 Free Software Foundation, Inc.
20224# This is free software; see the source for copying conditions.  There is NO
20225# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20226
20227# GNU Libtool is free software; you can redistribute it and/or modify
20228# it under the terms of the GNU General Public License as published by
20229# the Free Software Foundation; either version 2 of of the License, or
20230# (at your option) any later version.
20231#
20232# As a special exception to the GNU General Public License, if you
20233# distribute this file as part of a program or library that is built
20234# using GNU Libtool, you may include this file under the  same
20235# distribution terms that you use for the rest of that program.
20236#
20237# GNU Libtool is distributed in the hope that it will be useful, but
20238# WITHOUT ANY WARRANTY; without even the implied warranty of
20239# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20240# GNU General Public License for more details.
20241#
20242# You should have received a copy of the GNU General Public License
20243# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20244
20245
20246# The names of the tagged configurations supported by this script.
20247available_tags=''
20248
20249# Configured defaults for sys_lib_dlsearch_path munging.
20250: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20251
20252# ### BEGIN LIBTOOL CONFIG
20253
20254# Which release of libtool.m4 was used?
20255macro_version=$macro_version
20256macro_revision=$macro_revision
20257
20258# Whether or not to build shared libraries.
20259build_libtool_libs=$enable_shared
20260
20261# Whether or not to build static libraries.
20262build_old_libs=$enable_static
20263
20264# What type of objects to build.
20265pic_mode=$pic_mode
20266
20267# Whether or not to optimize for fast installation.
20268fast_install=$enable_fast_install
20269
20270# Shared archive member basename,for filename based shared library versioning on AIX.
20271shared_archive_member_spec=$shared_archive_member_spec
20272
20273# Shell to use when invoking shell scripts.
20274SHELL=$lt_SHELL
20275
20276# An echo program that protects backslashes.
20277ECHO=$lt_ECHO
20278
20279# The PATH separator for the build system.
20280PATH_SEPARATOR=$lt_PATH_SEPARATOR
20281
20282# The host system.
20283host_alias=$host_alias
20284host=$host
20285host_os=$host_os
20286
20287# The build system.
20288build_alias=$build_alias
20289build=$build
20290build_os=$build_os
20291
20292# A sed program that does not truncate output.
20293SED=$lt_SED
20294
20295# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20296Xsed="\$SED -e 1s/^X//"
20297
20298# A grep program that handles long lines.
20299GREP=$lt_GREP
20300
20301# An ERE matcher.
20302EGREP=$lt_EGREP
20303
20304# A literal string matcher.
20305FGREP=$lt_FGREP
20306
20307# A BSD- or MS-compatible name lister.
20308NM=$lt_NM
20309
20310# Whether we need soft or hard links.
20311LN_S=$lt_LN_S
20312
20313# What is the maximum length of a command?
20314max_cmd_len=$max_cmd_len
20315
20316# Object file suffix (normally "o").
20317objext=$ac_objext
20318
20319# Executable file suffix (normally "").
20320exeext=$exeext
20321
20322# whether the shell understands "unset".
20323lt_unset=$lt_unset
20324
20325# turn spaces into newlines.
20326SP2NL=$lt_lt_SP2NL
20327
20328# turn newlines into spaces.
20329NL2SP=$lt_lt_NL2SP
20330
20331# convert \$build file names to \$host format.
20332to_host_file_cmd=$lt_cv_to_host_file_cmd
20333
20334# convert \$build files to toolchain format.
20335to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20336
20337# An object symbol dumper.
20338OBJDUMP=$lt_OBJDUMP
20339
20340# Method to check whether dependent libraries are shared objects.
20341deplibs_check_method=$lt_deplibs_check_method
20342
20343# Command to use when deplibs_check_method = "file_magic".
20344file_magic_cmd=$lt_file_magic_cmd
20345
20346# How to find potential files when deplibs_check_method = "file_magic".
20347file_magic_glob=$lt_file_magic_glob
20348
20349# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20350want_nocaseglob=$lt_want_nocaseglob
20351
20352# DLL creation program.
20353DLLTOOL=$lt_DLLTOOL
20354
20355# Command to associate shared and link libraries.
20356sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20357
20358# The archiver.
20359AR=$lt_AR
20360
20361# Flags to create an archive.
20362AR_FLAGS=$lt_AR_FLAGS
20363
20364# How to feed a file listing to the archiver.
20365archiver_list_spec=$lt_archiver_list_spec
20366
20367# A symbol stripping program.
20368STRIP=$lt_STRIP
20369
20370# Commands used to install an old-style archive.
20371RANLIB=$lt_RANLIB
20372old_postinstall_cmds=$lt_old_postinstall_cmds
20373old_postuninstall_cmds=$lt_old_postuninstall_cmds
20374
20375# Whether to use a lock for old archive extraction.
20376lock_old_archive_extraction=$lock_old_archive_extraction
20377
20378# A C compiler.
20379LTCC=$lt_CC
20380
20381# LTCC compiler flags.
20382LTCFLAGS=$lt_CFLAGS
20383
20384# Take the output of nm and produce a listing of raw symbols and C names.
20385global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20386
20387# Transform the output of nm in a proper C declaration.
20388global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20389
20390# Transform the output of nm into a list of symbols to manually relocate.
20391global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20392
20393# Transform the output of nm in a C name address pair.
20394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20395
20396# Transform the output of nm in a C name address pair when lib prefix is needed.
20397global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20398
20399# The name lister interface.
20400nm_interface=$lt_lt_cv_nm_interface
20401
20402# Specify filename containing input files for \$NM.
20403nm_file_list_spec=$lt_nm_file_list_spec
20404
20405# The root where to search for dependent libraries,and where our libraries should be installed.
20406lt_sysroot=$lt_sysroot
20407
20408# Command to truncate a binary pipe.
20409lt_truncate_bin=$lt_lt_cv_truncate_bin
20410
20411# The name of the directory that contains temporary libtool files.
20412objdir=$objdir
20413
20414# Used to examine libraries when file_magic_cmd begins with "file".
20415MAGIC_CMD=$MAGIC_CMD
20416
20417# Must we lock files when doing compilation?
20418need_locks=$lt_need_locks
20419
20420# Manifest tool.
20421MANIFEST_TOOL=$lt_MANIFEST_TOOL
20422
20423# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20424DSYMUTIL=$lt_DSYMUTIL
20425
20426# Tool to change global to local symbols on Mac OS X.
20427NMEDIT=$lt_NMEDIT
20428
20429# Tool to manipulate fat objects and archives on Mac OS X.
20430LIPO=$lt_LIPO
20431
20432# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20433OTOOL=$lt_OTOOL
20434
20435# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20436OTOOL64=$lt_OTOOL64
20437
20438# Old archive suffix (normally "a").
20439libext=$libext
20440
20441# Shared library suffix (normally ".so").
20442shrext_cmds=$lt_shrext_cmds
20443
20444# The commands to extract the exported symbol list from a shared archive.
20445extract_expsyms_cmds=$lt_extract_expsyms_cmds
20446
20447# Variables whose values should be saved in libtool wrapper scripts and
20448# restored at link time.
20449variables_saved_for_relink=$lt_variables_saved_for_relink
20450
20451# Do we need the "lib" prefix for modules?
20452need_lib_prefix=$need_lib_prefix
20453
20454# Do we need a version for libraries?
20455need_version=$need_version
20456
20457# Library versioning type.
20458version_type=$version_type
20459
20460# Shared library runtime path variable.
20461runpath_var=$runpath_var
20462
20463# Shared library path variable.
20464shlibpath_var=$shlibpath_var
20465
20466# Is shlibpath searched before the hard-coded library search path?
20467shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20468
20469# Format of library name prefix.
20470libname_spec=$lt_libname_spec
20471
20472# List of archive names.  First name is the real one, the rest are links.
20473# The last name is the one that the linker finds with -lNAME
20474library_names_spec=$lt_library_names_spec
20475
20476# The coded name of the library, if different from the real name.
20477soname_spec=$lt_soname_spec
20478
20479# Permission mode override for installation of shared libraries.
20480install_override_mode=$lt_install_override_mode
20481
20482# Command to use after installation of a shared archive.
20483postinstall_cmds=$lt_postinstall_cmds
20484
20485# Command to use after uninstallation of a shared archive.
20486postuninstall_cmds=$lt_postuninstall_cmds
20487
20488# Commands used to finish a libtool library installation in a directory.
20489finish_cmds=$lt_finish_cmds
20490
20491# As "finish_cmds", except a single script fragment to be evaled but
20492# not shown.
20493finish_eval=$lt_finish_eval
20494
20495# Whether we should hardcode library paths into libraries.
20496hardcode_into_libs=$hardcode_into_libs
20497
20498# Compile-time system search path for libraries.
20499sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20500
20501# Detected run-time system search path for libraries.
20502sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20503
20504# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20505configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20506
20507# Whether dlopen is supported.
20508dlopen_support=$enable_dlopen
20509
20510# Whether dlopen of programs is supported.
20511dlopen_self=$enable_dlopen_self
20512
20513# Whether dlopen of statically linked programs is supported.
20514dlopen_self_static=$enable_dlopen_self_static
20515
20516# Commands to strip libraries.
20517old_striplib=$lt_old_striplib
20518striplib=$lt_striplib
20519
20520
20521# The linker used to build libraries.
20522LD=$lt_LD
20523
20524# How to create reloadable object files.
20525reload_flag=$lt_reload_flag
20526reload_cmds=$lt_reload_cmds
20527
20528# Commands used to build an old-style archive.
20529old_archive_cmds=$lt_old_archive_cmds
20530
20531# A language specific compiler.
20532CC=$lt_compiler
20533
20534# Is the compiler the GNU compiler?
20535with_gcc=$GCC
20536
20537# Compiler flag to turn off builtin functions.
20538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20539
20540# Additional compiler flags for building library objects.
20541pic_flag=$lt_lt_prog_compiler_pic
20542
20543# How to pass a linker flag through the compiler.
20544wl=$lt_lt_prog_compiler_wl
20545
20546# Compiler flag to prevent dynamic linking.
20547link_static_flag=$lt_lt_prog_compiler_static
20548
20549# Does compiler simultaneously support -c and -o options?
20550compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20551
20552# Whether or not to add -lc for building shared libraries.
20553build_libtool_need_lc=$archive_cmds_need_lc
20554
20555# Whether or not to disallow shared libs when runtime libs are static.
20556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20557
20558# Compiler flag to allow reflexive dlopens.
20559export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20560
20561# Compiler flag to generate shared objects directly from archives.
20562whole_archive_flag_spec=$lt_whole_archive_flag_spec
20563
20564# Whether the compiler copes with passing no objects directly.
20565compiler_needs_object=$lt_compiler_needs_object
20566
20567# Create an old-style archive from a shared archive.
20568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20569
20570# Create a temporary old-style archive to link instead of a shared archive.
20571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20572
20573# Commands used to build a shared archive.
20574archive_cmds=$lt_archive_cmds
20575archive_expsym_cmds=$lt_archive_expsym_cmds
20576
20577# Commands used to build a loadable module if different from building
20578# a shared archive.
20579module_cmds=$lt_module_cmds
20580module_expsym_cmds=$lt_module_expsym_cmds
20581
20582# Whether we are building with GNU ld or not.
20583with_gnu_ld=$lt_with_gnu_ld
20584
20585# Flag that allows shared libraries with undefined symbols to be built.
20586allow_undefined_flag=$lt_allow_undefined_flag
20587
20588# Flag that enforces no undefined symbols.
20589no_undefined_flag=$lt_no_undefined_flag
20590
20591# Flag to hardcode \$libdir into a binary during linking.
20592# This must work even if \$libdir does not exist
20593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20594
20595# Whether we need a single "-rpath" flag with a separated argument.
20596hardcode_libdir_separator=$lt_hardcode_libdir_separator
20597
20598# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20599# DIR into the resulting binary.
20600hardcode_direct=$hardcode_direct
20601
20602# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20603# DIR into the resulting binary and the resulting library dependency is
20604# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20605# library is relocated.
20606hardcode_direct_absolute=$hardcode_direct_absolute
20607
20608# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20609# into the resulting binary.
20610hardcode_minus_L=$hardcode_minus_L
20611
20612# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20613# into the resulting binary.
20614hardcode_shlibpath_var=$hardcode_shlibpath_var
20615
20616# Set to "yes" if building a shared library automatically hardcodes DIR
20617# into the library and all subsequent libraries and executables linked
20618# against it.
20619hardcode_automatic=$hardcode_automatic
20620
20621# Set to yes if linker adds runtime paths of dependent libraries
20622# to runtime path list.
20623inherit_rpath=$inherit_rpath
20624
20625# Whether libtool must link a program against all its dependency libraries.
20626link_all_deplibs=$link_all_deplibs
20627
20628# Set to "yes" if exported symbols are required.
20629always_export_symbols=$always_export_symbols
20630
20631# The commands to list exported symbols.
20632export_symbols_cmds=$lt_export_symbols_cmds
20633
20634# Symbols that should not be listed in the preloaded symbols.
20635exclude_expsyms=$lt_exclude_expsyms
20636
20637# Symbols that must always be exported.
20638include_expsyms=$lt_include_expsyms
20639
20640# Commands necessary for linking programs (against libraries) with templates.
20641prelink_cmds=$lt_prelink_cmds
20642
20643# Commands necessary for finishing linking programs.
20644postlink_cmds=$lt_postlink_cmds
20645
20646# Specify filename containing input files.
20647file_list_spec=$lt_file_list_spec
20648
20649# How to hardcode a shared library path into an executable.
20650hardcode_action=$hardcode_action
20651
20652# ### END LIBTOOL CONFIG
20653
20654_LT_EOF
20655
20656    cat <<'_LT_EOF' >> "$cfgfile"
20657
20658# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20659
20660# func_munge_path_list VARIABLE PATH
20661# -----------------------------------
20662# VARIABLE is name of variable containing _space_ separated list of
20663# directories to be munged by the contents of PATH, which is string
20664# having a format:
20665# "DIR[:DIR]:"
20666#       string "DIR[ DIR]" will be prepended to VARIABLE
20667# ":DIR[:DIR]"
20668#       string "DIR[ DIR]" will be appended to VARIABLE
20669# "DIRP[:DIRP]::[DIRA:]DIRA"
20670#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20671#       "DIRA[ DIRA]" will be appended to VARIABLE
20672# "DIR[:DIR]"
20673#       VARIABLE will be replaced by "DIR[ DIR]"
20674func_munge_path_list ()
20675{
20676    case x$2 in
20677    x)
20678        ;;
20679    *:)
20680        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20681        ;;
20682    x:*)
20683        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20684        ;;
20685    *::*)
20686        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20687        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20688        ;;
20689    *)
20690        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20691        ;;
20692    esac
20693}
20694
20695
20696# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20697func_cc_basename ()
20698{
20699    for cc_temp in $*""; do
20700      case $cc_temp in
20701        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20702        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20703        \-*) ;;
20704        *) break;;
20705      esac
20706    done
20707    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20708}
20709
20710
20711# ### END FUNCTIONS SHARED WITH CONFIGURE
20712
20713_LT_EOF
20714
20715  case $host_os in
20716  aix3*)
20717    cat <<\_LT_EOF >> "$cfgfile"
20718# AIX sometimes has problems with the GCC collect2 program.  For some
20719# reason, if we set the COLLECT_NAMES environment variable, the problems
20720# vanish in a puff of smoke.
20721if test set != "${COLLECT_NAMES+set}"; then
20722  COLLECT_NAMES=
20723  export COLLECT_NAMES
20724fi
20725_LT_EOF
20726    ;;
20727  esac
20728
20729
20730ltmain=$ac_aux_dir/ltmain.sh
20731
20732
20733  # We use sed instead of cat because bash on DJGPP gets confused if
20734  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20735  # text mode, it properly converts lines to CR/LF.  This bash problem
20736  # is reportedly fixed, but why not run on old versions too?
20737  sed '$q' "$ltmain" >> "$cfgfile" \
20738     || (rm -f "$cfgfile"; exit 1)
20739
20740   mv -f "$cfgfile" "$ofile" ||
20741    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20742  chmod +x "$ofile"
20743
20744 ;;
20745
20746  esac
20747done # for ac_tag
20748
20749
20750as_fn_exit 0
20751_ACEOF
20752ac_clean_files=$ac_clean_files_save
20753
20754test $ac_write_fail = 0 ||
20755  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20756
20757
20758# configure is writing to config.log, and then calls config.status.
20759# config.status does its own redirection, appending to config.log.
20760# Unfortunately, on DOS this fails, as config.log is still kept open
20761# by configure, so config.status won't be able to write to it; its
20762# output is simply discarded.  So we exec the FD to /dev/null,
20763# effectively closing config.log, so it can be properly (re)opened and
20764# appended to by config.status.  When coming back to configure, we
20765# need to make the FD available again.
20766if test "$no_create" != yes; then
20767  ac_cs_success=:
20768  ac_config_status_args=
20769  test "$silent" = yes &&
20770    ac_config_status_args="$ac_config_status_args --quiet"
20771  exec 5>/dev/null
20772  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20773  exec 5>>config.log
20774  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20775  # would make configure fail if this is the last instruction.
20776  $ac_cs_success || as_fn_exit 1
20777fi
20778if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20780$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20781fi
20782
20783