configure revision beef1b22
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-siliconmotion 1.7.10.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-video-siliconmotion'
624PACKAGE_TARNAME='xf86-video-siliconmotion'
625PACKAGE_VERSION='1.7.10'
626PACKAGE_STRING='xf86-video-siliconmotion 1.7.10'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues'
628PACKAGE_URL=''
629
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_unique_file="Makefile.am"
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667DRIVER_NAME
668moduledir
669XAA_FALSE
670XAA_TRUE
671XMODES_FALSE
672XMODES_TRUE
673XSERVER_LIBPCIACCESS_FALSE
674XSERVER_LIBPCIACCESS_TRUE
675PCIACCESS_LIBS
676PCIACCESS_CFLAGS
677HAVE_XEXTPROTO_71_FALSE
678HAVE_XEXTPROTO_71_TRUE
679XEXT_LIBS
680XEXT_CFLAGS
681XORG_LIBS
682XORG_CFLAGS
683LT_SYS_LIBRARY_PATH
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689MANIFEST_TOOL
690RANLIB
691ac_ct_AR
692AR
693DLLTOOL
694OBJDUMP
695FILECMD
696LN_S
697NM
698ac_ct_DUMPBIN
699DUMPBIN
700LD
701FGREP
702EGREP
703GREP
704LIBTOOL
705CSCOPE
706ETAGS
707CTAGS
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
711am__nodep
712AMDEPBACKSLASH
713AMDEP_FALSE
714AMDEP_TRUE
715am__include
716DEPDIR
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741MAN_SUBSTS
742XORG_MAN_PAGE
743ADMIN_MAN_DIR
744DRIVER_MAN_DIR
745MISC_MAN_DIR
746FILE_MAN_DIR
747LIB_MAN_DIR
748APP_MAN_DIR
749ADMIN_MAN_SUFFIX
750DRIVER_MAN_SUFFIX
751MISC_MAN_SUFFIX
752FILE_MAN_SUFFIX
753LIB_MAN_SUFFIX
754APP_MAN_SUFFIX
755SED
756host_os
757host_vendor
758host_cpu
759host
760build_os
761build_vendor
762build_cpu
763build
764INSTALL_CMD
765PKG_CONFIG_LIBDIR
766PKG_CONFIG_PATH
767PKG_CONFIG
768CHANGELOG_CMD
769STRICT_CFLAGS
770CWARNFLAGS
771BASE_CFLAGS
772OBJEXT
773EXEEXT
774ac_ct_CC
775CPPFLAGS
776LDFLAGS
777CFLAGS
778CC
779INSTALL_DATA
780INSTALL_SCRIPT
781INSTALL_PROGRAM
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801runstatedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_URL
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL
821am__quote'
822ac_subst_files=''
823ac_user_opts='
824enable_option_checking
825enable_selective_werror
826enable_strict_compilation
827enable_silent_rules
828enable_dependency_tracking
829enable_static
830enable_shared
831with_pic
832enable_fast_install
833with_aix_soname
834with_gnu_ld
835with_sysroot
836enable_libtool_lock
837with_xorg_module_dir
838enable_xaa
839'
840      ac_precious_vars='build_alias
841host_alias
842target_alias
843CC
844CFLAGS
845LDFLAGS
846LIBS
847CPPFLAGS
848PKG_CONFIG
849PKG_CONFIG_PATH
850PKG_CONFIG_LIBDIR
851LT_SYS_LIBRARY_PATH
852XORG_CFLAGS
853XORG_LIBS
854XEXT_CFLAGS
855XEXT_LIBS
856PCIACCESS_CFLAGS
857PCIACCESS_LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896runstatedir='${localstatedir}/run'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913  # If the previous option needs an argument, assign it.
914  if test -n "$ac_prev"; then
915    eval $ac_prev=\$ac_option
916    ac_prev=
917    continue
918  fi
919
920  case $ac_option in
921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922  *=)   ac_optarg= ;;
923  *)    ac_optarg=yes ;;
924  esac
925
926  case $ac_dashdash$ac_option in
927  --)
928    ac_dashdash=yes ;;
929
930  -bindir | --bindir | --bindi | --bind | --bin | --bi)
931    ac_prev=bindir ;;
932  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933    bindir=$ac_optarg ;;
934
935  -build | --build | --buil | --bui | --bu)
936    ac_prev=build_alias ;;
937  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938    build_alias=$ac_optarg ;;
939
940  -cache-file | --cache-file | --cache-fil | --cache-fi \
941  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942    ac_prev=cache_file ;;
943  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945    cache_file=$ac_optarg ;;
946
947  --config-cache | -C)
948    cache_file=config.cache ;;
949
950  -datadir | --datadir | --datadi | --datad)
951    ac_prev=datadir ;;
952  -datadir=* | --datadir=* | --datadi=* | --datad=*)
953    datadir=$ac_optarg ;;
954
955  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956  | --dataroo | --dataro | --datar)
957    ac_prev=datarootdir ;;
958  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960    datarootdir=$ac_optarg ;;
961
962  -disable-* | --disable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: \`$ac_useropt'"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974	 ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=no ;;
977
978  -docdir | --docdir | --docdi | --doc | --do)
979    ac_prev=docdir ;;
980  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981    docdir=$ac_optarg ;;
982
983  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984    ac_prev=dvidir ;;
985  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986    dvidir=$ac_optarg ;;
987
988  -enable-* | --enable-*)
989    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990    # Reject names that are not valid shell variable names.
991    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992      as_fn_error $? "invalid feature name: \`$ac_useropt'"
993    ac_useropt_orig=$ac_useropt
994    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
995    case $ac_user_opts in
996      *"
997"enable_$ac_useropt"
998"*) ;;
999      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000	 ac_unrecognized_sep=', ';;
1001    esac
1002    eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006  | --exec | --exe | --ex)
1007    ac_prev=exec_prefix ;;
1008  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010  | --exec=* | --exe=* | --ex=*)
1011    exec_prefix=$ac_optarg ;;
1012
1013  -gas | --gas | --ga | --g)
1014    # Obsolete; use --with-gas.
1015    with_gas=yes ;;
1016
1017  -help | --help | --hel | --he | -h)
1018    ac_init_help=long ;;
1019  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020    ac_init_help=recursive ;;
1021  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022    ac_init_help=short ;;
1023
1024  -host | --host | --hos | --ho)
1025    ac_prev=host_alias ;;
1026  -host=* | --host=* | --hos=* | --ho=*)
1027    host_alias=$ac_optarg ;;
1028
1029  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030    ac_prev=htmldir ;;
1031  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032  | --ht=*)
1033    htmldir=$ac_optarg ;;
1034
1035  -includedir | --includedir | --includedi | --included | --include \
1036  | --includ | --inclu | --incl | --inc)
1037    ac_prev=includedir ;;
1038  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039  | --includ=* | --inclu=* | --incl=* | --inc=*)
1040    includedir=$ac_optarg ;;
1041
1042  -infodir | --infodir | --infodi | --infod | --info | --inf)
1043    ac_prev=infodir ;;
1044  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045    infodir=$ac_optarg ;;
1046
1047  -libdir | --libdir | --libdi | --libd)
1048    ac_prev=libdir ;;
1049  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050    libdir=$ac_optarg ;;
1051
1052  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053  | --libexe | --libex | --libe)
1054    ac_prev=libexecdir ;;
1055  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056  | --libexe=* | --libex=* | --libe=*)
1057    libexecdir=$ac_optarg ;;
1058
1059  -localedir | --localedir | --localedi | --localed | --locale)
1060    ac_prev=localedir ;;
1061  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062    localedir=$ac_optarg ;;
1063
1064  -localstatedir | --localstatedir | --localstatedi | --localstated \
1065  | --localstate | --localstat | --localsta | --localst | --locals)
1066    ac_prev=localstatedir ;;
1067  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069    localstatedir=$ac_optarg ;;
1070
1071  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072    ac_prev=mandir ;;
1073  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074    mandir=$ac_optarg ;;
1075
1076  -nfp | --nfp | --nf)
1077    # Obsolete; use --without-fp.
1078    with_fp=no ;;
1079
1080  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081  | --no-cr | --no-c | -n)
1082    no_create=yes ;;
1083
1084  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086    no_recursion=yes ;;
1087
1088  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090  | --oldin | --oldi | --old | --ol | --o)
1091    ac_prev=oldincludedir ;;
1092  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095    oldincludedir=$ac_optarg ;;
1096
1097  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098    ac_prev=prefix ;;
1099  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100    prefix=$ac_optarg ;;
1101
1102  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103  | --program-pre | --program-pr | --program-p)
1104    ac_prev=program_prefix ;;
1105  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107    program_prefix=$ac_optarg ;;
1108
1109  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110  | --program-suf | --program-su | --program-s)
1111    ac_prev=program_suffix ;;
1112  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114    program_suffix=$ac_optarg ;;
1115
1116  -program-transform-name | --program-transform-name \
1117  | --program-transform-nam | --program-transform-na \
1118  | --program-transform-n | --program-transform- \
1119  | --program-transform | --program-transfor \
1120  | --program-transfo | --program-transf \
1121  | --program-trans | --program-tran \
1122  | --progr-tra | --program-tr | --program-t)
1123    ac_prev=program_transform_name ;;
1124  -program-transform-name=* | --program-transform-name=* \
1125  | --program-transform-nam=* | --program-transform-na=* \
1126  | --program-transform-n=* | --program-transform-=* \
1127  | --program-transform=* | --program-transfor=* \
1128  | --program-transfo=* | --program-transf=* \
1129  | --program-trans=* | --program-tran=* \
1130  | --progr-tra=* | --program-tr=* | --program-t=*)
1131    program_transform_name=$ac_optarg ;;
1132
1133  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134    ac_prev=pdfdir ;;
1135  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136    pdfdir=$ac_optarg ;;
1137
1138  -psdir | --psdir | --psdi | --psd | --ps)
1139    ac_prev=psdir ;;
1140  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141    psdir=$ac_optarg ;;
1142
1143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144  | -silent | --silent | --silen | --sile | --sil)
1145    silent=yes ;;
1146
1147  -runstatedir | --runstatedir | --runstatedi | --runstated \
1148  | --runstate | --runstat | --runsta | --runst | --runs \
1149  | --run | --ru | --r)
1150    ac_prev=runstatedir ;;
1151  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1152  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1153  | --run=* | --ru=* | --r=*)
1154    runstatedir=$ac_optarg ;;
1155
1156  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157    ac_prev=sbindir ;;
1158  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159  | --sbi=* | --sb=*)
1160    sbindir=$ac_optarg ;;
1161
1162  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164  | --sharedst | --shareds | --shared | --share | --shar \
1165  | --sha | --sh)
1166    ac_prev=sharedstatedir ;;
1167  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170  | --sha=* | --sh=*)
1171    sharedstatedir=$ac_optarg ;;
1172
1173  -site | --site | --sit)
1174    ac_prev=site ;;
1175  -site=* | --site=* | --sit=*)
1176    site=$ac_optarg ;;
1177
1178  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179    ac_prev=srcdir ;;
1180  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181    srcdir=$ac_optarg ;;
1182
1183  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184  | --syscon | --sysco | --sysc | --sys | --sy)
1185    ac_prev=sysconfdir ;;
1186  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188    sysconfdir=$ac_optarg ;;
1189
1190  -target | --target | --targe | --targ | --tar | --ta | --t)
1191    ac_prev=target_alias ;;
1192  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193    target_alias=$ac_optarg ;;
1194
1195  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196    verbose=yes ;;
1197
1198  -version | --version | --versio | --versi | --vers | -V)
1199    ac_init_version=: ;;
1200
1201  -with-* | --with-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: \`$ac_useropt'"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=\$ac_optarg ;;
1216
1217  -without-* | --without-*)
1218    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219    # Reject names that are not valid shell variable names.
1220    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221      as_fn_error $? "invalid package name: \`$ac_useropt'"
1222    ac_useropt_orig=$ac_useropt
1223    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1224    case $ac_user_opts in
1225      *"
1226"with_$ac_useropt"
1227"*) ;;
1228      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229	 ac_unrecognized_sep=', ';;
1230    esac
1231    eval with_$ac_useropt=no ;;
1232
1233  --x)
1234    # Obsolete; use --with-x.
1235    with_x=yes ;;
1236
1237  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238  | --x-incl | --x-inc | --x-in | --x-i)
1239    ac_prev=x_includes ;;
1240  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242    x_includes=$ac_optarg ;;
1243
1244  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246    ac_prev=x_libraries ;;
1247  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249    x_libraries=$ac_optarg ;;
1250
1251  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252Try \`$0 --help' for more information"
1253    ;;
1254
1255  *=*)
1256    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257    # Reject names that are not valid shell variable names.
1258    case $ac_envvar in #(
1259      '' | [0-9]* | *[!_$as_cr_alnum]* )
1260      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261    esac
1262    eval $ac_envvar=\$ac_optarg
1263    export $ac_envvar ;;
1264
1265  *)
1266    # FIXME: should be removed in autoconf 3.0.
1267    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1268    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1270    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271    ;;
1272
1273  esac
1274done
1275
1276if test -n "$ac_prev"; then
1277  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278  as_fn_error $? "missing argument to $ac_option"
1279fi
1280
1281if test -n "$ac_unrecognized_opts"; then
1282  case $enable_option_checking in
1283    no) ;;
1284    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286  esac
1287fi
1288
1289# Check all directory arguments for consistency.
1290for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291		datadir sysconfdir sharedstatedir localstatedir includedir \
1292		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293		libdir localedir mandir runstatedir
1294do
1295  eval ac_val=\$$ac_var
1296  # Remove trailing slashes.
1297  case $ac_val in
1298    */ )
1299      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300      eval $ac_var=\$ac_val;;
1301  esac
1302  # Be sure to have absolute directory names.
1303  case $ac_val in
1304    [\\/$]* | ?:[\\/]* )  continue;;
1305    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306  esac
1307  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308done
1309
1310# There might be people who depend on the old broken behavior: `$host'
1311# used to hold the argument of --host etc.
1312# FIXME: To remove some day.
1313build=$build_alias
1314host=$host_alias
1315target=$target_alias
1316
1317# FIXME: To remove some day.
1318if test "x$host_alias" != x; then
1319  if test "x$build_alias" = x; then
1320    cross_compiling=maybe
1321  elif test "x$build_alias" != "x$host_alias"; then
1322    cross_compiling=yes
1323  fi
1324fi
1325
1326ac_tool_prefix=
1327test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329test "$silent" = yes && exec 6>/dev/null
1330
1331
1332ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333ac_ls_di=`ls -di .` &&
1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335  as_fn_error $? "working directory cannot be determined"
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$as_myself" ||
1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$as_myself" : 'X\(//\)[^/]' \| \
1347	 X"$as_myself" : 'X\(//\)$' \| \
1348	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349printf "%s\n" X"$as_myself" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377fi
1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381	pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384  srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_env_${ac_var}_value=\$${ac_var}
1395  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403  # Omit some internal or obsolete options to make the list less imposing.
1404  # This message is too long to be a string in the A/UX 3.1 sh.
1405  cat <<_ACEOF
1406\`configure' configures xf86-video-siliconmotion 1.7.10 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416  -h, --help              display this help and exit
1417      --help=short        display options specific to this package
1418      --help=recursive    display the short help of all the included packages
1419  -V, --version           display version information and exit
1420  -q, --quiet, --silent   do not print \`checking ...' messages
1421      --cache-file=FILE   cache test results in FILE [disabled]
1422  -C, --config-cache      alias for \`--cache-file=config.cache'
1423  -n, --no-create         do not create output files
1424      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426Installation directories:
1427  --prefix=PREFIX         install architecture-independent files in PREFIX
1428                          [$ac_default_prefix]
1429  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                          [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440  --bindir=DIR            user executables [EPREFIX/bin]
1441  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442  --libexecdir=DIR        program executables [EPREFIX/libexec]
1443  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1447  --libdir=DIR            object code libraries [EPREFIX/lib]
1448  --includedir=DIR        C header files [PREFIX/include]
1449  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1450  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1451  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1452  --infodir=DIR           info documentation [DATAROOTDIR/info]
1453  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1454  --mandir=DIR            man documentation [DATAROOTDIR/man]
1455  --docdir=DIR            documentation root
1456                          [DATAROOTDIR/doc/xf86-video-siliconmotion]
1457  --htmldir=DIR           html documentation [DOCDIR]
1458  --dvidir=DIR            dvi documentation [DOCDIR]
1459  --pdfdir=DIR            pdf documentation [DOCDIR]
1460  --psdir=DIR             ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=C            prepend C to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470System types:
1471  --build=BUILD     configure for building on BUILD [guessed]
1472  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477  case $ac_init_help in
1478     short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.10:";;
1479   esac
1480  cat <<\_ACEOF
1481
1482Optional Features:
1483  --disable-option-checking  ignore unrecognized --enable/--with options
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --disable-selective-werror
1487                          Turn off selective compiler errors. (default:
1488                          enabled)
1489  --enable-strict-compilation
1490                          Enable all warnings from compiler and make them
1491                          errors (default: disabled)
1492  --enable-silent-rules   less verbose build output (undo: "make V=1")
1493  --disable-silent-rules  verbose build output (undo: "make V=0")
1494  --enable-dependency-tracking
1495                          do not reject slow dependency extractors
1496  --disable-dependency-tracking
1497                          speeds up one-time build
1498  --enable-static[=PKGS]  build static libraries [default=no]
1499  --enable-shared[=PKGS]  build shared libraries [default=yes]
1500  --enable-fast-install[=PKGS]
1501                          optimize for fast installation [default=yes]
1502  --disable-libtool-lock  avoid locking (might break parallel builds)
1503  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1504                          [default=auto]
1505
1506Optional Packages:
1507  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-aix-soname=aix|svr4|both
1512                          shared library versioning (aka "SONAME") variant to
1513                          provide on AIX, [default=aix].
1514  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1516                          compiler's sysroot if not specified).
1517  --with-xorg-module-dir=DIR
1518                          Default xorg module directory
1519                          [[default=$libdir/xorg/modules]]
1520
1521Some influential environment variables:
1522  CC          C compiler command
1523  CFLAGS      C compiler flags
1524  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525              nonstandard directory <lib dir>
1526  LIBS        libraries to pass to the linker, e.g. -l<library>
1527  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528              you have headers in a nonstandard directory <include dir>
1529  PKG_CONFIG  path to pkg-config utility
1530  PKG_CONFIG_PATH
1531              directories to add to pkg-config's search path
1532  PKG_CONFIG_LIBDIR
1533              path overriding pkg-config's built-in search path
1534  LT_SYS_LIBRARY_PATH
1535              User-defined run-time library search path.
1536  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1537  XORG_LIBS   linker flags for XORG, overriding pkg-config
1538  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1539  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1540  PCIACCESS_CFLAGS
1541              C compiler flags for PCIACCESS, overriding pkg-config
1542  PCIACCESS_LIBS
1543              linker flags for PCIACCESS, overriding pkg-config
1544
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
1548Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues>.
1549_ACEOF
1550ac_status=$?
1551fi
1552
1553if test "$ac_init_help" = "recursive"; then
1554  # If there are subdirs, report their specific --help.
1555  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556    test -d "$ac_dir" ||
1557      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558      continue
1559    ac_builddir=.
1560
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1565  # A ".." for each directory in $ac_dir_suffix.
1566  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567  case $ac_top_builddir_sub in
1568  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570  esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
1576
1577case $srcdir in
1578  .)  # We are building in place.
1579    ac_srcdir=.
1580    ac_top_srcdir=$ac_top_builddir_sub
1581    ac_abs_top_srcdir=$ac_pwd ;;
1582  [\\/]* | ?:[\\/]* )  # Absolute name.
1583    ac_srcdir=$srcdir$ac_dir_suffix;
1584    ac_top_srcdir=$srcdir
1585    ac_abs_top_srcdir=$srcdir ;;
1586  *) # Relative name.
1587    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588    ac_top_srcdir=$ac_top_build_prefix$srcdir
1589    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590esac
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593    cd "$ac_dir" || { ac_status=$?; continue; }
1594    # Check for configure.gnu first; this name is used for a wrapper for
1595    # Metaconfig's "Configure" on case-insensitive file systems.
1596    if test -f "$ac_srcdir/configure.gnu"; then
1597      echo &&
1598      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599    elif test -f "$ac_srcdir/configure"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure" --help=recursive
1602    else
1603      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604    fi || ac_status=$?
1605    cd "$ac_pwd" || { ac_status=$?; break; }
1606  done
1607fi
1608
1609test -n "$ac_init_help" && exit $ac_status
1610if $ac_init_version; then
1611  cat <<\_ACEOF
1612xf86-video-siliconmotion configure 1.7.10
1613generated by GNU Autoconf 2.71
1614
1615Copyright (C) 2021 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext conftest.beam
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639printf "%s\n" "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649	 test -z "$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       } && test -s conftest.$ac_objext
1652then :
1653  ac_retval=0
1654else $as_nop
1655  printf "%s\n" "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658	ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_compile
1664
1665# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1666# ------------------------------------------------------------------
1667# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1668# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1669ac_fn_check_decl ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  as_decl_name=`echo $2|sed 's/ *(.*//'`
1673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1674printf %s "checking whether $as_decl_name is declared... " >&6; }
1675if eval test \${$3+y}
1676then :
1677  printf %s "(cached) " >&6
1678else $as_nop
1679  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1680  eval ac_save_FLAGS=\$$6
1681  as_fn_append $6 " $5"
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684$4
1685int
1686main (void)
1687{
1688#ifndef $as_decl_name
1689#ifdef __cplusplus
1690  (void) $as_decl_use;
1691#else
1692  (void) $as_decl_name;
1693#endif
1694#endif
1695
1696  ;
1697  return 0;
1698}
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"
1701then :
1702  eval "$3=yes"
1703else $as_nop
1704  eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1707  eval $6=\$ac_save_FLAGS
1708
1709fi
1710eval ac_res=\$$3
1711	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712printf "%s\n" "$ac_res" >&6; }
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715} # ac_fn_check_decl
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725printf %s "checking for $2... " >&6; }
1726if eval test \${$3+y}
1727then :
1728  printf %s "(cached) " >&6
1729else $as_nop
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"
1736then :
1737  eval "$3=yes"
1738else $as_nop
1739  eval "$3=no"
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1742fi
1743eval ac_res=\$$3
1744	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745printf "%s\n" "$ac_res" >&6; }
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748} # ac_fn_c_check_header_compile
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763printf "%s\n" "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest$ac_exeext && {
1776	 test "$cross_compiling" = yes ||
1777	 test -x conftest$ac_exeext
1778       }
1779then :
1780  ac_retval=0
1781else $as_nop
1782  printf "%s\n" "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789  # interfere with the next link command; also delete a directory that is
1790  # left behind by Apple's compiler.  We do this before executing the actions.
1791  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793  as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_link
1796
1797# ac_fn_c_check_func LINENO FUNC VAR
1798# ----------------------------------
1799# Tests whether FUNC exists, setting the cache variable VAR accordingly
1800ac_fn_c_check_func ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804printf %s "checking for $2... " >&6; }
1805if eval test \${$3+y}
1806then :
1807  printf %s "(cached) " >&6
1808else $as_nop
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1813#define $2 innocuous_$2
1814
1815/* System header to define __stub macros and hopefully few prototypes,
1816   which can conflict with char $2 (); below.  */
1817
1818#include <limits.h>
1819#undef $2
1820
1821/* Override any GCC internal prototype to avoid an error.
1822   Use char because int might match the return type of a GCC
1823   builtin and then its argument prototype would still apply.  */
1824#ifdef __cplusplus
1825extern "C"
1826#endif
1827char $2 ();
1828/* The GNU C library defines this for functions which it implements
1829    to always fail with ENOSYS.  Some functions are actually named
1830    something starting with __ and the normal name is an alias.  */
1831#if defined __stub_$2 || defined __stub___$2
1832choke me
1833#endif
1834
1835int
1836main (void)
1837{
1838return $2 ();
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_link "$LINENO"
1844then :
1845  eval "$3=yes"
1846else $as_nop
1847  eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.beam \
1850    conftest$ac_exeext conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854printf "%s\n" "$ac_res" >&6; }
1855  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857} # ac_fn_c_check_func
1858ac_configure_args_raw=
1859for ac_arg
1860do
1861  case $ac_arg in
1862  *\'*)
1863    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864  esac
1865  as_fn_append ac_configure_args_raw " '$ac_arg'"
1866done
1867
1868case $ac_configure_args_raw in
1869  *$as_nl*)
1870    ac_safe_unquote= ;;
1871  *)
1872    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1873    ac_unsafe_a="$ac_unsafe_z#~"
1874    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1875    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1876esac
1877
1878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
1882It was created by xf86-video-siliconmotion $as_me 1.7.10, which was
1883generated by GNU Autoconf 2.71.  Invocation command line was
1884
1885  $ $0$ac_configure_args_raw
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  case $as_dir in #(((
1919    '') as_dir=./ ;;
1920    */) ;;
1921    *) as_dir=$as_dir/ ;;
1922  esac
1923    printf "%s\n" "PATH: $as_dir"
1924  done
1925IFS=$as_save_IFS
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950  for ac_arg
1951  do
1952    case $ac_arg in
1953    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955    | -silent | --silent | --silen | --sile | --sil)
1956      continue ;;
1957    *\'*)
1958      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959    esac
1960    case $ac_pass in
1961    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962    2)
1963      as_fn_append ac_configure_args1 " '$ac_arg'"
1964      if test $ac_must_keep_next = true; then
1965	ac_must_keep_next=false # Got value, back to normal.
1966      else
1967	case $ac_arg in
1968	  *=* | --config-cache | -C | -disable-* | --disable-* \
1969	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971	  | -with-* | --with-* | -without-* | --without-* | --x)
1972	    case "$ac_configure_args0 " in
1973	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974	    esac
1975	    ;;
1976	  -* ) ac_must_keep_next=true ;;
1977	esac
1978      fi
1979      as_fn_append ac_configure_args " '$ac_arg'"
1980      ;;
1981    esac
1982  done
1983done
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log.  We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992trap 'exit_status=$?
1993  # Sanitize IFS.
1994  IFS=" ""	$as_nl"
1995  # Save into config.log some information that might help in debugging.
1996  {
1997    echo
1998
1999    printf "%s\n" "## ---------------- ##
2000## Cache variables. ##
2001## ---------------- ##"
2002    echo
2003    # The following way of writing the cache mishandles newlines in values,
2004(
2005  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006    eval ac_val=\$$ac_var
2007    case $ac_val in #(
2008    *${as_nl}*)
2009      case $ac_var in #(
2010      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012      esac
2013      case $ac_var in #(
2014      _ | IFS | as_nl) ;; #(
2015      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016      *) { eval $ac_var=; unset $ac_var;} ;;
2017      esac ;;
2018    esac
2019  done
2020  (set) 2>&1 |
2021    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022    *${as_nl}ac_space=\ *)
2023      sed -n \
2024	"s/'\''/'\''\\\\'\'''\''/g;
2025	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026      ;; #(
2027    *)
2028      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029      ;;
2030    esac |
2031    sort
2032)
2033    echo
2034
2035    printf "%s\n" "## ----------------- ##
2036## Output variables. ##
2037## ----------------- ##"
2038    echo
2039    for ac_var in $ac_subst_vars
2040    do
2041      eval ac_val=\$$ac_var
2042      case $ac_val in
2043      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044      esac
2045      printf "%s\n" "$ac_var='\''$ac_val'\''"
2046    done | sort
2047    echo
2048
2049    if test -n "$ac_subst_files"; then
2050      printf "%s\n" "## ------------------- ##
2051## File substitutions. ##
2052## ------------------- ##"
2053      echo
2054      for ac_var in $ac_subst_files
2055      do
2056	eval ac_val=\$$ac_var
2057	case $ac_val in
2058	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059	esac
2060	printf "%s\n" "$ac_var='\''$ac_val'\''"
2061      done | sort
2062      echo
2063    fi
2064
2065    if test -s confdefs.h; then
2066      printf "%s\n" "## ----------- ##
2067## confdefs.h. ##
2068## ----------- ##"
2069      echo
2070      cat confdefs.h
2071      echo
2072    fi
2073    test "$ac_signal" != 0 &&
2074      printf "%s\n" "$as_me: caught signal $ac_signal"
2075    printf "%s\n" "$as_me: exit $exit_status"
2076  } >&5
2077  rm -f core *.core core.conftest.* &&
2078    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079    exit $exit_status
2080' 0
2081for ac_signal in 1 2 13 15; do
2082  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
2087rm -f -r conftest* confdefs.h
2088
2089printf "%s\n" "/* confdefs.h */" > confdefs.h
2090
2091# Predefined preprocessor variables.
2092
2093printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2094
2095printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2096
2097printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2098
2099printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2100
2101printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2102
2103printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2104
2105
2106# Let the site file select an alternate cache file if it wants to.
2107# Prefer an explicitly selected file to automatically selected ones.
2108if test -n "$CONFIG_SITE"; then
2109  ac_site_files="$CONFIG_SITE"
2110elif test "x$prefix" != xNONE; then
2111  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2112else
2113  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2114fi
2115
2116for ac_site_file in $ac_site_files
2117do
2118  case $ac_site_file in #(
2119  */*) :
2120     ;; #(
2121  *) :
2122    ac_site_file=./$ac_site_file ;;
2123esac
2124  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2127    sed 's/^/| /' "$ac_site_file" >&5
2128    . "$ac_site_file" \
2129      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130printf "%s\n" "$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    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2142    case $cache_file in
2143      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144      *)                      . "./$cache_file";;
2145    esac
2146  fi
2147else
2148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2150  >$cache_file
2151fi
2152
2153# Test code for whether the C compiler supports C89 (global declarations)
2154ac_c_conftest_c89_globals='
2155/* Does the compiler advertise C89 conformance?
2156   Do not test the value of __STDC__, because some compilers set it to 0
2157   while being otherwise adequately conformant. */
2158#if !defined __STDC__
2159# error "Compiler does not advertise C89 conformance"
2160#endif
2161
2162#include <stddef.h>
2163#include <stdarg.h>
2164struct stat;
2165/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2166struct buf { int x; };
2167struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2168static char *e (p, i)
2169     char **p;
2170     int i;
2171{
2172  return p[i];
2173}
2174static char *f (char * (*g) (char **, int), char **p, ...)
2175{
2176  char *s;
2177  va_list v;
2178  va_start (v,p);
2179  s = g (p, va_arg (v,int));
2180  va_end (v);
2181  return s;
2182}
2183
2184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2185   function prototypes and stuff, but not \xHH hex character constants.
2186   These do not provoke an error unfortunately, instead are silently treated
2187   as an "x".  The following induces an error, until -std is added to get
2188   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2189   array size at least.  It is necessary to write \x00 == 0 to get something
2190   that is true only with -std.  */
2191int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2192
2193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2194   inside strings and character constants.  */
2195#define FOO(x) '\''x'\''
2196int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2197
2198int test (int i, double x);
2199struct s1 {int (*f) (int a);};
2200struct s2 {int (*f) (double a);};
2201int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2202               int, int);'
2203
2204# Test code for whether the C compiler supports C89 (body of main).
2205ac_c_conftest_c89_main='
2206ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2207'
2208
2209# Test code for whether the C compiler supports C99 (global declarations)
2210ac_c_conftest_c99_globals='
2211// Does the compiler advertise C99 conformance?
2212#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2213# error "Compiler does not advertise C99 conformance"
2214#endif
2215
2216#include <stdbool.h>
2217extern int puts (const char *);
2218extern int printf (const char *, ...);
2219extern int dprintf (int, const char *, ...);
2220extern void *malloc (size_t);
2221
2222// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2223// dprintf is used instead of fprintf to avoid needing to declare
2224// FILE and stderr.
2225#define debug(...) dprintf (2, __VA_ARGS__)
2226#define showlist(...) puts (#__VA_ARGS__)
2227#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2228static void
2229test_varargs_macros (void)
2230{
2231  int x = 1234;
2232  int y = 5678;
2233  debug ("Flag");
2234  debug ("X = %d\n", x);
2235  showlist (The first, second, and third items.);
2236  report (x>y, "x is %d but y is %d", x, y);
2237}
2238
2239// Check long long types.
2240#define BIG64 18446744073709551615ull
2241#define BIG32 4294967295ul
2242#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2243#if !BIG_OK
2244  #error "your preprocessor is broken"
2245#endif
2246#if BIG_OK
2247#else
2248  #error "your preprocessor is broken"
2249#endif
2250static long long int bignum = -9223372036854775807LL;
2251static unsigned long long int ubignum = BIG64;
2252
2253struct incomplete_array
2254{
2255  int datasize;
2256  double data[];
2257};
2258
2259struct named_init {
2260  int number;
2261  const wchar_t *name;
2262  double average;
2263};
2264
2265typedef const char *ccp;
2266
2267static inline int
2268test_restrict (ccp restrict text)
2269{
2270  // See if C++-style comments work.
2271  // Iterate through items via the restricted pointer.
2272  // Also check for declarations in for loops.
2273  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2274    continue;
2275  return 0;
2276}
2277
2278// Check varargs and va_copy.
2279static bool
2280test_varargs (const char *format, ...)
2281{
2282  va_list args;
2283  va_start (args, format);
2284  va_list args_copy;
2285  va_copy (args_copy, args);
2286
2287  const char *str = "";
2288  int number = 0;
2289  float fnumber = 0;
2290
2291  while (*format)
2292    {
2293      switch (*format++)
2294	{
2295	case '\''s'\'': // string
2296	  str = va_arg (args_copy, const char *);
2297	  break;
2298	case '\''d'\'': // int
2299	  number = va_arg (args_copy, int);
2300	  break;
2301	case '\''f'\'': // float
2302	  fnumber = va_arg (args_copy, double);
2303	  break;
2304	default:
2305	  break;
2306	}
2307    }
2308  va_end (args_copy);
2309  va_end (args);
2310
2311  return *str && number && fnumber;
2312}
2313'
2314
2315# Test code for whether the C compiler supports C99 (body of main).
2316ac_c_conftest_c99_main='
2317  // Check bool.
2318  _Bool success = false;
2319  success |= (argc != 0);
2320
2321  // Check restrict.
2322  if (test_restrict ("String literal") == 0)
2323    success = true;
2324  char *restrict newvar = "Another string";
2325
2326  // Check varargs.
2327  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2328  test_varargs_macros ();
2329
2330  // Check flexible array members.
2331  struct incomplete_array *ia =
2332    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2333  ia->datasize = 10;
2334  for (int i = 0; i < ia->datasize; ++i)
2335    ia->data[i] = i * 1.234;
2336
2337  // Check named initializers.
2338  struct named_init ni = {
2339    .number = 34,
2340    .name = L"Test wide string",
2341    .average = 543.34343,
2342  };
2343
2344  ni.number = 58;
2345
2346  int dynamic_array[ni.number];
2347  dynamic_array[0] = argv[0][0];
2348  dynamic_array[ni.number - 1] = 543;
2349
2350  // work around unused variable warnings
2351  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2352	 || dynamic_array[ni.number - 1] != 543);
2353'
2354
2355# Test code for whether the C compiler supports C11 (global declarations)
2356ac_c_conftest_c11_globals='
2357// Does the compiler advertise C11 conformance?
2358#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2359# error "Compiler does not advertise C11 conformance"
2360#endif
2361
2362// Check _Alignas.
2363char _Alignas (double) aligned_as_double;
2364char _Alignas (0) no_special_alignment;
2365extern char aligned_as_int;
2366char _Alignas (0) _Alignas (int) aligned_as_int;
2367
2368// Check _Alignof.
2369enum
2370{
2371  int_alignment = _Alignof (int),
2372  int_array_alignment = _Alignof (int[100]),
2373  char_alignment = _Alignof (char)
2374};
2375_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2376
2377// Check _Noreturn.
2378int _Noreturn does_not_return (void) { for (;;) continue; }
2379
2380// Check _Static_assert.
2381struct test_static_assert
2382{
2383  int x;
2384  _Static_assert (sizeof (int) <= sizeof (long int),
2385                  "_Static_assert does not work in struct");
2386  long int y;
2387};
2388
2389// Check UTF-8 literals.
2390#define u8 syntax error!
2391char const utf8_literal[] = u8"happens to be ASCII" "another string";
2392
2393// Check duplicate typedefs.
2394typedef long *long_ptr;
2395typedef long int *long_ptr;
2396typedef long_ptr long_ptr;
2397
2398// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2399struct anonymous
2400{
2401  union {
2402    struct { int i; int j; };
2403    struct { int k; long int l; } w;
2404  };
2405  int m;
2406} v1;
2407'
2408
2409# Test code for whether the C compiler supports C11 (body of main).
2410ac_c_conftest_c11_main='
2411  _Static_assert ((offsetof (struct anonymous, i)
2412		   == offsetof (struct anonymous, w.k)),
2413		  "Anonymous union alignment botch");
2414  v1.i = 2;
2415  v1.w.k = 5;
2416  ok |= v1.i != 5;
2417'
2418
2419# Test code for whether the C compiler supports C11 (complete).
2420ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2421${ac_c_conftest_c99_globals}
2422${ac_c_conftest_c11_globals}
2423
2424int
2425main (int argc, char **argv)
2426{
2427  int ok = 0;
2428  ${ac_c_conftest_c89_main}
2429  ${ac_c_conftest_c99_main}
2430  ${ac_c_conftest_c11_main}
2431  return ok;
2432}
2433"
2434
2435# Test code for whether the C compiler supports C99 (complete).
2436ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2437${ac_c_conftest_c99_globals}
2438
2439int
2440main (int argc, char **argv)
2441{
2442  int ok = 0;
2443  ${ac_c_conftest_c89_main}
2444  ${ac_c_conftest_c99_main}
2445  return ok;
2446}
2447"
2448
2449# Test code for whether the C compiler supports C89 (complete).
2450ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2451
2452int
2453main (int argc, char **argv)
2454{
2455  int ok = 0;
2456  ${ac_c_conftest_c89_main}
2457  return ok;
2458}
2459"
2460
2461as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2462as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2463as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2464as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2465as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2466as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2467as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2468as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2469as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2470
2471# Auxiliary files required by this configure script.
2472ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh"
2473
2474# Locations in which to look for auxiliary files.
2475ac_aux_dir_candidates="${srcdir}/."
2476
2477# Search for a directory containing all of the required auxiliary files,
2478# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2479# If we don't find one directory that contains all the files we need,
2480# we report the set of missing files from the *first* directory in
2481# $ac_aux_dir_candidates and give up.
2482ac_missing_aux_files=""
2483ac_first_candidate=:
2484printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486as_found=false
2487for as_dir in $ac_aux_dir_candidates
2488do
2489  IFS=$as_save_IFS
2490  case $as_dir in #(((
2491    '') as_dir=./ ;;
2492    */) ;;
2493    *) as_dir=$as_dir/ ;;
2494  esac
2495  as_found=:
2496
2497  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2498  ac_aux_dir_found=yes
2499  ac_install_sh=
2500  for ac_aux in $ac_aux_files
2501  do
2502    # As a special case, if "install-sh" is required, that requirement
2503    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2504    # and $ac_install_sh is set appropriately for whichever one is found.
2505    if test x"$ac_aux" = x"install-sh"
2506    then
2507      if test -f "${as_dir}install-sh"; then
2508        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2509        ac_install_sh="${as_dir}install-sh -c"
2510      elif test -f "${as_dir}install.sh"; then
2511        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2512        ac_install_sh="${as_dir}install.sh -c"
2513      elif test -f "${as_dir}shtool"; then
2514        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2515        ac_install_sh="${as_dir}shtool install -c"
2516      else
2517        ac_aux_dir_found=no
2518        if $ac_first_candidate; then
2519          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2520        else
2521          break
2522        fi
2523      fi
2524    else
2525      if test -f "${as_dir}${ac_aux}"; then
2526        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2527      else
2528        ac_aux_dir_found=no
2529        if $ac_first_candidate; then
2530          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2531        else
2532          break
2533        fi
2534      fi
2535    fi
2536  done
2537  if test "$ac_aux_dir_found" = yes; then
2538    ac_aux_dir="$as_dir"
2539    break
2540  fi
2541  ac_first_candidate=false
2542
2543  as_found=false
2544done
2545IFS=$as_save_IFS
2546if $as_found
2547then :
2548
2549else $as_nop
2550  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2551fi
2552
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558if test -f "${ac_aux_dir}config.guess"; then
2559  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2560fi
2561if test -f "${ac_aux_dir}config.sub"; then
2562  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2563fi
2564if test -f "$ac_aux_dir/configure"; then
2565  ac_configure="$SHELL ${ac_aux_dir}configure"
2566fi
2567
2568# Check that the precious variables saved in the cache have kept the same
2569# value.
2570ac_cache_corrupted=false
2571for ac_var in $ac_precious_vars; do
2572  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2573  eval ac_new_set=\$ac_env_${ac_var}_set
2574  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2575  eval ac_new_val=\$ac_env_${ac_var}_value
2576  case $ac_old_set,$ac_new_set in
2577    set,)
2578      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2579printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,set)
2582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2583printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2584      ac_cache_corrupted=: ;;
2585    ,);;
2586    *)
2587      if test "x$ac_old_val" != "x$ac_new_val"; then
2588	# differences in whitespace do not lead to failure.
2589	ac_old_val_w=`echo x $ac_old_val`
2590	ac_new_val_w=`echo x $ac_new_val`
2591	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2592	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2593printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2594	  ac_cache_corrupted=:
2595	else
2596	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2597printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2598	  eval $ac_var=\$ac_old_val
2599	fi
2600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2601printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2603printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2604      fi;;
2605  esac
2606  # Pass precious variables to config.status.
2607  if test "$ac_new_set" = set; then
2608    case $ac_new_val in
2609    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2610    *) ac_arg=$ac_var=$ac_new_val ;;
2611    esac
2612    case " $ac_configure_args " in
2613      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2614      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615    esac
2616  fi
2617done
2618if $ac_cache_corrupted; then
2619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2622printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2623  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2624	    and start over" "$LINENO" 5
2625fi
2626## -------------------- ##
2627## Main body of script. ##
2628## -------------------- ##
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637
2638# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652  # Find a good install program.  We prefer a C program (faster),
2653# so one script is as good as another.  But avoid the broken or
2654# incompatible versions:
2655# SysV /etc/install, /usr/sbin/install
2656# SunOS /usr/etc/install
2657# IRIX /sbin/install
2658# AIX /bin/install
2659# AmigaOS /C/install, which installs bootblocks on floppy discs
2660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663# OS/2's system install, which has a completely different semantic
2664# ./install, which can be erroneously created by make from ./install.sh.
2665# Reject install programs that cannot install multiple files.
2666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667printf %s "checking for a BSD-compatible install... " >&6; }
2668if test -z "$INSTALL"; then
2669if test ${ac_cv_path_install+y}
2670then :
2671  printf %s "(cached) " >&6
2672else $as_nop
2673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676  IFS=$as_save_IFS
2677  case $as_dir in #(((
2678    '') as_dir=./ ;;
2679    */) ;;
2680    *) as_dir=$as_dir/ ;;
2681  esac
2682    # Account for fact that we put trailing slashes in our PATH walk.
2683case $as_dir in #((
2684  ./ | /[cC]/* | \
2685  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2687  /usr/ucb/* ) ;;
2688  *)
2689    # OSF1 and SCO ODT 3.0 have their own names for install.
2690    # Don't use installbsd from OSF since it installs stuff as root
2691    # by default.
2692    for ac_prog in ginstall scoinst install; do
2693      for ac_exec_ext in '' $ac_executable_extensions; do
2694	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2695	  if test $ac_prog = install &&
2696	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697	    # AIX install.  It has an incompatible calling convention.
2698	    :
2699	  elif test $ac_prog = install &&
2700	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701	    # program-specific install script used by HP pwplus--don't use.
2702	    :
2703	  else
2704	    rm -rf conftest.one conftest.two conftest.dir
2705	    echo one > conftest.one
2706	    echo two > conftest.two
2707	    mkdir conftest.dir
2708	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2709	      test -s conftest.one && test -s conftest.two &&
2710	      test -s conftest.dir/conftest.one &&
2711	      test -s conftest.dir/conftest.two
2712	    then
2713	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2714	      break 3
2715	    fi
2716	  fi
2717	fi
2718      done
2719    done
2720    ;;
2721esac
2722
2723  done
2724IFS=$as_save_IFS
2725
2726rm -rf conftest.one conftest.two conftest.dir
2727
2728fi
2729  if test ${ac_cv_path_install+y}; then
2730    INSTALL=$ac_cv_path_install
2731  else
2732    # As a last resort, use the slow shell script.  Don't cache a
2733    # value for INSTALL within a source directory, because that will
2734    # break other packages using the cache if that directory is
2735    # removed, or if the value is a relative name.
2736    INSTALL=$ac_install_sh
2737  fi
2738fi
2739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2740printf "%s\n" "$INSTALL" >&6; }
2741
2742# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2743# It thinks the first close brace ends the variable substitution.
2744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2745
2746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2747
2748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760# Expand $ac_aux_dir to an absolute path.
2761am_aux_dir=`cd "$ac_aux_dir" && pwd`
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768if test -n "$ac_tool_prefix"; then
2769  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772printf %s "checking for $ac_word... " >&6; }
2773if test ${ac_cv_prog_CC+y}
2774then :
2775  printf %s "(cached) " >&6
2776else $as_nop
2777  if test -n "$CC"; then
2778  ac_cv_prog_CC="$CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  case $as_dir in #(((
2785    '') as_dir=./ ;;
2786    */) ;;
2787    *) as_dir=$as_dir/ ;;
2788  esac
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
2803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804printf "%s\n" "$CC" >&6; }
2805else
2806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807printf "%s\n" "no" >&6; }
2808fi
2809
2810
2811fi
2812if test -z "$ac_cv_prog_CC"; then
2813  ac_ct_CC=$CC
2814  # Extract the first word of "gcc", so it can be a program name with args.
2815set dummy gcc; ac_word=$2
2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817printf %s "checking for $ac_word... " >&6; }
2818if test ${ac_cv_prog_ac_ct_CC+y}
2819then :
2820  printf %s "(cached) " >&6
2821else $as_nop
2822  if test -n "$ac_ct_CC"; then
2823  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  case $as_dir in #(((
2830    '') as_dir=./ ;;
2831    */) ;;
2832    *) as_dir=$as_dir/ ;;
2833  esac
2834    for ac_exec_ext in '' $ac_executable_extensions; do
2835  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2836    ac_cv_prog_ac_ct_CC="gcc"
2837    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2838    break 2
2839  fi
2840done
2841  done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847if test -n "$ac_ct_CC"; then
2848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849printf "%s\n" "$ac_ct_CC" >&6; }
2850else
2851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852printf "%s\n" "no" >&6; }
2853fi
2854
2855  if test "x$ac_ct_CC" = x; then
2856    CC=""
2857  else
2858    case $cross_compiling:$ac_tool_warned in
2859yes:)
2860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864    CC=$ac_ct_CC
2865  fi
2866else
2867  CC="$ac_cv_prog_CC"
2868fi
2869
2870if test -z "$CC"; then
2871          if test -n "$ac_tool_prefix"; then
2872    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2873set dummy ${ac_tool_prefix}cc; ac_word=$2
2874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875printf %s "checking for $ac_word... " >&6; }
2876if test ${ac_cv_prog_CC+y}
2877then :
2878  printf %s "(cached) " >&6
2879else $as_nop
2880  if test -n "$CC"; then
2881  ac_cv_prog_CC="$CC" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  case $as_dir in #(((
2888    '') as_dir=./ ;;
2889    */) ;;
2890    *) as_dir=$as_dir/ ;;
2891  esac
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_CC="${ac_tool_prefix}cc"
2895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907printf "%s\n" "$CC" >&6; }
2908else
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910printf "%s\n" "no" >&6; }
2911fi
2912
2913
2914  fi
2915fi
2916if test -z "$CC"; then
2917  # Extract the first word of "cc", so it can be a program name with args.
2918set dummy cc; ac_word=$2
2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920printf %s "checking for $ac_word... " >&6; }
2921if test ${ac_cv_prog_CC+y}
2922then :
2923  printf %s "(cached) " >&6
2924else $as_nop
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928  ac_prog_rejected=no
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  case $as_dir in #(((
2934    '') as_dir=./ ;;
2935    */) ;;
2936    *) as_dir=$as_dir/ ;;
2937  esac
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2940    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941       ac_prog_rejected=yes
2942       continue
2943     fi
2944    ac_cv_prog_CC="cc"
2945    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949  done
2950IFS=$as_save_IFS
2951
2952if test $ac_prog_rejected = yes; then
2953  # We found a bogon in the path, so make sure we never use it.
2954  set dummy $ac_cv_prog_CC
2955  shift
2956  if test $# != 0; then
2957    # We chose a different compiler from the bogus one.
2958    # However, it has the same basename, so the bogon will be chosen
2959    # first if we set CC to just the basename; use the full file name.
2960    shift
2961    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2962  fi
2963fi
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969printf "%s\n" "$CC" >&6; }
2970else
2971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972printf "%s\n" "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$CC"; then
2978  if test -n "$ac_tool_prefix"; then
2979  for ac_prog in cl.exe
2980  do
2981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984printf %s "checking for $ac_word... " >&6; }
2985if test ${ac_cv_prog_CC+y}
2986then :
2987  printf %s "(cached) " >&6
2988else $as_nop
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  case $as_dir in #(((
2997    '') as_dir=./ ;;
2998    */) ;;
2999    *) as_dir=$as_dir/ ;;
3000  esac
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013CC=$ac_cv_prog_CC
3014if test -n "$CC"; then
3015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016printf "%s\n" "$CC" >&6; }
3017else
3018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019printf "%s\n" "no" >&6; }
3020fi
3021
3022
3023    test -n "$CC" && break
3024  done
3025fi
3026if test -z "$CC"; then
3027  ac_ct_CC=$CC
3028  for ac_prog in cl.exe
3029do
3030  # Extract the first word of "$ac_prog", so it can be a program name with args.
3031set dummy $ac_prog; ac_word=$2
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033printf %s "checking for $ac_word... " >&6; }
3034if test ${ac_cv_prog_ac_ct_CC+y}
3035then :
3036  printf %s "(cached) " >&6
3037else $as_nop
3038  if test -n "$ac_ct_CC"; then
3039  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  case $as_dir in #(((
3046    '') as_dir=./ ;;
3047    */) ;;
3048    *) as_dir=$as_dir/ ;;
3049  esac
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3052    ac_cv_prog_ac_ct_CC="$ac_prog"
3053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063if test -n "$ac_ct_CC"; then
3064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065printf "%s\n" "$ac_ct_CC" >&6; }
3066else
3067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068printf "%s\n" "no" >&6; }
3069fi
3070
3071
3072  test -n "$ac_ct_CC" && break
3073done
3074
3075  if test "x$ac_ct_CC" = x; then
3076    CC=""
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    CC=$ac_ct_CC
3085  fi
3086fi
3087
3088fi
3089if test -z "$CC"; then
3090  if test -n "$ac_tool_prefix"; then
3091  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3092set dummy ${ac_tool_prefix}clang; ac_word=$2
3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094printf %s "checking for $ac_word... " >&6; }
3095if test ${ac_cv_prog_CC+y}
3096then :
3097  printf %s "(cached) " >&6
3098else $as_nop
3099  if test -n "$CC"; then
3100  ac_cv_prog_CC="$CC" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  case $as_dir in #(((
3107    '') as_dir=./ ;;
3108    */) ;;
3109    *) as_dir=$as_dir/ ;;
3110  esac
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_CC="${ac_tool_prefix}clang"
3114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123CC=$ac_cv_prog_CC
3124if test -n "$CC"; then
3125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126printf "%s\n" "$CC" >&6; }
3127else
3128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129printf "%s\n" "no" >&6; }
3130fi
3131
3132
3133fi
3134if test -z "$ac_cv_prog_CC"; then
3135  ac_ct_CC=$CC
3136  # Extract the first word of "clang", so it can be a program name with args.
3137set dummy clang; ac_word=$2
3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139printf %s "checking for $ac_word... " >&6; }
3140if test ${ac_cv_prog_ac_ct_CC+y}
3141then :
3142  printf %s "(cached) " >&6
3143else $as_nop
3144  if test -n "$ac_ct_CC"; then
3145  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  case $as_dir in #(((
3152    '') as_dir=./ ;;
3153    */) ;;
3154    *) as_dir=$as_dir/ ;;
3155  esac
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_ac_ct_CC="clang"
3159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169if test -n "$ac_ct_CC"; then
3170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171printf "%s\n" "$ac_ct_CC" >&6; }
3172else
3173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174printf "%s\n" "no" >&6; }
3175fi
3176
3177  if test "x$ac_ct_CC" = x; then
3178    CC=""
3179  else
3180    case $cross_compiling:$ac_tool_warned in
3181yes:)
3182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184ac_tool_warned=yes ;;
3185esac
3186    CC=$ac_ct_CC
3187  fi
3188else
3189  CC="$ac_cv_prog_CC"
3190fi
3191
3192fi
3193
3194
3195test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3197as_fn_error $? "no acceptable C compiler found in \$PATH
3198See \`config.log' for more details" "$LINENO" 5; }
3199
3200# Provide some information about the compiler.
3201printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202set X $ac_compile
3203ac_compiler=$2
3204for ac_option in --version -v -V -qversion -version; do
3205  { { ac_try="$ac_compiler $ac_option >&5"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211printf "%s\n" "$ac_try_echo"; } >&5
3212  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213  ac_status=$?
3214  if test -s conftest.err; then
3215    sed '10a\
3216... rest of stderr output deleted ...
3217         10q' conftest.err >conftest.er1
3218    cat conftest.er1 >&5
3219  fi
3220  rm -f conftest.er1 conftest.err
3221  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }
3223done
3224
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main (void)
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236ac_clean_files_save=$ac_clean_files
3237ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238# Try to create an executable without -o first, disregard a.out.
3239# It will help us diagnose broken compilers, and finding out an intuition
3240# of exeext.
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242printf %s "checking whether the C compiler works... " >&6; }
3243ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245# The possible output files:
3246ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248ac_rmfiles=
3249for ac_file in $ac_files
3250do
3251  case $ac_file in
3252    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254  esac
3255done
3256rm -f $ac_rmfiles
3257
3258if { { ac_try="$ac_link_default"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264printf "%s\n" "$ac_try_echo"; } >&5
3265  (eval "$ac_link_default") 2>&5
3266  ac_status=$?
3267  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268  test $ac_status = 0; }
3269then :
3270  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3273# so that the user can short-circuit this test for compilers unknown to
3274# Autoconf.
3275for ac_file in $ac_files ''
3276do
3277  test -f "$ac_file" || continue
3278  case $ac_file in
3279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280	;;
3281    [ab].out )
3282	# We found the default executable, but exeext='' is most
3283	# certainly right.
3284	break;;
3285    *.* )
3286	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3287	then :; else
3288	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289	fi
3290	# We set ac_cv_exeext here because the later test for it is not
3291	# safe: cross compilers may not add the suffix if given an `-o'
3292	# argument, so we may need to know it at that point already.
3293	# Even if this section looks crufty: it has the advantage of
3294	# actually working.
3295	break;;
3296    * )
3297	break;;
3298  esac
3299done
3300test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302else $as_nop
3303  ac_file=''
3304fi
3305if test -z "$ac_file"
3306then :
3307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308printf "%s\n" "no" >&6; }
3309printf "%s\n" "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error 77 "C compiler cannot create executables
3315See \`config.log' for more details" "$LINENO" 5; }
3316else $as_nop
3317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318printf "%s\n" "yes" >&6; }
3319fi
3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3321printf %s "checking for C compiler default output file name... " >&6; }
3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3323printf "%s\n" "$ac_file" >&6; }
3324ac_exeext=$ac_cv_exeext
3325
3326rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3327ac_clean_files=$ac_clean_files_save
3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3329printf %s "checking for suffix of executables... " >&6; }
3330if { { ac_try="$ac_link"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336printf "%s\n" "$ac_try_echo"; } >&5
3337  (eval "$ac_link") 2>&5
3338  ac_status=$?
3339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340  test $ac_status = 0; }
3341then :
3342  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3343# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3344# work properly (i.e., refer to `conftest.exe'), while it won't with
3345# `rm'.
3346for ac_file in conftest.exe conftest conftest.*; do
3347  test -f "$ac_file" || continue
3348  case $ac_file in
3349    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351	  break;;
3352    * ) break;;
3353  esac
3354done
3355else $as_nop
3356  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3359See \`config.log' for more details" "$LINENO" 5; }
3360fi
3361rm -f conftest conftest$ac_cv_exeext
3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3363printf "%s\n" "$ac_cv_exeext" >&6; }
3364
3365rm -f conftest.$ac_ext
3366EXEEXT=$ac_cv_exeext
3367ac_exeext=$EXEEXT
3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370#include <stdio.h>
3371int
3372main (void)
3373{
3374FILE *f = fopen ("conftest.out", "w");
3375 return ferror (f) || fclose (f) != 0;
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381ac_clean_files="$ac_clean_files conftest.out"
3382# Check that the compiler produces executables we can run.  If not, either
3383# the compiler is broken, or we cross compile.
3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3385printf %s "checking whether we are cross compiling... " >&6; }
3386if test "$cross_compiling" != yes; then
3387  { { ac_try="$ac_link"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393printf "%s\n" "$ac_try_echo"; } >&5
3394  (eval "$ac_link") 2>&5
3395  ac_status=$?
3396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }
3398  if { ac_try='./conftest$ac_cv_exeext'
3399  { { case "(($ac_try" in
3400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401  *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404printf "%s\n" "$ac_try_echo"; } >&5
3405  (eval "$ac_try") 2>&5
3406  ac_status=$?
3407  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408  test $ac_status = 0; }; }; then
3409    cross_compiling=no
3410  else
3411    if test "$cross_compiling" = maybe; then
3412	cross_compiling=yes
3413    else
3414	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3416as_fn_error 77 "cannot run C compiled programs.
3417If you meant to cross compile, use \`--host'.
3418See \`config.log' for more details" "$LINENO" 5; }
3419    fi
3420  fi
3421fi
3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423printf "%s\n" "$cross_compiling" >&6; }
3424
3425rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3426ac_clean_files=$ac_clean_files_save
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3428printf %s "checking for suffix of object files... " >&6; }
3429if test ${ac_cv_objext+y}
3430then :
3431  printf %s "(cached) " >&6
3432else $as_nop
3433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435
3436int
3437main (void)
3438{
3439
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444rm -f conftest.o conftest.obj
3445if { { ac_try="$ac_compile"
3446case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451printf "%s\n" "$ac_try_echo"; } >&5
3452  (eval "$ac_compile") 2>&5
3453  ac_status=$?
3454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455  test $ac_status = 0; }
3456then :
3457  for ac_file in conftest.o conftest.obj conftest.*; do
3458  test -f "$ac_file" || continue;
3459  case $ac_file in
3460    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462       break;;
3463  esac
3464done
3465else $as_nop
3466  printf "%s\n" "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3471as_fn_error $? "cannot compute suffix of object files: cannot compile
3472See \`config.log' for more details" "$LINENO" 5; }
3473fi
3474rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475fi
3476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477printf "%s\n" "$ac_cv_objext" >&6; }
3478OBJEXT=$ac_cv_objext
3479ac_objext=$OBJEXT
3480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3481printf %s "checking whether the compiler supports GNU C... " >&6; }
3482if test ${ac_cv_c_compiler_gnu+y}
3483then :
3484  printf %s "(cached) " >&6
3485else $as_nop
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main (void)
3491{
3492#ifndef __GNUC__
3493       choke me
3494#endif
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"
3501then :
3502  ac_compiler_gnu=yes
3503else $as_nop
3504  ac_compiler_gnu=no
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3507ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508
3509fi
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3512ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514if test $ac_compiler_gnu = yes; then
3515  GCC=yes
3516else
3517  GCC=
3518fi
3519ac_test_CFLAGS=${CFLAGS+y}
3520ac_save_CFLAGS=$CFLAGS
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3522printf %s "checking whether $CC accepts -g... " >&6; }
3523if test ${ac_cv_prog_cc_g+y}
3524then :
3525  printf %s "(cached) " >&6
3526else $as_nop
3527  ac_save_c_werror_flag=$ac_c_werror_flag
3528   ac_c_werror_flag=yes
3529   ac_cv_prog_cc_g=no
3530   CFLAGS="-g"
3531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533
3534int
3535main (void)
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542if ac_fn_c_try_compile "$LINENO"
3543then :
3544  ac_cv_prog_cc_g=yes
3545else $as_nop
3546  CFLAGS=""
3547      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main (void)
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558if ac_fn_c_try_compile "$LINENO"
3559then :
3560
3561else $as_nop
3562  ac_c_werror_flag=$ac_save_c_werror_flag
3563	 CFLAGS="-g"
3564	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566
3567int
3568main (void)
3569{
3570
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575if ac_fn_c_try_compile "$LINENO"
3576then :
3577  ac_cv_prog_cc_g=yes
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3588if test $ac_test_CFLAGS; 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
3603ac_prog_cc_stdc=no
3604if test x$ac_prog_cc_stdc = xno
3605then :
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3607printf %s "checking for $CC option to enable C11 features... " >&6; }
3608if test ${ac_cv_prog_cc_c11+y}
3609then :
3610  printf %s "(cached) " >&6
3611else $as_nop
3612  ac_cv_prog_cc_c11=no
3613ac_save_CC=$CC
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616$ac_c_conftest_c11_program
3617_ACEOF
3618for ac_arg in '' -std=gnu11
3619do
3620  CC="$ac_save_CC $ac_arg"
3621  if ac_fn_c_try_compile "$LINENO"
3622then :
3623  ac_cv_prog_cc_c11=$ac_arg
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.beam
3626  test "x$ac_cv_prog_cc_c11" != "xno" && break
3627done
3628rm -f conftest.$ac_ext
3629CC=$ac_save_CC
3630fi
3631
3632if test "x$ac_cv_prog_cc_c11" = xno
3633then :
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635printf "%s\n" "unsupported" >&6; }
3636else $as_nop
3637  if test "x$ac_cv_prog_cc_c11" = x
3638then :
3639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3640printf "%s\n" "none needed" >&6; }
3641else $as_nop
3642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3643printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3644     CC="$CC $ac_cv_prog_cc_c11"
3645fi
3646  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3647  ac_prog_cc_stdc=c11
3648fi
3649fi
3650if test x$ac_prog_cc_stdc = xno
3651then :
3652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3653printf %s "checking for $CC option to enable C99 features... " >&6; }
3654if test ${ac_cv_prog_cc_c99+y}
3655then :
3656  printf %s "(cached) " >&6
3657else $as_nop
3658  ac_cv_prog_cc_c99=no
3659ac_save_CC=$CC
3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662$ac_c_conftest_c99_program
3663_ACEOF
3664for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3665do
3666  CC="$ac_save_CC $ac_arg"
3667  if ac_fn_c_try_compile "$LINENO"
3668then :
3669  ac_cv_prog_cc_c99=$ac_arg
3670fi
3671rm -f core conftest.err conftest.$ac_objext conftest.beam
3672  test "x$ac_cv_prog_cc_c99" != "xno" && break
3673done
3674rm -f conftest.$ac_ext
3675CC=$ac_save_CC
3676fi
3677
3678if test "x$ac_cv_prog_cc_c99" = xno
3679then :
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3681printf "%s\n" "unsupported" >&6; }
3682else $as_nop
3683  if test "x$ac_cv_prog_cc_c99" = x
3684then :
3685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686printf "%s\n" "none needed" >&6; }
3687else $as_nop
3688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3689printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3690     CC="$CC $ac_cv_prog_cc_c99"
3691fi
3692  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3693  ac_prog_cc_stdc=c99
3694fi
3695fi
3696if test x$ac_prog_cc_stdc = xno
3697then :
3698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3699printf %s "checking for $CC option to enable C89 features... " >&6; }
3700if test ${ac_cv_prog_cc_c89+y}
3701then :
3702  printf %s "(cached) " >&6
3703else $as_nop
3704  ac_cv_prog_cc_c89=no
3705ac_save_CC=$CC
3706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708$ac_c_conftest_c89_program
3709_ACEOF
3710for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"
3714then :
3715  ac_cv_prog_cc_c89=$ac_arg
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.beam
3718  test "x$ac_cv_prog_cc_c89" != "xno" && break
3719done
3720rm -f conftest.$ac_ext
3721CC=$ac_save_CC
3722fi
3723
3724if test "x$ac_cv_prog_cc_c89" = xno
3725then :
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727printf "%s\n" "unsupported" >&6; }
3728else $as_nop
3729  if test "x$ac_cv_prog_cc_c89" = x
3730then :
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732printf "%s\n" "none needed" >&6; }
3733else $as_nop
3734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3736     CC="$CC $ac_cv_prog_cc_c89"
3737fi
3738  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3739  ac_prog_cc_stdc=c89
3740fi
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750  ac_ext=c
3751ac_cpp='$CPP $CPPFLAGS'
3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3756printf %s "checking whether $CC understands -c and -o together... " >&6; }
3757if test ${am_cv_prog_cc_c_o+y}
3758then :
3759  printf %s "(cached) " >&6
3760else $as_nop
3761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main (void)
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772  # Make sure it works both with $CC and with simple cc.
3773  # Following AC_PROG_CC_C_O, we do the test twice because some
3774  # compilers refuse to overwrite an existing .o file with -o,
3775  # though they will create one.
3776  am_cv_prog_cc_c_o=yes
3777  for am_i in 1 2; do
3778    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3779   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } \
3783         && test -f conftest2.$ac_objext; then
3784      : OK
3785    else
3786      am_cv_prog_cc_c_o=no
3787      break
3788    fi
3789  done
3790  rm -f core conftest*
3791  unset am_i
3792fi
3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3794printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3795if test "$am_cv_prog_cc_c_o" != yes; then
3796   # Losing compiler, so override with the script.
3797   # FIXME: It is wrong to rewrite CC.
3798   # But if we don't then we get into trouble of one sort or another.
3799   # A longer-term fix would be to have automake use am__CC in this case,
3800   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3801   CC="$am_aux_dir/compile $CC"
3802fi
3803ac_ext=c
3804ac_cpp='$CPP $CPPFLAGS'
3805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808
3809
3810
3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3812printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3813if test ${ac_cv_c_undeclared_builtin_options+y}
3814then :
3815  printf %s "(cached) " >&6
3816else $as_nop
3817  ac_save_CFLAGS=$CFLAGS
3818   ac_cv_c_undeclared_builtin_options='cannot detect'
3819   for ac_arg in '' -fno-builtin; do
3820     CFLAGS="$ac_save_CFLAGS $ac_arg"
3821     # This test program should *not* compile successfully.
3822     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824
3825int
3826main (void)
3827{
3828(void) strchr;
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833if ac_fn_c_try_compile "$LINENO"
3834then :
3835
3836else $as_nop
3837  # This test program should compile successfully.
3838        # No library function is consistently available on
3839        # freestanding implementations, so test against a dummy
3840        # declaration.  Include always-available headers on the
3841        # off chance that they somehow elicit warnings.
3842        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844#include <float.h>
3845#include <limits.h>
3846#include <stdarg.h>
3847#include <stddef.h>
3848extern void ac_decl (int, char *);
3849
3850int
3851main (void)
3852{
3853(void) ac_decl (0, (char *) 0);
3854  (void) ac_decl;
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"
3861then :
3862  if test x"$ac_arg" = x
3863then :
3864  ac_cv_c_undeclared_builtin_options='none needed'
3865else $as_nop
3866  ac_cv_c_undeclared_builtin_options=$ac_arg
3867fi
3868          break
3869fi
3870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3871fi
3872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873    done
3874    CFLAGS=$ac_save_CFLAGS
3875
3876fi
3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3878printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3879  case $ac_cv_c_undeclared_builtin_options in #(
3880  'cannot detect') :
3881    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3883as_fn_error $? "cannot make $CC report undeclared builtins
3884See \`config.log' for more details" "$LINENO" 5; } ;; #(
3885  'none needed') :
3886    ac_c_undeclared_builtin_options='' ;; #(
3887  *) :
3888    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3889esac
3890
3891ac_header= ac_cache=
3892for ac_item in $ac_header_c_list
3893do
3894  if test $ac_cache; then
3895    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3896    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3897      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3898    fi
3899    ac_header= ac_cache=
3900  elif test $ac_header; then
3901    ac_cache=$ac_item
3902  else
3903    ac_header=$ac_item
3904  fi
3905done
3906
3907
3908
3909
3910
3911
3912
3913
3914if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3915then :
3916
3917printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3918
3919fi
3920
3921
3922
3923
3924ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3925if test "x$ac_cv_have_decl___clang__" = xyes
3926then :
3927  CLANGCC="yes"
3928else $as_nop
3929  CLANGCC="no"
3930fi
3931ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3932if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
3933then :
3934  INTELCC="yes"
3935else $as_nop
3936  INTELCC="no"
3937fi
3938ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3939if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
3940then :
3941  SUNCC="yes"
3942else $as_nop
3943  SUNCC="no"
3944fi
3945
3946
3947
3948
3949
3950
3951
3952
3953if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3954	if test -n "$ac_tool_prefix"; then
3955  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3956set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958printf %s "checking for $ac_word... " >&6; }
3959if test ${ac_cv_path_PKG_CONFIG+y}
3960then :
3961  printf %s "(cached) " >&6
3962else $as_nop
3963  case $PKG_CONFIG in
3964  [\\/]* | ?:[\\/]*)
3965  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3966  ;;
3967  *)
3968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971  IFS=$as_save_IFS
3972  case $as_dir in #(((
3973    '') as_dir=./ ;;
3974    */) ;;
3975    *) as_dir=$as_dir/ ;;
3976  esac
3977    for ac_exec_ext in '' $ac_executable_extensions; do
3978  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3979    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3980    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3981    break 2
3982  fi
3983done
3984  done
3985IFS=$as_save_IFS
3986
3987  ;;
3988esac
3989fi
3990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3991if test -n "$PKG_CONFIG"; then
3992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3993printf "%s\n" "$PKG_CONFIG" >&6; }
3994else
3995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996printf "%s\n" "no" >&6; }
3997fi
3998
3999
4000fi
4001if test -z "$ac_cv_path_PKG_CONFIG"; then
4002  ac_pt_PKG_CONFIG=$PKG_CONFIG
4003  # Extract the first word of "pkg-config", so it can be a program name with args.
4004set dummy pkg-config; ac_word=$2
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006printf %s "checking for $ac_word... " >&6; }
4007if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4008then :
4009  printf %s "(cached) " >&6
4010else $as_nop
4011  case $ac_pt_PKG_CONFIG in
4012  [\\/]* | ?:[\\/]*)
4013  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4014  ;;
4015  *)
4016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019  IFS=$as_save_IFS
4020  case $as_dir in #(((
4021    '') as_dir=./ ;;
4022    */) ;;
4023    *) as_dir=$as_dir/ ;;
4024  esac
4025    for ac_exec_ext in '' $ac_executable_extensions; do
4026  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4027    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029    break 2
4030  fi
4031done
4032  done
4033IFS=$as_save_IFS
4034
4035  ;;
4036esac
4037fi
4038ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4039if test -n "$ac_pt_PKG_CONFIG"; then
4040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4041printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4042else
4043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044printf "%s\n" "no" >&6; }
4045fi
4046
4047  if test "x$ac_pt_PKG_CONFIG" = x; then
4048    PKG_CONFIG=""
4049  else
4050    case $cross_compiling:$ac_tool_warned in
4051yes:)
4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4054ac_tool_warned=yes ;;
4055esac
4056    PKG_CONFIG=$ac_pt_PKG_CONFIG
4057  fi
4058else
4059  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4060fi
4061
4062fi
4063if test -n "$PKG_CONFIG"; then
4064	_pkg_min_version=0.9.0
4065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4066printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4067	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069printf "%s\n" "yes" >&6; }
4070	else
4071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072printf "%s\n" "no" >&6; }
4073		PKG_CONFIG=""
4074	fi
4075fi
4076
4077
4078  # Make sure we can run config.sub.
4079$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4080  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4081
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4083printf %s "checking build system type... " >&6; }
4084if test ${ac_cv_build+y}
4085then :
4086  printf %s "(cached) " >&6
4087else $as_nop
4088  ac_build_alias=$build_alias
4089test "x$ac_build_alias" = x &&
4090  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4091test "x$ac_build_alias" = x &&
4092  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4093ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4094  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4095
4096fi
4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4098printf "%s\n" "$ac_cv_build" >&6; }
4099case $ac_cv_build in
4100*-*-*) ;;
4101*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4102esac
4103build=$ac_cv_build
4104ac_save_IFS=$IFS; IFS='-'
4105set x $ac_cv_build
4106shift
4107build_cpu=$1
4108build_vendor=$2
4109shift; shift
4110# Remember, the first character of IFS is used to create $*,
4111# except with old shells:
4112build_os=$*
4113IFS=$ac_save_IFS
4114case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4115
4116
4117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4118printf %s "checking host system type... " >&6; }
4119if test ${ac_cv_host+y}
4120then :
4121  printf %s "(cached) " >&6
4122else $as_nop
4123  if test "x$host_alias" = x; then
4124  ac_cv_host=$ac_cv_build
4125else
4126  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4127    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4128fi
4129
4130fi
4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4132printf "%s\n" "$ac_cv_host" >&6; }
4133case $ac_cv_host in
4134*-*-*) ;;
4135*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4136esac
4137host=$ac_cv_host
4138ac_save_IFS=$IFS; IFS='-'
4139set x $ac_cv_host
4140shift
4141host_cpu=$1
4142host_vendor=$2
4143shift; shift
4144# Remember, the first character of IFS is used to create $*,
4145# except with old shells:
4146host_os=$*
4147IFS=$ac_save_IFS
4148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4149
4150
4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4152printf %s "checking for a sed that does not truncate output... " >&6; }
4153if test ${ac_cv_path_SED+y}
4154then :
4155  printf %s "(cached) " >&6
4156else $as_nop
4157            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4158     for ac_i in 1 2 3 4 5 6 7; do
4159       ac_script="$ac_script$as_nl$ac_script"
4160     done
4161     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4162     { ac_script=; unset ac_script;}
4163     if test -z "$SED"; then
4164  ac_path_SED_found=false
4165  # Loop through the user's path and test for each of PROGNAME-LIST
4166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  case $as_dir in #(((
4171    '') as_dir=./ ;;
4172    */) ;;
4173    *) as_dir=$as_dir/ ;;
4174  esac
4175    for ac_prog in sed gsed
4176   do
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4179      as_fn_executable_p "$ac_path_SED" || continue
4180# Check for GNU ac_path_SED and select it if it is found.
4181  # Check for GNU $ac_path_SED
4182case `"$ac_path_SED" --version 2>&1` in
4183*GNU*)
4184  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4185*)
4186  ac_count=0
4187  printf %s 0123456789 >"conftest.in"
4188  while :
4189  do
4190    cat "conftest.in" "conftest.in" >"conftest.tmp"
4191    mv "conftest.tmp" "conftest.in"
4192    cp "conftest.in" "conftest.nl"
4193    printf "%s\n" '' >> "conftest.nl"
4194    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196    as_fn_arith $ac_count + 1 && ac_count=$as_val
4197    if test $ac_count -gt ${ac_path_SED_max-0}; then
4198      # Best one so far, save it but keep looking for a better one
4199      ac_cv_path_SED="$ac_path_SED"
4200      ac_path_SED_max=$ac_count
4201    fi
4202    # 10*(2^10) chars as input seems more than enough
4203    test $ac_count -gt 10 && break
4204  done
4205  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206esac
4207
4208      $ac_path_SED_found && break 3
4209    done
4210  done
4211  done
4212IFS=$as_save_IFS
4213  if test -z "$ac_cv_path_SED"; then
4214    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4215  fi
4216else
4217  ac_cv_path_SED=$SED
4218fi
4219
4220fi
4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4222printf "%s\n" "$ac_cv_path_SED" >&6; }
4223 SED="$ac_cv_path_SED"
4224  rm -f conftest.sed
4225
4226
4227
4228
4229
4230
4231# Check whether --enable-selective-werror was given.
4232if test ${enable_selective_werror+y}
4233then :
4234  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4235else $as_nop
4236  SELECTIVE_WERROR=yes
4237fi
4238
4239
4240
4241
4242
4243# -v is too short to test reliably with XORG_TESTSET_CFLAG
4244if test "x$SUNCC" = "xyes"; then
4245    BASE_CFLAGS="-v"
4246else
4247    BASE_CFLAGS=""
4248fi
4249
4250# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264xorg_testset_save_CFLAGS="$CFLAGS"
4265
4266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4270if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4271then :
4272  printf %s "(cached) " >&6
4273else $as_nop
4274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276int i;
4277_ACEOF
4278if ac_fn_c_try_compile "$LINENO"
4279then :
4280  xorg_cv_cc_flag_unknown_warning_option=yes
4281else $as_nop
4282  xorg_cv_cc_flag_unknown_warning_option=no
4283fi
4284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4285fi
4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4289	CFLAGS="$xorg_testset_save_CFLAGS"
4290fi
4291
4292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4295	fi
4296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4299if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4300then :
4301  printf %s "(cached) " >&6
4302else $as_nop
4303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305int i;
4306_ACEOF
4307if ac_fn_c_try_compile "$LINENO"
4308then :
4309  xorg_cv_cc_flag_unused_command_line_argument=yes
4310else $as_nop
4311  xorg_cv_cc_flag_unused_command_line_argument=no
4312fi
4313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4314fi
4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4318	CFLAGS="$xorg_testset_save_CFLAGS"
4319fi
4320
4321found="no"
4322
4323	if test $found = "no" ; then
4324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4326		fi
4327
4328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4330		fi
4331
4332		CFLAGS="$CFLAGS -Wall"
4333
4334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4335printf %s "checking if $CC supports -Wall... " >&6; }
4336		cacheid=xorg_cv_cc_flag__Wall
4337		if eval test \${$cacheid+y}
4338then :
4339  printf %s "(cached) " >&6
4340else $as_nop
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343int i;
4344int
4345main (void)
4346{
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352if ac_fn_c_try_link "$LINENO"
4353then :
4354  eval $cacheid=yes
4355else $as_nop
4356  eval $cacheid=no
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.beam \
4359    conftest$ac_exeext conftest.$ac_ext
4360fi
4361
4362
4363		CFLAGS="$xorg_testset_save_CFLAGS"
4364
4365		eval supported=\$$cacheid
4366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4367printf "%s\n" "$supported" >&6; }
4368		if test "$supported" = "yes" ; then
4369			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4370			found="yes"
4371		fi
4372	fi
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388xorg_testset_save_CFLAGS="$CFLAGS"
4389
4390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4394if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4395then :
4396  printf %s "(cached) " >&6
4397else $as_nop
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400int i;
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"
4403then :
4404  xorg_cv_cc_flag_unknown_warning_option=yes
4405else $as_nop
4406  xorg_cv_cc_flag_unknown_warning_option=no
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4409fi
4410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4413	CFLAGS="$xorg_testset_save_CFLAGS"
4414fi
4415
4416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4419	fi
4420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4423if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4424then :
4425  printf %s "(cached) " >&6
4426else $as_nop
4427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h.  */
4429int i;
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"
4432then :
4433  xorg_cv_cc_flag_unused_command_line_argument=yes
4434else $as_nop
4435  xorg_cv_cc_flag_unused_command_line_argument=no
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4438fi
4439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4441	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4442	CFLAGS="$xorg_testset_save_CFLAGS"
4443fi
4444
4445found="no"
4446
4447	if test $found = "no" ; then
4448		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4449			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4450		fi
4451
4452		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4453			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4454		fi
4455
4456		CFLAGS="$CFLAGS -Wpointer-arith"
4457
4458		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4459printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
4460		cacheid=xorg_cv_cc_flag__Wpointer_arith
4461		if eval test \${$cacheid+y}
4462then :
4463  printf %s "(cached) " >&6
4464else $as_nop
4465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467int i;
4468int
4469main (void)
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476if ac_fn_c_try_link "$LINENO"
4477then :
4478  eval $cacheid=yes
4479else $as_nop
4480  eval $cacheid=no
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.beam \
4483    conftest$ac_exeext conftest.$ac_ext
4484fi
4485
4486
4487		CFLAGS="$xorg_testset_save_CFLAGS"
4488
4489		eval supported=\$$cacheid
4490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4491printf "%s\n" "$supported" >&6; }
4492		if test "$supported" = "yes" ; then
4493			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4494			found="yes"
4495		fi
4496	fi
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512xorg_testset_save_CFLAGS="$CFLAGS"
4513
4514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4518if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4519then :
4520  printf %s "(cached) " >&6
4521else $as_nop
4522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h.  */
4524int i;
4525_ACEOF
4526if ac_fn_c_try_compile "$LINENO"
4527then :
4528  xorg_cv_cc_flag_unknown_warning_option=yes
4529else $as_nop
4530  xorg_cv_cc_flag_unknown_warning_option=no
4531fi
4532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4533fi
4534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4537	CFLAGS="$xorg_testset_save_CFLAGS"
4538fi
4539
4540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4543	fi
4544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4545	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4547if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4548then :
4549  printf %s "(cached) " >&6
4550else $as_nop
4551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553int i;
4554_ACEOF
4555if ac_fn_c_try_compile "$LINENO"
4556then :
4557  xorg_cv_cc_flag_unused_command_line_argument=yes
4558else $as_nop
4559  xorg_cv_cc_flag_unused_command_line_argument=no
4560fi
4561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4562fi
4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4566	CFLAGS="$xorg_testset_save_CFLAGS"
4567fi
4568
4569found="no"
4570
4571	if test $found = "no" ; then
4572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4574		fi
4575
4576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4578		fi
4579
4580		CFLAGS="$CFLAGS -Wmissing-declarations"
4581
4582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4583printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
4584		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4585		if eval test \${$cacheid+y}
4586then :
4587  printf %s "(cached) " >&6
4588else $as_nop
4589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591int i;
4592int
4593main (void)
4594{
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_link "$LINENO"
4601then :
4602  eval $cacheid=yes
4603else $as_nop
4604  eval $cacheid=no
4605fi
4606rm -f core conftest.err conftest.$ac_objext conftest.beam \
4607    conftest$ac_exeext conftest.$ac_ext
4608fi
4609
4610
4611		CFLAGS="$xorg_testset_save_CFLAGS"
4612
4613		eval supported=\$$cacheid
4614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4615printf "%s\n" "$supported" >&6; }
4616		if test "$supported" = "yes" ; then
4617			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4618			found="yes"
4619		fi
4620	fi
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636xorg_testset_save_CFLAGS="$CFLAGS"
4637
4638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4643then :
4644  printf %s "(cached) " >&6
4645else $as_nop
4646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h.  */
4648int i;
4649_ACEOF
4650if ac_fn_c_try_compile "$LINENO"
4651then :
4652  xorg_cv_cc_flag_unknown_warning_option=yes
4653else $as_nop
4654  xorg_cv_cc_flag_unknown_warning_option=no
4655fi
4656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4657fi
4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4661	CFLAGS="$xorg_testset_save_CFLAGS"
4662fi
4663
4664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4667	fi
4668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4672then :
4673  printf %s "(cached) " >&6
4674else $as_nop
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677int i;
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"
4680then :
4681  xorg_cv_cc_flag_unused_command_line_argument=yes
4682else $as_nop
4683  xorg_cv_cc_flag_unused_command_line_argument=no
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4686fi
4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4690	CFLAGS="$xorg_testset_save_CFLAGS"
4691fi
4692
4693found="no"
4694
4695	if test $found = "no" ; then
4696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4698		fi
4699
4700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4702		fi
4703
4704		CFLAGS="$CFLAGS -Wformat=2"
4705
4706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4707printf %s "checking if $CC supports -Wformat=2... " >&6; }
4708		cacheid=xorg_cv_cc_flag__Wformat_2
4709		if eval test \${$cacheid+y}
4710then :
4711  printf %s "(cached) " >&6
4712else $as_nop
4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715int i;
4716int
4717main (void)
4718{
4719
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724if ac_fn_c_try_link "$LINENO"
4725then :
4726  eval $cacheid=yes
4727else $as_nop
4728  eval $cacheid=no
4729fi
4730rm -f core conftest.err conftest.$ac_objext conftest.beam \
4731    conftest$ac_exeext conftest.$ac_ext
4732fi
4733
4734
4735		CFLAGS="$xorg_testset_save_CFLAGS"
4736
4737		eval supported=\$$cacheid
4738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4739printf "%s\n" "$supported" >&6; }
4740		if test "$supported" = "yes" ; then
4741			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4742			found="yes"
4743		fi
4744	fi
4745
4746	if test $found = "no" ; then
4747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749		fi
4750
4751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4753		fi
4754
4755		CFLAGS="$CFLAGS -Wformat"
4756
4757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4758printf %s "checking if $CC supports -Wformat... " >&6; }
4759		cacheid=xorg_cv_cc_flag__Wformat
4760		if eval test \${$cacheid+y}
4761then :
4762  printf %s "(cached) " >&6
4763else $as_nop
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766int i;
4767int
4768main (void)
4769{
4770
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775if ac_fn_c_try_link "$LINENO"
4776then :
4777  eval $cacheid=yes
4778else $as_nop
4779  eval $cacheid=no
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.beam \
4782    conftest$ac_exeext conftest.$ac_ext
4783fi
4784
4785
4786		CFLAGS="$xorg_testset_save_CFLAGS"
4787
4788		eval supported=\$$cacheid
4789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4790printf "%s\n" "$supported" >&6; }
4791		if test "$supported" = "yes" ; then
4792			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4793			found="yes"
4794		fi
4795	fi
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813xorg_testset_save_CFLAGS="$CFLAGS"
4814
4815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4820then :
4821  printf %s "(cached) " >&6
4822else $as_nop
4823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h.  */
4825int i;
4826_ACEOF
4827if ac_fn_c_try_compile "$LINENO"
4828then :
4829  xorg_cv_cc_flag_unknown_warning_option=yes
4830else $as_nop
4831  xorg_cv_cc_flag_unknown_warning_option=no
4832fi
4833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4834fi
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4838	CFLAGS="$xorg_testset_save_CFLAGS"
4839fi
4840
4841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4844	fi
4845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4848if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4849then :
4850  printf %s "(cached) " >&6
4851else $as_nop
4852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854int i;
4855_ACEOF
4856if ac_fn_c_try_compile "$LINENO"
4857then :
4858  xorg_cv_cc_flag_unused_command_line_argument=yes
4859else $as_nop
4860  xorg_cv_cc_flag_unused_command_line_argument=no
4861fi
4862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4863fi
4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4867	CFLAGS="$xorg_testset_save_CFLAGS"
4868fi
4869
4870found="no"
4871
4872	if test $found = "no" ; then
4873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4875		fi
4876
4877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4879		fi
4880
4881		CFLAGS="$CFLAGS -Wstrict-prototypes"
4882
4883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4884printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
4885		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4886		if eval test \${$cacheid+y}
4887then :
4888  printf %s "(cached) " >&6
4889else $as_nop
4890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892int i;
4893int
4894main (void)
4895{
4896
4897  ;
4898  return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_link "$LINENO"
4902then :
4903  eval $cacheid=yes
4904else $as_nop
4905  eval $cacheid=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.beam \
4908    conftest$ac_exeext conftest.$ac_ext
4909fi
4910
4911
4912		CFLAGS="$xorg_testset_save_CFLAGS"
4913
4914		eval supported=\$$cacheid
4915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4916printf "%s\n" "$supported" >&6; }
4917		if test "$supported" = "yes" ; then
4918			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4919			found="yes"
4920		fi
4921	fi
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937xorg_testset_save_CFLAGS="$CFLAGS"
4938
4939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4944then :
4945  printf %s "(cached) " >&6
4946else $as_nop
4947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h.  */
4949int i;
4950_ACEOF
4951if ac_fn_c_try_compile "$LINENO"
4952then :
4953  xorg_cv_cc_flag_unknown_warning_option=yes
4954else $as_nop
4955  xorg_cv_cc_flag_unknown_warning_option=no
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958fi
4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4962	CFLAGS="$xorg_testset_save_CFLAGS"
4963fi
4964
4965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968	fi
4969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4973then :
4974  printf %s "(cached) " >&6
4975else $as_nop
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978int i;
4979_ACEOF
4980if ac_fn_c_try_compile "$LINENO"
4981then :
4982  xorg_cv_cc_flag_unused_command_line_argument=yes
4983else $as_nop
4984  xorg_cv_cc_flag_unused_command_line_argument=no
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4987fi
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4991	CFLAGS="$xorg_testset_save_CFLAGS"
4992fi
4993
4994found="no"
4995
4996	if test $found = "no" ; then
4997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999		fi
5000
5001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5003		fi
5004
5005		CFLAGS="$CFLAGS -Wmissing-prototypes"
5006
5007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5008printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5009		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5010		if eval test \${$cacheid+y}
5011then :
5012  printf %s "(cached) " >&6
5013else $as_nop
5014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015/* end confdefs.h.  */
5016int i;
5017int
5018main (void)
5019{
5020
5021  ;
5022  return 0;
5023}
5024_ACEOF
5025if ac_fn_c_try_link "$LINENO"
5026then :
5027  eval $cacheid=yes
5028else $as_nop
5029  eval $cacheid=no
5030fi
5031rm -f core conftest.err conftest.$ac_objext conftest.beam \
5032    conftest$ac_exeext conftest.$ac_ext
5033fi
5034
5035
5036		CFLAGS="$xorg_testset_save_CFLAGS"
5037
5038		eval supported=\$$cacheid
5039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5040printf "%s\n" "$supported" >&6; }
5041		if test "$supported" = "yes" ; then
5042			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5043			found="yes"
5044		fi
5045	fi
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061xorg_testset_save_CFLAGS="$CFLAGS"
5062
5063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5068then :
5069  printf %s "(cached) " >&6
5070else $as_nop
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074_ACEOF
5075if ac_fn_c_try_compile "$LINENO"
5076then :
5077  xorg_cv_cc_flag_unknown_warning_option=yes
5078else $as_nop
5079  xorg_cv_cc_flag_unknown_warning_option=no
5080fi
5081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5082fi
5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5086	CFLAGS="$xorg_testset_save_CFLAGS"
5087fi
5088
5089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092	fi
5093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5097then :
5098  printf %s "(cached) " >&6
5099else $as_nop
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102int i;
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"
5105then :
5106  xorg_cv_cc_flag_unused_command_line_argument=yes
5107else $as_nop
5108  xorg_cv_cc_flag_unused_command_line_argument=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5111fi
5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5115	CFLAGS="$xorg_testset_save_CFLAGS"
5116fi
5117
5118found="no"
5119
5120	if test $found = "no" ; then
5121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123		fi
5124
5125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127		fi
5128
5129		CFLAGS="$CFLAGS -Wnested-externs"
5130
5131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5132printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5133		cacheid=xorg_cv_cc_flag__Wnested_externs
5134		if eval test \${$cacheid+y}
5135then :
5136  printf %s "(cached) " >&6
5137else $as_nop
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140int i;
5141int
5142main (void)
5143{
5144
5145  ;
5146  return 0;
5147}
5148_ACEOF
5149if ac_fn_c_try_link "$LINENO"
5150then :
5151  eval $cacheid=yes
5152else $as_nop
5153  eval $cacheid=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.beam \
5156    conftest$ac_exeext conftest.$ac_ext
5157fi
5158
5159
5160		CFLAGS="$xorg_testset_save_CFLAGS"
5161
5162		eval supported=\$$cacheid
5163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5164printf "%s\n" "$supported" >&6; }
5165		if test "$supported" = "yes" ; then
5166			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5167			found="yes"
5168		fi
5169	fi
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185xorg_testset_save_CFLAGS="$CFLAGS"
5186
5187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5191if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5192then :
5193  printf %s "(cached) " >&6
5194else $as_nop
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197int i;
5198_ACEOF
5199if ac_fn_c_try_compile "$LINENO"
5200then :
5201  xorg_cv_cc_flag_unknown_warning_option=yes
5202else $as_nop
5203  xorg_cv_cc_flag_unknown_warning_option=no
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5206fi
5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5210	CFLAGS="$xorg_testset_save_CFLAGS"
5211fi
5212
5213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216	fi
5217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5221then :
5222  printf %s "(cached) " >&6
5223else $as_nop
5224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226int i;
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"
5229then :
5230  xorg_cv_cc_flag_unused_command_line_argument=yes
5231else $as_nop
5232  xorg_cv_cc_flag_unused_command_line_argument=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235fi
5236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5239	CFLAGS="$xorg_testset_save_CFLAGS"
5240fi
5241
5242found="no"
5243
5244	if test $found = "no" ; then
5245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247		fi
5248
5249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251		fi
5252
5253		CFLAGS="$CFLAGS -Wbad-function-cast"
5254
5255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5256printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5257		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5258		if eval test \${$cacheid+y}
5259then :
5260  printf %s "(cached) " >&6
5261else $as_nop
5262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h.  */
5264int i;
5265int
5266main (void)
5267{
5268
5269  ;
5270  return 0;
5271}
5272_ACEOF
5273if ac_fn_c_try_link "$LINENO"
5274then :
5275  eval $cacheid=yes
5276else $as_nop
5277  eval $cacheid=no
5278fi
5279rm -f core conftest.err conftest.$ac_objext conftest.beam \
5280    conftest$ac_exeext conftest.$ac_ext
5281fi
5282
5283
5284		CFLAGS="$xorg_testset_save_CFLAGS"
5285
5286		eval supported=\$$cacheid
5287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5288printf "%s\n" "$supported" >&6; }
5289		if test "$supported" = "yes" ; then
5290			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5291			found="yes"
5292		fi
5293	fi
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309xorg_testset_save_CFLAGS="$CFLAGS"
5310
5311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5315if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5316then :
5317  printf %s "(cached) " >&6
5318else $as_nop
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322_ACEOF
5323if ac_fn_c_try_compile "$LINENO"
5324then :
5325  xorg_cv_cc_flag_unknown_warning_option=yes
5326else $as_nop
5327  xorg_cv_cc_flag_unknown_warning_option=no
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5330fi
5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5334	CFLAGS="$xorg_testset_save_CFLAGS"
5335fi
5336
5337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340	fi
5341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5344if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5345then :
5346  printf %s "(cached) " >&6
5347else $as_nop
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"
5353then :
5354  xorg_cv_cc_flag_unused_command_line_argument=yes
5355else $as_nop
5356  xorg_cv_cc_flag_unused_command_line_argument=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359fi
5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5363	CFLAGS="$xorg_testset_save_CFLAGS"
5364fi
5365
5366found="no"
5367
5368	if test $found = "no" ; then
5369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5371		fi
5372
5373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5375		fi
5376
5377		CFLAGS="$CFLAGS -Wold-style-definition"
5378
5379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5380printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5381		cacheid=xorg_cv_cc_flag__Wold_style_definition
5382		if eval test \${$cacheid+y}
5383then :
5384  printf %s "(cached) " >&6
5385else $as_nop
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388int i;
5389int
5390main (void)
5391{
5392
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_link "$LINENO"
5398then :
5399  eval $cacheid=yes
5400else $as_nop
5401  eval $cacheid=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.beam \
5404    conftest$ac_exeext conftest.$ac_ext
5405fi
5406
5407
5408		CFLAGS="$xorg_testset_save_CFLAGS"
5409
5410		eval supported=\$$cacheid
5411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412printf "%s\n" "$supported" >&6; }
5413		if test "$supported" = "yes" ; then
5414			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5415			found="yes"
5416		fi
5417	fi
5418
5419	if test $found = "no" ; then
5420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422		fi
5423
5424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426		fi
5427
5428		CFLAGS="$CFLAGS -fd"
5429
5430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5431printf %s "checking if $CC supports -fd... " >&6; }
5432		cacheid=xorg_cv_cc_flag__fd
5433		if eval test \${$cacheid+y}
5434then :
5435  printf %s "(cached) " >&6
5436else $as_nop
5437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439int i;
5440int
5441main (void)
5442{
5443
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_link "$LINENO"
5449then :
5450  eval $cacheid=yes
5451else $as_nop
5452  eval $cacheid=no
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.beam \
5455    conftest$ac_exeext conftest.$ac_ext
5456fi
5457
5458
5459		CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461		eval supported=\$$cacheid
5462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463printf "%s\n" "$supported" >&6; }
5464		if test "$supported" = "yes" ; then
5465			BASE_CFLAGS="$BASE_CFLAGS -fd"
5466			found="yes"
5467		fi
5468	fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484xorg_testset_save_CFLAGS="$CFLAGS"
5485
5486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5491then :
5492  printf %s "(cached) " >&6
5493else $as_nop
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"
5499then :
5500  xorg_cv_cc_flag_unknown_warning_option=yes
5501else $as_nop
5502  xorg_cv_cc_flag_unknown_warning_option=no
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5505fi
5506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5509	CFLAGS="$xorg_testset_save_CFLAGS"
5510fi
5511
5512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515	fi
5516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5520then :
5521  printf %s "(cached) " >&6
5522else $as_nop
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"
5528then :
5529  xorg_cv_cc_flag_unused_command_line_argument=yes
5530else $as_nop
5531  xorg_cv_cc_flag_unused_command_line_argument=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5534fi
5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541found="no"
5542
5543	if test $found = "no" ; then
5544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546		fi
5547
5548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550		fi
5551
5552		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5553
5554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5555printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5556		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5557		if eval test \${$cacheid+y}
5558then :
5559  printf %s "(cached) " >&6
5560else $as_nop
5561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563int i;
5564int
5565main (void)
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_link "$LINENO"
5573then :
5574  eval $cacheid=yes
5575else $as_nop
5576  eval $cacheid=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579    conftest$ac_exeext conftest.$ac_ext
5580fi
5581
5582
5583		CFLAGS="$xorg_testset_save_CFLAGS"
5584
5585		eval supported=\$$cacheid
5586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5587printf "%s\n" "$supported" >&6; }
5588		if test "$supported" = "yes" ; then
5589			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5590			found="yes"
5591		fi
5592	fi
5593
5594
5595
5596
5597
5598# This chunk adds additional warnings that could catch undesired effects.
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612xorg_testset_save_CFLAGS="$CFLAGS"
5613
5614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5619then :
5620  printf %s "(cached) " >&6
5621else $as_nop
5622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624int i;
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"
5627then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else $as_nop
5630  xorg_cv_cc_flag_unknown_warning_option=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633fi
5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5648then :
5649  printf %s "(cached) " >&6
5650else $as_nop
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"
5656then :
5657  xorg_cv_cc_flag_unused_command_line_argument=yes
5658else $as_nop
5659  xorg_cv_cc_flag_unused_command_line_argument=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5662fi
5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5666	CFLAGS="$xorg_testset_save_CFLAGS"
5667fi
5668
5669found="no"
5670
5671	if test $found = "no" ; then
5672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674		fi
5675
5676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5678		fi
5679
5680		CFLAGS="$CFLAGS -Wunused"
5681
5682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5683printf %s "checking if $CC supports -Wunused... " >&6; }
5684		cacheid=xorg_cv_cc_flag__Wunused
5685		if eval test \${$cacheid+y}
5686then :
5687  printf %s "(cached) " >&6
5688else $as_nop
5689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691int i;
5692int
5693main (void)
5694{
5695
5696  ;
5697  return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_link "$LINENO"
5701then :
5702  eval $cacheid=yes
5703else $as_nop
5704  eval $cacheid=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.beam \
5707    conftest$ac_exeext conftest.$ac_ext
5708fi
5709
5710
5711		CFLAGS="$xorg_testset_save_CFLAGS"
5712
5713		eval supported=\$$cacheid
5714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5715printf "%s\n" "$supported" >&6; }
5716		if test "$supported" = "yes" ; then
5717			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5718			found="yes"
5719		fi
5720	fi
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736xorg_testset_save_CFLAGS="$CFLAGS"
5737
5738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5742if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5743then :
5744  printf %s "(cached) " >&6
5745else $as_nop
5746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747/* end confdefs.h.  */
5748int i;
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"
5751then :
5752  xorg_cv_cc_flag_unknown_warning_option=yes
5753else $as_nop
5754  xorg_cv_cc_flag_unknown_warning_option=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5757fi
5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5761	CFLAGS="$xorg_testset_save_CFLAGS"
5762fi
5763
5764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	fi
5768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5771if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5772then :
5773  printf %s "(cached) " >&6
5774else $as_nop
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"
5780then :
5781  xorg_cv_cc_flag_unused_command_line_argument=yes
5782else $as_nop
5783  xorg_cv_cc_flag_unused_command_line_argument=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5786fi
5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793found="no"
5794
5795	if test $found = "no" ; then
5796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798		fi
5799
5800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802		fi
5803
5804		CFLAGS="$CFLAGS -Wuninitialized"
5805
5806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5807printf %s "checking if $CC supports -Wuninitialized... " >&6; }
5808		cacheid=xorg_cv_cc_flag__Wuninitialized
5809		if eval test \${$cacheid+y}
5810then :
5811  printf %s "(cached) " >&6
5812else $as_nop
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816int
5817main (void)
5818{
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_link "$LINENO"
5825then :
5826  eval $cacheid=yes
5827else $as_nop
5828  eval $cacheid=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.beam \
5831    conftest$ac_exeext conftest.$ac_ext
5832fi
5833
5834
5835		CFLAGS="$xorg_testset_save_CFLAGS"
5836
5837		eval supported=\$$cacheid
5838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5839printf "%s\n" "$supported" >&6; }
5840		if test "$supported" = "yes" ; then
5841			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5842			found="yes"
5843		fi
5844	fi
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860xorg_testset_save_CFLAGS="$CFLAGS"
5861
5862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5866if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5867then :
5868  printf %s "(cached) " >&6
5869else $as_nop
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872int i;
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"
5875then :
5876  xorg_cv_cc_flag_unknown_warning_option=yes
5877else $as_nop
5878  xorg_cv_cc_flag_unknown_warning_option=no
5879fi
5880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5881fi
5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5885	CFLAGS="$xorg_testset_save_CFLAGS"
5886fi
5887
5888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891	fi
5892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5895if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5896then :
5897  printf %s "(cached) " >&6
5898else $as_nop
5899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h.  */
5901int i;
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"
5904then :
5905  xorg_cv_cc_flag_unused_command_line_argument=yes
5906else $as_nop
5907  xorg_cv_cc_flag_unused_command_line_argument=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5910fi
5911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5914	CFLAGS="$xorg_testset_save_CFLAGS"
5915fi
5916
5917found="no"
5918
5919	if test $found = "no" ; then
5920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922		fi
5923
5924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926		fi
5927
5928		CFLAGS="$CFLAGS -Wshadow"
5929
5930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5931printf %s "checking if $CC supports -Wshadow... " >&6; }
5932		cacheid=xorg_cv_cc_flag__Wshadow
5933		if eval test \${$cacheid+y}
5934then :
5935  printf %s "(cached) " >&6
5936else $as_nop
5937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h.  */
5939int i;
5940int
5941main (void)
5942{
5943
5944  ;
5945  return 0;
5946}
5947_ACEOF
5948if ac_fn_c_try_link "$LINENO"
5949then :
5950  eval $cacheid=yes
5951else $as_nop
5952  eval $cacheid=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.beam \
5955    conftest$ac_exeext conftest.$ac_ext
5956fi
5957
5958
5959		CFLAGS="$xorg_testset_save_CFLAGS"
5960
5961		eval supported=\$$cacheid
5962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5963printf "%s\n" "$supported" >&6; }
5964		if test "$supported" = "yes" ; then
5965			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5966			found="yes"
5967		fi
5968	fi
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984xorg_testset_save_CFLAGS="$CFLAGS"
5985
5986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5990if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5991then :
5992  printf %s "(cached) " >&6
5993else $as_nop
5994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996int i;
5997_ACEOF
5998if ac_fn_c_try_compile "$LINENO"
5999then :
6000  xorg_cv_cc_flag_unknown_warning_option=yes
6001else $as_nop
6002  xorg_cv_cc_flag_unknown_warning_option=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6005fi
6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6009	CFLAGS="$xorg_testset_save_CFLAGS"
6010fi
6011
6012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015	fi
6016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6019if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6020then :
6021  printf %s "(cached) " >&6
6022else $as_nop
6023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h.  */
6025int i;
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"
6028then :
6029  xorg_cv_cc_flag_unused_command_line_argument=yes
6030else $as_nop
6031  xorg_cv_cc_flag_unused_command_line_argument=no
6032fi
6033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6034fi
6035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6038	CFLAGS="$xorg_testset_save_CFLAGS"
6039fi
6040
6041found="no"
6042
6043	if test $found = "no" ; then
6044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046		fi
6047
6048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6050		fi
6051
6052		CFLAGS="$CFLAGS -Wmissing-noreturn"
6053
6054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6055printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6056		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6057		if eval test \${$cacheid+y}
6058then :
6059  printf %s "(cached) " >&6
6060else $as_nop
6061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062/* end confdefs.h.  */
6063int i;
6064int
6065main (void)
6066{
6067
6068  ;
6069  return 0;
6070}
6071_ACEOF
6072if ac_fn_c_try_link "$LINENO"
6073then :
6074  eval $cacheid=yes
6075else $as_nop
6076  eval $cacheid=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.beam \
6079    conftest$ac_exeext conftest.$ac_ext
6080fi
6081
6082
6083		CFLAGS="$xorg_testset_save_CFLAGS"
6084
6085		eval supported=\$$cacheid
6086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6087printf "%s\n" "$supported" >&6; }
6088		if test "$supported" = "yes" ; then
6089			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6090			found="yes"
6091		fi
6092	fi
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108xorg_testset_save_CFLAGS="$CFLAGS"
6109
6110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6115then :
6116  printf %s "(cached) " >&6
6117else $as_nop
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120int i;
6121_ACEOF
6122if ac_fn_c_try_compile "$LINENO"
6123then :
6124  xorg_cv_cc_flag_unknown_warning_option=yes
6125else $as_nop
6126  xorg_cv_cc_flag_unknown_warning_option=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6129fi
6130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6133	CFLAGS="$xorg_testset_save_CFLAGS"
6134fi
6135
6136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139	fi
6140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6144then :
6145  printf %s "(cached) " >&6
6146else $as_nop
6147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149int i;
6150_ACEOF
6151if ac_fn_c_try_compile "$LINENO"
6152then :
6153  xorg_cv_cc_flag_unused_command_line_argument=yes
6154else $as_nop
6155  xorg_cv_cc_flag_unused_command_line_argument=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6158fi
6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6162	CFLAGS="$xorg_testset_save_CFLAGS"
6163fi
6164
6165found="no"
6166
6167	if test $found = "no" ; then
6168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170		fi
6171
6172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6174		fi
6175
6176		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6177
6178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6179printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6180		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6181		if eval test \${$cacheid+y}
6182then :
6183  printf %s "(cached) " >&6
6184else $as_nop
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188int
6189main (void)
6190{
6191
6192  ;
6193  return 0;
6194}
6195_ACEOF
6196if ac_fn_c_try_link "$LINENO"
6197then :
6198  eval $cacheid=yes
6199else $as_nop
6200  eval $cacheid=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.beam \
6203    conftest$ac_exeext conftest.$ac_ext
6204fi
6205
6206
6207		CFLAGS="$xorg_testset_save_CFLAGS"
6208
6209		eval supported=\$$cacheid
6210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6211printf "%s\n" "$supported" >&6; }
6212		if test "$supported" = "yes" ; then
6213			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6214			found="yes"
6215		fi
6216	fi
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232xorg_testset_save_CFLAGS="$CFLAGS"
6233
6234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6238if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6239then :
6240  printf %s "(cached) " >&6
6241else $as_nop
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"
6247then :
6248  xorg_cv_cc_flag_unknown_warning_option=yes
6249else $as_nop
6250  xorg_cv_cc_flag_unknown_warning_option=no
6251fi
6252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6253fi
6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6257	CFLAGS="$xorg_testset_save_CFLAGS"
6258fi
6259
6260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6263	fi
6264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6267if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6268then :
6269  printf %s "(cached) " >&6
6270else $as_nop
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273int i;
6274_ACEOF
6275if ac_fn_c_try_compile "$LINENO"
6276then :
6277  xorg_cv_cc_flag_unused_command_line_argument=yes
6278else $as_nop
6279  xorg_cv_cc_flag_unused_command_line_argument=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6282fi
6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6286	CFLAGS="$xorg_testset_save_CFLAGS"
6287fi
6288
6289found="no"
6290
6291	if test $found = "no" ; then
6292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294		fi
6295
6296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298		fi
6299
6300		CFLAGS="$CFLAGS -Wredundant-decls"
6301
6302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6303printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6304		cacheid=xorg_cv_cc_flag__Wredundant_decls
6305		if eval test \${$cacheid+y}
6306then :
6307  printf %s "(cached) " >&6
6308else $as_nop
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311int i;
6312int
6313main (void)
6314{
6315
6316  ;
6317  return 0;
6318}
6319_ACEOF
6320if ac_fn_c_try_link "$LINENO"
6321then :
6322  eval $cacheid=yes
6323else $as_nop
6324  eval $cacheid=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.beam \
6327    conftest$ac_exeext conftest.$ac_ext
6328fi
6329
6330
6331		CFLAGS="$xorg_testset_save_CFLAGS"
6332
6333		eval supported=\$$cacheid
6334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6335printf "%s\n" "$supported" >&6; }
6336		if test "$supported" = "yes" ; then
6337			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6338			found="yes"
6339		fi
6340	fi
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356xorg_testset_save_CFLAGS="$CFLAGS"
6357
6358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6362if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6363then :
6364  printf %s "(cached) " >&6
6365else $as_nop
6366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"
6371then :
6372  xorg_cv_cc_flag_unknown_warning_option=yes
6373else $as_nop
6374  xorg_cv_cc_flag_unknown_warning_option=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6377fi
6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6381	CFLAGS="$xorg_testset_save_CFLAGS"
6382fi
6383
6384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387	fi
6388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6392then :
6393  printf %s "(cached) " >&6
6394else $as_nop
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397int i;
6398_ACEOF
6399if ac_fn_c_try_compile "$LINENO"
6400then :
6401  xorg_cv_cc_flag_unused_command_line_argument=yes
6402else $as_nop
6403  xorg_cv_cc_flag_unused_command_line_argument=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6406fi
6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6410	CFLAGS="$xorg_testset_save_CFLAGS"
6411fi
6412
6413found="no"
6414
6415	if test $found = "no" ; then
6416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418		fi
6419
6420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6422		fi
6423
6424		CFLAGS="$CFLAGS -Wlogical-op"
6425
6426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6427printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6428		cacheid=xorg_cv_cc_flag__Wlogical_op
6429		if eval test \${$cacheid+y}
6430then :
6431  printf %s "(cached) " >&6
6432else $as_nop
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436int
6437main (void)
6438{
6439
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444if ac_fn_c_try_link "$LINENO"
6445then :
6446  eval $cacheid=yes
6447else $as_nop
6448  eval $cacheid=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext conftest.beam \
6451    conftest$ac_exeext conftest.$ac_ext
6452fi
6453
6454
6455		CFLAGS="$xorg_testset_save_CFLAGS"
6456
6457		eval supported=\$$cacheid
6458		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6459printf "%s\n" "$supported" >&6; }
6460		if test "$supported" = "yes" ; then
6461			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6462			found="yes"
6463		fi
6464	fi
6465
6466
6467
6468# These are currently disabled because they are noisy.  They will be enabled
6469# in the future once the codebase is sufficiently modernized to silence
6470# them.  For now, I don't want them to drown out the other warnings.
6471# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6472# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6473# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6474
6475# Turn some warnings into errors, so we don't accidentally get successful builds
6476# when there are problems that should be fixed.
6477
6478if test "x$SELECTIVE_WERROR" = "xyes" ; then
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492xorg_testset_save_CFLAGS="$CFLAGS"
6493
6494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6499then :
6500  printf %s "(cached) " >&6
6501else $as_nop
6502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h.  */
6504int i;
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"
6507then :
6508  xorg_cv_cc_flag_unknown_warning_option=yes
6509else $as_nop
6510  xorg_cv_cc_flag_unknown_warning_option=no
6511fi
6512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6513fi
6514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6517	CFLAGS="$xorg_testset_save_CFLAGS"
6518fi
6519
6520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6523	fi
6524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6528then :
6529  printf %s "(cached) " >&6
6530else $as_nop
6531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h.  */
6533int i;
6534_ACEOF
6535if ac_fn_c_try_compile "$LINENO"
6536then :
6537  xorg_cv_cc_flag_unused_command_line_argument=yes
6538else $as_nop
6539  xorg_cv_cc_flag_unused_command_line_argument=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6542fi
6543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6546	CFLAGS="$xorg_testset_save_CFLAGS"
6547fi
6548
6549found="no"
6550
6551	if test $found = "no" ; then
6552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554		fi
6555
6556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558		fi
6559
6560		CFLAGS="$CFLAGS -Werror=implicit"
6561
6562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6563printf %s "checking if $CC supports -Werror=implicit... " >&6; }
6564		cacheid=xorg_cv_cc_flag__Werror_implicit
6565		if eval test \${$cacheid+y}
6566then :
6567  printf %s "(cached) " >&6
6568else $as_nop
6569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571int i;
6572int
6573main (void)
6574{
6575
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_link "$LINENO"
6581then :
6582  eval $cacheid=yes
6583else $as_nop
6584  eval $cacheid=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.beam \
6587    conftest$ac_exeext conftest.$ac_ext
6588fi
6589
6590
6591		CFLAGS="$xorg_testset_save_CFLAGS"
6592
6593		eval supported=\$$cacheid
6594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6595printf "%s\n" "$supported" >&6; }
6596		if test "$supported" = "yes" ; then
6597			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6598			found="yes"
6599		fi
6600	fi
6601
6602	if test $found = "no" ; then
6603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605		fi
6606
6607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609		fi
6610
6611		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6612
6613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6614printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6615		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6616		if eval test \${$cacheid+y}
6617then :
6618  printf %s "(cached) " >&6
6619else $as_nop
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622int i;
6623int
6624main (void)
6625{
6626
6627  ;
6628  return 0;
6629}
6630_ACEOF
6631if ac_fn_c_try_link "$LINENO"
6632then :
6633  eval $cacheid=yes
6634else $as_nop
6635  eval $cacheid=no
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.beam \
6638    conftest$ac_exeext conftest.$ac_ext
6639fi
6640
6641
6642		CFLAGS="$xorg_testset_save_CFLAGS"
6643
6644		eval supported=\$$cacheid
6645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6646printf "%s\n" "$supported" >&6; }
6647		if test "$supported" = "yes" ; then
6648			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6649			found="yes"
6650		fi
6651	fi
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667xorg_testset_save_CFLAGS="$CFLAGS"
6668
6669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6674then :
6675  printf %s "(cached) " >&6
6676else $as_nop
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"
6682then :
6683  xorg_cv_cc_flag_unknown_warning_option=yes
6684else $as_nop
6685  xorg_cv_cc_flag_unknown_warning_option=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6688fi
6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692	CFLAGS="$xorg_testset_save_CFLAGS"
6693fi
6694
6695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698	fi
6699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6703then :
6704  printf %s "(cached) " >&6
6705else $as_nop
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708int i;
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"
6711then :
6712  xorg_cv_cc_flag_unused_command_line_argument=yes
6713else $as_nop
6714  xorg_cv_cc_flag_unused_command_line_argument=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6717fi
6718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6721	CFLAGS="$xorg_testset_save_CFLAGS"
6722fi
6723
6724found="no"
6725
6726	if test $found = "no" ; then
6727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729		fi
6730
6731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733		fi
6734
6735		CFLAGS="$CFLAGS -Werror=nonnull"
6736
6737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6738printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
6739		cacheid=xorg_cv_cc_flag__Werror_nonnull
6740		if eval test \${$cacheid+y}
6741then :
6742  printf %s "(cached) " >&6
6743else $as_nop
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746int i;
6747int
6748main (void)
6749{
6750
6751  ;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_link "$LINENO"
6756then :
6757  eval $cacheid=yes
6758else $as_nop
6759  eval $cacheid=no
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.beam \
6762    conftest$ac_exeext conftest.$ac_ext
6763fi
6764
6765
6766		CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768		eval supported=\$$cacheid
6769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770printf "%s\n" "$supported" >&6; }
6771		if test "$supported" = "yes" ; then
6772			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6773			found="yes"
6774		fi
6775	fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798then :
6799  printf %s "(cached) " >&6
6800else $as_nop
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803int i;
6804_ACEOF
6805if ac_fn_c_try_compile "$LINENO"
6806then :
6807  xorg_cv_cc_flag_unknown_warning_option=yes
6808else $as_nop
6809  xorg_cv_cc_flag_unknown_warning_option=no
6810fi
6811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6812fi
6813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816	CFLAGS="$xorg_testset_save_CFLAGS"
6817fi
6818
6819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822	fi
6823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6827then :
6828  printf %s "(cached) " >&6
6829else $as_nop
6830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832int i;
6833_ACEOF
6834if ac_fn_c_try_compile "$LINENO"
6835then :
6836  xorg_cv_cc_flag_unused_command_line_argument=yes
6837else $as_nop
6838  xorg_cv_cc_flag_unused_command_line_argument=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6841fi
6842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845	CFLAGS="$xorg_testset_save_CFLAGS"
6846fi
6847
6848found="no"
6849
6850	if test $found = "no" ; then
6851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853		fi
6854
6855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857		fi
6858
6859		CFLAGS="$CFLAGS -Werror=init-self"
6860
6861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6862printf %s "checking if $CC supports -Werror=init-self... " >&6; }
6863		cacheid=xorg_cv_cc_flag__Werror_init_self
6864		if eval test \${$cacheid+y}
6865then :
6866  printf %s "(cached) " >&6
6867else $as_nop
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871int
6872main (void)
6873{
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879if ac_fn_c_try_link "$LINENO"
6880then :
6881  eval $cacheid=yes
6882else $as_nop
6883  eval $cacheid=no
6884fi
6885rm -f core conftest.err conftest.$ac_objext conftest.beam \
6886    conftest$ac_exeext conftest.$ac_ext
6887fi
6888
6889
6890		CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892		eval supported=\$$cacheid
6893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894printf "%s\n" "$supported" >&6; }
6895		if test "$supported" = "yes" ; then
6896			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6897			found="yes"
6898		fi
6899	fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915xorg_testset_save_CFLAGS="$CFLAGS"
6916
6917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6922then :
6923  printf %s "(cached) " >&6
6924else $as_nop
6925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h.  */
6927int i;
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"
6930then :
6931  xorg_cv_cc_flag_unknown_warning_option=yes
6932else $as_nop
6933  xorg_cv_cc_flag_unknown_warning_option=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6936fi
6937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946	fi
6947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6951then :
6952  printf %s "(cached) " >&6
6953else $as_nop
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956int i;
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"
6959then :
6960  xorg_cv_cc_flag_unused_command_line_argument=yes
6961else $as_nop
6962  xorg_cv_cc_flag_unused_command_line_argument=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6965fi
6966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969	CFLAGS="$xorg_testset_save_CFLAGS"
6970fi
6971
6972found="no"
6973
6974	if test $found = "no" ; then
6975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977		fi
6978
6979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981		fi
6982
6983		CFLAGS="$CFLAGS -Werror=main"
6984
6985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6986printf %s "checking if $CC supports -Werror=main... " >&6; }
6987		cacheid=xorg_cv_cc_flag__Werror_main
6988		if eval test \${$cacheid+y}
6989then :
6990  printf %s "(cached) " >&6
6991else $as_nop
6992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h.  */
6994int i;
6995int
6996main (void)
6997{
6998
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003if ac_fn_c_try_link "$LINENO"
7004then :
7005  eval $cacheid=yes
7006else $as_nop
7007  eval $cacheid=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext conftest.beam \
7010    conftest$ac_exeext conftest.$ac_ext
7011fi
7012
7013
7014		CFLAGS="$xorg_testset_save_CFLAGS"
7015
7016		eval supported=\$$cacheid
7017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7018printf "%s\n" "$supported" >&6; }
7019		if test "$supported" = "yes" ; then
7020			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7021			found="yes"
7022		fi
7023	fi
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039xorg_testset_save_CFLAGS="$CFLAGS"
7040
7041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7046then :
7047  printf %s "(cached) " >&6
7048else $as_nop
7049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051int i;
7052_ACEOF
7053if ac_fn_c_try_compile "$LINENO"
7054then :
7055  xorg_cv_cc_flag_unknown_warning_option=yes
7056else $as_nop
7057  xorg_cv_cc_flag_unknown_warning_option=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7060fi
7061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064	CFLAGS="$xorg_testset_save_CFLAGS"
7065fi
7066
7067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	fi
7071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7075then :
7076  printf %s "(cached) " >&6
7077else $as_nop
7078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079/* end confdefs.h.  */
7080int i;
7081_ACEOF
7082if ac_fn_c_try_compile "$LINENO"
7083then :
7084  xorg_cv_cc_flag_unused_command_line_argument=yes
7085else $as_nop
7086  xorg_cv_cc_flag_unused_command_line_argument=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7089fi
7090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7093	CFLAGS="$xorg_testset_save_CFLAGS"
7094fi
7095
7096found="no"
7097
7098	if test $found = "no" ; then
7099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101		fi
7102
7103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105		fi
7106
7107		CFLAGS="$CFLAGS -Werror=missing-braces"
7108
7109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7110printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7111		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7112		if eval test \${$cacheid+y}
7113then :
7114  printf %s "(cached) " >&6
7115else $as_nop
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main (void)
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"
7128then :
7129  eval $cacheid=yes
7130else $as_nop
7131  eval $cacheid=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.beam \
7134    conftest$ac_exeext conftest.$ac_ext
7135fi
7136
7137
7138		CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140		eval supported=\$$cacheid
7141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142printf "%s\n" "$supported" >&6; }
7143		if test "$supported" = "yes" ; then
7144			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7145			found="yes"
7146		fi
7147	fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7170then :
7171  printf %s "(cached) " >&6
7172else $as_nop
7173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h.  */
7175int i;
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"
7178then :
7179  xorg_cv_cc_flag_unknown_warning_option=yes
7180else $as_nop
7181  xorg_cv_cc_flag_unknown_warning_option=no
7182fi
7183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7184fi
7185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7188	CFLAGS="$xorg_testset_save_CFLAGS"
7189fi
7190
7191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194	fi
7195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7199then :
7200  printf %s "(cached) " >&6
7201else $as_nop
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205_ACEOF
7206if ac_fn_c_try_compile "$LINENO"
7207then :
7208  xorg_cv_cc_flag_unused_command_line_argument=yes
7209else $as_nop
7210  xorg_cv_cc_flag_unused_command_line_argument=no
7211fi
7212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7213fi
7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7217	CFLAGS="$xorg_testset_save_CFLAGS"
7218fi
7219
7220found="no"
7221
7222	if test $found = "no" ; then
7223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225		fi
7226
7227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7229		fi
7230
7231		CFLAGS="$CFLAGS -Werror=sequence-point"
7232
7233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7234printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7235		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7236		if eval test \${$cacheid+y}
7237then :
7238  printf %s "(cached) " >&6
7239else $as_nop
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242int i;
7243int
7244main (void)
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_link "$LINENO"
7252then :
7253  eval $cacheid=yes
7254else $as_nop
7255  eval $cacheid=no
7256fi
7257rm -f core conftest.err conftest.$ac_objext conftest.beam \
7258    conftest$ac_exeext conftest.$ac_ext
7259fi
7260
7261
7262		CFLAGS="$xorg_testset_save_CFLAGS"
7263
7264		eval supported=\$$cacheid
7265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7266printf "%s\n" "$supported" >&6; }
7267		if test "$supported" = "yes" ; then
7268			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7269			found="yes"
7270		fi
7271	fi
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287xorg_testset_save_CFLAGS="$CFLAGS"
7288
7289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7294then :
7295  printf %s "(cached) " >&6
7296else $as_nop
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299int i;
7300_ACEOF
7301if ac_fn_c_try_compile "$LINENO"
7302then :
7303  xorg_cv_cc_flag_unknown_warning_option=yes
7304else $as_nop
7305  xorg_cv_cc_flag_unknown_warning_option=no
7306fi
7307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7308fi
7309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7312	CFLAGS="$xorg_testset_save_CFLAGS"
7313fi
7314
7315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318	fi
7319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7322if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7323then :
7324  printf %s "(cached) " >&6
7325else $as_nop
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328int i;
7329_ACEOF
7330if ac_fn_c_try_compile "$LINENO"
7331then :
7332  xorg_cv_cc_flag_unused_command_line_argument=yes
7333else $as_nop
7334  xorg_cv_cc_flag_unused_command_line_argument=no
7335fi
7336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7337fi
7338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7341	CFLAGS="$xorg_testset_save_CFLAGS"
7342fi
7343
7344found="no"
7345
7346	if test $found = "no" ; then
7347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349		fi
7350
7351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7353		fi
7354
7355		CFLAGS="$CFLAGS -Werror=return-type"
7356
7357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7358printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7359		cacheid=xorg_cv_cc_flag__Werror_return_type
7360		if eval test \${$cacheid+y}
7361then :
7362  printf %s "(cached) " >&6
7363else $as_nop
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367int
7368main (void)
7369{
7370
7371  ;
7372  return 0;
7373}
7374_ACEOF
7375if ac_fn_c_try_link "$LINENO"
7376then :
7377  eval $cacheid=yes
7378else $as_nop
7379  eval $cacheid=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.beam \
7382    conftest$ac_exeext conftest.$ac_ext
7383fi
7384
7385
7386		CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388		eval supported=\$$cacheid
7389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390printf "%s\n" "$supported" >&6; }
7391		if test "$supported" = "yes" ; then
7392			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7393			found="yes"
7394		fi
7395	fi
7396
7397	if test $found = "no" ; then
7398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400		fi
7401
7402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404		fi
7405
7406		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7407
7408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7409printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7410		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7411		if eval test \${$cacheid+y}
7412then :
7413  printf %s "(cached) " >&6
7414else $as_nop
7415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h.  */
7417int i;
7418int
7419main (void)
7420{
7421
7422  ;
7423  return 0;
7424}
7425_ACEOF
7426if ac_fn_c_try_link "$LINENO"
7427then :
7428  eval $cacheid=yes
7429else $as_nop
7430  eval $cacheid=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.beam \
7433    conftest$ac_exeext conftest.$ac_ext
7434fi
7435
7436
7437		CFLAGS="$xorg_testset_save_CFLAGS"
7438
7439		eval supported=\$$cacheid
7440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7441printf "%s\n" "$supported" >&6; }
7442		if test "$supported" = "yes" ; then
7443			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7444			found="yes"
7445		fi
7446	fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462xorg_testset_save_CFLAGS="$CFLAGS"
7463
7464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7468if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7469then :
7470  printf %s "(cached) " >&6
7471else $as_nop
7472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h.  */
7474int i;
7475_ACEOF
7476if ac_fn_c_try_compile "$LINENO"
7477then :
7478  xorg_cv_cc_flag_unknown_warning_option=yes
7479else $as_nop
7480  xorg_cv_cc_flag_unknown_warning_option=no
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7483fi
7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7487	CFLAGS="$xorg_testset_save_CFLAGS"
7488fi
7489
7490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493	fi
7494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7498then :
7499  printf %s "(cached) " >&6
7500else $as_nop
7501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h.  */
7503int i;
7504_ACEOF
7505if ac_fn_c_try_compile "$LINENO"
7506then :
7507  xorg_cv_cc_flag_unused_command_line_argument=yes
7508else $as_nop
7509  xorg_cv_cc_flag_unused_command_line_argument=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7512fi
7513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7516	CFLAGS="$xorg_testset_save_CFLAGS"
7517fi
7518
7519found="no"
7520
7521	if test $found = "no" ; then
7522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524		fi
7525
7526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528		fi
7529
7530		CFLAGS="$CFLAGS -Werror=trigraphs"
7531
7532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7533printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
7534		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7535		if eval test \${$cacheid+y}
7536then :
7537  printf %s "(cached) " >&6
7538else $as_nop
7539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h.  */
7541int i;
7542int
7543main (void)
7544{
7545
7546  ;
7547  return 0;
7548}
7549_ACEOF
7550if ac_fn_c_try_link "$LINENO"
7551then :
7552  eval $cacheid=yes
7553else $as_nop
7554  eval $cacheid=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext conftest.beam \
7557    conftest$ac_exeext conftest.$ac_ext
7558fi
7559
7560
7561		CFLAGS="$xorg_testset_save_CFLAGS"
7562
7563		eval supported=\$$cacheid
7564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7565printf "%s\n" "$supported" >&6; }
7566		if test "$supported" = "yes" ; then
7567			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7568			found="yes"
7569		fi
7570	fi
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586xorg_testset_save_CFLAGS="$CFLAGS"
7587
7588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7592if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7593then :
7594  printf %s "(cached) " >&6
7595else $as_nop
7596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h.  */
7598int i;
7599_ACEOF
7600if ac_fn_c_try_compile "$LINENO"
7601then :
7602  xorg_cv_cc_flag_unknown_warning_option=yes
7603else $as_nop
7604  xorg_cv_cc_flag_unknown_warning_option=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7607fi
7608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7611	CFLAGS="$xorg_testset_save_CFLAGS"
7612fi
7613
7614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617	fi
7618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7621if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7622then :
7623  printf %s "(cached) " >&6
7624else $as_nop
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629if ac_fn_c_try_compile "$LINENO"
7630then :
7631  xorg_cv_cc_flag_unused_command_line_argument=yes
7632else $as_nop
7633  xorg_cv_cc_flag_unused_command_line_argument=no
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7636fi
7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7640	CFLAGS="$xorg_testset_save_CFLAGS"
7641fi
7642
7643found="no"
7644
7645	if test $found = "no" ; then
7646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648		fi
7649
7650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652		fi
7653
7654		CFLAGS="$CFLAGS -Werror=array-bounds"
7655
7656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7657printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
7658		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7659		if eval test \${$cacheid+y}
7660then :
7661  printf %s "(cached) " >&6
7662else $as_nop
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665int i;
7666int
7667main (void)
7668{
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674if ac_fn_c_try_link "$LINENO"
7675then :
7676  eval $cacheid=yes
7677else $as_nop
7678  eval $cacheid=no
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.beam \
7681    conftest$ac_exeext conftest.$ac_ext
7682fi
7683
7684
7685		CFLAGS="$xorg_testset_save_CFLAGS"
7686
7687		eval supported=\$$cacheid
7688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7689printf "%s\n" "$supported" >&6; }
7690		if test "$supported" = "yes" ; then
7691			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7692			found="yes"
7693		fi
7694	fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710xorg_testset_save_CFLAGS="$CFLAGS"
7711
7712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7717then :
7718  printf %s "(cached) " >&6
7719else $as_nop
7720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722int i;
7723_ACEOF
7724if ac_fn_c_try_compile "$LINENO"
7725then :
7726  xorg_cv_cc_flag_unknown_warning_option=yes
7727else $as_nop
7728  xorg_cv_cc_flag_unknown_warning_option=no
7729fi
7730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7731fi
7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7735	CFLAGS="$xorg_testset_save_CFLAGS"
7736fi
7737
7738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741	fi
7742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7745if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7746then :
7747  printf %s "(cached) " >&6
7748else $as_nop
7749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751int i;
7752_ACEOF
7753if ac_fn_c_try_compile "$LINENO"
7754then :
7755  xorg_cv_cc_flag_unused_command_line_argument=yes
7756else $as_nop
7757  xorg_cv_cc_flag_unused_command_line_argument=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7760fi
7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7764	CFLAGS="$xorg_testset_save_CFLAGS"
7765fi
7766
7767found="no"
7768
7769	if test $found = "no" ; then
7770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772		fi
7773
7774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776		fi
7777
7778		CFLAGS="$CFLAGS -Werror=write-strings"
7779
7780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7781printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
7782		cacheid=xorg_cv_cc_flag__Werror_write_strings
7783		if eval test \${$cacheid+y}
7784then :
7785  printf %s "(cached) " >&6
7786else $as_nop
7787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h.  */
7789int i;
7790int
7791main (void)
7792{
7793
7794  ;
7795  return 0;
7796}
7797_ACEOF
7798if ac_fn_c_try_link "$LINENO"
7799then :
7800  eval $cacheid=yes
7801else $as_nop
7802  eval $cacheid=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.beam \
7805    conftest$ac_exeext conftest.$ac_ext
7806fi
7807
7808
7809		CFLAGS="$xorg_testset_save_CFLAGS"
7810
7811		eval supported=\$$cacheid
7812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7813printf "%s\n" "$supported" >&6; }
7814		if test "$supported" = "yes" ; then
7815			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7816			found="yes"
7817		fi
7818	fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834xorg_testset_save_CFLAGS="$CFLAGS"
7835
7836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7841then :
7842  printf %s "(cached) " >&6
7843else $as_nop
7844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846int i;
7847_ACEOF
7848if ac_fn_c_try_compile "$LINENO"
7849then :
7850  xorg_cv_cc_flag_unknown_warning_option=yes
7851else $as_nop
7852  xorg_cv_cc_flag_unknown_warning_option=no
7853fi
7854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7855fi
7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7859	CFLAGS="$xorg_testset_save_CFLAGS"
7860fi
7861
7862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865	fi
7866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7869if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7870then :
7871  printf %s "(cached) " >&6
7872else $as_nop
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876_ACEOF
7877if ac_fn_c_try_compile "$LINENO"
7878then :
7879  xorg_cv_cc_flag_unused_command_line_argument=yes
7880else $as_nop
7881  xorg_cv_cc_flag_unused_command_line_argument=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7884fi
7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7888	CFLAGS="$xorg_testset_save_CFLAGS"
7889fi
7890
7891found="no"
7892
7893	if test $found = "no" ; then
7894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896		fi
7897
7898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900		fi
7901
7902		CFLAGS="$CFLAGS -Werror=address"
7903
7904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7905printf %s "checking if $CC supports -Werror=address... " >&6; }
7906		cacheid=xorg_cv_cc_flag__Werror_address
7907		if eval test \${$cacheid+y}
7908then :
7909  printf %s "(cached) " >&6
7910else $as_nop
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913int i;
7914int
7915main (void)
7916{
7917
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_link "$LINENO"
7923then :
7924  eval $cacheid=yes
7925else $as_nop
7926  eval $cacheid=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.beam \
7929    conftest$ac_exeext conftest.$ac_ext
7930fi
7931
7932
7933		CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935		eval supported=\$$cacheid
7936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937printf "%s\n" "$supported" >&6; }
7938		if test "$supported" = "yes" ; then
7939			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7940			found="yes"
7941		fi
7942	fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7965then :
7966  printf %s "(cached) " >&6
7967else $as_nop
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"
7973then :
7974  xorg_cv_cc_flag_unknown_warning_option=yes
7975else $as_nop
7976  xorg_cv_cc_flag_unknown_warning_option=no
7977fi
7978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7979fi
7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7983	CFLAGS="$xorg_testset_save_CFLAGS"
7984fi
7985
7986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989	fi
7990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7993if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7994then :
7995  printf %s "(cached) " >&6
7996else $as_nop
7997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999int i;
8000_ACEOF
8001if ac_fn_c_try_compile "$LINENO"
8002then :
8003  xorg_cv_cc_flag_unused_command_line_argument=yes
8004else $as_nop
8005  xorg_cv_cc_flag_unused_command_line_argument=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8008fi
8009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012	CFLAGS="$xorg_testset_save_CFLAGS"
8013fi
8014
8015found="no"
8016
8017	if test $found = "no" ; then
8018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020		fi
8021
8022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024		fi
8025
8026		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8027
8028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8029printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8030		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8031		if eval test \${$cacheid+y}
8032then :
8033  printf %s "(cached) " >&6
8034else $as_nop
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038int
8039main (void)
8040{
8041
8042  ;
8043  return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"
8047then :
8048  eval $cacheid=yes
8049else $as_nop
8050  eval $cacheid=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.beam \
8053    conftest$ac_exeext conftest.$ac_ext
8054fi
8055
8056
8057		CFLAGS="$xorg_testset_save_CFLAGS"
8058
8059		eval supported=\$$cacheid
8060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8061printf "%s\n" "$supported" >&6; }
8062		if test "$supported" = "yes" ; then
8063			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8064			found="yes"
8065		fi
8066	fi
8067
8068	if test $found = "no" ; then
8069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071		fi
8072
8073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075		fi
8076
8077		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8078
8079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8080printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8081		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8082		if eval test \${$cacheid+y}
8083then :
8084  printf %s "(cached) " >&6
8085else $as_nop
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089int
8090main (void)
8091{
8092
8093  ;
8094  return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_link "$LINENO"
8098then :
8099  eval $cacheid=yes
8100else $as_nop
8101  eval $cacheid=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.beam \
8104    conftest$ac_exeext conftest.$ac_ext
8105fi
8106
8107
8108		CFLAGS="$xorg_testset_save_CFLAGS"
8109
8110		eval supported=\$$cacheid
8111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8112printf "%s\n" "$supported" >&6; }
8113		if test "$supported" = "yes" ; then
8114			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8115			found="yes"
8116		fi
8117	fi
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133xorg_testset_save_CFLAGS="$CFLAGS"
8134
8135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8140then :
8141  printf %s "(cached) " >&6
8142else $as_nop
8143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145int i;
8146_ACEOF
8147if ac_fn_c_try_compile "$LINENO"
8148then :
8149  xorg_cv_cc_flag_unknown_warning_option=yes
8150else $as_nop
8151  xorg_cv_cc_flag_unknown_warning_option=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8154fi
8155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	fi
8165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8169then :
8170  printf %s "(cached) " >&6
8171else $as_nop
8172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"
8177then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else $as_nop
8180  xorg_cv_cc_flag_unused_command_line_argument=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8183fi
8184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187	CFLAGS="$xorg_testset_save_CFLAGS"
8188fi
8189
8190found="no"
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8202
8203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8204printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8205		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8206		if eval test \${$cacheid+y}
8207then :
8208  printf %s "(cached) " >&6
8209else $as_nop
8210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h.  */
8212int i;
8213int
8214main (void)
8215{
8216
8217  ;
8218  return 0;
8219}
8220_ACEOF
8221if ac_fn_c_try_link "$LINENO"
8222then :
8223  eval $cacheid=yes
8224else $as_nop
8225  eval $cacheid=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.beam \
8228    conftest$ac_exeext conftest.$ac_ext
8229fi
8230
8231
8232		CFLAGS="$xorg_testset_save_CFLAGS"
8233
8234		eval supported=\$$cacheid
8235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8236printf "%s\n" "$supported" >&6; }
8237		if test "$supported" = "yes" ; then
8238			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8239			found="yes"
8240		fi
8241	fi
8242
8243 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8244else
8245{ printf "%s\n" "$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
8246printf "%s\n" "$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;}
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260xorg_testset_save_CFLAGS="$CFLAGS"
8261
8262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8265printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8266if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8267then :
8268  printf %s "(cached) " >&6
8269else $as_nop
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273_ACEOF
8274if ac_fn_c_try_compile "$LINENO"
8275then :
8276  xorg_cv_cc_flag_unknown_warning_option=yes
8277else $as_nop
8278  xorg_cv_cc_flag_unknown_warning_option=no
8279fi
8280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8281fi
8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8285	CFLAGS="$xorg_testset_save_CFLAGS"
8286fi
8287
8288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291	fi
8292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8295if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8296then :
8297  printf %s "(cached) " >&6
8298else $as_nop
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"
8304then :
8305  xorg_cv_cc_flag_unused_command_line_argument=yes
8306else $as_nop
8307  xorg_cv_cc_flag_unused_command_line_argument=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8310fi
8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314	CFLAGS="$xorg_testset_save_CFLAGS"
8315fi
8316
8317found="no"
8318
8319	if test $found = "no" ; then
8320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322		fi
8323
8324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326		fi
8327
8328		CFLAGS="$CFLAGS -Wimplicit"
8329
8330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8331printf %s "checking if $CC supports -Wimplicit... " >&6; }
8332		cacheid=xorg_cv_cc_flag__Wimplicit
8333		if eval test \${$cacheid+y}
8334then :
8335  printf %s "(cached) " >&6
8336else $as_nop
8337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338/* end confdefs.h.  */
8339int i;
8340int
8341main (void)
8342{
8343
8344  ;
8345  return 0;
8346}
8347_ACEOF
8348if ac_fn_c_try_link "$LINENO"
8349then :
8350  eval $cacheid=yes
8351else $as_nop
8352  eval $cacheid=no
8353fi
8354rm -f core conftest.err conftest.$ac_objext conftest.beam \
8355    conftest$ac_exeext conftest.$ac_ext
8356fi
8357
8358
8359		CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361		eval supported=\$$cacheid
8362		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363printf "%s\n" "$supported" >&6; }
8364		if test "$supported" = "yes" ; then
8365			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8366			found="yes"
8367		fi
8368	fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8391then :
8392  printf %s "(cached) " >&6
8393else $as_nop
8394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396int i;
8397_ACEOF
8398if ac_fn_c_try_compile "$LINENO"
8399then :
8400  xorg_cv_cc_flag_unknown_warning_option=yes
8401else $as_nop
8402  xorg_cv_cc_flag_unknown_warning_option=no
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8405fi
8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8409	CFLAGS="$xorg_testset_save_CFLAGS"
8410fi
8411
8412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	fi
8416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8419if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8420then :
8421  printf %s "(cached) " >&6
8422else $as_nop
8423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425int i;
8426_ACEOF
8427if ac_fn_c_try_compile "$LINENO"
8428then :
8429  xorg_cv_cc_flag_unused_command_line_argument=yes
8430else $as_nop
8431  xorg_cv_cc_flag_unused_command_line_argument=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8434fi
8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8438	CFLAGS="$xorg_testset_save_CFLAGS"
8439fi
8440
8441found="no"
8442
8443	if test $found = "no" ; then
8444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446		fi
8447
8448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450		fi
8451
8452		CFLAGS="$CFLAGS -Wnonnull"
8453
8454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8455printf %s "checking if $CC supports -Wnonnull... " >&6; }
8456		cacheid=xorg_cv_cc_flag__Wnonnull
8457		if eval test \${$cacheid+y}
8458then :
8459  printf %s "(cached) " >&6
8460else $as_nop
8461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463int i;
8464int
8465main (void)
8466{
8467
8468  ;
8469  return 0;
8470}
8471_ACEOF
8472if ac_fn_c_try_link "$LINENO"
8473then :
8474  eval $cacheid=yes
8475else $as_nop
8476  eval $cacheid=no
8477fi
8478rm -f core conftest.err conftest.$ac_objext conftest.beam \
8479    conftest$ac_exeext conftest.$ac_ext
8480fi
8481
8482
8483		CFLAGS="$xorg_testset_save_CFLAGS"
8484
8485		eval supported=\$$cacheid
8486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8487printf "%s\n" "$supported" >&6; }
8488		if test "$supported" = "yes" ; then
8489			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8490			found="yes"
8491		fi
8492	fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508xorg_testset_save_CFLAGS="$CFLAGS"
8509
8510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8514if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8515then :
8516  printf %s "(cached) " >&6
8517else $as_nop
8518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520int i;
8521_ACEOF
8522if ac_fn_c_try_compile "$LINENO"
8523then :
8524  xorg_cv_cc_flag_unknown_warning_option=yes
8525else $as_nop
8526  xorg_cv_cc_flag_unknown_warning_option=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8529fi
8530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8533	CFLAGS="$xorg_testset_save_CFLAGS"
8534fi
8535
8536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539	fi
8540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8544then :
8545  printf %s "(cached) " >&6
8546else $as_nop
8547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549int i;
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"
8552then :
8553  xorg_cv_cc_flag_unused_command_line_argument=yes
8554else $as_nop
8555  xorg_cv_cc_flag_unused_command_line_argument=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8558fi
8559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8560printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8561	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8562	CFLAGS="$xorg_testset_save_CFLAGS"
8563fi
8564
8565found="no"
8566
8567	if test $found = "no" ; then
8568		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8569			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570		fi
8571
8572		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8573			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8574		fi
8575
8576		CFLAGS="$CFLAGS -Winit-self"
8577
8578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8579printf %s "checking if $CC supports -Winit-self... " >&6; }
8580		cacheid=xorg_cv_cc_flag__Winit_self
8581		if eval test \${$cacheid+y}
8582then :
8583  printf %s "(cached) " >&6
8584else $as_nop
8585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587int i;
8588int
8589main (void)
8590{
8591
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596if ac_fn_c_try_link "$LINENO"
8597then :
8598  eval $cacheid=yes
8599else $as_nop
8600  eval $cacheid=no
8601fi
8602rm -f core conftest.err conftest.$ac_objext conftest.beam \
8603    conftest$ac_exeext conftest.$ac_ext
8604fi
8605
8606
8607		CFLAGS="$xorg_testset_save_CFLAGS"
8608
8609		eval supported=\$$cacheid
8610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611printf "%s\n" "$supported" >&6; }
8612		if test "$supported" = "yes" ; then
8613			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8614			found="yes"
8615		fi
8616	fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632xorg_testset_save_CFLAGS="$CFLAGS"
8633
8634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8637printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8638if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8639then :
8640  printf %s "(cached) " >&6
8641else $as_nop
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"
8647then :
8648  xorg_cv_cc_flag_unknown_warning_option=yes
8649else $as_nop
8650  xorg_cv_cc_flag_unknown_warning_option=no
8651fi
8652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8653fi
8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	fi
8664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8668then :
8669  printf %s "(cached) " >&6
8670else $as_nop
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"
8676then :
8677  xorg_cv_cc_flag_unused_command_line_argument=yes
8678else $as_nop
8679  xorg_cv_cc_flag_unused_command_line_argument=no
8680fi
8681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8682fi
8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8686	CFLAGS="$xorg_testset_save_CFLAGS"
8687fi
8688
8689found="no"
8690
8691	if test $found = "no" ; then
8692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8694		fi
8695
8696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8698		fi
8699
8700		CFLAGS="$CFLAGS -Wmain"
8701
8702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8703printf %s "checking if $CC supports -Wmain... " >&6; }
8704		cacheid=xorg_cv_cc_flag__Wmain
8705		if eval test \${$cacheid+y}
8706then :
8707  printf %s "(cached) " >&6
8708else $as_nop
8709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h.  */
8711int i;
8712int
8713main (void)
8714{
8715
8716  ;
8717  return 0;
8718}
8719_ACEOF
8720if ac_fn_c_try_link "$LINENO"
8721then :
8722  eval $cacheid=yes
8723else $as_nop
8724  eval $cacheid=no
8725fi
8726rm -f core conftest.err conftest.$ac_objext conftest.beam \
8727    conftest$ac_exeext conftest.$ac_ext
8728fi
8729
8730
8731		CFLAGS="$xorg_testset_save_CFLAGS"
8732
8733		eval supported=\$$cacheid
8734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8735printf "%s\n" "$supported" >&6; }
8736		if test "$supported" = "yes" ; then
8737			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8738			found="yes"
8739		fi
8740	fi
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756xorg_testset_save_CFLAGS="$CFLAGS"
8757
8758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8762if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8763then :
8764  printf %s "(cached) " >&6
8765else $as_nop
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768int i;
8769_ACEOF
8770if ac_fn_c_try_compile "$LINENO"
8771then :
8772  xorg_cv_cc_flag_unknown_warning_option=yes
8773else $as_nop
8774  xorg_cv_cc_flag_unknown_warning_option=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8777fi
8778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781	CFLAGS="$xorg_testset_save_CFLAGS"
8782fi
8783
8784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787	fi
8788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8792then :
8793  printf %s "(cached) " >&6
8794else $as_nop
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797int i;
8798_ACEOF
8799if ac_fn_c_try_compile "$LINENO"
8800then :
8801  xorg_cv_cc_flag_unused_command_line_argument=yes
8802else $as_nop
8803  xorg_cv_cc_flag_unused_command_line_argument=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8806fi
8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810	CFLAGS="$xorg_testset_save_CFLAGS"
8811fi
8812
8813found="no"
8814
8815	if test $found = "no" ; then
8816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818		fi
8819
8820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822		fi
8823
8824		CFLAGS="$CFLAGS -Wmissing-braces"
8825
8826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8827printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
8828		cacheid=xorg_cv_cc_flag__Wmissing_braces
8829		if eval test \${$cacheid+y}
8830then :
8831  printf %s "(cached) " >&6
8832else $as_nop
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836int
8837main (void)
8838{
8839
8840  ;
8841  return 0;
8842}
8843_ACEOF
8844if ac_fn_c_try_link "$LINENO"
8845then :
8846  eval $cacheid=yes
8847else $as_nop
8848  eval $cacheid=no
8849fi
8850rm -f core conftest.err conftest.$ac_objext conftest.beam \
8851    conftest$ac_exeext conftest.$ac_ext
8852fi
8853
8854
8855		CFLAGS="$xorg_testset_save_CFLAGS"
8856
8857		eval supported=\$$cacheid
8858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8859printf "%s\n" "$supported" >&6; }
8860		if test "$supported" = "yes" ; then
8861			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8862			found="yes"
8863		fi
8864	fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880xorg_testset_save_CFLAGS="$CFLAGS"
8881
8882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8886if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8887then :
8888  printf %s "(cached) " >&6
8889else $as_nop
8890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891/* end confdefs.h.  */
8892int i;
8893_ACEOF
8894if ac_fn_c_try_compile "$LINENO"
8895then :
8896  xorg_cv_cc_flag_unknown_warning_option=yes
8897else $as_nop
8898  xorg_cv_cc_flag_unknown_warning_option=no
8899fi
8900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8901fi
8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8905	CFLAGS="$xorg_testset_save_CFLAGS"
8906fi
8907
8908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911	fi
8912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8916then :
8917  printf %s "(cached) " >&6
8918else $as_nop
8919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h.  */
8921int i;
8922_ACEOF
8923if ac_fn_c_try_compile "$LINENO"
8924then :
8925  xorg_cv_cc_flag_unused_command_line_argument=yes
8926else $as_nop
8927  xorg_cv_cc_flag_unused_command_line_argument=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8930fi
8931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8934	CFLAGS="$xorg_testset_save_CFLAGS"
8935fi
8936
8937found="no"
8938
8939	if test $found = "no" ; then
8940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8942		fi
8943
8944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946		fi
8947
8948		CFLAGS="$CFLAGS -Wsequence-point"
8949
8950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8951printf %s "checking if $CC supports -Wsequence-point... " >&6; }
8952		cacheid=xorg_cv_cc_flag__Wsequence_point
8953		if eval test \${$cacheid+y}
8954then :
8955  printf %s "(cached) " >&6
8956else $as_nop
8957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959int i;
8960int
8961main (void)
8962{
8963
8964  ;
8965  return 0;
8966}
8967_ACEOF
8968if ac_fn_c_try_link "$LINENO"
8969then :
8970  eval $cacheid=yes
8971else $as_nop
8972  eval $cacheid=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.beam \
8975    conftest$ac_exeext conftest.$ac_ext
8976fi
8977
8978
8979		CFLAGS="$xorg_testset_save_CFLAGS"
8980
8981		eval supported=\$$cacheid
8982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8983printf "%s\n" "$supported" >&6; }
8984		if test "$supported" = "yes" ; then
8985			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8986			found="yes"
8987		fi
8988	fi
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004xorg_testset_save_CFLAGS="$CFLAGS"
9005
9006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9010if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9011then :
9012  printf %s "(cached) " >&6
9013else $as_nop
9014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h.  */
9016int i;
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"
9019then :
9020  xorg_cv_cc_flag_unknown_warning_option=yes
9021else $as_nop
9022  xorg_cv_cc_flag_unknown_warning_option=no
9023fi
9024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9025fi
9026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9029	CFLAGS="$xorg_testset_save_CFLAGS"
9030fi
9031
9032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035	fi
9036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9039if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9040then :
9041  printf %s "(cached) " >&6
9042else $as_nop
9043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046_ACEOF
9047if ac_fn_c_try_compile "$LINENO"
9048then :
9049  xorg_cv_cc_flag_unused_command_line_argument=yes
9050else $as_nop
9051  xorg_cv_cc_flag_unused_command_line_argument=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9054fi
9055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9056printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9058	CFLAGS="$xorg_testset_save_CFLAGS"
9059fi
9060
9061found="no"
9062
9063	if test $found = "no" ; then
9064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066		fi
9067
9068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9070		fi
9071
9072		CFLAGS="$CFLAGS -Wreturn-type"
9073
9074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9075printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9076		cacheid=xorg_cv_cc_flag__Wreturn_type
9077		if eval test \${$cacheid+y}
9078then :
9079  printf %s "(cached) " >&6
9080else $as_nop
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084int
9085main (void)
9086{
9087
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092if ac_fn_c_try_link "$LINENO"
9093then :
9094  eval $cacheid=yes
9095else $as_nop
9096  eval $cacheid=no
9097fi
9098rm -f core conftest.err conftest.$ac_objext conftest.beam \
9099    conftest$ac_exeext conftest.$ac_ext
9100fi
9101
9102
9103		CFLAGS="$xorg_testset_save_CFLAGS"
9104
9105		eval supported=\$$cacheid
9106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9107printf "%s\n" "$supported" >&6; }
9108		if test "$supported" = "yes" ; then
9109			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9110			found="yes"
9111		fi
9112	fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128xorg_testset_save_CFLAGS="$CFLAGS"
9129
9130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9135then :
9136  printf %s "(cached) " >&6
9137else $as_nop
9138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140int i;
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"
9143then :
9144  xorg_cv_cc_flag_unknown_warning_option=yes
9145else $as_nop
9146  xorg_cv_cc_flag_unknown_warning_option=no
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9149fi
9150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9153	CFLAGS="$xorg_testset_save_CFLAGS"
9154fi
9155
9156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159	fi
9160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9163if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9164then :
9165  printf %s "(cached) " >&6
9166else $as_nop
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"
9172then :
9173  xorg_cv_cc_flag_unused_command_line_argument=yes
9174else $as_nop
9175  xorg_cv_cc_flag_unused_command_line_argument=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9178fi
9179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9181	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9182	CFLAGS="$xorg_testset_save_CFLAGS"
9183fi
9184
9185found="no"
9186
9187	if test $found = "no" ; then
9188		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190		fi
9191
9192		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9194		fi
9195
9196		CFLAGS="$CFLAGS -Wtrigraphs"
9197
9198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9199printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9200		cacheid=xorg_cv_cc_flag__Wtrigraphs
9201		if eval test \${$cacheid+y}
9202then :
9203  printf %s "(cached) " >&6
9204else $as_nop
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208int
9209main (void)
9210{
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"
9217then :
9218  eval $cacheid=yes
9219else $as_nop
9220  eval $cacheid=no
9221fi
9222rm -f core conftest.err conftest.$ac_objext conftest.beam \
9223    conftest$ac_exeext conftest.$ac_ext
9224fi
9225
9226
9227		CFLAGS="$xorg_testset_save_CFLAGS"
9228
9229		eval supported=\$$cacheid
9230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9231printf "%s\n" "$supported" >&6; }
9232		if test "$supported" = "yes" ; then
9233			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9234			found="yes"
9235		fi
9236	fi
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252xorg_testset_save_CFLAGS="$CFLAGS"
9253
9254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9257printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9258if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9259then :
9260  printf %s "(cached) " >&6
9261else $as_nop
9262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264int i;
9265_ACEOF
9266if ac_fn_c_try_compile "$LINENO"
9267then :
9268  xorg_cv_cc_flag_unknown_warning_option=yes
9269else $as_nop
9270  xorg_cv_cc_flag_unknown_warning_option=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9273fi
9274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9277	CFLAGS="$xorg_testset_save_CFLAGS"
9278fi
9279
9280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283	fi
9284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9287if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9288then :
9289  printf %s "(cached) " >&6
9290else $as_nop
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294_ACEOF
9295if ac_fn_c_try_compile "$LINENO"
9296then :
9297  xorg_cv_cc_flag_unused_command_line_argument=yes
9298else $as_nop
9299  xorg_cv_cc_flag_unused_command_line_argument=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9302fi
9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9304printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9306	CFLAGS="$xorg_testset_save_CFLAGS"
9307fi
9308
9309found="no"
9310
9311	if test $found = "no" ; then
9312		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314		fi
9315
9316		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9318		fi
9319
9320		CFLAGS="$CFLAGS -Warray-bounds"
9321
9322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9323printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9324		cacheid=xorg_cv_cc_flag__Warray_bounds
9325		if eval test \${$cacheid+y}
9326then :
9327  printf %s "(cached) " >&6
9328else $as_nop
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332int
9333main (void)
9334{
9335
9336  ;
9337  return 0;
9338}
9339_ACEOF
9340if ac_fn_c_try_link "$LINENO"
9341then :
9342  eval $cacheid=yes
9343else $as_nop
9344  eval $cacheid=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext conftest.beam \
9347    conftest$ac_exeext conftest.$ac_ext
9348fi
9349
9350
9351		CFLAGS="$xorg_testset_save_CFLAGS"
9352
9353		eval supported=\$$cacheid
9354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9355printf "%s\n" "$supported" >&6; }
9356		if test "$supported" = "yes" ; then
9357			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9358			found="yes"
9359		fi
9360	fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376xorg_testset_save_CFLAGS="$CFLAGS"
9377
9378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9383then :
9384  printf %s "(cached) " >&6
9385else $as_nop
9386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h.  */
9388int i;
9389_ACEOF
9390if ac_fn_c_try_compile "$LINENO"
9391then :
9392  xorg_cv_cc_flag_unknown_warning_option=yes
9393else $as_nop
9394  xorg_cv_cc_flag_unknown_warning_option=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9397fi
9398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9399printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9401	CFLAGS="$xorg_testset_save_CFLAGS"
9402fi
9403
9404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407	fi
9408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9410printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9411if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9412then :
9413  printf %s "(cached) " >&6
9414else $as_nop
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418_ACEOF
9419if ac_fn_c_try_compile "$LINENO"
9420then :
9421  xorg_cv_cc_flag_unused_command_line_argument=yes
9422else $as_nop
9423  xorg_cv_cc_flag_unused_command_line_argument=no
9424fi
9425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9426fi
9427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9428printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9430	CFLAGS="$xorg_testset_save_CFLAGS"
9431fi
9432
9433found="no"
9434
9435	if test $found = "no" ; then
9436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438		fi
9439
9440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9442		fi
9443
9444		CFLAGS="$CFLAGS -Wwrite-strings"
9445
9446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9447printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
9448		cacheid=xorg_cv_cc_flag__Wwrite_strings
9449		if eval test \${$cacheid+y}
9450then :
9451  printf %s "(cached) " >&6
9452else $as_nop
9453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456int
9457main (void)
9458{
9459
9460  ;
9461  return 0;
9462}
9463_ACEOF
9464if ac_fn_c_try_link "$LINENO"
9465then :
9466  eval $cacheid=yes
9467else $as_nop
9468  eval $cacheid=no
9469fi
9470rm -f core conftest.err conftest.$ac_objext conftest.beam \
9471    conftest$ac_exeext conftest.$ac_ext
9472fi
9473
9474
9475		CFLAGS="$xorg_testset_save_CFLAGS"
9476
9477		eval supported=\$$cacheid
9478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9479printf "%s\n" "$supported" >&6; }
9480		if test "$supported" = "yes" ; then
9481			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9482			found="yes"
9483		fi
9484	fi
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500xorg_testset_save_CFLAGS="$CFLAGS"
9501
9502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9506if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9507then :
9508  printf %s "(cached) " >&6
9509else $as_nop
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512int i;
9513_ACEOF
9514if ac_fn_c_try_compile "$LINENO"
9515then :
9516  xorg_cv_cc_flag_unknown_warning_option=yes
9517else $as_nop
9518  xorg_cv_cc_flag_unknown_warning_option=no
9519fi
9520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9521fi
9522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525	CFLAGS="$xorg_testset_save_CFLAGS"
9526fi
9527
9528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531	fi
9532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9536then :
9537  printf %s "(cached) " >&6
9538else $as_nop
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541int i;
9542_ACEOF
9543if ac_fn_c_try_compile "$LINENO"
9544then :
9545  xorg_cv_cc_flag_unused_command_line_argument=yes
9546else $as_nop
9547  xorg_cv_cc_flag_unused_command_line_argument=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9550fi
9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9554	CFLAGS="$xorg_testset_save_CFLAGS"
9555fi
9556
9557found="no"
9558
9559	if test $found = "no" ; then
9560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9562		fi
9563
9564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9566		fi
9567
9568		CFLAGS="$CFLAGS -Waddress"
9569
9570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9571printf %s "checking if $CC supports -Waddress... " >&6; }
9572		cacheid=xorg_cv_cc_flag__Waddress
9573		if eval test \${$cacheid+y}
9574then :
9575  printf %s "(cached) " >&6
9576else $as_nop
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580int
9581main (void)
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"
9589then :
9590  eval $cacheid=yes
9591else $as_nop
9592  eval $cacheid=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.beam \
9595    conftest$ac_exeext conftest.$ac_ext
9596fi
9597
9598
9599		CFLAGS="$xorg_testset_save_CFLAGS"
9600
9601		eval supported=\$$cacheid
9602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603printf "%s\n" "$supported" >&6; }
9604		if test "$supported" = "yes" ; then
9605			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9606			found="yes"
9607		fi
9608	fi
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624xorg_testset_save_CFLAGS="$CFLAGS"
9625
9626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9631then :
9632  printf %s "(cached) " >&6
9633else $as_nop
9634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h.  */
9636int i;
9637_ACEOF
9638if ac_fn_c_try_compile "$LINENO"
9639then :
9640  xorg_cv_cc_flag_unknown_warning_option=yes
9641else $as_nop
9642  xorg_cv_cc_flag_unknown_warning_option=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9645fi
9646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9649	CFLAGS="$xorg_testset_save_CFLAGS"
9650fi
9651
9652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655	fi
9656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9660then :
9661  printf %s "(cached) " >&6
9662else $as_nop
9663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"
9668then :
9669  xorg_cv_cc_flag_unused_command_line_argument=yes
9670else $as_nop
9671  xorg_cv_cc_flag_unused_command_line_argument=no
9672fi
9673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9674fi
9675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9678	CFLAGS="$xorg_testset_save_CFLAGS"
9679fi
9680
9681found="no"
9682
9683	if test $found = "no" ; then
9684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686		fi
9687
9688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9690		fi
9691
9692		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9693
9694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9695printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9696		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9697		if eval test \${$cacheid+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704int
9705main (void)
9706{
9707
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_link "$LINENO"
9713then :
9714  eval $cacheid=yes
9715else $as_nop
9716  eval $cacheid=no
9717fi
9718rm -f core conftest.err conftest.$ac_objext conftest.beam \
9719    conftest$ac_exeext conftest.$ac_ext
9720fi
9721
9722
9723		CFLAGS="$xorg_testset_save_CFLAGS"
9724
9725		eval supported=\$$cacheid
9726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9727printf "%s\n" "$supported" >&6; }
9728		if test "$supported" = "yes" ; then
9729			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9730			found="yes"
9731		fi
9732	fi
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748xorg_testset_save_CFLAGS="$CFLAGS"
9749
9750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9755then :
9756  printf %s "(cached) " >&6
9757else $as_nop
9758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759/* end confdefs.h.  */
9760int i;
9761_ACEOF
9762if ac_fn_c_try_compile "$LINENO"
9763then :
9764  xorg_cv_cc_flag_unknown_warning_option=yes
9765else $as_nop
9766  xorg_cv_cc_flag_unknown_warning_option=no
9767fi
9768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9769fi
9770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9773	CFLAGS="$xorg_testset_save_CFLAGS"
9774fi
9775
9776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779	fi
9780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9784then :
9785  printf %s "(cached) " >&6
9786else $as_nop
9787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789int i;
9790_ACEOF
9791if ac_fn_c_try_compile "$LINENO"
9792then :
9793  xorg_cv_cc_flag_unused_command_line_argument=yes
9794else $as_nop
9795  xorg_cv_cc_flag_unused_command_line_argument=no
9796fi
9797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9798fi
9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9802	CFLAGS="$xorg_testset_save_CFLAGS"
9803fi
9804
9805found="no"
9806
9807	if test $found = "no" ; then
9808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810		fi
9811
9812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9814		fi
9815
9816		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9817
9818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9819printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9820		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9821		if eval test \${$cacheid+y}
9822then :
9823  printf %s "(cached) " >&6
9824else $as_nop
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828int
9829main (void)
9830{
9831
9832  ;
9833  return 0;
9834}
9835_ACEOF
9836if ac_fn_c_try_link "$LINENO"
9837then :
9838  eval $cacheid=yes
9839else $as_nop
9840  eval $cacheid=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext conftest.beam \
9843    conftest$ac_exeext conftest.$ac_ext
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851printf "%s\n" "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859fi
9860
9861
9862
9863
9864
9865
9866
9867		CWARNFLAGS="$BASE_CFLAGS"
9868		if  test "x$GCC" = xyes ; then
9869		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9870		fi
9871
9872
9873
9874
9875
9876
9877
9878
9879# Check whether --enable-strict-compilation was given.
9880if test ${enable_strict_compilation+y}
9881then :
9882  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9883else $as_nop
9884  STRICT_COMPILE=no
9885fi
9886
9887
9888
9889
9890
9891
9892STRICT_CFLAGS=""
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906xorg_testset_save_CFLAGS="$CFLAGS"
9907
9908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9912if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9913then :
9914  printf %s "(cached) " >&6
9915else $as_nop
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919_ACEOF
9920if ac_fn_c_try_compile "$LINENO"
9921then :
9922  xorg_cv_cc_flag_unknown_warning_option=yes
9923else $as_nop
9924  xorg_cv_cc_flag_unknown_warning_option=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9927fi
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9931	CFLAGS="$xorg_testset_save_CFLAGS"
9932fi
9933
9934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937	fi
9938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9941if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9942then :
9943  printf %s "(cached) " >&6
9944else $as_nop
9945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946/* end confdefs.h.  */
9947int i;
9948_ACEOF
9949if ac_fn_c_try_compile "$LINENO"
9950then :
9951  xorg_cv_cc_flag_unused_command_line_argument=yes
9952else $as_nop
9953  xorg_cv_cc_flag_unused_command_line_argument=no
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9956fi
9957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9960	CFLAGS="$xorg_testset_save_CFLAGS"
9961fi
9962
9963found="no"
9964
9965	if test $found = "no" ; then
9966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968		fi
9969
9970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972		fi
9973
9974		CFLAGS="$CFLAGS -pedantic"
9975
9976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9977printf %s "checking if $CC supports -pedantic... " >&6; }
9978		cacheid=xorg_cv_cc_flag__pedantic
9979		if eval test \${$cacheid+y}
9980then :
9981  printf %s "(cached) " >&6
9982else $as_nop
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986int
9987main (void)
9988{
9989
9990  ;
9991  return 0;
9992}
9993_ACEOF
9994if ac_fn_c_try_link "$LINENO"
9995then :
9996  eval $cacheid=yes
9997else $as_nop
9998  eval $cacheid=no
9999fi
10000rm -f core conftest.err conftest.$ac_objext conftest.beam \
10001    conftest$ac_exeext conftest.$ac_ext
10002fi
10003
10004
10005		CFLAGS="$xorg_testset_save_CFLAGS"
10006
10007		eval supported=\$$cacheid
10008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10009printf "%s\n" "$supported" >&6; }
10010		if test "$supported" = "yes" ; then
10011			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10012			found="yes"
10013		fi
10014	fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030xorg_testset_save_CFLAGS="$CFLAGS"
10031
10032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10037then :
10038  printf %s "(cached) " >&6
10039else $as_nop
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043_ACEOF
10044if ac_fn_c_try_compile "$LINENO"
10045then :
10046  xorg_cv_cc_flag_unknown_warning_option=yes
10047else $as_nop
10048  xorg_cv_cc_flag_unknown_warning_option=no
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10051fi
10052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10055	CFLAGS="$xorg_testset_save_CFLAGS"
10056fi
10057
10058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10061	fi
10062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10066then :
10067  printf %s "(cached) " >&6
10068else $as_nop
10069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070/* end confdefs.h.  */
10071int i;
10072_ACEOF
10073if ac_fn_c_try_compile "$LINENO"
10074then :
10075  xorg_cv_cc_flag_unused_command_line_argument=yes
10076else $as_nop
10077  xorg_cv_cc_flag_unused_command_line_argument=no
10078fi
10079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10080fi
10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10084	CFLAGS="$xorg_testset_save_CFLAGS"
10085fi
10086
10087found="no"
10088
10089	if test $found = "no" ; then
10090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10092		fi
10093
10094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096		fi
10097
10098		CFLAGS="$CFLAGS -Werror"
10099
10100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10101printf %s "checking if $CC supports -Werror... " >&6; }
10102		cacheid=xorg_cv_cc_flag__Werror
10103		if eval test \${$cacheid+y}
10104then :
10105  printf %s "(cached) " >&6
10106else $as_nop
10107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109int i;
10110int
10111main (void)
10112{
10113
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118if ac_fn_c_try_link "$LINENO"
10119then :
10120  eval $cacheid=yes
10121else $as_nop
10122  eval $cacheid=no
10123fi
10124rm -f core conftest.err conftest.$ac_objext conftest.beam \
10125    conftest$ac_exeext conftest.$ac_ext
10126fi
10127
10128
10129		CFLAGS="$xorg_testset_save_CFLAGS"
10130
10131		eval supported=\$$cacheid
10132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10133printf "%s\n" "$supported" >&6; }
10134		if test "$supported" = "yes" ; then
10135			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10136			found="yes"
10137		fi
10138	fi
10139
10140	if test $found = "no" ; then
10141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143		fi
10144
10145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10147		fi
10148
10149		CFLAGS="$CFLAGS -errwarn"
10150
10151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10152printf %s "checking if $CC supports -errwarn... " >&6; }
10153		cacheid=xorg_cv_cc_flag__errwarn
10154		if eval test \${$cacheid+y}
10155then :
10156  printf %s "(cached) " >&6
10157else $as_nop
10158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h.  */
10160int i;
10161int
10162main (void)
10163{
10164
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_link "$LINENO"
10170then :
10171  eval $cacheid=yes
10172else $as_nop
10173  eval $cacheid=no
10174fi
10175rm -f core conftest.err conftest.$ac_objext conftest.beam \
10176    conftest$ac_exeext conftest.$ac_ext
10177fi
10178
10179
10180		CFLAGS="$xorg_testset_save_CFLAGS"
10181
10182		eval supported=\$$cacheid
10183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10184printf "%s\n" "$supported" >&6; }
10185		if test "$supported" = "yes" ; then
10186			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10187			found="yes"
10188		fi
10189	fi
10190
10191
10192
10193# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10194# activate it with -Werror, so we add it here explicitly.
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208xorg_testset_save_CFLAGS="$CFLAGS"
10209
10210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10213printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10214if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10215then :
10216  printf %s "(cached) " >&6
10217else $as_nop
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"
10223then :
10224  xorg_cv_cc_flag_unknown_warning_option=yes
10225else $as_nop
10226  xorg_cv_cc_flag_unknown_warning_option=no
10227fi
10228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10229fi
10230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10233	CFLAGS="$xorg_testset_save_CFLAGS"
10234fi
10235
10236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239	fi
10240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10243if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10244then :
10245  printf %s "(cached) " >&6
10246else $as_nop
10247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h.  */
10249int i;
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"
10252then :
10253  xorg_cv_cc_flag_unused_command_line_argument=yes
10254else $as_nop
10255  xorg_cv_cc_flag_unused_command_line_argument=no
10256fi
10257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10258fi
10259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10262	CFLAGS="$xorg_testset_save_CFLAGS"
10263fi
10264
10265found="no"
10266
10267	if test $found = "no" ; then
10268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270		fi
10271
10272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274		fi
10275
10276		CFLAGS="$CFLAGS -Werror=attributes"
10277
10278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10279printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10280		cacheid=xorg_cv_cc_flag__Werror_attributes
10281		if eval test \${$cacheid+y}
10282then :
10283  printf %s "(cached) " >&6
10284else $as_nop
10285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286/* end confdefs.h.  */
10287int i;
10288int
10289main (void)
10290{
10291
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296if ac_fn_c_try_link "$LINENO"
10297then :
10298  eval $cacheid=yes
10299else $as_nop
10300  eval $cacheid=no
10301fi
10302rm -f core conftest.err conftest.$ac_objext conftest.beam \
10303    conftest$ac_exeext conftest.$ac_ext
10304fi
10305
10306
10307		CFLAGS="$xorg_testset_save_CFLAGS"
10308
10309		eval supported=\$$cacheid
10310		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10311printf "%s\n" "$supported" >&6; }
10312		if test "$supported" = "yes" ; then
10313			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10314			found="yes"
10315		fi
10316	fi
10317
10318
10319
10320if test "x$STRICT_COMPILE" = "xyes"; then
10321    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10322    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10323fi
10324
10325
10326
10327
10328
10329
10330
10331
10332cat >>confdefs.h <<_ACEOF
10333#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10334_ACEOF
10335
10336	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10337	if test "x$PVM" = "x"; then
10338		PVM="0"
10339	fi
10340
10341printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10342
10343	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10344	if test "x$PVP" = "x"; then
10345		PVP="0"
10346	fi
10347
10348printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10349
10350
10351
10352CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10353mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10354|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10355touch \$(top_srcdir)/ChangeLog; \
10356echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10357
10358
10359
10360
10361macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10362INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10363mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10364|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10365touch \$(top_srcdir)/INSTALL; \
10366echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10367
10368
10369
10370
10371
10372
10373case $host_os in
10374    solaris*)
10375        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10376        # check for a man page file found in later versions that use
10377        # traditional section numbers instead
10378        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10379printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10380if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10381then :
10382  printf %s "(cached) " >&6
10383else $as_nop
10384  test "$cross_compiling" = yes &&
10385  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10386if test -r "/usr/share/man/man7/attributes.7"; then
10387  ac_cv_file__usr_share_man_man7_attributes_7=yes
10388else
10389  ac_cv_file__usr_share_man_man7_attributes_7=no
10390fi
10391fi
10392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10393printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10394if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10395then :
10396  SYSV_MAN_SECTIONS=false
10397else $as_nop
10398  SYSV_MAN_SECTIONS=true
10399fi
10400
10401        ;;
10402    *) SYSV_MAN_SECTIONS=false ;;
10403esac
10404
10405if test x$APP_MAN_SUFFIX = x    ; then
10406    APP_MAN_SUFFIX=1
10407fi
10408if test x$APP_MAN_DIR = x    ; then
10409    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10410fi
10411
10412if test x$LIB_MAN_SUFFIX = x    ; then
10413    LIB_MAN_SUFFIX=3
10414fi
10415if test x$LIB_MAN_DIR = x    ; then
10416    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10417fi
10418
10419if test x$FILE_MAN_SUFFIX = x    ; then
10420    case $SYSV_MAN_SECTIONS in
10421	true)				FILE_MAN_SUFFIX=4  ;;
10422	*)				FILE_MAN_SUFFIX=5  ;;
10423    esac
10424fi
10425if test x$FILE_MAN_DIR = x    ; then
10426    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10427fi
10428
10429if test x$MISC_MAN_SUFFIX = x    ; then
10430    case $SYSV_MAN_SECTIONS in
10431	true)				MISC_MAN_SUFFIX=5  ;;
10432	*)				MISC_MAN_SUFFIX=7  ;;
10433    esac
10434fi
10435if test x$MISC_MAN_DIR = x    ; then
10436    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10437fi
10438
10439if test x$DRIVER_MAN_SUFFIX = x    ; then
10440    case $SYSV_MAN_SECTIONS in
10441	true)				DRIVER_MAN_SUFFIX=7  ;;
10442	*)				DRIVER_MAN_SUFFIX=4  ;;
10443    esac
10444fi
10445if test x$DRIVER_MAN_DIR = x    ; then
10446    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10447fi
10448
10449if test x$ADMIN_MAN_SUFFIX = x    ; then
10450    case $SYSV_MAN_SECTIONS in
10451	true)				ADMIN_MAN_SUFFIX=1m ;;
10452	*)				ADMIN_MAN_SUFFIX=8  ;;
10453    esac
10454fi
10455if test x$ADMIN_MAN_DIR = x    ; then
10456    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10457fi
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473XORG_MAN_PAGE="X Version 11"
10474
10475MAN_SUBSTS="\
10476	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10477	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10478	-e 's|__xservername__|Xorg|g' \
10479	-e 's|__xconfigfile__|xorg.conf|g' \
10480	-e 's|__projectroot__|\$(prefix)|g' \
10481	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10482	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10483	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10484	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10485	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10486	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10487	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10488
10489
10490
10491# Check whether --enable-silent-rules was given.
10492if test ${enable_silent_rules+y}
10493then :
10494  enableval=$enable_silent_rules;
10495fi
10496
10497case $enable_silent_rules in # (((
10498  yes) AM_DEFAULT_VERBOSITY=0;;
10499   no) AM_DEFAULT_VERBOSITY=1;;
10500    *) AM_DEFAULT_VERBOSITY=0;;
10501esac
10502am_make=${MAKE-make}
10503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10504printf %s "checking whether $am_make supports nested variables... " >&6; }
10505if test ${am_cv_make_support_nested_variables+y}
10506then :
10507  printf %s "(cached) " >&6
10508else $as_nop
10509  if printf "%s\n" 'TRUE=$(BAR$(V))
10510BAR0=false
10511BAR1=true
10512V=1
10513am__doit:
10514	@$(TRUE)
10515.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10516  am_cv_make_support_nested_variables=yes
10517else
10518  am_cv_make_support_nested_variables=no
10519fi
10520fi
10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10522printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
10523if test $am_cv_make_support_nested_variables = yes; then
10524    AM_V='$(V)'
10525  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10526else
10527  AM_V=$AM_DEFAULT_VERBOSITY
10528  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10529fi
10530AM_BACKSLASH='\'
10531
10532
10533
10534
10535
10536ac_config_headers="$ac_config_headers config.h"
10537
10538
10539
10540# Initialize Automake
10541am__api_version='1.16'
10542
10543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10544printf %s "checking whether build environment is sane... " >&6; }
10545# Reject unsafe characters in $srcdir or the absolute working directory
10546# name.  Accept space and tab only in the latter.
10547am_lf='
10548'
10549case `pwd` in
10550  *[\\\"\#\$\&\'\`$am_lf]*)
10551    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10552esac
10553case $srcdir in
10554  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10555    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10556esac
10557
10558# Do 'set' in a subshell so we don't clobber the current shell's
10559# arguments.  Must try -L first in case configure is actually a
10560# symlink; some systems play weird games with the mod time of symlinks
10561# (eg FreeBSD returns the mod time of the symlink's containing
10562# directory).
10563if (
10564   am_has_slept=no
10565   for am_try in 1 2; do
10566     echo "timestamp, slept: $am_has_slept" > conftest.file
10567     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10568     if test "$*" = "X"; then
10569	# -L didn't work.
10570	set X `ls -t "$srcdir/configure" conftest.file`
10571     fi
10572     if test "$*" != "X $srcdir/configure conftest.file" \
10573	&& test "$*" != "X conftest.file $srcdir/configure"; then
10574
10575	# If neither matched, then we have a broken ls.  This can happen
10576	# if, for instance, CONFIG_SHELL is bash and it inherits a
10577	# broken ls alias from the environment.  This has actually
10578	# happened.  Such a system could not be considered "sane".
10579	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10580  alias in your environment" "$LINENO" 5
10581     fi
10582     if test "$2" = conftest.file || test $am_try -eq 2; then
10583       break
10584     fi
10585     # Just in case.
10586     sleep 1
10587     am_has_slept=yes
10588   done
10589   test "$2" = conftest.file
10590   )
10591then
10592   # Ok.
10593   :
10594else
10595   as_fn_error $? "newly created file is older than distributed files!
10596Check your system clock" "$LINENO" 5
10597fi
10598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599printf "%s\n" "yes" >&6; }
10600# If we didn't sleep, we still need to ensure time stamps of config.status and
10601# generated files are strictly newer.
10602am_sleep_pid=
10603if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10604  ( sleep 1 ) &
10605  am_sleep_pid=$!
10606fi
10607
10608rm -f conftest.file
10609
10610test "$program_prefix" != NONE &&
10611  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10612# Use a double $ so make ignores it.
10613test "$program_suffix" != NONE &&
10614  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10615# Double any \ or $.
10616# By default was `s,x,x', remove it if useless.
10617ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10618program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
10619
10620
10621  if test x"${MISSING+set}" != xset; then
10622  MISSING="\${SHELL} '$am_aux_dir/missing'"
10623fi
10624# Use eval to expand $SHELL
10625if eval "$MISSING --is-lightweight"; then
10626  am_missing_run="$MISSING "
10627else
10628  am_missing_run=
10629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10630printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10631fi
10632
10633if test x"${install_sh+set}" != xset; then
10634  case $am_aux_dir in
10635  *\ * | *\	*)
10636    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10637  *)
10638    install_sh="\${SHELL} $am_aux_dir/install-sh"
10639  esac
10640fi
10641
10642# Installed binaries are usually stripped using 'strip' when the user
10643# run "make install-strip".  However 'strip' might not be the right
10644# tool to use in cross-compilation environments, therefore Automake
10645# will honor the 'STRIP' environment variable to overrule this program.
10646if test "$cross_compiling" != no; then
10647  if test -n "$ac_tool_prefix"; then
10648  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10649set dummy ${ac_tool_prefix}strip; ac_word=$2
10650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651printf %s "checking for $ac_word... " >&6; }
10652if test ${ac_cv_prog_STRIP+y}
10653then :
10654  printf %s "(cached) " >&6
10655else $as_nop
10656  if test -n "$STRIP"; then
10657  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10658else
10659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660for as_dir in $PATH
10661do
10662  IFS=$as_save_IFS
10663  case $as_dir in #(((
10664    '') as_dir=./ ;;
10665    */) ;;
10666    *) as_dir=$as_dir/ ;;
10667  esac
10668    for ac_exec_ext in '' $ac_executable_extensions; do
10669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10672    break 2
10673  fi
10674done
10675  done
10676IFS=$as_save_IFS
10677
10678fi
10679fi
10680STRIP=$ac_cv_prog_STRIP
10681if test -n "$STRIP"; then
10682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10683printf "%s\n" "$STRIP" >&6; }
10684else
10685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686printf "%s\n" "no" >&6; }
10687fi
10688
10689
10690fi
10691if test -z "$ac_cv_prog_STRIP"; then
10692  ac_ct_STRIP=$STRIP
10693  # Extract the first word of "strip", so it can be a program name with args.
10694set dummy strip; ac_word=$2
10695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696printf %s "checking for $ac_word... " >&6; }
10697if test ${ac_cv_prog_ac_ct_STRIP+y}
10698then :
10699  printf %s "(cached) " >&6
10700else $as_nop
10701  if test -n "$ac_ct_STRIP"; then
10702  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10703else
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707  IFS=$as_save_IFS
10708  case $as_dir in #(((
10709    '') as_dir=./ ;;
10710    */) ;;
10711    *) as_dir=$as_dir/ ;;
10712  esac
10713    for ac_exec_ext in '' $ac_executable_extensions; do
10714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10715    ac_cv_prog_ac_ct_STRIP="strip"
10716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10717    break 2
10718  fi
10719done
10720  done
10721IFS=$as_save_IFS
10722
10723fi
10724fi
10725ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10726if test -n "$ac_ct_STRIP"; then
10727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10728printf "%s\n" "$ac_ct_STRIP" >&6; }
10729else
10730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731printf "%s\n" "no" >&6; }
10732fi
10733
10734  if test "x$ac_ct_STRIP" = x; then
10735    STRIP=":"
10736  else
10737    case $cross_compiling:$ac_tool_warned in
10738yes:)
10739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10740printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10741ac_tool_warned=yes ;;
10742esac
10743    STRIP=$ac_ct_STRIP
10744  fi
10745else
10746  STRIP="$ac_cv_prog_STRIP"
10747fi
10748
10749fi
10750INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10751
10752
10753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
10754printf %s "checking for a race-free mkdir -p... " >&6; }
10755if test -z "$MKDIR_P"; then
10756  if test ${ac_cv_path_mkdir+y}
10757then :
10758  printf %s "(cached) " >&6
10759else $as_nop
10760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10762do
10763  IFS=$as_save_IFS
10764  case $as_dir in #(((
10765    '') as_dir=./ ;;
10766    */) ;;
10767    *) as_dir=$as_dir/ ;;
10768  esac
10769    for ac_prog in mkdir gmkdir; do
10770	 for ac_exec_ext in '' $ac_executable_extensions; do
10771	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
10772	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
10773	     'mkdir ('*'coreutils) '* | \
10774	     'BusyBox '* | \
10775	     'mkdir (fileutils) '4.1*)
10776	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
10777	       break 3;;
10778	   esac
10779	 done
10780       done
10781  done
10782IFS=$as_save_IFS
10783
10784fi
10785
10786  test -d ./--version && rmdir ./--version
10787  if test ${ac_cv_path_mkdir+y}; then
10788    MKDIR_P="$ac_cv_path_mkdir -p"
10789  else
10790    # As a last resort, use the slow shell script.  Don't cache a
10791    # value for MKDIR_P within a source directory, because that will
10792    # break other packages using the cache if that directory is
10793    # removed, or if the value is a relative name.
10794    MKDIR_P="$ac_install_sh -d"
10795  fi
10796fi
10797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10798printf "%s\n" "$MKDIR_P" >&6; }
10799
10800for ac_prog in gawk mawk nawk awk
10801do
10802  # Extract the first word of "$ac_prog", so it can be a program name with args.
10803set dummy $ac_prog; ac_word=$2
10804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805printf %s "checking for $ac_word... " >&6; }
10806if test ${ac_cv_prog_AWK+y}
10807then :
10808  printf %s "(cached) " >&6
10809else $as_nop
10810  if test -n "$AWK"; then
10811  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10812else
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816  IFS=$as_save_IFS
10817  case $as_dir in #(((
10818    '') as_dir=./ ;;
10819    */) ;;
10820    *) as_dir=$as_dir/ ;;
10821  esac
10822    for ac_exec_ext in '' $ac_executable_extensions; do
10823  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10824    ac_cv_prog_AWK="$ac_prog"
10825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10826    break 2
10827  fi
10828done
10829  done
10830IFS=$as_save_IFS
10831
10832fi
10833fi
10834AWK=$ac_cv_prog_AWK
10835if test -n "$AWK"; then
10836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10837printf "%s\n" "$AWK" >&6; }
10838else
10839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840printf "%s\n" "no" >&6; }
10841fi
10842
10843
10844  test -n "$AWK" && break
10845done
10846
10847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10848printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10849set x ${MAKE-make}
10850ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10851if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10852then :
10853  printf %s "(cached) " >&6
10854else $as_nop
10855  cat >conftest.make <<\_ACEOF
10856SHELL = /bin/sh
10857all:
10858	@echo '@@@%%%=$(MAKE)=@@@%%%'
10859_ACEOF
10860# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10861case `${MAKE-make} -f conftest.make 2>/dev/null` in
10862  *@@@%%%=?*=@@@%%%*)
10863    eval ac_cv_prog_make_${ac_make}_set=yes;;
10864  *)
10865    eval ac_cv_prog_make_${ac_make}_set=no;;
10866esac
10867rm -f conftest.make
10868fi
10869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871printf "%s\n" "yes" >&6; }
10872  SET_MAKE=
10873else
10874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875printf "%s\n" "no" >&6; }
10876  SET_MAKE="MAKE=${MAKE-make}"
10877fi
10878
10879rm -rf .tst 2>/dev/null
10880mkdir .tst 2>/dev/null
10881if test -d .tst; then
10882  am__leading_dot=.
10883else
10884  am__leading_dot=_
10885fi
10886rmdir .tst 2>/dev/null
10887
10888DEPDIR="${am__leading_dot}deps"
10889
10890ac_config_commands="$ac_config_commands depfiles"
10891
10892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
10893printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
10894cat > confinc.mk << 'END'
10895am__doit:
10896	@echo this is the am__doit target >confinc.out
10897.PHONY: am__doit
10898END
10899am__include="#"
10900am__quote=
10901# BSD make does it like this.
10902echo '.include "confinc.mk" # ignored' > confmf.BSD
10903# Other make implementations (GNU, Solaris 10, AIX) do it like this.
10904echo 'include confinc.mk # ignored' > confmf.GNU
10905_am_result=no
10906for s in GNU BSD; do
10907  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
10908   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }
10912  case $?:`cat confinc.out 2>/dev/null` in #(
10913  '0:this is the am__doit target') :
10914    case $s in #(
10915  BSD) :
10916    am__include='.include' am__quote='"' ;; #(
10917  *) :
10918    am__include='include' am__quote='' ;;
10919esac ;; #(
10920  *) :
10921     ;;
10922esac
10923  if test "$am__include" != "#"; then
10924    _am_result="yes ($s style)"
10925    break
10926  fi
10927done
10928rm -f confinc.* confmf.*
10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
10930printf "%s\n" "${_am_result}" >&6; }
10931
10932# Check whether --enable-dependency-tracking was given.
10933if test ${enable_dependency_tracking+y}
10934then :
10935  enableval=$enable_dependency_tracking;
10936fi
10937
10938if test "x$enable_dependency_tracking" != xno; then
10939  am_depcomp="$ac_aux_dir/depcomp"
10940  AMDEPBACKSLASH='\'
10941  am__nodep='_no'
10942fi
10943 if test "x$enable_dependency_tracking" != xno; then
10944  AMDEP_TRUE=
10945  AMDEP_FALSE='#'
10946else
10947  AMDEP_TRUE='#'
10948  AMDEP_FALSE=
10949fi
10950
10951
10952if test "`cd $srcdir && pwd`" != "`pwd`"; then
10953  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10954  # is not polluted with repeated "-I."
10955  am__isrc=' -I$(srcdir)'
10956  # test to see if srcdir already configured
10957  if test -f $srcdir/config.status; then
10958    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10959  fi
10960fi
10961
10962# test whether we have cygpath
10963if test -z "$CYGPATH_W"; then
10964  if (cygpath --version) >/dev/null 2>/dev/null; then
10965    CYGPATH_W='cygpath -w'
10966  else
10967    CYGPATH_W=echo
10968  fi
10969fi
10970
10971
10972# Define the identity of the package.
10973 PACKAGE='xf86-video-siliconmotion'
10974 VERSION='1.7.10'
10975
10976
10977printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
10978
10979
10980printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
10981
10982# Some tools Automake needs.
10983
10984ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10985
10986
10987AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10988
10989
10990AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10991
10992
10993AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10994
10995
10996MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10997
10998# For better backward compatibility.  To be removed once Automake 1.9.x
10999# dies out for good.  For more background, see:
11000# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11001# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11002mkdir_p='$(MKDIR_P)'
11003
11004# We need awk for the "check" target (and possibly the TAP driver).  The
11005# system "awk" is bad on some platforms.
11006# Always define AMTAR for backward compatibility.  Yes, it's still used
11007# in the wild :-(  We should find a proper way to deprecate it ...
11008AMTAR='$${TAR-tar}'
11009
11010
11011# We'll loop over all known methods to create a tar archive until one works.
11012_am_tools='gnutar  pax cpio none'
11013
11014am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11015
11016
11017
11018
11019
11020depcc="$CC"   am_compiler_list=
11021
11022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11023printf %s "checking dependency style of $depcc... " >&6; }
11024if test ${am_cv_CC_dependencies_compiler_type+y}
11025then :
11026  printf %s "(cached) " >&6
11027else $as_nop
11028  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11029  # We make a subdir and do the tests there.  Otherwise we can end up
11030  # making bogus files that we don't know about and never remove.  For
11031  # instance it was reported that on HP-UX the gcc test will end up
11032  # making a dummy file named 'D' -- because '-MD' means "put the output
11033  # in D".
11034  rm -rf conftest.dir
11035  mkdir conftest.dir
11036  # Copy depcomp to subdir because otherwise we won't find it if we're
11037  # using a relative directory.
11038  cp "$am_depcomp" conftest.dir
11039  cd conftest.dir
11040  # We will build objects and dependencies in a subdirectory because
11041  # it helps to detect inapplicable dependency modes.  For instance
11042  # both Tru64's cc and ICC support -MD to output dependencies as a
11043  # side effect of compilation, but ICC will put the dependencies in
11044  # the current directory while Tru64 will put them in the object
11045  # directory.
11046  mkdir sub
11047
11048  am_cv_CC_dependencies_compiler_type=none
11049  if test "$am_compiler_list" = ""; then
11050     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11051  fi
11052  am__universal=false
11053  case " $depcc " in #(
11054     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11055     esac
11056
11057  for depmode in $am_compiler_list; do
11058    # Setup a source with many dependencies, because some compilers
11059    # like to wrap large dependency lists on column 80 (with \), and
11060    # we should not choose a depcomp mode which is confused by this.
11061    #
11062    # We need to recreate these files for each test, as the compiler may
11063    # overwrite some of them when testing with obscure command lines.
11064    # This happens at least with the AIX C compiler.
11065    : > sub/conftest.c
11066    for i in 1 2 3 4 5 6; do
11067      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11068      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11069      # Solaris 10 /bin/sh.
11070      echo '/* dummy */' > sub/conftst$i.h
11071    done
11072    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11073
11074    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11075    # mode.  It turns out that the SunPro C++ compiler does not properly
11076    # handle '-M -o', and we need to detect this.  Also, some Intel
11077    # versions had trouble with output in subdirs.
11078    am__obj=sub/conftest.${OBJEXT-o}
11079    am__minus_obj="-o $am__obj"
11080    case $depmode in
11081    gcc)
11082      # This depmode causes a compiler race in universal mode.
11083      test "$am__universal" = false || continue
11084      ;;
11085    nosideeffect)
11086      # After this tag, mechanisms are not by side-effect, so they'll
11087      # only be used when explicitly requested.
11088      if test "x$enable_dependency_tracking" = xyes; then
11089	continue
11090      else
11091	break
11092      fi
11093      ;;
11094    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11095      # This compiler won't grok '-c -o', but also, the minuso test has
11096      # not run yet.  These depmodes are late enough in the game, and
11097      # so weak that their functioning should not be impacted.
11098      am__obj=conftest.${OBJEXT-o}
11099      am__minus_obj=
11100      ;;
11101    none) break ;;
11102    esac
11103    if depmode=$depmode \
11104       source=sub/conftest.c object=$am__obj \
11105       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11106       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11107         >/dev/null 2>conftest.err &&
11108       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11109       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11110       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11111       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11112      # icc doesn't choke on unknown options, it will just issue warnings
11113      # or remarks (even with -Werror).  So we grep stderr for any message
11114      # that says an option was ignored or not supported.
11115      # When given -MP, icc 7.0 and 7.1 complain thusly:
11116      #   icc: Command line warning: ignoring option '-M'; no argument required
11117      # The diagnosis changed in icc 8.0:
11118      #   icc: Command line remark: option '-MP' not supported
11119      if (grep 'ignoring option' conftest.err ||
11120          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11121        am_cv_CC_dependencies_compiler_type=$depmode
11122        break
11123      fi
11124    fi
11125  done
11126
11127  cd ..
11128  rm -rf conftest.dir
11129else
11130  am_cv_CC_dependencies_compiler_type=none
11131fi
11132
11133fi
11134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11135printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
11136CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11137
11138 if
11139  test "x$enable_dependency_tracking" != xno \
11140  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11141  am__fastdepCC_TRUE=
11142  am__fastdepCC_FALSE='#'
11143else
11144  am__fastdepCC_TRUE='#'
11145  am__fastdepCC_FALSE=
11146fi
11147
11148
11149# Variables for tags utilities; see am/tags.am
11150if test -z "$CTAGS"; then
11151  CTAGS=ctags
11152fi
11153
11154if test -z "$ETAGS"; then
11155  ETAGS=etags
11156fi
11157
11158if test -z "$CSCOPE"; then
11159  CSCOPE=cscope
11160fi
11161
11162
11163
11164# POSIX will say in a future version that running "rm -f" with no argument
11165# is OK; and we want to be able to make that assumption in our Makefile
11166# recipes.  So use an aggressive probe to check that the usage we want is
11167# actually supported "in the wild" to an acceptable degree.
11168# See automake bug#10828.
11169# To make any issue more visible, cause the running configure to be aborted
11170# by default if the 'rm' program in use doesn't match our expectations; the
11171# user can still override this though.
11172if rm -f && rm -fr && rm -rf; then : OK; else
11173  cat >&2 <<'END'
11174Oops!
11175
11176Your 'rm' program seems unable to run without file operands specified
11177on the command line, even when the '-f' option is present.  This is contrary
11178to the behaviour of most rm programs out there, and not conforming with
11179the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11180
11181Please tell bug-automake@gnu.org about your system, including the value
11182of your $PATH and any error possibly output before this message.  This
11183can help us improve future automake versions.
11184
11185END
11186  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11187    echo 'Configuration will proceed anyway, since you have set the' >&2
11188    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11189    echo >&2
11190  else
11191    cat >&2 <<'END'
11192Aborting the configuration process, to ensure you take notice of the issue.
11193
11194You can download and install GNU coreutils to get an 'rm' implementation
11195that behaves properly: <https://www.gnu.org/software/coreutils/>.
11196
11197If you want to complete the configuration process using your problematic
11198'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11199to "yes", and re-run configure.
11200
11201END
11202    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11203  fi
11204fi
11205
11206
11207# Initialize libtool
11208# Check whether --enable-static was given.
11209if test ${enable_static+y}
11210then :
11211  enableval=$enable_static; p=${PACKAGE-default}
11212    case $enableval in
11213    yes) enable_static=yes ;;
11214    no) enable_static=no ;;
11215    *)
11216     enable_static=no
11217      # Look at the argument we got.  We use all the common list separators.
11218      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11219      for pkg in $enableval; do
11220	IFS=$lt_save_ifs
11221	if test "X$pkg" = "X$p"; then
11222	  enable_static=yes
11223	fi
11224      done
11225      IFS=$lt_save_ifs
11226      ;;
11227    esac
11228else $as_nop
11229  enable_static=no
11230fi
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240case `pwd` in
11241  *\ * | *\	*)
11242    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11243printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11244esac
11245
11246
11247
11248macro_version='2.4.7'
11249macro_revision='2.4.7'
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264ltmain=$ac_aux_dir/ltmain.sh
11265
11266# Backslashify metacharacters that are still active within
11267# double-quoted strings.
11268sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11269
11270# Same as above, but do not quote variable references.
11271double_quote_subst='s/\(["`\\]\)/\\\1/g'
11272
11273# Sed substitution to delay expansion of an escaped shell variable in a
11274# double_quote_subst'ed string.
11275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11276
11277# Sed substitution to delay expansion of an escaped single quote.
11278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11279
11280# Sed substitution to avoid accidental globbing in evaled expressions
11281no_glob_subst='s/\*/\\\*/g'
11282
11283ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11284ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11285ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11286
11287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11288printf %s "checking how to print strings... " >&6; }
11289# Test print first, because it will be a builtin if present.
11290if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11291   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11292  ECHO='print -r --'
11293elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11294  ECHO='printf %s\n'
11295else
11296  # Use this function as a fallback that always works.
11297  func_fallback_echo ()
11298  {
11299    eval 'cat <<_LTECHO_EOF
11300$1
11301_LTECHO_EOF'
11302  }
11303  ECHO='func_fallback_echo'
11304fi
11305
11306# func_echo_all arg...
11307# Invoke $ECHO with all args, space-separated.
11308func_echo_all ()
11309{
11310    $ECHO ""
11311}
11312
11313case $ECHO in
11314  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11315printf "%s\n" "printf" >&6; } ;;
11316  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11317printf "%s\n" "print -r" >&6; } ;;
11318  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11319printf "%s\n" "cat" >&6; } ;;
11320esac
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11336printf %s "checking for a sed that does not truncate output... " >&6; }
11337if test ${ac_cv_path_SED+y}
11338then :
11339  printf %s "(cached) " >&6
11340else $as_nop
11341            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11342     for ac_i in 1 2 3 4 5 6 7; do
11343       ac_script="$ac_script$as_nl$ac_script"
11344     done
11345     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11346     { ac_script=; unset ac_script;}
11347     if test -z "$SED"; then
11348  ac_path_SED_found=false
11349  # Loop through the user's path and test for each of PROGNAME-LIST
11350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353  IFS=$as_save_IFS
11354  case $as_dir in #(((
11355    '') as_dir=./ ;;
11356    */) ;;
11357    *) as_dir=$as_dir/ ;;
11358  esac
11359    for ac_prog in sed gsed
11360   do
11361    for ac_exec_ext in '' $ac_executable_extensions; do
11362      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11363      as_fn_executable_p "$ac_path_SED" || continue
11364# Check for GNU ac_path_SED and select it if it is found.
11365  # Check for GNU $ac_path_SED
11366case `"$ac_path_SED" --version 2>&1` in
11367*GNU*)
11368  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11369*)
11370  ac_count=0
11371  printf %s 0123456789 >"conftest.in"
11372  while :
11373  do
11374    cat "conftest.in" "conftest.in" >"conftest.tmp"
11375    mv "conftest.tmp" "conftest.in"
11376    cp "conftest.in" "conftest.nl"
11377    printf "%s\n" '' >> "conftest.nl"
11378    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11379    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11380    as_fn_arith $ac_count + 1 && ac_count=$as_val
11381    if test $ac_count -gt ${ac_path_SED_max-0}; then
11382      # Best one so far, save it but keep looking for a better one
11383      ac_cv_path_SED="$ac_path_SED"
11384      ac_path_SED_max=$ac_count
11385    fi
11386    # 10*(2^10) chars as input seems more than enough
11387    test $ac_count -gt 10 && break
11388  done
11389  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11390esac
11391
11392      $ac_path_SED_found && break 3
11393    done
11394  done
11395  done
11396IFS=$as_save_IFS
11397  if test -z "$ac_cv_path_SED"; then
11398    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11399  fi
11400else
11401  ac_cv_path_SED=$SED
11402fi
11403
11404fi
11405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11406printf "%s\n" "$ac_cv_path_SED" >&6; }
11407 SED="$ac_cv_path_SED"
11408  rm -f conftest.sed
11409
11410test -z "$SED" && SED=sed
11411Xsed="$SED -e 1s/^X//"
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11424printf %s "checking for grep that handles long lines and -e... " >&6; }
11425if test ${ac_cv_path_GREP+y}
11426then :
11427  printf %s "(cached) " >&6
11428else $as_nop
11429  if test -z "$GREP"; then
11430  ac_path_GREP_found=false
11431  # Loop through the user's path and test for each of PROGNAME-LIST
11432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11434do
11435  IFS=$as_save_IFS
11436  case $as_dir in #(((
11437    '') as_dir=./ ;;
11438    */) ;;
11439    *) as_dir=$as_dir/ ;;
11440  esac
11441    for ac_prog in grep ggrep
11442   do
11443    for ac_exec_ext in '' $ac_executable_extensions; do
11444      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11445      as_fn_executable_p "$ac_path_GREP" || continue
11446# Check for GNU ac_path_GREP and select it if it is found.
11447  # Check for GNU $ac_path_GREP
11448case `"$ac_path_GREP" --version 2>&1` in
11449*GNU*)
11450  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11451*)
11452  ac_count=0
11453  printf %s 0123456789 >"conftest.in"
11454  while :
11455  do
11456    cat "conftest.in" "conftest.in" >"conftest.tmp"
11457    mv "conftest.tmp" "conftest.in"
11458    cp "conftest.in" "conftest.nl"
11459    printf "%s\n" 'GREP' >> "conftest.nl"
11460    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11461    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11462    as_fn_arith $ac_count + 1 && ac_count=$as_val
11463    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11464      # Best one so far, save it but keep looking for a better one
11465      ac_cv_path_GREP="$ac_path_GREP"
11466      ac_path_GREP_max=$ac_count
11467    fi
11468    # 10*(2^10) chars as input seems more than enough
11469    test $ac_count -gt 10 && break
11470  done
11471  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11472esac
11473
11474      $ac_path_GREP_found && break 3
11475    done
11476  done
11477  done
11478IFS=$as_save_IFS
11479  if test -z "$ac_cv_path_GREP"; then
11480    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11481  fi
11482else
11483  ac_cv_path_GREP=$GREP
11484fi
11485
11486fi
11487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11488printf "%s\n" "$ac_cv_path_GREP" >&6; }
11489 GREP="$ac_cv_path_GREP"
11490
11491
11492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11493printf %s "checking for egrep... " >&6; }
11494if test ${ac_cv_path_EGREP+y}
11495then :
11496  printf %s "(cached) " >&6
11497else $as_nop
11498  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11499   then ac_cv_path_EGREP="$GREP -E"
11500   else
11501     if test -z "$EGREP"; then
11502  ac_path_EGREP_found=false
11503  # Loop through the user's path and test for each of PROGNAME-LIST
11504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11506do
11507  IFS=$as_save_IFS
11508  case $as_dir in #(((
11509    '') as_dir=./ ;;
11510    */) ;;
11511    *) as_dir=$as_dir/ ;;
11512  esac
11513    for ac_prog in egrep
11514   do
11515    for ac_exec_ext in '' $ac_executable_extensions; do
11516      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11517      as_fn_executable_p "$ac_path_EGREP" || continue
11518# Check for GNU ac_path_EGREP and select it if it is found.
11519  # Check for GNU $ac_path_EGREP
11520case `"$ac_path_EGREP" --version 2>&1` in
11521*GNU*)
11522  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11523*)
11524  ac_count=0
11525  printf %s 0123456789 >"conftest.in"
11526  while :
11527  do
11528    cat "conftest.in" "conftest.in" >"conftest.tmp"
11529    mv "conftest.tmp" "conftest.in"
11530    cp "conftest.in" "conftest.nl"
11531    printf "%s\n" 'EGREP' >> "conftest.nl"
11532    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11533    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11534    as_fn_arith $ac_count + 1 && ac_count=$as_val
11535    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11536      # Best one so far, save it but keep looking for a better one
11537      ac_cv_path_EGREP="$ac_path_EGREP"
11538      ac_path_EGREP_max=$ac_count
11539    fi
11540    # 10*(2^10) chars as input seems more than enough
11541    test $ac_count -gt 10 && break
11542  done
11543  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11544esac
11545
11546      $ac_path_EGREP_found && break 3
11547    done
11548  done
11549  done
11550IFS=$as_save_IFS
11551  if test -z "$ac_cv_path_EGREP"; then
11552    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11553  fi
11554else
11555  ac_cv_path_EGREP=$EGREP
11556fi
11557
11558   fi
11559fi
11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11561printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11562 EGREP="$ac_cv_path_EGREP"
11563
11564
11565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11566printf %s "checking for fgrep... " >&6; }
11567if test ${ac_cv_path_FGREP+y}
11568then :
11569  printf %s "(cached) " >&6
11570else $as_nop
11571  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11572   then ac_cv_path_FGREP="$GREP -F"
11573   else
11574     if test -z "$FGREP"; then
11575  ac_path_FGREP_found=false
11576  # Loop through the user's path and test for each of PROGNAME-LIST
11577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11579do
11580  IFS=$as_save_IFS
11581  case $as_dir in #(((
11582    '') as_dir=./ ;;
11583    */) ;;
11584    *) as_dir=$as_dir/ ;;
11585  esac
11586    for ac_prog in fgrep
11587   do
11588    for ac_exec_ext in '' $ac_executable_extensions; do
11589      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11590      as_fn_executable_p "$ac_path_FGREP" || continue
11591# Check for GNU ac_path_FGREP and select it if it is found.
11592  # Check for GNU $ac_path_FGREP
11593case `"$ac_path_FGREP" --version 2>&1` in
11594*GNU*)
11595  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11596*)
11597  ac_count=0
11598  printf %s 0123456789 >"conftest.in"
11599  while :
11600  do
11601    cat "conftest.in" "conftest.in" >"conftest.tmp"
11602    mv "conftest.tmp" "conftest.in"
11603    cp "conftest.in" "conftest.nl"
11604    printf "%s\n" 'FGREP' >> "conftest.nl"
11605    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11606    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11607    as_fn_arith $ac_count + 1 && ac_count=$as_val
11608    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11609      # Best one so far, save it but keep looking for a better one
11610      ac_cv_path_FGREP="$ac_path_FGREP"
11611      ac_path_FGREP_max=$ac_count
11612    fi
11613    # 10*(2^10) chars as input seems more than enough
11614    test $ac_count -gt 10 && break
11615  done
11616  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11617esac
11618
11619      $ac_path_FGREP_found && break 3
11620    done
11621  done
11622  done
11623IFS=$as_save_IFS
11624  if test -z "$ac_cv_path_FGREP"; then
11625    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11626  fi
11627else
11628  ac_cv_path_FGREP=$FGREP
11629fi
11630
11631   fi
11632fi
11633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11634printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11635 FGREP="$ac_cv_path_FGREP"
11636
11637
11638test -z "$GREP" && GREP=grep
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658# Check whether --with-gnu-ld was given.
11659if test ${with_gnu_ld+y}
11660then :
11661  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11662else $as_nop
11663  with_gnu_ld=no
11664fi
11665
11666ac_prog=ld
11667if test yes = "$GCC"; then
11668  # Check if gcc -print-prog-name=ld gives a path.
11669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11670printf %s "checking for ld used by $CC... " >&6; }
11671  case $host in
11672  *-*-mingw*)
11673    # gcc leaves a trailing carriage return, which upsets mingw
11674    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11675  *)
11676    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11677  esac
11678  case $ac_prog in
11679    # Accept absolute paths.
11680    [\\/]* | ?:[\\/]*)
11681      re_direlt='/[^/][^/]*/\.\./'
11682      # Canonicalize the pathname of ld
11683      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11684      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11685	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11686      done
11687      test -z "$LD" && LD=$ac_prog
11688      ;;
11689  "")
11690    # If it fails, then pretend we aren't using GCC.
11691    ac_prog=ld
11692    ;;
11693  *)
11694    # If it is relative, then search for the first ld in PATH.
11695    with_gnu_ld=unknown
11696    ;;
11697  esac
11698elif test yes = "$with_gnu_ld"; then
11699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11700printf %s "checking for GNU ld... " >&6; }
11701else
11702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11703printf %s "checking for non-GNU ld... " >&6; }
11704fi
11705if test ${lt_cv_path_LD+y}
11706then :
11707  printf %s "(cached) " >&6
11708else $as_nop
11709  if test -z "$LD"; then
11710  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11711  for ac_dir in $PATH; do
11712    IFS=$lt_save_ifs
11713    test -z "$ac_dir" && ac_dir=.
11714    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11715      lt_cv_path_LD=$ac_dir/$ac_prog
11716      # Check to see if the program is GNU ld.  I'd rather use --version,
11717      # but apparently some variants of GNU ld only accept -v.
11718      # Break only if it was the GNU/non-GNU ld that we prefer.
11719      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11720      *GNU* | *'with BFD'*)
11721	test no != "$with_gnu_ld" && break
11722	;;
11723      *)
11724	test yes != "$with_gnu_ld" && break
11725	;;
11726      esac
11727    fi
11728  done
11729  IFS=$lt_save_ifs
11730else
11731  lt_cv_path_LD=$LD # Let the user override the test with a path.
11732fi
11733fi
11734
11735LD=$lt_cv_path_LD
11736if test -n "$LD"; then
11737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11738printf "%s\n" "$LD" >&6; }
11739else
11740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741printf "%s\n" "no" >&6; }
11742fi
11743test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11745printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11746if test ${lt_cv_prog_gnu_ld+y}
11747then :
11748  printf %s "(cached) " >&6
11749else $as_nop
11750  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11751case `$LD -v 2>&1 </dev/null` in
11752*GNU* | *'with BFD'*)
11753  lt_cv_prog_gnu_ld=yes
11754  ;;
11755*)
11756  lt_cv_prog_gnu_ld=no
11757  ;;
11758esac
11759fi
11760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11761printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11762with_gnu_ld=$lt_cv_prog_gnu_ld
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11773printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11774if test ${lt_cv_path_NM+y}
11775then :
11776  printf %s "(cached) " >&6
11777else $as_nop
11778  if test -n "$NM"; then
11779  # Let the user override the test.
11780  lt_cv_path_NM=$NM
11781else
11782  lt_nm_to_check=${ac_tool_prefix}nm
11783  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11784    lt_nm_to_check="$lt_nm_to_check nm"
11785  fi
11786  for lt_tmp_nm in $lt_nm_to_check; do
11787    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11788    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11789      IFS=$lt_save_ifs
11790      test -z "$ac_dir" && ac_dir=.
11791      tmp_nm=$ac_dir/$lt_tmp_nm
11792      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11793	# Check to see if the nm accepts a BSD-compat flag.
11794	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11795	#   nm: unknown option "B" ignored
11796	# Tru64's nm complains that /dev/null is an invalid object file
11797	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11798	case $build_os in
11799	mingw*) lt_bad_file=conftest.nm/nofile ;;
11800	*) lt_bad_file=/dev/null ;;
11801	esac
11802	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11803	*$lt_bad_file* | *'Invalid file or object type'*)
11804	  lt_cv_path_NM="$tmp_nm -B"
11805	  break 2
11806	  ;;
11807	*)
11808	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11809	  */dev/null*)
11810	    lt_cv_path_NM="$tmp_nm -p"
11811	    break 2
11812	    ;;
11813	  *)
11814	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11815	    continue # so that we can try to find one that supports BSD flags
11816	    ;;
11817	  esac
11818	  ;;
11819	esac
11820      fi
11821    done
11822    IFS=$lt_save_ifs
11823  done
11824  : ${lt_cv_path_NM=no}
11825fi
11826fi
11827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11828printf "%s\n" "$lt_cv_path_NM" >&6; }
11829if test no != "$lt_cv_path_NM"; then
11830  NM=$lt_cv_path_NM
11831else
11832  # Didn't find any BSD compatible name lister, look for dumpbin.
11833  if test -n "$DUMPBIN"; then :
11834    # Let the user override the test.
11835  else
11836    if test -n "$ac_tool_prefix"; then
11837  for ac_prog in dumpbin "link -dump"
11838  do
11839    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11840set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842printf %s "checking for $ac_word... " >&6; }
11843if test ${ac_cv_prog_DUMPBIN+y}
11844then :
11845  printf %s "(cached) " >&6
11846else $as_nop
11847  if test -n "$DUMPBIN"; then
11848  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11849else
11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853  IFS=$as_save_IFS
11854  case $as_dir in #(((
11855    '') as_dir=./ ;;
11856    */) ;;
11857    *) as_dir=$as_dir/ ;;
11858  esac
11859    for ac_exec_ext in '' $ac_executable_extensions; do
11860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11861    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11863    break 2
11864  fi
11865done
11866  done
11867IFS=$as_save_IFS
11868
11869fi
11870fi
11871DUMPBIN=$ac_cv_prog_DUMPBIN
11872if test -n "$DUMPBIN"; then
11873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11874printf "%s\n" "$DUMPBIN" >&6; }
11875else
11876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877printf "%s\n" "no" >&6; }
11878fi
11879
11880
11881    test -n "$DUMPBIN" && break
11882  done
11883fi
11884if test -z "$DUMPBIN"; then
11885  ac_ct_DUMPBIN=$DUMPBIN
11886  for ac_prog in dumpbin "link -dump"
11887do
11888  # Extract the first word of "$ac_prog", so it can be a program name with args.
11889set dummy $ac_prog; ac_word=$2
11890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891printf %s "checking for $ac_word... " >&6; }
11892if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11893then :
11894  printf %s "(cached) " >&6
11895else $as_nop
11896  if test -n "$ac_ct_DUMPBIN"; then
11897  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902  IFS=$as_save_IFS
11903  case $as_dir in #(((
11904    '') as_dir=./ ;;
11905    */) ;;
11906    *) as_dir=$as_dir/ ;;
11907  esac
11908    for ac_exec_ext in '' $ac_executable_extensions; do
11909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11910    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11912    break 2
11913  fi
11914done
11915  done
11916IFS=$as_save_IFS
11917
11918fi
11919fi
11920ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11921if test -n "$ac_ct_DUMPBIN"; then
11922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11923printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11924else
11925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926printf "%s\n" "no" >&6; }
11927fi
11928
11929
11930  test -n "$ac_ct_DUMPBIN" && break
11931done
11932
11933  if test "x$ac_ct_DUMPBIN" = x; then
11934    DUMPBIN=":"
11935  else
11936    case $cross_compiling:$ac_tool_warned in
11937yes:)
11938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940ac_tool_warned=yes ;;
11941esac
11942    DUMPBIN=$ac_ct_DUMPBIN
11943  fi
11944fi
11945
11946    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11947    *COFF*)
11948      DUMPBIN="$DUMPBIN -symbols -headers"
11949      ;;
11950    *)
11951      DUMPBIN=:
11952      ;;
11953    esac
11954  fi
11955
11956  if test : != "$DUMPBIN"; then
11957    NM=$DUMPBIN
11958  fi
11959fi
11960test -z "$NM" && NM=nm
11961
11962
11963
11964
11965
11966
11967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11968printf %s "checking the name lister ($NM) interface... " >&6; }
11969if test ${lt_cv_nm_interface+y}
11970then :
11971  printf %s "(cached) " >&6
11972else $as_nop
11973  lt_cv_nm_interface="BSD nm"
11974  echo "int some_variable = 0;" > conftest.$ac_ext
11975  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11976  (eval "$ac_compile" 2>conftest.err)
11977  cat conftest.err >&5
11978  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11979  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11980  cat conftest.err >&5
11981  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11982  cat conftest.out >&5
11983  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11984    lt_cv_nm_interface="MS dumpbin"
11985  fi
11986  rm -f conftest*
11987fi
11988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11989printf "%s\n" "$lt_cv_nm_interface" >&6; }
11990
11991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11992printf %s "checking whether ln -s works... " >&6; }
11993LN_S=$as_ln_s
11994if test "$LN_S" = "ln -s"; then
11995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11996printf "%s\n" "yes" >&6; }
11997else
11998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11999printf "%s\n" "no, using $LN_S" >&6; }
12000fi
12001
12002# find the maximum length of command line arguments
12003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12004printf %s "checking the maximum length of command line arguments... " >&6; }
12005if test ${lt_cv_sys_max_cmd_len+y}
12006then :
12007  printf %s "(cached) " >&6
12008else $as_nop
12009    i=0
12010  teststring=ABCD
12011
12012  case $build_os in
12013  msdosdjgpp*)
12014    # On DJGPP, this test can blow up pretty badly due to problems in libc
12015    # (any single argument exceeding 2000 bytes causes a buffer overrun
12016    # during glob expansion).  Even if it were fixed, the result of this
12017    # check would be larger than it should be.
12018    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12019    ;;
12020
12021  gnu*)
12022    # Under GNU Hurd, this test is not required because there is
12023    # no limit to the length of command line arguments.
12024    # Libtool will interpret -1 as no limit whatsoever
12025    lt_cv_sys_max_cmd_len=-1;
12026    ;;
12027
12028  cygwin* | mingw* | cegcc*)
12029    # On Win9x/ME, this test blows up -- it succeeds, but takes
12030    # about 5 minutes as the teststring grows exponentially.
12031    # Worse, since 9x/ME are not pre-emptively multitasking,
12032    # you end up with a "frozen" computer, even though with patience
12033    # the test eventually succeeds (with a max line length of 256k).
12034    # Instead, let's just punt: use the minimum linelength reported by
12035    # all of the supported platforms: 8192 (on NT/2K/XP).
12036    lt_cv_sys_max_cmd_len=8192;
12037    ;;
12038
12039  mint*)
12040    # On MiNT this can take a long time and run out of memory.
12041    lt_cv_sys_max_cmd_len=8192;
12042    ;;
12043
12044  amigaos*)
12045    # On AmigaOS with pdksh, this test takes hours, literally.
12046    # So we just punt and use a minimum line length of 8192.
12047    lt_cv_sys_max_cmd_len=8192;
12048    ;;
12049
12050  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12051    # This has been around since 386BSD, at least.  Likely further.
12052    if test -x /sbin/sysctl; then
12053      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12054    elif test -x /usr/sbin/sysctl; then
12055      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12056    else
12057      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12058    fi
12059    # And add a safety zone
12060    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12061    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12062    ;;
12063
12064  interix*)
12065    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12066    lt_cv_sys_max_cmd_len=196608
12067    ;;
12068
12069  os2*)
12070    # The test takes a long time on OS/2.
12071    lt_cv_sys_max_cmd_len=8192
12072    ;;
12073
12074  osf*)
12075    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12076    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12077    # nice to cause kernel panics so lets avoid the loop below.
12078    # First set a reasonable default.
12079    lt_cv_sys_max_cmd_len=16384
12080    #
12081    if test -x /sbin/sysconfig; then
12082      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12083        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12084      esac
12085    fi
12086    ;;
12087  sco3.2v5*)
12088    lt_cv_sys_max_cmd_len=102400
12089    ;;
12090  sysv5* | sco5v6* | sysv4.2uw2*)
12091    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12092    if test -n "$kargmax"; then
12093      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12094    else
12095      lt_cv_sys_max_cmd_len=32768
12096    fi
12097    ;;
12098  *)
12099    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12100    if test -n "$lt_cv_sys_max_cmd_len" && \
12101       test undefined != "$lt_cv_sys_max_cmd_len"; then
12102      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12103      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12104    else
12105      # Make teststring a little bigger before we do anything with it.
12106      # a 1K string should be a reasonable start.
12107      for i in 1 2 3 4 5 6 7 8; do
12108        teststring=$teststring$teststring
12109      done
12110      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12111      # If test is not a shell built-in, we'll probably end up computing a
12112      # maximum length that is only half of the actual maximum length, but
12113      # we can't tell.
12114      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12115	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12116	      test 17 != "$i" # 1/2 MB should be enough
12117      do
12118        i=`expr $i + 1`
12119        teststring=$teststring$teststring
12120      done
12121      # Only check the string length outside the loop.
12122      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12123      teststring=
12124      # Add a significant safety factor because C++ compilers can tack on
12125      # massive amounts of additional arguments before passing them to the
12126      # linker.  It appears as though 1/2 is a usable value.
12127      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12128    fi
12129    ;;
12130  esac
12131
12132fi
12133
12134if test -n "$lt_cv_sys_max_cmd_len"; then
12135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12136printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12137else
12138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12139printf "%s\n" "none" >&6; }
12140fi
12141max_cmd_len=$lt_cv_sys_max_cmd_len
12142
12143
12144
12145
12146
12147
12148: ${CP="cp -f"}
12149: ${MV="mv -f"}
12150: ${RM="rm -f"}
12151
12152if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12153  lt_unset=unset
12154else
12155  lt_unset=false
12156fi
12157
12158
12159
12160
12161
12162# test EBCDIC or ASCII
12163case `echo X|tr X '\101'` in
12164 A) # ASCII based system
12165    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12166  lt_SP2NL='tr \040 \012'
12167  lt_NL2SP='tr \015\012 \040\040'
12168  ;;
12169 *) # EBCDIC based system
12170  lt_SP2NL='tr \100 \n'
12171  lt_NL2SP='tr \r\n \100\100'
12172  ;;
12173esac
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12184printf %s "checking how to convert $build file names to $host format... " >&6; }
12185if test ${lt_cv_to_host_file_cmd+y}
12186then :
12187  printf %s "(cached) " >&6
12188else $as_nop
12189  case $host in
12190  *-*-mingw* )
12191    case $build in
12192      *-*-mingw* ) # actually msys
12193        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12194        ;;
12195      *-*-cygwin* )
12196        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12197        ;;
12198      * ) # otherwise, assume *nix
12199        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12200        ;;
12201    esac
12202    ;;
12203  *-*-cygwin* )
12204    case $build in
12205      *-*-mingw* ) # actually msys
12206        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12207        ;;
12208      *-*-cygwin* )
12209        lt_cv_to_host_file_cmd=func_convert_file_noop
12210        ;;
12211      * ) # otherwise, assume *nix
12212        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12213        ;;
12214    esac
12215    ;;
12216  * ) # unhandled hosts (and "normal" native builds)
12217    lt_cv_to_host_file_cmd=func_convert_file_noop
12218    ;;
12219esac
12220
12221fi
12222
12223to_host_file_cmd=$lt_cv_to_host_file_cmd
12224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12225printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12226
12227
12228
12229
12230
12231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12232printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12233if test ${lt_cv_to_tool_file_cmd+y}
12234then :
12235  printf %s "(cached) " >&6
12236else $as_nop
12237  #assume ordinary cross tools, or native build.
12238lt_cv_to_tool_file_cmd=func_convert_file_noop
12239case $host in
12240  *-*-mingw* )
12241    case $build in
12242      *-*-mingw* ) # actually msys
12243        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12244        ;;
12245    esac
12246    ;;
12247esac
12248
12249fi
12250
12251to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12253printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12254
12255
12256
12257
12258
12259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12260printf %s "checking for $LD option to reload object files... " >&6; }
12261if test ${lt_cv_ld_reload_flag+y}
12262then :
12263  printf %s "(cached) " >&6
12264else $as_nop
12265  lt_cv_ld_reload_flag='-r'
12266fi
12267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12268printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12269reload_flag=$lt_cv_ld_reload_flag
12270case $reload_flag in
12271"" | " "*) ;;
12272*) reload_flag=" $reload_flag" ;;
12273esac
12274reload_cmds='$LD$reload_flag -o $output$reload_objs'
12275case $host_os in
12276  cygwin* | mingw* | pw32* | cegcc*)
12277    if test yes != "$GCC"; then
12278      reload_cmds=false
12279    fi
12280    ;;
12281  darwin*)
12282    if test yes = "$GCC"; then
12283      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12284    else
12285      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12286    fi
12287    ;;
12288esac
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298if test -n "$ac_tool_prefix"; then
12299  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12300set dummy ${ac_tool_prefix}file; ac_word=$2
12301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302printf %s "checking for $ac_word... " >&6; }
12303if test ${ac_cv_prog_FILECMD+y}
12304then :
12305  printf %s "(cached) " >&6
12306else $as_nop
12307  if test -n "$FILECMD"; then
12308  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313  IFS=$as_save_IFS
12314  case $as_dir in #(((
12315    '') as_dir=./ ;;
12316    */) ;;
12317    *) as_dir=$as_dir/ ;;
12318  esac
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12321    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331FILECMD=$ac_cv_prog_FILECMD
12332if test -n "$FILECMD"; then
12333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12334printf "%s\n" "$FILECMD" >&6; }
12335else
12336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337printf "%s\n" "no" >&6; }
12338fi
12339
12340
12341fi
12342if test -z "$ac_cv_prog_FILECMD"; then
12343  ac_ct_FILECMD=$FILECMD
12344  # Extract the first word of "file", so it can be a program name with args.
12345set dummy file; ac_word=$2
12346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347printf %s "checking for $ac_word... " >&6; }
12348if test ${ac_cv_prog_ac_ct_FILECMD+y}
12349then :
12350  printf %s "(cached) " >&6
12351else $as_nop
12352  if test -n "$ac_ct_FILECMD"; then
12353  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358  IFS=$as_save_IFS
12359  case $as_dir in #(((
12360    '') as_dir=./ ;;
12361    */) ;;
12362    *) as_dir=$as_dir/ ;;
12363  esac
12364    for ac_exec_ext in '' $ac_executable_extensions; do
12365  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12366    ac_cv_prog_ac_ct_FILECMD="file"
12367    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12368    break 2
12369  fi
12370done
12371  done
12372IFS=$as_save_IFS
12373
12374fi
12375fi
12376ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12377if test -n "$ac_ct_FILECMD"; then
12378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12379printf "%s\n" "$ac_ct_FILECMD" >&6; }
12380else
12381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382printf "%s\n" "no" >&6; }
12383fi
12384
12385  if test "x$ac_ct_FILECMD" = x; then
12386    FILECMD=":"
12387  else
12388    case $cross_compiling:$ac_tool_warned in
12389yes:)
12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392ac_tool_warned=yes ;;
12393esac
12394    FILECMD=$ac_ct_FILECMD
12395  fi
12396else
12397  FILECMD="$ac_cv_prog_FILECMD"
12398fi
12399
12400
12401
12402
12403
12404
12405
12406if test -n "$ac_tool_prefix"; then
12407  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12408set dummy ${ac_tool_prefix}objdump; ac_word=$2
12409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410printf %s "checking for $ac_word... " >&6; }
12411if test ${ac_cv_prog_OBJDUMP+y}
12412then :
12413  printf %s "(cached) " >&6
12414else $as_nop
12415  if test -n "$OBJDUMP"; then
12416  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12417else
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421  IFS=$as_save_IFS
12422  case $as_dir in #(((
12423    '') as_dir=./ ;;
12424    */) ;;
12425    *) as_dir=$as_dir/ ;;
12426  esac
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_OBJDUMP="${ac_tool_prefix}objdump"
12430    printf "%s\n" "$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
12439OBJDUMP=$ac_cv_prog_OBJDUMP
12440if test -n "$OBJDUMP"; then
12441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12442printf "%s\n" "$OBJDUMP" >&6; }
12443else
12444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445printf "%s\n" "no" >&6; }
12446fi
12447
12448
12449fi
12450if test -z "$ac_cv_prog_OBJDUMP"; then
12451  ac_ct_OBJDUMP=$OBJDUMP
12452  # Extract the first word of "objdump", so it can be a program name with args.
12453set dummy objdump; ac_word=$2
12454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455printf %s "checking for $ac_word... " >&6; }
12456if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12457then :
12458  printf %s "(cached) " >&6
12459else $as_nop
12460  if test -n "$ac_ct_OBJDUMP"; then
12461  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12462else
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466  IFS=$as_save_IFS
12467  case $as_dir in #(((
12468    '') as_dir=./ ;;
12469    */) ;;
12470    *) as_dir=$as_dir/ ;;
12471  esac
12472    for ac_exec_ext in '' $ac_executable_extensions; do
12473  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12474    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12475    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12476    break 2
12477  fi
12478done
12479  done
12480IFS=$as_save_IFS
12481
12482fi
12483fi
12484ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12485if test -n "$ac_ct_OBJDUMP"; then
12486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12487printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12488else
12489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490printf "%s\n" "no" >&6; }
12491fi
12492
12493  if test "x$ac_ct_OBJDUMP" = x; then
12494    OBJDUMP="false"
12495  else
12496    case $cross_compiling:$ac_tool_warned in
12497yes:)
12498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12499printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12500ac_tool_warned=yes ;;
12501esac
12502    OBJDUMP=$ac_ct_OBJDUMP
12503  fi
12504else
12505  OBJDUMP="$ac_cv_prog_OBJDUMP"
12506fi
12507
12508test -z "$OBJDUMP" && OBJDUMP=objdump
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12519printf %s "checking how to recognize dependent libraries... " >&6; }
12520if test ${lt_cv_deplibs_check_method+y}
12521then :
12522  printf %s "(cached) " >&6
12523else $as_nop
12524  lt_cv_file_magic_cmd='$MAGIC_CMD'
12525lt_cv_file_magic_test_file=
12526lt_cv_deplibs_check_method='unknown'
12527# Need to set the preceding variable on all platforms that support
12528# interlibrary dependencies.
12529# 'none' -- dependencies not supported.
12530# 'unknown' -- same as none, but documents that we really don't know.
12531# 'pass_all' -- all dependencies passed with no checks.
12532# 'test_compile' -- check by making test program.
12533# 'file_magic [[regex]]' -- check by looking for files in library path
12534# that responds to the $file_magic_cmd with a given extended regex.
12535# If you have 'file' or equivalent on your system and you're not sure
12536# whether 'pass_all' will *always* work, you probably want this one.
12537
12538case $host_os in
12539aix[4-9]*)
12540  lt_cv_deplibs_check_method=pass_all
12541  ;;
12542
12543beos*)
12544  lt_cv_deplibs_check_method=pass_all
12545  ;;
12546
12547bsdi[45]*)
12548  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12549  lt_cv_file_magic_cmd='$FILECMD -L'
12550  lt_cv_file_magic_test_file=/shlib/libc.so
12551  ;;
12552
12553cygwin*)
12554  # func_win32_libid is a shell function defined in ltmain.sh
12555  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12556  lt_cv_file_magic_cmd='func_win32_libid'
12557  ;;
12558
12559mingw* | pw32*)
12560  # Base MSYS/MinGW do not provide the 'file' command needed by
12561  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12562  # unless we find 'file', for example because we are cross-compiling.
12563  if ( file / ) >/dev/null 2>&1; then
12564    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12565    lt_cv_file_magic_cmd='func_win32_libid'
12566  else
12567    # Keep this pattern in sync with the one in func_win32_libid.
12568    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12569    lt_cv_file_magic_cmd='$OBJDUMP -f'
12570  fi
12571  ;;
12572
12573cegcc*)
12574  # use the weaker test based on 'objdump'. See mingw*.
12575  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12576  lt_cv_file_magic_cmd='$OBJDUMP -f'
12577  ;;
12578
12579darwin* | rhapsody*)
12580  lt_cv_deplibs_check_method=pass_all
12581  ;;
12582
12583freebsd* | dragonfly* | midnightbsd*)
12584  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12585    case $host_cpu in
12586    i*86 )
12587      # Not sure whether the presence of OpenBSD here was a mistake.
12588      # Let's accept both of them until this is cleared up.
12589      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12590      lt_cv_file_magic_cmd=$FILECMD
12591      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12592      ;;
12593    esac
12594  else
12595    lt_cv_deplibs_check_method=pass_all
12596  fi
12597  ;;
12598
12599haiku*)
12600  lt_cv_deplibs_check_method=pass_all
12601  ;;
12602
12603hpux10.20* | hpux11*)
12604  lt_cv_file_magic_cmd=$FILECMD
12605  case $host_cpu in
12606  ia64*)
12607    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12608    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12609    ;;
12610  hppa*64*)
12611    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]'
12612    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12613    ;;
12614  *)
12615    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12616    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12617    ;;
12618  esac
12619  ;;
12620
12621interix[3-9]*)
12622  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12623  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12624  ;;
12625
12626irix5* | irix6* | nonstopux*)
12627  case $LD in
12628  *-32|*"-32 ") libmagic=32-bit;;
12629  *-n32|*"-n32 ") libmagic=N32;;
12630  *-64|*"-64 ") libmagic=64-bit;;
12631  *) libmagic=never-match;;
12632  esac
12633  lt_cv_deplibs_check_method=pass_all
12634  ;;
12635
12636# This must be glibc/ELF.
12637linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12638  lt_cv_deplibs_check_method=pass_all
12639  ;;
12640
12641netbsd*)
12642  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12643    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12644  else
12645    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12646  fi
12647  ;;
12648
12649newos6*)
12650  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12651  lt_cv_file_magic_cmd=$FILECMD
12652  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12653  ;;
12654
12655*nto* | *qnx*)
12656  lt_cv_deplibs_check_method=pass_all
12657  ;;
12658
12659openbsd* | bitrig*)
12660  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12661    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12662  else
12663    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12664  fi
12665  ;;
12666
12667osf3* | osf4* | osf5*)
12668  lt_cv_deplibs_check_method=pass_all
12669  ;;
12670
12671rdos*)
12672  lt_cv_deplibs_check_method=pass_all
12673  ;;
12674
12675solaris*)
12676  lt_cv_deplibs_check_method=pass_all
12677  ;;
12678
12679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12680  lt_cv_deplibs_check_method=pass_all
12681  ;;
12682
12683sysv4 | sysv4.3*)
12684  case $host_vendor in
12685  motorola)
12686    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]'
12687    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12688    ;;
12689  ncr)
12690    lt_cv_deplibs_check_method=pass_all
12691    ;;
12692  sequent)
12693    lt_cv_file_magic_cmd='/bin/file'
12694    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12695    ;;
12696  sni)
12697    lt_cv_file_magic_cmd='/bin/file'
12698    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12699    lt_cv_file_magic_test_file=/lib/libc.so
12700    ;;
12701  siemens)
12702    lt_cv_deplibs_check_method=pass_all
12703    ;;
12704  pc)
12705    lt_cv_deplibs_check_method=pass_all
12706    ;;
12707  esac
12708  ;;
12709
12710tpf*)
12711  lt_cv_deplibs_check_method=pass_all
12712  ;;
12713os2*)
12714  lt_cv_deplibs_check_method=pass_all
12715  ;;
12716esac
12717
12718fi
12719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12720printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12721
12722file_magic_glob=
12723want_nocaseglob=no
12724if test "$build" = "$host"; then
12725  case $host_os in
12726  mingw* | pw32*)
12727    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12728      want_nocaseglob=yes
12729    else
12730      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12731    fi
12732    ;;
12733  esac
12734fi
12735
12736file_magic_cmd=$lt_cv_file_magic_cmd
12737deplibs_check_method=$lt_cv_deplibs_check_method
12738test -z "$deplibs_check_method" && deplibs_check_method=unknown
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761if test -n "$ac_tool_prefix"; then
12762  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12763set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765printf %s "checking for $ac_word... " >&6; }
12766if test ${ac_cv_prog_DLLTOOL+y}
12767then :
12768  printf %s "(cached) " >&6
12769else $as_nop
12770  if test -n "$DLLTOOL"; then
12771  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776  IFS=$as_save_IFS
12777  case $as_dir in #(((
12778    '') as_dir=./ ;;
12779    */) ;;
12780    *) as_dir=$as_dir/ ;;
12781  esac
12782    for ac_exec_ext in '' $ac_executable_extensions; do
12783  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12784    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12785    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12786    break 2
12787  fi
12788done
12789  done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794DLLTOOL=$ac_cv_prog_DLLTOOL
12795if test -n "$DLLTOOL"; then
12796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12797printf "%s\n" "$DLLTOOL" >&6; }
12798else
12799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800printf "%s\n" "no" >&6; }
12801fi
12802
12803
12804fi
12805if test -z "$ac_cv_prog_DLLTOOL"; then
12806  ac_ct_DLLTOOL=$DLLTOOL
12807  # Extract the first word of "dlltool", so it can be a program name with args.
12808set dummy dlltool; ac_word=$2
12809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810printf %s "checking for $ac_word... " >&6; }
12811if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12812then :
12813  printf %s "(cached) " >&6
12814else $as_nop
12815  if test -n "$ac_ct_DLLTOOL"; then
12816  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12817else
12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821  IFS=$as_save_IFS
12822  case $as_dir in #(((
12823    '') as_dir=./ ;;
12824    */) ;;
12825    *) as_dir=$as_dir/ ;;
12826  esac
12827    for ac_exec_ext in '' $ac_executable_extensions; do
12828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12829    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12831    break 2
12832  fi
12833done
12834  done
12835IFS=$as_save_IFS
12836
12837fi
12838fi
12839ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12840if test -n "$ac_ct_DLLTOOL"; then
12841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12842printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12843else
12844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845printf "%s\n" "no" >&6; }
12846fi
12847
12848  if test "x$ac_ct_DLLTOOL" = x; then
12849    DLLTOOL="false"
12850  else
12851    case $cross_compiling:$ac_tool_warned in
12852yes:)
12853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12855ac_tool_warned=yes ;;
12856esac
12857    DLLTOOL=$ac_ct_DLLTOOL
12858  fi
12859else
12860  DLLTOOL="$ac_cv_prog_DLLTOOL"
12861fi
12862
12863test -z "$DLLTOOL" && DLLTOOL=dlltool
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12875printf %s "checking how to associate runtime and link libraries... " >&6; }
12876if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12877then :
12878  printf %s "(cached) " >&6
12879else $as_nop
12880  lt_cv_sharedlib_from_linklib_cmd='unknown'
12881
12882case $host_os in
12883cygwin* | mingw* | pw32* | cegcc*)
12884  # two different shell functions defined in ltmain.sh;
12885  # decide which one to use based on capabilities of $DLLTOOL
12886  case `$DLLTOOL --help 2>&1` in
12887  *--identify-strict*)
12888    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12889    ;;
12890  *)
12891    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12892    ;;
12893  esac
12894  ;;
12895*)
12896  # fallback: assume linklib IS sharedlib
12897  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12898  ;;
12899esac
12900
12901fi
12902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12903printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12904sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12905test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12906
12907
12908
12909
12910
12911
12912
12913if test -n "$ac_tool_prefix"; then
12914  for ac_prog in ar
12915  do
12916    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919printf %s "checking for $ac_word... " >&6; }
12920if test ${ac_cv_prog_AR+y}
12921then :
12922  printf %s "(cached) " >&6
12923else $as_nop
12924  if test -n "$AR"; then
12925  ac_cv_prog_AR="$AR" # Let the user override the test.
12926else
12927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928for as_dir in $PATH
12929do
12930  IFS=$as_save_IFS
12931  case $as_dir in #(((
12932    '') as_dir=./ ;;
12933    */) ;;
12934    *) as_dir=$as_dir/ ;;
12935  esac
12936    for ac_exec_ext in '' $ac_executable_extensions; do
12937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12938    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12940    break 2
12941  fi
12942done
12943  done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948AR=$ac_cv_prog_AR
12949if test -n "$AR"; then
12950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12951printf "%s\n" "$AR" >&6; }
12952else
12953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954printf "%s\n" "no" >&6; }
12955fi
12956
12957
12958    test -n "$AR" && break
12959  done
12960fi
12961if test -z "$AR"; then
12962  ac_ct_AR=$AR
12963  for ac_prog in ar
12964do
12965  # Extract the first word of "$ac_prog", so it can be a program name with args.
12966set dummy $ac_prog; ac_word=$2
12967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968printf %s "checking for $ac_word... " >&6; }
12969if test ${ac_cv_prog_ac_ct_AR+y}
12970then :
12971  printf %s "(cached) " >&6
12972else $as_nop
12973  if test -n "$ac_ct_AR"; then
12974  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12975else
12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979  IFS=$as_save_IFS
12980  case $as_dir in #(((
12981    '') as_dir=./ ;;
12982    */) ;;
12983    *) as_dir=$as_dir/ ;;
12984  esac
12985    for ac_exec_ext in '' $ac_executable_extensions; do
12986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12987    ac_cv_prog_ac_ct_AR="$ac_prog"
12988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12989    break 2
12990  fi
12991done
12992  done
12993IFS=$as_save_IFS
12994
12995fi
12996fi
12997ac_ct_AR=$ac_cv_prog_ac_ct_AR
12998if test -n "$ac_ct_AR"; then
12999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13000printf "%s\n" "$ac_ct_AR" >&6; }
13001else
13002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003printf "%s\n" "no" >&6; }
13004fi
13005
13006
13007  test -n "$ac_ct_AR" && break
13008done
13009
13010  if test "x$ac_ct_AR" = x; then
13011    AR="false"
13012  else
13013    case $cross_compiling:$ac_tool_warned in
13014yes:)
13015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13017ac_tool_warned=yes ;;
13018esac
13019    AR=$ac_ct_AR
13020  fi
13021fi
13022
13023: ${AR=ar}
13024
13025
13026
13027
13028
13029
13030# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13031# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13032# higher priority because thats what people were doing historically (setting
13033# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13034# variable obsoleted/removed.
13035
13036test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13037lt_ar_flags=$AR_FLAGS
13038
13039
13040
13041
13042
13043
13044# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13045# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13046
13047
13048
13049
13050
13051
13052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13053printf %s "checking for archiver @FILE support... " >&6; }
13054if test ${lt_cv_ar_at_file+y}
13055then :
13056  printf %s "(cached) " >&6
13057else $as_nop
13058  lt_cv_ar_at_file=no
13059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061
13062int
13063main (void)
13064{
13065
13066  ;
13067  return 0;
13068}
13069_ACEOF
13070if ac_fn_c_try_compile "$LINENO"
13071then :
13072  echo conftest.$ac_objext > conftest.lst
13073      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13074      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13075  (eval $lt_ar_try) 2>&5
13076  ac_status=$?
13077  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078  test $ac_status = 0; }
13079      if test 0 -eq "$ac_status"; then
13080	# Ensure the archiver fails upon bogus file names.
13081	rm -f conftest.$ac_objext libconftest.a
13082	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13083  (eval $lt_ar_try) 2>&5
13084  ac_status=$?
13085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086  test $ac_status = 0; }
13087	if test 0 -ne "$ac_status"; then
13088          lt_cv_ar_at_file=@
13089        fi
13090      fi
13091      rm -f conftest.* libconftest.a
13092
13093fi
13094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13095
13096fi
13097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13098printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13099
13100if test no = "$lt_cv_ar_at_file"; then
13101  archiver_list_spec=
13102else
13103  archiver_list_spec=$lt_cv_ar_at_file
13104fi
13105
13106
13107
13108
13109
13110
13111
13112if test -n "$ac_tool_prefix"; then
13113  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13114set dummy ${ac_tool_prefix}strip; ac_word=$2
13115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116printf %s "checking for $ac_word... " >&6; }
13117if test ${ac_cv_prog_STRIP+y}
13118then :
13119  printf %s "(cached) " >&6
13120else $as_nop
13121  if test -n "$STRIP"; then
13122  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13123else
13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125for as_dir in $PATH
13126do
13127  IFS=$as_save_IFS
13128  case $as_dir in #(((
13129    '') as_dir=./ ;;
13130    */) ;;
13131    *) as_dir=$as_dir/ ;;
13132  esac
13133    for ac_exec_ext in '' $ac_executable_extensions; do
13134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13135    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13137    break 2
13138  fi
13139done
13140  done
13141IFS=$as_save_IFS
13142
13143fi
13144fi
13145STRIP=$ac_cv_prog_STRIP
13146if test -n "$STRIP"; then
13147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13148printf "%s\n" "$STRIP" >&6; }
13149else
13150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151printf "%s\n" "no" >&6; }
13152fi
13153
13154
13155fi
13156if test -z "$ac_cv_prog_STRIP"; then
13157  ac_ct_STRIP=$STRIP
13158  # Extract the first word of "strip", so it can be a program name with args.
13159set dummy strip; ac_word=$2
13160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161printf %s "checking for $ac_word... " >&6; }
13162if test ${ac_cv_prog_ac_ct_STRIP+y}
13163then :
13164  printf %s "(cached) " >&6
13165else $as_nop
13166  if test -n "$ac_ct_STRIP"; then
13167  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13168else
13169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170for as_dir in $PATH
13171do
13172  IFS=$as_save_IFS
13173  case $as_dir in #(((
13174    '') as_dir=./ ;;
13175    */) ;;
13176    *) as_dir=$as_dir/ ;;
13177  esac
13178    for ac_exec_ext in '' $ac_executable_extensions; do
13179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13180    ac_cv_prog_ac_ct_STRIP="strip"
13181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13182    break 2
13183  fi
13184done
13185  done
13186IFS=$as_save_IFS
13187
13188fi
13189fi
13190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13191if test -n "$ac_ct_STRIP"; then
13192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13193printf "%s\n" "$ac_ct_STRIP" >&6; }
13194else
13195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196printf "%s\n" "no" >&6; }
13197fi
13198
13199  if test "x$ac_ct_STRIP" = x; then
13200    STRIP=":"
13201  else
13202    case $cross_compiling:$ac_tool_warned in
13203yes:)
13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13206ac_tool_warned=yes ;;
13207esac
13208    STRIP=$ac_ct_STRIP
13209  fi
13210else
13211  STRIP="$ac_cv_prog_STRIP"
13212fi
13213
13214test -z "$STRIP" && STRIP=:
13215
13216
13217
13218
13219
13220
13221if test -n "$ac_tool_prefix"; then
13222  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13223set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225printf %s "checking for $ac_word... " >&6; }
13226if test ${ac_cv_prog_RANLIB+y}
13227then :
13228  printf %s "(cached) " >&6
13229else $as_nop
13230  if test -n "$RANLIB"; then
13231  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13232else
13233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236  IFS=$as_save_IFS
13237  case $as_dir in #(((
13238    '') as_dir=./ ;;
13239    */) ;;
13240    *) as_dir=$as_dir/ ;;
13241  esac
13242    for ac_exec_ext in '' $ac_executable_extensions; do
13243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13244    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13246    break 2
13247  fi
13248done
13249  done
13250IFS=$as_save_IFS
13251
13252fi
13253fi
13254RANLIB=$ac_cv_prog_RANLIB
13255if test -n "$RANLIB"; then
13256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13257printf "%s\n" "$RANLIB" >&6; }
13258else
13259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260printf "%s\n" "no" >&6; }
13261fi
13262
13263
13264fi
13265if test -z "$ac_cv_prog_RANLIB"; then
13266  ac_ct_RANLIB=$RANLIB
13267  # Extract the first word of "ranlib", so it can be a program name with args.
13268set dummy ranlib; ac_word=$2
13269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270printf %s "checking for $ac_word... " >&6; }
13271if test ${ac_cv_prog_ac_ct_RANLIB+y}
13272then :
13273  printf %s "(cached) " >&6
13274else $as_nop
13275  if test -n "$ac_ct_RANLIB"; then
13276  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13277else
13278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $PATH
13280do
13281  IFS=$as_save_IFS
13282  case $as_dir in #(((
13283    '') as_dir=./ ;;
13284    */) ;;
13285    *) as_dir=$as_dir/ ;;
13286  esac
13287    for ac_exec_ext in '' $ac_executable_extensions; do
13288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13289    ac_cv_prog_ac_ct_RANLIB="ranlib"
13290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13291    break 2
13292  fi
13293done
13294  done
13295IFS=$as_save_IFS
13296
13297fi
13298fi
13299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13300if test -n "$ac_ct_RANLIB"; then
13301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13302printf "%s\n" "$ac_ct_RANLIB" >&6; }
13303else
13304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305printf "%s\n" "no" >&6; }
13306fi
13307
13308  if test "x$ac_ct_RANLIB" = x; then
13309    RANLIB=":"
13310  else
13311    case $cross_compiling:$ac_tool_warned in
13312yes:)
13313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315ac_tool_warned=yes ;;
13316esac
13317    RANLIB=$ac_ct_RANLIB
13318  fi
13319else
13320  RANLIB="$ac_cv_prog_RANLIB"
13321fi
13322
13323test -z "$RANLIB" && RANLIB=:
13324
13325
13326
13327
13328
13329
13330# Determine commands to create old-style static archives.
13331old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13332old_postinstall_cmds='chmod 644 $oldlib'
13333old_postuninstall_cmds=
13334
13335if test -n "$RANLIB"; then
13336  case $host_os in
13337  bitrig* | openbsd*)
13338    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13339    ;;
13340  *)
13341    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13342    ;;
13343  esac
13344  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13345fi
13346
13347case $host_os in
13348  darwin*)
13349    lock_old_archive_extraction=yes ;;
13350  *)
13351    lock_old_archive_extraction=no ;;
13352esac
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392# If no C compiler was specified, use CC.
13393LTCC=${LTCC-"$CC"}
13394
13395# If no C compiler flags were specified, use CFLAGS.
13396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13397
13398# Allow CC to be a program name with arguments.
13399compiler=$CC
13400
13401
13402# Check for command to grab the raw symbol name followed by C symbol from nm.
13403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13404printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13405if test ${lt_cv_sys_global_symbol_pipe+y}
13406then :
13407  printf %s "(cached) " >&6
13408else $as_nop
13409
13410# These are sane defaults that work on at least a few old systems.
13411# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13412
13413# Character class describing NM global symbol codes.
13414symcode='[BCDEGRST]'
13415
13416# Regexp to match symbols that can be accessed directly from C.
13417sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13418
13419# Define system-specific variables.
13420case $host_os in
13421aix*)
13422  symcode='[BCDT]'
13423  ;;
13424cygwin* | mingw* | pw32* | cegcc*)
13425  symcode='[ABCDGISTW]'
13426  ;;
13427hpux*)
13428  if test ia64 = "$host_cpu"; then
13429    symcode='[ABCDEGRST]'
13430  fi
13431  ;;
13432irix* | nonstopux*)
13433  symcode='[BCDEGRST]'
13434  ;;
13435osf*)
13436  symcode='[BCDEGQRST]'
13437  ;;
13438solaris*)
13439  symcode='[BDRT]'
13440  ;;
13441sco3.2v5*)
13442  symcode='[DT]'
13443  ;;
13444sysv4.2uw2*)
13445  symcode='[DT]'
13446  ;;
13447sysv5* | sco5v6* | unixware* | OpenUNIX*)
13448  symcode='[ABDT]'
13449  ;;
13450sysv4)
13451  symcode='[DFNSTU]'
13452  ;;
13453esac
13454
13455# If we're using GNU nm, then use its standard symbol codes.
13456case `$NM -V 2>&1` in
13457*GNU* | *'with BFD'*)
13458  symcode='[ABCDGIRSTW]' ;;
13459esac
13460
13461if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13462  # Gets list of data symbols to import.
13463  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13464  # Adjust the below global symbol transforms to fixup imported variables.
13465  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13466  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13467  lt_c_name_lib_hook="\
13468  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13469  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13470else
13471  # Disable hooks by default.
13472  lt_cv_sys_global_symbol_to_import=
13473  lt_cdecl_hook=
13474  lt_c_name_hook=
13475  lt_c_name_lib_hook=
13476fi
13477
13478# Transform an extracted symbol line into a proper C declaration.
13479# Some systems (esp. on ia64) link data and code symbols differently,
13480# so use this general approach.
13481lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13482$lt_cdecl_hook\
13483" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13484" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13485
13486# Transform an extracted symbol line into symbol name and symbol address
13487lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13488$lt_c_name_hook\
13489" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13490" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13491
13492# Transform an extracted symbol line into symbol name with lib prefix and
13493# symbol address.
13494lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13495$lt_c_name_lib_hook\
13496" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13497" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13498" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13499
13500# Handle CRLF in mingw tool chain
13501opt_cr=
13502case $build_os in
13503mingw*)
13504  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13505  ;;
13506esac
13507
13508# Try without a prefix underscore, then with it.
13509for ac_symprfx in "" "_"; do
13510
13511  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13512  symxfrm="\\1 $ac_symprfx\\2 \\2"
13513
13514  # Write the raw and C identifiers.
13515  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13516    # Fake it for dumpbin and say T for any non-static function,
13517    # D for any global variable and I for any imported variable.
13518    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13519    # which start with @ or ?.
13520    lt_cv_sys_global_symbol_pipe="$AWK '"\
13521"     {last_section=section; section=\$ 3};"\
13522"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13523"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13524"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13525"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13526"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13527"     \$ 0!~/External *\|/{next};"\
13528"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13529"     {if(hide[section]) next};"\
13530"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13531"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13532"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13533"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13534"     ' prfx=^$ac_symprfx"
13535  else
13536    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13537  fi
13538  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13539
13540  # Check to see that the pipe works correctly.
13541  pipe_works=no
13542
13543  rm -f conftest*
13544  cat > conftest.$ac_ext <<_LT_EOF
13545#ifdef __cplusplus
13546extern "C" {
13547#endif
13548char nm_test_var;
13549void nm_test_func(void);
13550void nm_test_func(void){}
13551#ifdef __cplusplus
13552}
13553#endif
13554int main(){nm_test_var='a';nm_test_func();return(0);}
13555_LT_EOF
13556
13557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13558  (eval $ac_compile) 2>&5
13559  ac_status=$?
13560  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13561  test $ac_status = 0; }; then
13562    # Now try to grab the symbols.
13563    nlist=conftest.nm
13564    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13565  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13566  ac_status=$?
13567  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568  test $ac_status = 0; } && test -s "$nlist"; then
13569      # Try sorting and uniquifying the output.
13570      if sort "$nlist" | uniq > "$nlist"T; then
13571	mv -f "$nlist"T "$nlist"
13572      else
13573	rm -f "$nlist"T
13574      fi
13575
13576      # Make sure that we snagged all the symbols we need.
13577      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13578	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13579	  cat <<_LT_EOF > conftest.$ac_ext
13580/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13581#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13582/* DATA imports from DLLs on WIN32 can't be const, because runtime
13583   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13584# define LT_DLSYM_CONST
13585#elif defined __osf__
13586/* This system does not cope well with relocations in const data.  */
13587# define LT_DLSYM_CONST
13588#else
13589# define LT_DLSYM_CONST const
13590#endif
13591
13592#ifdef __cplusplus
13593extern "C" {
13594#endif
13595
13596_LT_EOF
13597	  # Now generate the symbol file.
13598	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13599
13600	  cat <<_LT_EOF >> conftest.$ac_ext
13601
13602/* The mapping between symbol names and symbols.  */
13603LT_DLSYM_CONST struct {
13604  const char *name;
13605  void       *address;
13606}
13607lt__PROGRAM__LTX_preloaded_symbols[] =
13608{
13609  { "@PROGRAM@", (void *) 0 },
13610_LT_EOF
13611	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13612	  cat <<\_LT_EOF >> conftest.$ac_ext
13613  {0, (void *) 0}
13614};
13615
13616/* This works around a problem in FreeBSD linker */
13617#ifdef FREEBSD_WORKAROUND
13618static const void *lt_preloaded_setup() {
13619  return lt__PROGRAM__LTX_preloaded_symbols;
13620}
13621#endif
13622
13623#ifdef __cplusplus
13624}
13625#endif
13626_LT_EOF
13627	  # Now try linking the two files.
13628	  mv conftest.$ac_objext conftstm.$ac_objext
13629	  lt_globsym_save_LIBS=$LIBS
13630	  lt_globsym_save_CFLAGS=$CFLAGS
13631	  LIBS=conftstm.$ac_objext
13632	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13633	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13634  (eval $ac_link) 2>&5
13635  ac_status=$?
13636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13638	    pipe_works=yes
13639	  fi
13640	  LIBS=$lt_globsym_save_LIBS
13641	  CFLAGS=$lt_globsym_save_CFLAGS
13642	else
13643	  echo "cannot find nm_test_func in $nlist" >&5
13644	fi
13645      else
13646	echo "cannot find nm_test_var in $nlist" >&5
13647      fi
13648    else
13649      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13650    fi
13651  else
13652    echo "$progname: failed program was:" >&5
13653    cat conftest.$ac_ext >&5
13654  fi
13655  rm -rf conftest* conftst*
13656
13657  # Do not use the global_symbol_pipe unless it works.
13658  if test yes = "$pipe_works"; then
13659    break
13660  else
13661    lt_cv_sys_global_symbol_pipe=
13662  fi
13663done
13664
13665fi
13666
13667if test -z "$lt_cv_sys_global_symbol_pipe"; then
13668  lt_cv_sys_global_symbol_to_cdecl=
13669fi
13670if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13672printf "%s\n" "failed" >&6; }
13673else
13674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13675printf "%s\n" "ok" >&6; }
13676fi
13677
13678# Response file support.
13679if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13680  nm_file_list_spec='@'
13681elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13682  nm_file_list_spec='@'
13683fi
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13722printf %s "checking for sysroot... " >&6; }
13723
13724# Check whether --with-sysroot was given.
13725if test ${with_sysroot+y}
13726then :
13727  withval=$with_sysroot;
13728else $as_nop
13729  with_sysroot=no
13730fi
13731
13732
13733lt_sysroot=
13734case $with_sysroot in #(
13735 yes)
13736   if test yes = "$GCC"; then
13737     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13738   fi
13739   ;; #(
13740 /*)
13741   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13742   ;; #(
13743 no|'')
13744   ;; #(
13745 *)
13746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13747printf "%s\n" "$with_sysroot" >&6; }
13748   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13749   ;;
13750esac
13751
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13753printf "%s\n" "${lt_sysroot:-no}" >&6; }
13754
13755
13756
13757
13758
13759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13760printf %s "checking for a working dd... " >&6; }
13761if test ${ac_cv_path_lt_DD+y}
13762then :
13763  printf %s "(cached) " >&6
13764else $as_nop
13765  printf 0123456789abcdef0123456789abcdef >conftest.i
13766cat conftest.i conftest.i >conftest2.i
13767: ${lt_DD:=$DD}
13768if test -z "$lt_DD"; then
13769  ac_path_lt_DD_found=false
13770  # Loop through the user's path and test for each of PROGNAME-LIST
13771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772for as_dir in $PATH
13773do
13774  IFS=$as_save_IFS
13775  case $as_dir in #(((
13776    '') as_dir=./ ;;
13777    */) ;;
13778    *) as_dir=$as_dir/ ;;
13779  esac
13780    for ac_prog in dd
13781   do
13782    for ac_exec_ext in '' $ac_executable_extensions; do
13783      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13784      as_fn_executable_p "$ac_path_lt_DD" || continue
13785if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13786  cmp -s conftest.i conftest.out \
13787  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13788fi
13789      $ac_path_lt_DD_found && break 3
13790    done
13791  done
13792  done
13793IFS=$as_save_IFS
13794  if test -z "$ac_cv_path_lt_DD"; then
13795    :
13796  fi
13797else
13798  ac_cv_path_lt_DD=$lt_DD
13799fi
13800
13801rm -f conftest.i conftest2.i conftest.out
13802fi
13803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13804printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13805
13806
13807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13808printf %s "checking how to truncate binary pipes... " >&6; }
13809if test ${lt_cv_truncate_bin+y}
13810then :
13811  printf %s "(cached) " >&6
13812else $as_nop
13813  printf 0123456789abcdef0123456789abcdef >conftest.i
13814cat conftest.i conftest.i >conftest2.i
13815lt_cv_truncate_bin=
13816if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13817  cmp -s conftest.i conftest.out \
13818  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13819fi
13820rm -f conftest.i conftest2.i conftest.out
13821test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13822fi
13823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13824printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13825
13826
13827
13828
13829
13830
13831
13832# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13833func_cc_basename ()
13834{
13835    for cc_temp in $*""; do
13836      case $cc_temp in
13837        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13838        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13839        \-*) ;;
13840        *) break;;
13841      esac
13842    done
13843    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13844}
13845
13846# Check whether --enable-libtool-lock was given.
13847if test ${enable_libtool_lock+y}
13848then :
13849  enableval=$enable_libtool_lock;
13850fi
13851
13852test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13853
13854# Some flags need to be propagated to the compiler or linker for good
13855# libtool support.
13856case $host in
13857ia64-*-hpux*)
13858  # Find out what ABI is being produced by ac_compile, and set mode
13859  # options accordingly.
13860  echo 'int i;' > conftest.$ac_ext
13861  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13862  (eval $ac_compile) 2>&5
13863  ac_status=$?
13864  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13865  test $ac_status = 0; }; then
13866    case `$FILECMD conftest.$ac_objext` in
13867      *ELF-32*)
13868	HPUX_IA64_MODE=32
13869	;;
13870      *ELF-64*)
13871	HPUX_IA64_MODE=64
13872	;;
13873    esac
13874  fi
13875  rm -rf conftest*
13876  ;;
13877*-*-irix6*)
13878  # Find out what ABI is being produced by ac_compile, and set linker
13879  # options accordingly.
13880  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13881  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13882  (eval $ac_compile) 2>&5
13883  ac_status=$?
13884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13885  test $ac_status = 0; }; then
13886    if test yes = "$lt_cv_prog_gnu_ld"; then
13887      case `$FILECMD conftest.$ac_objext` in
13888	*32-bit*)
13889	  LD="${LD-ld} -melf32bsmip"
13890	  ;;
13891	*N32*)
13892	  LD="${LD-ld} -melf32bmipn32"
13893	  ;;
13894	*64-bit*)
13895	  LD="${LD-ld} -melf64bmip"
13896	;;
13897      esac
13898    else
13899      case `$FILECMD conftest.$ac_objext` in
13900	*32-bit*)
13901	  LD="${LD-ld} -32"
13902	  ;;
13903	*N32*)
13904	  LD="${LD-ld} -n32"
13905	  ;;
13906	*64-bit*)
13907	  LD="${LD-ld} -64"
13908	  ;;
13909      esac
13910    fi
13911  fi
13912  rm -rf conftest*
13913  ;;
13914
13915mips64*-*linux*)
13916  # Find out what ABI is being produced by ac_compile, and set linker
13917  # options accordingly.
13918  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920  (eval $ac_compile) 2>&5
13921  ac_status=$?
13922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923  test $ac_status = 0; }; then
13924    emul=elf
13925    case `$FILECMD conftest.$ac_objext` in
13926      *32-bit*)
13927	emul="${emul}32"
13928	;;
13929      *64-bit*)
13930	emul="${emul}64"
13931	;;
13932    esac
13933    case `$FILECMD conftest.$ac_objext` in
13934      *MSB*)
13935	emul="${emul}btsmip"
13936	;;
13937      *LSB*)
13938	emul="${emul}ltsmip"
13939	;;
13940    esac
13941    case `$FILECMD conftest.$ac_objext` in
13942      *N32*)
13943	emul="${emul}n32"
13944	;;
13945    esac
13946    LD="${LD-ld} -m $emul"
13947  fi
13948  rm -rf conftest*
13949  ;;
13950
13951x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13952s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13953  # Find out what ABI is being produced by ac_compile, and set linker
13954  # options accordingly.  Note that the listed cases only cover the
13955  # situations where additional linker options are needed (such as when
13956  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13957  # vice versa); the common cases where no linker options are needed do
13958  # not appear in the list.
13959  echo 'int i;' > conftest.$ac_ext
13960  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13961  (eval $ac_compile) 2>&5
13962  ac_status=$?
13963  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964  test $ac_status = 0; }; then
13965    case `$FILECMD conftest.o` in
13966      *32-bit*)
13967	case $host in
13968	  x86_64-*kfreebsd*-gnu)
13969	    LD="${LD-ld} -m elf_i386_fbsd"
13970	    ;;
13971	  x86_64-*linux*)
13972	    case `$FILECMD conftest.o` in
13973	      *x86-64*)
13974		LD="${LD-ld} -m elf32_x86_64"
13975		;;
13976	      *)
13977		LD="${LD-ld} -m elf_i386"
13978		;;
13979	    esac
13980	    ;;
13981	  powerpc64le-*linux*)
13982	    LD="${LD-ld} -m elf32lppclinux"
13983	    ;;
13984	  powerpc64-*linux*)
13985	    LD="${LD-ld} -m elf32ppclinux"
13986	    ;;
13987	  s390x-*linux*)
13988	    LD="${LD-ld} -m elf_s390"
13989	    ;;
13990	  sparc64-*linux*)
13991	    LD="${LD-ld} -m elf32_sparc"
13992	    ;;
13993	esac
13994	;;
13995      *64-bit*)
13996	case $host in
13997	  x86_64-*kfreebsd*-gnu)
13998	    LD="${LD-ld} -m elf_x86_64_fbsd"
13999	    ;;
14000	  x86_64-*linux*)
14001	    LD="${LD-ld} -m elf_x86_64"
14002	    ;;
14003	  powerpcle-*linux*)
14004	    LD="${LD-ld} -m elf64lppc"
14005	    ;;
14006	  powerpc-*linux*)
14007	    LD="${LD-ld} -m elf64ppc"
14008	    ;;
14009	  s390*-*linux*|s390*-*tpf*)
14010	    LD="${LD-ld} -m elf64_s390"
14011	    ;;
14012	  sparc*-*linux*)
14013	    LD="${LD-ld} -m elf64_sparc"
14014	    ;;
14015	esac
14016	;;
14017    esac
14018  fi
14019  rm -rf conftest*
14020  ;;
14021
14022*-*-sco3.2v5*)
14023  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14024  SAVE_CFLAGS=$CFLAGS
14025  CFLAGS="$CFLAGS -belf"
14026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14027printf %s "checking whether the C compiler needs -belf... " >&6; }
14028if test ${lt_cv_cc_needs_belf+y}
14029then :
14030  printf %s "(cached) " >&6
14031else $as_nop
14032  ac_ext=c
14033ac_cpp='$CPP $CPPFLAGS'
14034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036ac_compiler_gnu=$ac_cv_c_compiler_gnu
14037
14038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040
14041int
14042main (void)
14043{
14044
14045  ;
14046  return 0;
14047}
14048_ACEOF
14049if ac_fn_c_try_link "$LINENO"
14050then :
14051  lt_cv_cc_needs_belf=yes
14052else $as_nop
14053  lt_cv_cc_needs_belf=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext conftest.beam \
14056    conftest$ac_exeext conftest.$ac_ext
14057     ac_ext=c
14058ac_cpp='$CPP $CPPFLAGS'
14059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14061ac_compiler_gnu=$ac_cv_c_compiler_gnu
14062
14063fi
14064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14065printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14066  if test yes != "$lt_cv_cc_needs_belf"; then
14067    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14068    CFLAGS=$SAVE_CFLAGS
14069  fi
14070  ;;
14071*-*solaris*)
14072  # Find out what ABI is being produced by ac_compile, and set linker
14073  # options accordingly.
14074  echo 'int i;' > conftest.$ac_ext
14075  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14076  (eval $ac_compile) 2>&5
14077  ac_status=$?
14078  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079  test $ac_status = 0; }; then
14080    case `$FILECMD conftest.o` in
14081    *64-bit*)
14082      case $lt_cv_prog_gnu_ld in
14083      yes*)
14084        case $host in
14085        i?86-*-solaris*|x86_64-*-solaris*)
14086          LD="${LD-ld} -m elf_x86_64"
14087          ;;
14088        sparc*-*-solaris*)
14089          LD="${LD-ld} -m elf64_sparc"
14090          ;;
14091        esac
14092        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14093        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14094          LD=${LD-ld}_sol2
14095        fi
14096        ;;
14097      *)
14098	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14099	  LD="${LD-ld} -64"
14100	fi
14101	;;
14102      esac
14103      ;;
14104    esac
14105  fi
14106  rm -rf conftest*
14107  ;;
14108esac
14109
14110need_locks=$enable_libtool_lock
14111
14112if test -n "$ac_tool_prefix"; then
14113  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14114set dummy ${ac_tool_prefix}mt; ac_word=$2
14115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116printf %s "checking for $ac_word... " >&6; }
14117if test ${ac_cv_prog_MANIFEST_TOOL+y}
14118then :
14119  printf %s "(cached) " >&6
14120else $as_nop
14121  if test -n "$MANIFEST_TOOL"; then
14122  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14123else
14124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125for as_dir in $PATH
14126do
14127  IFS=$as_save_IFS
14128  case $as_dir in #(((
14129    '') as_dir=./ ;;
14130    */) ;;
14131    *) as_dir=$as_dir/ ;;
14132  esac
14133    for ac_exec_ext in '' $ac_executable_extensions; do
14134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14135    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14137    break 2
14138  fi
14139done
14140  done
14141IFS=$as_save_IFS
14142
14143fi
14144fi
14145MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14146if test -n "$MANIFEST_TOOL"; then
14147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14148printf "%s\n" "$MANIFEST_TOOL" >&6; }
14149else
14150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151printf "%s\n" "no" >&6; }
14152fi
14153
14154
14155fi
14156if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14157  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14158  # Extract the first word of "mt", so it can be a program name with args.
14159set dummy mt; ac_word=$2
14160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161printf %s "checking for $ac_word... " >&6; }
14162if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14163then :
14164  printf %s "(cached) " >&6
14165else $as_nop
14166  if test -n "$ac_ct_MANIFEST_TOOL"; then
14167  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14168else
14169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14170for as_dir in $PATH
14171do
14172  IFS=$as_save_IFS
14173  case $as_dir in #(((
14174    '') as_dir=./ ;;
14175    */) ;;
14176    *) as_dir=$as_dir/ ;;
14177  esac
14178    for ac_exec_ext in '' $ac_executable_extensions; do
14179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14180    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14182    break 2
14183  fi
14184done
14185  done
14186IFS=$as_save_IFS
14187
14188fi
14189fi
14190ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14191if test -n "$ac_ct_MANIFEST_TOOL"; then
14192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14193printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14194else
14195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196printf "%s\n" "no" >&6; }
14197fi
14198
14199  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14200    MANIFEST_TOOL=":"
14201  else
14202    case $cross_compiling:$ac_tool_warned in
14203yes:)
14204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14206ac_tool_warned=yes ;;
14207esac
14208    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14209  fi
14210else
14211  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14212fi
14213
14214test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14216printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14217if test ${lt_cv_path_mainfest_tool+y}
14218then :
14219  printf %s "(cached) " >&6
14220else $as_nop
14221  lt_cv_path_mainfest_tool=no
14222  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14223  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14224  cat conftest.err >&5
14225  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14226    lt_cv_path_mainfest_tool=yes
14227  fi
14228  rm -f conftest*
14229fi
14230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14231printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14232if test yes != "$lt_cv_path_mainfest_tool"; then
14233  MANIFEST_TOOL=:
14234fi
14235
14236
14237
14238
14239
14240
14241  case $host_os in
14242    rhapsody* | darwin*)
14243    if test -n "$ac_tool_prefix"; then
14244  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14245set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247printf %s "checking for $ac_word... " >&6; }
14248if test ${ac_cv_prog_DSYMUTIL+y}
14249then :
14250  printf %s "(cached) " >&6
14251else $as_nop
14252  if test -n "$DSYMUTIL"; then
14253  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14254else
14255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256for as_dir in $PATH
14257do
14258  IFS=$as_save_IFS
14259  case $as_dir in #(((
14260    '') as_dir=./ ;;
14261    */) ;;
14262    *) as_dir=$as_dir/ ;;
14263  esac
14264    for ac_exec_ext in '' $ac_executable_extensions; do
14265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14266    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14268    break 2
14269  fi
14270done
14271  done
14272IFS=$as_save_IFS
14273
14274fi
14275fi
14276DSYMUTIL=$ac_cv_prog_DSYMUTIL
14277if test -n "$DSYMUTIL"; then
14278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14279printf "%s\n" "$DSYMUTIL" >&6; }
14280else
14281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282printf "%s\n" "no" >&6; }
14283fi
14284
14285
14286fi
14287if test -z "$ac_cv_prog_DSYMUTIL"; then
14288  ac_ct_DSYMUTIL=$DSYMUTIL
14289  # Extract the first word of "dsymutil", so it can be a program name with args.
14290set dummy dsymutil; ac_word=$2
14291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292printf %s "checking for $ac_word... " >&6; }
14293if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14294then :
14295  printf %s "(cached) " >&6
14296else $as_nop
14297  if test -n "$ac_ct_DSYMUTIL"; then
14298  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14299else
14300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301for as_dir in $PATH
14302do
14303  IFS=$as_save_IFS
14304  case $as_dir in #(((
14305    '') as_dir=./ ;;
14306    */) ;;
14307    *) as_dir=$as_dir/ ;;
14308  esac
14309    for ac_exec_ext in '' $ac_executable_extensions; do
14310  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14311    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14312    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14313    break 2
14314  fi
14315done
14316  done
14317IFS=$as_save_IFS
14318
14319fi
14320fi
14321ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14322if test -n "$ac_ct_DSYMUTIL"; then
14323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14324printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14325else
14326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327printf "%s\n" "no" >&6; }
14328fi
14329
14330  if test "x$ac_ct_DSYMUTIL" = x; then
14331    DSYMUTIL=":"
14332  else
14333    case $cross_compiling:$ac_tool_warned in
14334yes:)
14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14336printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14337ac_tool_warned=yes ;;
14338esac
14339    DSYMUTIL=$ac_ct_DSYMUTIL
14340  fi
14341else
14342  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14343fi
14344
14345    if test -n "$ac_tool_prefix"; then
14346  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14347set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14349printf %s "checking for $ac_word... " >&6; }
14350if test ${ac_cv_prog_NMEDIT+y}
14351then :
14352  printf %s "(cached) " >&6
14353else $as_nop
14354  if test -n "$NMEDIT"; then
14355  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14356else
14357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358for as_dir in $PATH
14359do
14360  IFS=$as_save_IFS
14361  case $as_dir in #(((
14362    '') as_dir=./ ;;
14363    */) ;;
14364    *) as_dir=$as_dir/ ;;
14365  esac
14366    for ac_exec_ext in '' $ac_executable_extensions; do
14367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14368    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14370    break 2
14371  fi
14372done
14373  done
14374IFS=$as_save_IFS
14375
14376fi
14377fi
14378NMEDIT=$ac_cv_prog_NMEDIT
14379if test -n "$NMEDIT"; then
14380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14381printf "%s\n" "$NMEDIT" >&6; }
14382else
14383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384printf "%s\n" "no" >&6; }
14385fi
14386
14387
14388fi
14389if test -z "$ac_cv_prog_NMEDIT"; then
14390  ac_ct_NMEDIT=$NMEDIT
14391  # Extract the first word of "nmedit", so it can be a program name with args.
14392set dummy nmedit; ac_word=$2
14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394printf %s "checking for $ac_word... " >&6; }
14395if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14396then :
14397  printf %s "(cached) " >&6
14398else $as_nop
14399  if test -n "$ac_ct_NMEDIT"; then
14400  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14401else
14402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403for as_dir in $PATH
14404do
14405  IFS=$as_save_IFS
14406  case $as_dir in #(((
14407    '') as_dir=./ ;;
14408    */) ;;
14409    *) as_dir=$as_dir/ ;;
14410  esac
14411    for ac_exec_ext in '' $ac_executable_extensions; do
14412  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14413    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14415    break 2
14416  fi
14417done
14418  done
14419IFS=$as_save_IFS
14420
14421fi
14422fi
14423ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14424if test -n "$ac_ct_NMEDIT"; then
14425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14426printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14427else
14428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429printf "%s\n" "no" >&6; }
14430fi
14431
14432  if test "x$ac_ct_NMEDIT" = x; then
14433    NMEDIT=":"
14434  else
14435    case $cross_compiling:$ac_tool_warned in
14436yes:)
14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14439ac_tool_warned=yes ;;
14440esac
14441    NMEDIT=$ac_ct_NMEDIT
14442  fi
14443else
14444  NMEDIT="$ac_cv_prog_NMEDIT"
14445fi
14446
14447    if test -n "$ac_tool_prefix"; then
14448  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14449set dummy ${ac_tool_prefix}lipo; ac_word=$2
14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14451printf %s "checking for $ac_word... " >&6; }
14452if test ${ac_cv_prog_LIPO+y}
14453then :
14454  printf %s "(cached) " >&6
14455else $as_nop
14456  if test -n "$LIPO"; then
14457  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14458else
14459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460for as_dir in $PATH
14461do
14462  IFS=$as_save_IFS
14463  case $as_dir in #(((
14464    '') as_dir=./ ;;
14465    */) ;;
14466    *) as_dir=$as_dir/ ;;
14467  esac
14468    for ac_exec_ext in '' $ac_executable_extensions; do
14469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14470    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14472    break 2
14473  fi
14474done
14475  done
14476IFS=$as_save_IFS
14477
14478fi
14479fi
14480LIPO=$ac_cv_prog_LIPO
14481if test -n "$LIPO"; then
14482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14483printf "%s\n" "$LIPO" >&6; }
14484else
14485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486printf "%s\n" "no" >&6; }
14487fi
14488
14489
14490fi
14491if test -z "$ac_cv_prog_LIPO"; then
14492  ac_ct_LIPO=$LIPO
14493  # Extract the first word of "lipo", so it can be a program name with args.
14494set dummy lipo; ac_word=$2
14495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496printf %s "checking for $ac_word... " >&6; }
14497if test ${ac_cv_prog_ac_ct_LIPO+y}
14498then :
14499  printf %s "(cached) " >&6
14500else $as_nop
14501  if test -n "$ac_ct_LIPO"; then
14502  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14503else
14504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505for as_dir in $PATH
14506do
14507  IFS=$as_save_IFS
14508  case $as_dir in #(((
14509    '') as_dir=./ ;;
14510    */) ;;
14511    *) as_dir=$as_dir/ ;;
14512  esac
14513    for ac_exec_ext in '' $ac_executable_extensions; do
14514  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14515    ac_cv_prog_ac_ct_LIPO="lipo"
14516    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14517    break 2
14518  fi
14519done
14520  done
14521IFS=$as_save_IFS
14522
14523fi
14524fi
14525ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14526if test -n "$ac_ct_LIPO"; then
14527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14528printf "%s\n" "$ac_ct_LIPO" >&6; }
14529else
14530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531printf "%s\n" "no" >&6; }
14532fi
14533
14534  if test "x$ac_ct_LIPO" = x; then
14535    LIPO=":"
14536  else
14537    case $cross_compiling:$ac_tool_warned in
14538yes:)
14539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14540printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14541ac_tool_warned=yes ;;
14542esac
14543    LIPO=$ac_ct_LIPO
14544  fi
14545else
14546  LIPO="$ac_cv_prog_LIPO"
14547fi
14548
14549    if test -n "$ac_tool_prefix"; then
14550  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14551set dummy ${ac_tool_prefix}otool; ac_word=$2
14552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14553printf %s "checking for $ac_word... " >&6; }
14554if test ${ac_cv_prog_OTOOL+y}
14555then :
14556  printf %s "(cached) " >&6
14557else $as_nop
14558  if test -n "$OTOOL"; then
14559  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14560else
14561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562for as_dir in $PATH
14563do
14564  IFS=$as_save_IFS
14565  case $as_dir in #(((
14566    '') as_dir=./ ;;
14567    */) ;;
14568    *) as_dir=$as_dir/ ;;
14569  esac
14570    for ac_exec_ext in '' $ac_executable_extensions; do
14571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14572    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14574    break 2
14575  fi
14576done
14577  done
14578IFS=$as_save_IFS
14579
14580fi
14581fi
14582OTOOL=$ac_cv_prog_OTOOL
14583if test -n "$OTOOL"; then
14584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14585printf "%s\n" "$OTOOL" >&6; }
14586else
14587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14588printf "%s\n" "no" >&6; }
14589fi
14590
14591
14592fi
14593if test -z "$ac_cv_prog_OTOOL"; then
14594  ac_ct_OTOOL=$OTOOL
14595  # Extract the first word of "otool", so it can be a program name with args.
14596set dummy otool; ac_word=$2
14597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598printf %s "checking for $ac_word... " >&6; }
14599if test ${ac_cv_prog_ac_ct_OTOOL+y}
14600then :
14601  printf %s "(cached) " >&6
14602else $as_nop
14603  if test -n "$ac_ct_OTOOL"; then
14604  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14605else
14606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607for as_dir in $PATH
14608do
14609  IFS=$as_save_IFS
14610  case $as_dir in #(((
14611    '') as_dir=./ ;;
14612    */) ;;
14613    *) as_dir=$as_dir/ ;;
14614  esac
14615    for ac_exec_ext in '' $ac_executable_extensions; do
14616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14617    ac_cv_prog_ac_ct_OTOOL="otool"
14618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14619    break 2
14620  fi
14621done
14622  done
14623IFS=$as_save_IFS
14624
14625fi
14626fi
14627ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14628if test -n "$ac_ct_OTOOL"; then
14629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14630printf "%s\n" "$ac_ct_OTOOL" >&6; }
14631else
14632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633printf "%s\n" "no" >&6; }
14634fi
14635
14636  if test "x$ac_ct_OTOOL" = x; then
14637    OTOOL=":"
14638  else
14639    case $cross_compiling:$ac_tool_warned in
14640yes:)
14641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14642printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14643ac_tool_warned=yes ;;
14644esac
14645    OTOOL=$ac_ct_OTOOL
14646  fi
14647else
14648  OTOOL="$ac_cv_prog_OTOOL"
14649fi
14650
14651    if test -n "$ac_tool_prefix"; then
14652  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14653set dummy ${ac_tool_prefix}otool64; ac_word=$2
14654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655printf %s "checking for $ac_word... " >&6; }
14656if test ${ac_cv_prog_OTOOL64+y}
14657then :
14658  printf %s "(cached) " >&6
14659else $as_nop
14660  if test -n "$OTOOL64"; then
14661  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14662else
14663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664for as_dir in $PATH
14665do
14666  IFS=$as_save_IFS
14667  case $as_dir in #(((
14668    '') as_dir=./ ;;
14669    */) ;;
14670    *) as_dir=$as_dir/ ;;
14671  esac
14672    for ac_exec_ext in '' $ac_executable_extensions; do
14673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14674    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14676    break 2
14677  fi
14678done
14679  done
14680IFS=$as_save_IFS
14681
14682fi
14683fi
14684OTOOL64=$ac_cv_prog_OTOOL64
14685if test -n "$OTOOL64"; then
14686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14687printf "%s\n" "$OTOOL64" >&6; }
14688else
14689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690printf "%s\n" "no" >&6; }
14691fi
14692
14693
14694fi
14695if test -z "$ac_cv_prog_OTOOL64"; then
14696  ac_ct_OTOOL64=$OTOOL64
14697  # Extract the first word of "otool64", so it can be a program name with args.
14698set dummy otool64; ac_word=$2
14699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700printf %s "checking for $ac_word... " >&6; }
14701if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14702then :
14703  printf %s "(cached) " >&6
14704else $as_nop
14705  if test -n "$ac_ct_OTOOL64"; then
14706  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14707else
14708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709for as_dir in $PATH
14710do
14711  IFS=$as_save_IFS
14712  case $as_dir in #(((
14713    '') as_dir=./ ;;
14714    */) ;;
14715    *) as_dir=$as_dir/ ;;
14716  esac
14717    for ac_exec_ext in '' $ac_executable_extensions; do
14718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14719    ac_cv_prog_ac_ct_OTOOL64="otool64"
14720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14721    break 2
14722  fi
14723done
14724  done
14725IFS=$as_save_IFS
14726
14727fi
14728fi
14729ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14730if test -n "$ac_ct_OTOOL64"; then
14731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14732printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14733else
14734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735printf "%s\n" "no" >&6; }
14736fi
14737
14738  if test "x$ac_ct_OTOOL64" = x; then
14739    OTOOL64=":"
14740  else
14741    case $cross_compiling:$ac_tool_warned in
14742yes:)
14743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14745ac_tool_warned=yes ;;
14746esac
14747    OTOOL64=$ac_ct_OTOOL64
14748  fi
14749else
14750  OTOOL64="$ac_cv_prog_OTOOL64"
14751fi
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14780printf %s "checking for -single_module linker flag... " >&6; }
14781if test ${lt_cv_apple_cc_single_mod+y}
14782then :
14783  printf %s "(cached) " >&6
14784else $as_nop
14785  lt_cv_apple_cc_single_mod=no
14786      if test -z "$LT_MULTI_MODULE"; then
14787	# By default we will add the -single_module flag. You can override
14788	# by either setting the environment variable LT_MULTI_MODULE
14789	# non-empty at configure time, or by adding -multi_module to the
14790	# link flags.
14791	rm -rf libconftest.dylib*
14792	echo "int foo(void){return 1;}" > conftest.c
14793	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14794-dynamiclib -Wl,-single_module conftest.c" >&5
14795	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14796	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14797        _lt_result=$?
14798	# If there is a non-empty error log, and "single_module"
14799	# appears in it, assume the flag caused a linker warning
14800        if test -s conftest.err && $GREP single_module conftest.err; then
14801	  cat conftest.err >&5
14802	# Otherwise, if the output was created with a 0 exit code from
14803	# the compiler, it worked.
14804	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14805	  lt_cv_apple_cc_single_mod=yes
14806	else
14807	  cat conftest.err >&5
14808	fi
14809	rm -rf libconftest.dylib*
14810	rm -f conftest.*
14811      fi
14812fi
14813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14814printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14815
14816    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14817printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14818if test ${lt_cv_ld_exported_symbols_list+y}
14819then :
14820  printf %s "(cached) " >&6
14821else $as_nop
14822  lt_cv_ld_exported_symbols_list=no
14823      save_LDFLAGS=$LDFLAGS
14824      echo "_main" > conftest.sym
14825      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14826      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828
14829int
14830main (void)
14831{
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_link "$LINENO"
14838then :
14839  lt_cv_ld_exported_symbols_list=yes
14840else $as_nop
14841  lt_cv_ld_exported_symbols_list=no
14842fi
14843rm -f core conftest.err conftest.$ac_objext conftest.beam \
14844    conftest$ac_exeext conftest.$ac_ext
14845	LDFLAGS=$save_LDFLAGS
14846
14847fi
14848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14849printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14850
14851    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14852printf %s "checking for -force_load linker flag... " >&6; }
14853if test ${lt_cv_ld_force_load+y}
14854then :
14855  printf %s "(cached) " >&6
14856else $as_nop
14857  lt_cv_ld_force_load=no
14858      cat > conftest.c << _LT_EOF
14859int forced_loaded() { return 2;}
14860_LT_EOF
14861      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14862      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14863      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14864      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14865      echo "$RANLIB libconftest.a" >&5
14866      $RANLIB libconftest.a 2>&5
14867      cat > conftest.c << _LT_EOF
14868int main() { return 0;}
14869_LT_EOF
14870      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14871      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14872      _lt_result=$?
14873      if test -s conftest.err && $GREP force_load conftest.err; then
14874	cat conftest.err >&5
14875      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14876	lt_cv_ld_force_load=yes
14877      else
14878	cat conftest.err >&5
14879      fi
14880        rm -f conftest.err libconftest.a conftest conftest.c
14881        rm -rf conftest.dSYM
14882
14883fi
14884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14885printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14886    case $host_os in
14887    rhapsody* | darwin1.[012])
14888      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14889    darwin1.*)
14890      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14891    darwin*)
14892      case $MACOSX_DEPLOYMENT_TARGET,$host in
14893        10.[012],*|,*powerpc*-darwin[5-8]*)
14894          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14895        *)
14896          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14897      esac
14898    ;;
14899  esac
14900    if test yes = "$lt_cv_apple_cc_single_mod"; then
14901      _lt_dar_single_mod='$single_module'
14902    fi
14903    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14904      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14905    else
14906      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14907    fi
14908    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14909      _lt_dsymutil='~$DSYMUTIL $lib || :'
14910    else
14911      _lt_dsymutil=
14912    fi
14913    ;;
14914  esac
14915
14916# func_munge_path_list VARIABLE PATH
14917# -----------------------------------
14918# VARIABLE is name of variable containing _space_ separated list of
14919# directories to be munged by the contents of PATH, which is string
14920# having a format:
14921# "DIR[:DIR]:"
14922#       string "DIR[ DIR]" will be prepended to VARIABLE
14923# ":DIR[:DIR]"
14924#       string "DIR[ DIR]" will be appended to VARIABLE
14925# "DIRP[:DIRP]::[DIRA:]DIRA"
14926#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14927#       "DIRA[ DIRA]" will be appended to VARIABLE
14928# "DIR[:DIR]"
14929#       VARIABLE will be replaced by "DIR[ DIR]"
14930func_munge_path_list ()
14931{
14932    case x$2 in
14933    x)
14934        ;;
14935    *:)
14936        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14937        ;;
14938    x:*)
14939        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14940        ;;
14941    *::*)
14942        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14943        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14944        ;;
14945    *)
14946        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14947        ;;
14948    esac
14949}
14950
14951ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14952"
14953if test "x$ac_cv_header_dlfcn_h" = xyes
14954then :
14955  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14956
14957fi
14958
14959
14960
14961
14962
14963# Set options
14964
14965
14966
14967        enable_dlopen=no
14968
14969
14970  enable_win32_dll=no
14971
14972
14973            # Check whether --enable-shared was given.
14974if test ${enable_shared+y}
14975then :
14976  enableval=$enable_shared; p=${PACKAGE-default}
14977    case $enableval in
14978    yes) enable_shared=yes ;;
14979    no) enable_shared=no ;;
14980    *)
14981      enable_shared=no
14982      # Look at the argument we got.  We use all the common list separators.
14983      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14984      for pkg in $enableval; do
14985	IFS=$lt_save_ifs
14986	if test "X$pkg" = "X$p"; then
14987	  enable_shared=yes
14988	fi
14989      done
14990      IFS=$lt_save_ifs
14991      ;;
14992    esac
14993else $as_nop
14994  enable_shared=yes
14995fi
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007# Check whether --with-pic was given.
15008if test ${with_pic+y}
15009then :
15010  withval=$with_pic; lt_p=${PACKAGE-default}
15011    case $withval in
15012    yes|no) pic_mode=$withval ;;
15013    *)
15014      pic_mode=default
15015      # Look at the argument we got.  We use all the common list separators.
15016      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15017      for lt_pkg in $withval; do
15018	IFS=$lt_save_ifs
15019	if test "X$lt_pkg" = "X$lt_p"; then
15020	  pic_mode=yes
15021	fi
15022      done
15023      IFS=$lt_save_ifs
15024      ;;
15025    esac
15026else $as_nop
15027  pic_mode=default
15028fi
15029
15030
15031
15032
15033
15034
15035
15036
15037  # Check whether --enable-fast-install was given.
15038if test ${enable_fast_install+y}
15039then :
15040  enableval=$enable_fast_install; p=${PACKAGE-default}
15041    case $enableval in
15042    yes) enable_fast_install=yes ;;
15043    no) enable_fast_install=no ;;
15044    *)
15045      enable_fast_install=no
15046      # Look at the argument we got.  We use all the common list separators.
15047      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15048      for pkg in $enableval; do
15049	IFS=$lt_save_ifs
15050	if test "X$pkg" = "X$p"; then
15051	  enable_fast_install=yes
15052	fi
15053      done
15054      IFS=$lt_save_ifs
15055      ;;
15056    esac
15057else $as_nop
15058  enable_fast_install=yes
15059fi
15060
15061
15062
15063
15064
15065
15066
15067
15068  shared_archive_member_spec=
15069case $host,$enable_shared in
15070power*-*-aix[5-9]*,yes)
15071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15072printf %s "checking which variant of shared library versioning to provide... " >&6; }
15073
15074# Check whether --with-aix-soname was given.
15075if test ${with_aix_soname+y}
15076then :
15077  withval=$with_aix_soname; case $withval in
15078    aix|svr4|both)
15079      ;;
15080    *)
15081      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15082      ;;
15083    esac
15084    lt_cv_with_aix_soname=$with_aix_soname
15085else $as_nop
15086  if test ${lt_cv_with_aix_soname+y}
15087then :
15088  printf %s "(cached) " >&6
15089else $as_nop
15090  lt_cv_with_aix_soname=aix
15091fi
15092
15093    with_aix_soname=$lt_cv_with_aix_soname
15094fi
15095
15096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15097printf "%s\n" "$with_aix_soname" >&6; }
15098  if test aix != "$with_aix_soname"; then
15099    # For the AIX way of multilib, we name the shared archive member
15100    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15101    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15102    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15103    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15104    if test 64 = "${OBJECT_MODE-32}"; then
15105      shared_archive_member_spec=shr_64
15106    else
15107      shared_archive_member_spec=shr
15108    fi
15109  fi
15110  ;;
15111*)
15112  with_aix_soname=aix
15113  ;;
15114esac
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125# This can be used to rebuild libtool when needed
15126LIBTOOL_DEPS=$ltmain
15127
15128# Always use our own libtool.
15129LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160test -z "$LN_S" && LN_S="ln -s"
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175if test -n "${ZSH_VERSION+set}"; then
15176   setopt NO_GLOB_SUBST
15177fi
15178
15179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15180printf %s "checking for objdir... " >&6; }
15181if test ${lt_cv_objdir+y}
15182then :
15183  printf %s "(cached) " >&6
15184else $as_nop
15185  rm -f .libs 2>/dev/null
15186mkdir .libs 2>/dev/null
15187if test -d .libs; then
15188  lt_cv_objdir=.libs
15189else
15190  # MS-DOS does not allow filenames that begin with a dot.
15191  lt_cv_objdir=_libs
15192fi
15193rmdir .libs 2>/dev/null
15194fi
15195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15196printf "%s\n" "$lt_cv_objdir" >&6; }
15197objdir=$lt_cv_objdir
15198
15199
15200
15201
15202
15203printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15204
15205
15206
15207
15208case $host_os in
15209aix3*)
15210  # AIX sometimes has problems with the GCC collect2 program.  For some
15211  # reason, if we set the COLLECT_NAMES environment variable, the problems
15212  # vanish in a puff of smoke.
15213  if test set != "${COLLECT_NAMES+set}"; then
15214    COLLECT_NAMES=
15215    export COLLECT_NAMES
15216  fi
15217  ;;
15218esac
15219
15220# Global variables:
15221ofile=libtool
15222can_build_shared=yes
15223
15224# All known linkers require a '.a' archive for static linking (except MSVC and
15225# ICC, which need '.lib').
15226libext=a
15227
15228with_gnu_ld=$lt_cv_prog_gnu_ld
15229
15230old_CC=$CC
15231old_CFLAGS=$CFLAGS
15232
15233# Set sane defaults for various variables
15234test -z "$CC" && CC=cc
15235test -z "$LTCC" && LTCC=$CC
15236test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15237test -z "$LD" && LD=ld
15238test -z "$ac_objext" && ac_objext=o
15239
15240func_cc_basename $compiler
15241cc_basename=$func_cc_basename_result
15242
15243
15244# Only perform the check for file, if the check method requires it
15245test -z "$MAGIC_CMD" && MAGIC_CMD=file
15246case $deplibs_check_method in
15247file_magic*)
15248  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15250printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15251if test ${lt_cv_path_MAGIC_CMD+y}
15252then :
15253  printf %s "(cached) " >&6
15254else $as_nop
15255  case $MAGIC_CMD in
15256[\\/*] |  ?:[\\/]*)
15257  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15258  ;;
15259*)
15260  lt_save_MAGIC_CMD=$MAGIC_CMD
15261  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15262  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15263  for ac_dir in $ac_dummy; do
15264    IFS=$lt_save_ifs
15265    test -z "$ac_dir" && ac_dir=.
15266    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15267      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15268      if test -n "$file_magic_test_file"; then
15269	case $deplibs_check_method in
15270	"file_magic "*)
15271	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15272	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15273	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15274	    $EGREP "$file_magic_regex" > /dev/null; then
15275	    :
15276	  else
15277	    cat <<_LT_EOF 1>&2
15278
15279*** Warning: the command libtool uses to detect shared libraries,
15280*** $file_magic_cmd, produces output that libtool cannot recognize.
15281*** The result is that libtool may fail to recognize shared libraries
15282*** as such.  This will affect the creation of libtool libraries that
15283*** depend on shared libraries, but programs linked with such libtool
15284*** libraries will work regardless of this problem.  Nevertheless, you
15285*** may want to report the problem to your system manager and/or to
15286*** bug-libtool@gnu.org
15287
15288_LT_EOF
15289	  fi ;;
15290	esac
15291      fi
15292      break
15293    fi
15294  done
15295  IFS=$lt_save_ifs
15296  MAGIC_CMD=$lt_save_MAGIC_CMD
15297  ;;
15298esac
15299fi
15300
15301MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15302if test -n "$MAGIC_CMD"; then
15303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15304printf "%s\n" "$MAGIC_CMD" >&6; }
15305else
15306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307printf "%s\n" "no" >&6; }
15308fi
15309
15310
15311
15312
15313
15314if test -z "$lt_cv_path_MAGIC_CMD"; then
15315  if test -n "$ac_tool_prefix"; then
15316    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15317printf %s "checking for file... " >&6; }
15318if test ${lt_cv_path_MAGIC_CMD+y}
15319then :
15320  printf %s "(cached) " >&6
15321else $as_nop
15322  case $MAGIC_CMD in
15323[\\/*] |  ?:[\\/]*)
15324  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15325  ;;
15326*)
15327  lt_save_MAGIC_CMD=$MAGIC_CMD
15328  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15329  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15330  for ac_dir in $ac_dummy; do
15331    IFS=$lt_save_ifs
15332    test -z "$ac_dir" && ac_dir=.
15333    if test -f "$ac_dir/file"; then
15334      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15335      if test -n "$file_magic_test_file"; then
15336	case $deplibs_check_method in
15337	"file_magic "*)
15338	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15339	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15340	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15341	    $EGREP "$file_magic_regex" > /dev/null; then
15342	    :
15343	  else
15344	    cat <<_LT_EOF 1>&2
15345
15346*** Warning: the command libtool uses to detect shared libraries,
15347*** $file_magic_cmd, produces output that libtool cannot recognize.
15348*** The result is that libtool may fail to recognize shared libraries
15349*** as such.  This will affect the creation of libtool libraries that
15350*** depend on shared libraries, but programs linked with such libtool
15351*** libraries will work regardless of this problem.  Nevertheless, you
15352*** may want to report the problem to your system manager and/or to
15353*** bug-libtool@gnu.org
15354
15355_LT_EOF
15356	  fi ;;
15357	esac
15358      fi
15359      break
15360    fi
15361  done
15362  IFS=$lt_save_ifs
15363  MAGIC_CMD=$lt_save_MAGIC_CMD
15364  ;;
15365esac
15366fi
15367
15368MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15369if test -n "$MAGIC_CMD"; then
15370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15371printf "%s\n" "$MAGIC_CMD" >&6; }
15372else
15373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15374printf "%s\n" "no" >&6; }
15375fi
15376
15377
15378  else
15379    MAGIC_CMD=:
15380  fi
15381fi
15382
15383  fi
15384  ;;
15385esac
15386
15387# Use C for the default configuration in the libtool script
15388
15389lt_save_CC=$CC
15390ac_ext=c
15391ac_cpp='$CPP $CPPFLAGS'
15392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396
15397# Source file extension for C test sources.
15398ac_ext=c
15399
15400# Object file extension for compiled C test sources.
15401objext=o
15402objext=$objext
15403
15404# Code to be used in simple compile tests
15405lt_simple_compile_test_code="int some_variable = 0;"
15406
15407# Code to be used in simple link tests
15408lt_simple_link_test_code='int main(){return(0);}'
15409
15410
15411
15412
15413
15414
15415
15416# If no C compiler was specified, use CC.
15417LTCC=${LTCC-"$CC"}
15418
15419# If no C compiler flags were specified, use CFLAGS.
15420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15421
15422# Allow CC to be a program name with arguments.
15423compiler=$CC
15424
15425# Save the default compiler, since it gets overwritten when the other
15426# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15427compiler_DEFAULT=$CC
15428
15429# save warnings/boilerplate of simple test code
15430ac_outfile=conftest.$ac_objext
15431echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15432eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15433_lt_compiler_boilerplate=`cat conftest.err`
15434$RM conftest*
15435
15436ac_outfile=conftest.$ac_objext
15437echo "$lt_simple_link_test_code" >conftest.$ac_ext
15438eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15439_lt_linker_boilerplate=`cat conftest.err`
15440$RM -r conftest*
15441
15442
15443if test -n "$compiler"; then
15444
15445lt_prog_compiler_no_builtin_flag=
15446
15447if test yes = "$GCC"; then
15448  case $cc_basename in
15449  nvcc*)
15450    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15451  *)
15452    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15453  esac
15454
15455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15456printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15457if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15458then :
15459  printf %s "(cached) " >&6
15460else $as_nop
15461  lt_cv_prog_compiler_rtti_exceptions=no
15462   ac_outfile=conftest.$ac_objext
15463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15464   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15465   # Insert the option either (1) after the last *FLAGS variable, or
15466   # (2) before a word containing "conftest.", or (3) at the end.
15467   # Note that $ac_compile itself does not contain backslashes and begins
15468   # with a dollar sign (not a hyphen), so the echo should work correctly.
15469   # The option is referenced via a variable to avoid confusing sed.
15470   lt_compile=`echo "$ac_compile" | $SED \
15471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15473   -e 's:$: $lt_compiler_flag:'`
15474   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15475   (eval "$lt_compile" 2>conftest.err)
15476   ac_status=$?
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   if (exit $ac_status) && test -s "$ac_outfile"; then
15480     # The compiler can only warn and ignore the option if not recognized
15481     # So say no if there are warnings other than the usual output.
15482     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15485       lt_cv_prog_compiler_rtti_exceptions=yes
15486     fi
15487   fi
15488   $RM conftest*
15489
15490fi
15491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15492printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15493
15494if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15495    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15496else
15497    :
15498fi
15499
15500fi
15501
15502
15503
15504
15505
15506
15507  lt_prog_compiler_wl=
15508lt_prog_compiler_pic=
15509lt_prog_compiler_static=
15510
15511
15512  if test yes = "$GCC"; then
15513    lt_prog_compiler_wl='-Wl,'
15514    lt_prog_compiler_static='-static'
15515
15516    case $host_os in
15517      aix*)
15518      # All AIX code is PIC.
15519      if test ia64 = "$host_cpu"; then
15520	# AIX 5 now supports IA64 processor
15521	lt_prog_compiler_static='-Bstatic'
15522      fi
15523      lt_prog_compiler_pic='-fPIC'
15524      ;;
15525
15526    amigaos*)
15527      case $host_cpu in
15528      powerpc)
15529            # see comment about AmigaOS4 .so support
15530            lt_prog_compiler_pic='-fPIC'
15531        ;;
15532      m68k)
15533            # FIXME: we need at least 68020 code to build shared libraries, but
15534            # adding the '-m68020' flag to GCC prevents building anything better,
15535            # like '-m68040'.
15536            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15537        ;;
15538      esac
15539      ;;
15540
15541    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15542      # PIC is the default for these OSes.
15543      ;;
15544
15545    mingw* | cygwin* | pw32* | os2* | cegcc*)
15546      # This hack is so that the source file can tell whether it is being
15547      # built for inclusion in a dll (and should export symbols for example).
15548      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15549      # (--disable-auto-import) libraries
15550      lt_prog_compiler_pic='-DDLL_EXPORT'
15551      case $host_os in
15552      os2*)
15553	lt_prog_compiler_static='$wl-static'
15554	;;
15555      esac
15556      ;;
15557
15558    darwin* | rhapsody*)
15559      # PIC is the default on this platform
15560      # Common symbols not allowed in MH_DYLIB files
15561      lt_prog_compiler_pic='-fno-common'
15562      ;;
15563
15564    haiku*)
15565      # PIC is the default for Haiku.
15566      # The "-static" flag exists, but is broken.
15567      lt_prog_compiler_static=
15568      ;;
15569
15570    hpux*)
15571      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15572      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15573      # sets the default TLS model and affects inlining.
15574      case $host_cpu in
15575      hppa*64*)
15576	# +Z the default
15577	;;
15578      *)
15579	lt_prog_compiler_pic='-fPIC'
15580	;;
15581      esac
15582      ;;
15583
15584    interix[3-9]*)
15585      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15586      # Instead, we relocate shared libraries at runtime.
15587      ;;
15588
15589    msdosdjgpp*)
15590      # Just because we use GCC doesn't mean we suddenly get shared libraries
15591      # on systems that don't support them.
15592      lt_prog_compiler_can_build_shared=no
15593      enable_shared=no
15594      ;;
15595
15596    *nto* | *qnx*)
15597      # QNX uses GNU C++, but need to define -shared option too, otherwise
15598      # it will coredump.
15599      lt_prog_compiler_pic='-fPIC -shared'
15600      ;;
15601
15602    sysv4*MP*)
15603      if test -d /usr/nec; then
15604	lt_prog_compiler_pic=-Kconform_pic
15605      fi
15606      ;;
15607
15608    *)
15609      lt_prog_compiler_pic='-fPIC'
15610      ;;
15611    esac
15612
15613    case $cc_basename in
15614    nvcc*) # Cuda Compiler Driver 2.2
15615      lt_prog_compiler_wl='-Xlinker '
15616      if test -n "$lt_prog_compiler_pic"; then
15617        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15618      fi
15619      ;;
15620    esac
15621  else
15622    # PORTME Check for flag to pass linker flags through the system compiler.
15623    case $host_os in
15624    aix*)
15625      lt_prog_compiler_wl='-Wl,'
15626      if test ia64 = "$host_cpu"; then
15627	# AIX 5 now supports IA64 processor
15628	lt_prog_compiler_static='-Bstatic'
15629      else
15630	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15631      fi
15632      ;;
15633
15634    darwin* | rhapsody*)
15635      # PIC is the default on this platform
15636      # Common symbols not allowed in MH_DYLIB files
15637      lt_prog_compiler_pic='-fno-common'
15638      case $cc_basename in
15639      nagfor*)
15640        # NAG Fortran compiler
15641        lt_prog_compiler_wl='-Wl,-Wl,,'
15642        lt_prog_compiler_pic='-PIC'
15643        lt_prog_compiler_static='-Bstatic'
15644        ;;
15645      esac
15646      ;;
15647
15648    mingw* | cygwin* | pw32* | os2* | cegcc*)
15649      # This hack is so that the source file can tell whether it is being
15650      # built for inclusion in a dll (and should export symbols for example).
15651      lt_prog_compiler_pic='-DDLL_EXPORT'
15652      case $host_os in
15653      os2*)
15654	lt_prog_compiler_static='$wl-static'
15655	;;
15656      esac
15657      ;;
15658
15659    hpux9* | hpux10* | hpux11*)
15660      lt_prog_compiler_wl='-Wl,'
15661      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662      # not for PA HP-UX.
15663      case $host_cpu in
15664      hppa*64*|ia64*)
15665	# +Z the default
15666	;;
15667      *)
15668	lt_prog_compiler_pic='+Z'
15669	;;
15670      esac
15671      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15672      lt_prog_compiler_static='$wl-a ${wl}archive'
15673      ;;
15674
15675    irix5* | irix6* | nonstopux*)
15676      lt_prog_compiler_wl='-Wl,'
15677      # PIC (with -KPIC) is the default.
15678      lt_prog_compiler_static='-non_shared'
15679      ;;
15680
15681    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15682      case $cc_basename in
15683      # old Intel for x86_64, which still supported -KPIC.
15684      ecc*)
15685	lt_prog_compiler_wl='-Wl,'
15686	lt_prog_compiler_pic='-KPIC'
15687	lt_prog_compiler_static='-static'
15688        ;;
15689      # icc used to be incompatible with GCC.
15690      # ICC 10 doesn't accept -KPIC any more.
15691      icc* | ifort*)
15692	lt_prog_compiler_wl='-Wl,'
15693	lt_prog_compiler_pic='-fPIC'
15694	lt_prog_compiler_static='-static'
15695        ;;
15696      # Lahey Fortran 8.1.
15697      lf95*)
15698	lt_prog_compiler_wl='-Wl,'
15699	lt_prog_compiler_pic='--shared'
15700	lt_prog_compiler_static='--static'
15701	;;
15702      nagfor*)
15703	# NAG Fortran compiler
15704	lt_prog_compiler_wl='-Wl,-Wl,,'
15705	lt_prog_compiler_pic='-PIC'
15706	lt_prog_compiler_static='-Bstatic'
15707	;;
15708      tcc*)
15709	# Fabrice Bellard et al's Tiny C Compiler
15710	lt_prog_compiler_wl='-Wl,'
15711	lt_prog_compiler_pic='-fPIC'
15712	lt_prog_compiler_static='-static'
15713	;;
15714      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15715        # Portland Group compilers (*not* the Pentium gcc compiler,
15716	# which looks to be a dead project)
15717	lt_prog_compiler_wl='-Wl,'
15718	lt_prog_compiler_pic='-fpic'
15719	lt_prog_compiler_static='-Bstatic'
15720        ;;
15721      ccc*)
15722        lt_prog_compiler_wl='-Wl,'
15723        # All Alpha code is PIC.
15724        lt_prog_compiler_static='-non_shared'
15725        ;;
15726      xl* | bgxl* | bgf* | mpixl*)
15727	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15728	lt_prog_compiler_wl='-Wl,'
15729	lt_prog_compiler_pic='-qpic'
15730	lt_prog_compiler_static='-qstaticlink'
15731	;;
15732      *)
15733	case `$CC -V 2>&1 | $SED 5q` in
15734	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15735	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15736	  lt_prog_compiler_pic='-KPIC'
15737	  lt_prog_compiler_static='-Bstatic'
15738	  lt_prog_compiler_wl=''
15739	  ;;
15740	*Sun\ F* | *Sun*Fortran*)
15741	  lt_prog_compiler_pic='-KPIC'
15742	  lt_prog_compiler_static='-Bstatic'
15743	  lt_prog_compiler_wl='-Qoption ld '
15744	  ;;
15745	*Sun\ C*)
15746	  # Sun C 5.9
15747	  lt_prog_compiler_pic='-KPIC'
15748	  lt_prog_compiler_static='-Bstatic'
15749	  lt_prog_compiler_wl='-Wl,'
15750	  ;;
15751        *Intel*\ [CF]*Compiler*)
15752	  lt_prog_compiler_wl='-Wl,'
15753	  lt_prog_compiler_pic='-fPIC'
15754	  lt_prog_compiler_static='-static'
15755	  ;;
15756	*Portland\ Group*)
15757	  lt_prog_compiler_wl='-Wl,'
15758	  lt_prog_compiler_pic='-fpic'
15759	  lt_prog_compiler_static='-Bstatic'
15760	  ;;
15761	esac
15762	;;
15763      esac
15764      ;;
15765
15766    newsos6)
15767      lt_prog_compiler_pic='-KPIC'
15768      lt_prog_compiler_static='-Bstatic'
15769      ;;
15770
15771    *nto* | *qnx*)
15772      # QNX uses GNU C++, but need to define -shared option too, otherwise
15773      # it will coredump.
15774      lt_prog_compiler_pic='-fPIC -shared'
15775      ;;
15776
15777    osf3* | osf4* | osf5*)
15778      lt_prog_compiler_wl='-Wl,'
15779      # All OSF/1 code is PIC.
15780      lt_prog_compiler_static='-non_shared'
15781      ;;
15782
15783    rdos*)
15784      lt_prog_compiler_static='-non_shared'
15785      ;;
15786
15787    solaris*)
15788      lt_prog_compiler_pic='-KPIC'
15789      lt_prog_compiler_static='-Bstatic'
15790      case $cc_basename in
15791      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15792	lt_prog_compiler_wl='-Qoption ld ';;
15793      *)
15794	lt_prog_compiler_wl='-Wl,';;
15795      esac
15796      ;;
15797
15798    sunos4*)
15799      lt_prog_compiler_wl='-Qoption ld '
15800      lt_prog_compiler_pic='-PIC'
15801      lt_prog_compiler_static='-Bstatic'
15802      ;;
15803
15804    sysv4 | sysv4.2uw2* | sysv4.3*)
15805      lt_prog_compiler_wl='-Wl,'
15806      lt_prog_compiler_pic='-KPIC'
15807      lt_prog_compiler_static='-Bstatic'
15808      ;;
15809
15810    sysv4*MP*)
15811      if test -d /usr/nec; then
15812	lt_prog_compiler_pic='-Kconform_pic'
15813	lt_prog_compiler_static='-Bstatic'
15814      fi
15815      ;;
15816
15817    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15818      lt_prog_compiler_wl='-Wl,'
15819      lt_prog_compiler_pic='-KPIC'
15820      lt_prog_compiler_static='-Bstatic'
15821      ;;
15822
15823    unicos*)
15824      lt_prog_compiler_wl='-Wl,'
15825      lt_prog_compiler_can_build_shared=no
15826      ;;
15827
15828    uts4*)
15829      lt_prog_compiler_pic='-pic'
15830      lt_prog_compiler_static='-Bstatic'
15831      ;;
15832
15833    *)
15834      lt_prog_compiler_can_build_shared=no
15835      ;;
15836    esac
15837  fi
15838
15839case $host_os in
15840  # For platforms that do not support PIC, -DPIC is meaningless:
15841  *djgpp*)
15842    lt_prog_compiler_pic=
15843    ;;
15844  *)
15845    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15846    ;;
15847esac
15848
15849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15850printf %s "checking for $compiler option to produce PIC... " >&6; }
15851if test ${lt_cv_prog_compiler_pic+y}
15852then :
15853  printf %s "(cached) " >&6
15854else $as_nop
15855  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15856fi
15857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15858printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15859lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15860
15861#
15862# Check to make sure the PIC flag actually works.
15863#
15864if test -n "$lt_prog_compiler_pic"; then
15865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15866printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15867if test ${lt_cv_prog_compiler_pic_works+y}
15868then :
15869  printf %s "(cached) " >&6
15870else $as_nop
15871  lt_cv_prog_compiler_pic_works=no
15872   ac_outfile=conftest.$ac_objext
15873   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15874   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15875   # Insert the option either (1) after the last *FLAGS variable, or
15876   # (2) before a word containing "conftest.", or (3) at the end.
15877   # Note that $ac_compile itself does not contain backslashes and begins
15878   # with a dollar sign (not a hyphen), so the echo should work correctly.
15879   # The option is referenced via a variable to avoid confusing sed.
15880   lt_compile=`echo "$ac_compile" | $SED \
15881   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883   -e 's:$: $lt_compiler_flag:'`
15884   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15885   (eval "$lt_compile" 2>conftest.err)
15886   ac_status=$?
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   if (exit $ac_status) && test -s "$ac_outfile"; then
15890     # The compiler can only warn and ignore the option if not recognized
15891     # So say no if there are warnings other than the usual output.
15892     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15893     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15894     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15895       lt_cv_prog_compiler_pic_works=yes
15896     fi
15897   fi
15898   $RM conftest*
15899
15900fi
15901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15902printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15903
15904if test yes = "$lt_cv_prog_compiler_pic_works"; then
15905    case $lt_prog_compiler_pic in
15906     "" | " "*) ;;
15907     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15908     esac
15909else
15910    lt_prog_compiler_pic=
15911     lt_prog_compiler_can_build_shared=no
15912fi
15913
15914fi
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926#
15927# Check to make sure the static flag actually works.
15928#
15929wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15931printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15932if test ${lt_cv_prog_compiler_static_works+y}
15933then :
15934  printf %s "(cached) " >&6
15935else $as_nop
15936  lt_cv_prog_compiler_static_works=no
15937   save_LDFLAGS=$LDFLAGS
15938   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15939   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15940   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15941     # The linker can only warn and ignore the option if not recognized
15942     # So say no if there are warnings
15943     if test -s conftest.err; then
15944       # Append any errors to the config.log.
15945       cat conftest.err 1>&5
15946       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15947       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948       if diff conftest.exp conftest.er2 >/dev/null; then
15949         lt_cv_prog_compiler_static_works=yes
15950       fi
15951     else
15952       lt_cv_prog_compiler_static_works=yes
15953     fi
15954   fi
15955   $RM -r conftest*
15956   LDFLAGS=$save_LDFLAGS
15957
15958fi
15959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15960printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15961
15962if test yes = "$lt_cv_prog_compiler_static_works"; then
15963    :
15964else
15965    lt_prog_compiler_static=
15966fi
15967
15968
15969
15970
15971
15972
15973
15974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15975printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15976if test ${lt_cv_prog_compiler_c_o+y}
15977then :
15978  printf %s "(cached) " >&6
15979else $as_nop
15980  lt_cv_prog_compiler_c_o=no
15981   $RM -r conftest 2>/dev/null
15982   mkdir conftest
15983   cd conftest
15984   mkdir out
15985   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15986
15987   lt_compiler_flag="-o out/conftest2.$ac_objext"
15988   # Insert the option either (1) after the last *FLAGS variable, or
15989   # (2) before a word containing "conftest.", or (3) at the end.
15990   # Note that $ac_compile itself does not contain backslashes and begins
15991   # with a dollar sign (not a hyphen), so the echo should work correctly.
15992   lt_compile=`echo "$ac_compile" | $SED \
15993   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15994   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15995   -e 's:$: $lt_compiler_flag:'`
15996   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15997   (eval "$lt_compile" 2>out/conftest.err)
15998   ac_status=$?
15999   cat out/conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16002   then
16003     # The compiler can only warn and ignore the option if not recognized
16004     # So say no if there are warnings
16005     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16006     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16007     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16008       lt_cv_prog_compiler_c_o=yes
16009     fi
16010   fi
16011   chmod u+w . 2>&5
16012   $RM conftest*
16013   # SGI C++ compiler will create directory out/ii_files/ for
16014   # template instantiation
16015   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16016   $RM out/* && rmdir out
16017   cd ..
16018   $RM -r conftest
16019   $RM conftest*
16020
16021fi
16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16023printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16024
16025
16026
16027
16028
16029
16030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16031printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16032if test ${lt_cv_prog_compiler_c_o+y}
16033then :
16034  printf %s "(cached) " >&6
16035else $as_nop
16036  lt_cv_prog_compiler_c_o=no
16037   $RM -r conftest 2>/dev/null
16038   mkdir conftest
16039   cd conftest
16040   mkdir out
16041   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16042
16043   lt_compiler_flag="-o out/conftest2.$ac_objext"
16044   # Insert the option either (1) after the last *FLAGS variable, or
16045   # (2) before a word containing "conftest.", or (3) at the end.
16046   # Note that $ac_compile itself does not contain backslashes and begins
16047   # with a dollar sign (not a hyphen), so the echo should work correctly.
16048   lt_compile=`echo "$ac_compile" | $SED \
16049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16051   -e 's:$: $lt_compiler_flag:'`
16052   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16053   (eval "$lt_compile" 2>out/conftest.err)
16054   ac_status=$?
16055   cat out/conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16058   then
16059     # The compiler can only warn and ignore the option if not recognized
16060     # So say no if there are warnings
16061     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16062     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16063     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16064       lt_cv_prog_compiler_c_o=yes
16065     fi
16066   fi
16067   chmod u+w . 2>&5
16068   $RM conftest*
16069   # SGI C++ compiler will create directory out/ii_files/ for
16070   # template instantiation
16071   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16072   $RM out/* && rmdir out
16073   cd ..
16074   $RM -r conftest
16075   $RM conftest*
16076
16077fi
16078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16079printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16080
16081
16082
16083
16084hard_links=nottested
16085if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16086  # do not overwrite the value of need_locks provided by the user
16087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16088printf %s "checking if we can lock with hard links... " >&6; }
16089  hard_links=yes
16090  $RM conftest*
16091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16092  touch conftest.a
16093  ln conftest.a conftest.b 2>&5 || hard_links=no
16094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16096printf "%s\n" "$hard_links" >&6; }
16097  if test no = "$hard_links"; then
16098    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16099printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16100    need_locks=warn
16101  fi
16102else
16103  need_locks=no
16104fi
16105
16106
16107
16108
16109
16110
16111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16112printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16113
16114  runpath_var=
16115  allow_undefined_flag=
16116  always_export_symbols=no
16117  archive_cmds=
16118  archive_expsym_cmds=
16119  compiler_needs_object=no
16120  enable_shared_with_static_runtimes=no
16121  export_dynamic_flag_spec=
16122  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16123  hardcode_automatic=no
16124  hardcode_direct=no
16125  hardcode_direct_absolute=no
16126  hardcode_libdir_flag_spec=
16127  hardcode_libdir_separator=
16128  hardcode_minus_L=no
16129  hardcode_shlibpath_var=unsupported
16130  inherit_rpath=no
16131  link_all_deplibs=unknown
16132  module_cmds=
16133  module_expsym_cmds=
16134  old_archive_from_new_cmds=
16135  old_archive_from_expsyms_cmds=
16136  thread_safe_flag_spec=
16137  whole_archive_flag_spec=
16138  # include_expsyms should be a list of space-separated symbols to be *always*
16139  # included in the symbol list
16140  include_expsyms=
16141  # exclude_expsyms can be an extended regexp of symbols to exclude
16142  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16143  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16144  # as well as any symbol that contains 'd'.
16145  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16146  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16147  # platforms (ab)use it in PIC code, but their linkers get confused if
16148  # the symbol is explicitly referenced.  Since portable code cannot
16149  # rely on this symbol name, it's probably fine to never include it in
16150  # preloaded symbol tables.
16151  # Exclude shared library initialization/finalization symbols.
16152  extract_expsyms_cmds=
16153
16154  case $host_os in
16155  cygwin* | mingw* | pw32* | cegcc*)
16156    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16157    # When not using gcc, we currently assume that we are using
16158    # Microsoft Visual C++ or Intel C++ Compiler.
16159    if test yes != "$GCC"; then
16160      with_gnu_ld=no
16161    fi
16162    ;;
16163  interix*)
16164    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16165    with_gnu_ld=yes
16166    ;;
16167  openbsd* | bitrig*)
16168    with_gnu_ld=no
16169    ;;
16170  esac
16171
16172  ld_shlibs=yes
16173
16174  # On some targets, GNU ld is compatible enough with the native linker
16175  # that we're better off using the native interface for both.
16176  lt_use_gnu_ld_interface=no
16177  if test yes = "$with_gnu_ld"; then
16178    case $host_os in
16179      aix*)
16180	# The AIX port of GNU ld has always aspired to compatibility
16181	# with the native linker.  However, as the warning in the GNU ld
16182	# block says, versions before 2.19.5* couldn't really create working
16183	# shared libraries, regardless of the interface used.
16184	case `$LD -v 2>&1` in
16185	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16186	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16187	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16188	  *)
16189	    lt_use_gnu_ld_interface=yes
16190	    ;;
16191	esac
16192	;;
16193      *)
16194	lt_use_gnu_ld_interface=yes
16195	;;
16196    esac
16197  fi
16198
16199  if test yes = "$lt_use_gnu_ld_interface"; then
16200    # If archive_cmds runs LD, not CC, wlarc should be empty
16201    wlarc='$wl'
16202
16203    # Set some defaults for GNU ld with shared library support. These
16204    # are reset later if shared libraries are not supported. Putting them
16205    # here allows them to be overridden if necessary.
16206    runpath_var=LD_RUN_PATH
16207    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16208    export_dynamic_flag_spec='$wl--export-dynamic'
16209    # ancient GNU ld didn't support --whole-archive et. al.
16210    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16211      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16212    else
16213      whole_archive_flag_spec=
16214    fi
16215    supports_anon_versioning=no
16216    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16217      *GNU\ gold*) supports_anon_versioning=yes ;;
16218      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16219      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16220      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16221      *\ 2.11.*) ;; # other 2.11 versions
16222      *) supports_anon_versioning=yes ;;
16223    esac
16224
16225    # See if GNU ld supports shared libraries.
16226    case $host_os in
16227    aix[3-9]*)
16228      # On AIX/PPC, the GNU linker is very broken
16229      if test ia64 != "$host_cpu"; then
16230	ld_shlibs=no
16231	cat <<_LT_EOF 1>&2
16232
16233*** Warning: the GNU linker, at least up to release 2.19, is reported
16234*** to be unable to reliably create shared libraries on AIX.
16235*** Therefore, libtool is disabling shared libraries support.  If you
16236*** really care for shared libraries, you may want to install binutils
16237*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16238*** You will then need to restart the configuration process.
16239
16240_LT_EOF
16241      fi
16242      ;;
16243
16244    amigaos*)
16245      case $host_cpu in
16246      powerpc)
16247            # see comment about AmigaOS4 .so support
16248            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16249            archive_expsym_cmds=''
16250        ;;
16251      m68k)
16252            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)'
16253            hardcode_libdir_flag_spec='-L$libdir'
16254            hardcode_minus_L=yes
16255        ;;
16256      esac
16257      ;;
16258
16259    beos*)
16260      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16261	allow_undefined_flag=unsupported
16262	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16263	# support --undefined.  This deserves some investigation.  FIXME
16264	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16265      else
16266	ld_shlibs=no
16267      fi
16268      ;;
16269
16270    cygwin* | mingw* | pw32* | cegcc*)
16271      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16272      # as there is no search path for DLLs.
16273      hardcode_libdir_flag_spec='-L$libdir'
16274      export_dynamic_flag_spec='$wl--export-all-symbols'
16275      allow_undefined_flag=unsupported
16276      always_export_symbols=no
16277      enable_shared_with_static_runtimes=yes
16278      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'
16279      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16280
16281      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16282        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16283	# If the export-symbols file already is a .def file, use it as
16284	# is; otherwise, prepend EXPORTS...
16285	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16286          cp $export_symbols $output_objdir/$soname.def;
16287        else
16288          echo EXPORTS > $output_objdir/$soname.def;
16289          cat $export_symbols >> $output_objdir/$soname.def;
16290        fi~
16291        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16292      else
16293	ld_shlibs=no
16294      fi
16295      ;;
16296
16297    haiku*)
16298      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16299      link_all_deplibs=yes
16300      ;;
16301
16302    os2*)
16303      hardcode_libdir_flag_spec='-L$libdir'
16304      hardcode_minus_L=yes
16305      allow_undefined_flag=unsupported
16306      shrext_cmds=.dll
16307      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16308	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16309	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16310	$ECHO EXPORTS >> $output_objdir/$libname.def~
16311	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16312	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16313	emximp -o $lib $output_objdir/$libname.def'
16314      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16315	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16316	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16317	$ECHO EXPORTS >> $output_objdir/$libname.def~
16318	prefix_cmds="$SED"~
16319	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16320	  prefix_cmds="$prefix_cmds -e 1d";
16321	fi~
16322	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16323	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16324	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16325	emximp -o $lib $output_objdir/$libname.def'
16326      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16327      enable_shared_with_static_runtimes=yes
16328      file_list_spec='@'
16329      ;;
16330
16331    interix[3-9]*)
16332      hardcode_direct=no
16333      hardcode_shlibpath_var=no
16334      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16335      export_dynamic_flag_spec='$wl-E'
16336      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16337      # Instead, shared libraries are loaded at an image base (0x10000000 by
16338      # default) and relocated if they conflict, which is a slow very memory
16339      # consuming and fragmenting process.  To avoid this, we pick a random,
16340      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16341      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16342      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16343      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'
16344      ;;
16345
16346    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16347      tmp_diet=no
16348      if test linux-dietlibc = "$host_os"; then
16349	case $cc_basename in
16350	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16351	esac
16352      fi
16353      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16354	 && test no = "$tmp_diet"
16355      then
16356	tmp_addflag=' $pic_flag'
16357	tmp_sharedflag='-shared'
16358	case $cc_basename,$host_cpu in
16359        pgcc*)				# Portland Group C compiler
16360	  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'
16361	  tmp_addflag=' $pic_flag'
16362	  ;;
16363	pgf77* | pgf90* | pgf95* | pgfortran*)
16364					# Portland Group f77 and f90 compilers
16365	  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'
16366	  tmp_addflag=' $pic_flag -Mnomain' ;;
16367	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16368	  tmp_addflag=' -i_dynamic' ;;
16369	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16370	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16371	ifc* | ifort*)			# Intel Fortran compiler
16372	  tmp_addflag=' -nofor_main' ;;
16373	lf95*)				# Lahey Fortran 8.1
16374	  whole_archive_flag_spec=
16375	  tmp_sharedflag='--shared' ;;
16376        nagfor*)                        # NAGFOR 5.3
16377          tmp_sharedflag='-Wl,-shared' ;;
16378	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16379	  tmp_sharedflag='-qmkshrobj'
16380	  tmp_addflag= ;;
16381	nvcc*)	# Cuda Compiler Driver 2.2
16382	  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'
16383	  compiler_needs_object=yes
16384	  ;;
16385	esac
16386	case `$CC -V 2>&1 | $SED 5q` in
16387	*Sun\ C*)			# Sun C 5.9
16388	  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'
16389	  compiler_needs_object=yes
16390	  tmp_sharedflag='-G' ;;
16391	*Sun\ F*)			# Sun Fortran 8.3
16392	  tmp_sharedflag='-G' ;;
16393	esac
16394	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16395
16396        if test yes = "$supports_anon_versioning"; then
16397          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16398            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16399            echo "local: *; };" >> $output_objdir/$libname.ver~
16400            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16401        fi
16402
16403	case $cc_basename in
16404	tcc*)
16405	  export_dynamic_flag_spec='-rdynamic'
16406	  ;;
16407	xlf* | bgf* | bgxlf* | mpixlf*)
16408	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16409	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16410	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16411	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16412	  if test yes = "$supports_anon_versioning"; then
16413	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16414              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16415              echo "local: *; };" >> $output_objdir/$libname.ver~
16416              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16417	  fi
16418	  ;;
16419	esac
16420      else
16421        ld_shlibs=no
16422      fi
16423      ;;
16424
16425    netbsd*)
16426      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16427	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16428	wlarc=
16429      else
16430	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16431	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16432      fi
16433      ;;
16434
16435    solaris*)
16436      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16437	ld_shlibs=no
16438	cat <<_LT_EOF 1>&2
16439
16440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16441*** create shared libraries on Solaris systems.  Therefore, libtool
16442*** is disabling shared libraries support.  We urge you to upgrade GNU
16443*** binutils to release 2.9.1 or newer.  Another option is to modify
16444*** your PATH or compiler configuration so that the native linker is
16445*** used, and then restart.
16446
16447_LT_EOF
16448      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16449	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16450	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16451      else
16452	ld_shlibs=no
16453      fi
16454      ;;
16455
16456    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16457      case `$LD -v 2>&1` in
16458        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16459	ld_shlibs=no
16460	cat <<_LT_EOF 1>&2
16461
16462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16463*** reliably create shared libraries on SCO systems.  Therefore, libtool
16464*** is disabling shared libraries support.  We urge you to upgrade GNU
16465*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16466*** your PATH or compiler configuration so that the native linker is
16467*** used, and then restart.
16468
16469_LT_EOF
16470	;;
16471	*)
16472	  # For security reasons, it is highly recommended that you always
16473	  # use absolute paths for naming shared libraries, and exclude the
16474	  # DT_RUNPATH tag from executables and libraries.  But doing so
16475	  # requires that you compile everything twice, which is a pain.
16476	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16477	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16478	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16479	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16480	  else
16481	    ld_shlibs=no
16482	  fi
16483	;;
16484      esac
16485      ;;
16486
16487    sunos4*)
16488      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16489      wlarc=
16490      hardcode_direct=yes
16491      hardcode_shlibpath_var=no
16492      ;;
16493
16494    *)
16495      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16496	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16497	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16498      else
16499	ld_shlibs=no
16500      fi
16501      ;;
16502    esac
16503
16504    if test no = "$ld_shlibs"; then
16505      runpath_var=
16506      hardcode_libdir_flag_spec=
16507      export_dynamic_flag_spec=
16508      whole_archive_flag_spec=
16509    fi
16510  else
16511    # PORTME fill in a description of your system's linker (not GNU ld)
16512    case $host_os in
16513    aix3*)
16514      allow_undefined_flag=unsupported
16515      always_export_symbols=yes
16516      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'
16517      # Note: this linker hardcodes the directories in LIBPATH if there
16518      # are no directories specified by -L.
16519      hardcode_minus_L=yes
16520      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16521	# Neither direct hardcoding nor static linking is supported with a
16522	# broken collect2.
16523	hardcode_direct=unsupported
16524      fi
16525      ;;
16526
16527    aix[4-9]*)
16528      if test ia64 = "$host_cpu"; then
16529	# On IA64, the linker does run time linking by default, so we don't
16530	# have to do anything special.
16531	aix_use_runtimelinking=no
16532	exp_sym_flag='-Bexport'
16533	no_entry_flag=
16534      else
16535	# If we're using GNU nm, then we don't want the "-C" option.
16536	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16537	# Without the "-l" option, or with the "-B" option, AIX nm treats
16538	# weak defined symbols like other global defined symbols, whereas
16539	# GNU nm marks them as "W".
16540	# While the 'weak' keyword is ignored in the Export File, we need
16541	# it in the Import File for the 'aix-soname' feature, so we have
16542	# to replace the "-B" option with "-P" for AIX nm.
16543	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16544	  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'
16545	else
16546	  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 == "L") || (\$ 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'
16547	fi
16548	aix_use_runtimelinking=no
16549
16550	# Test if we are trying to use run time linking or normal
16551	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16552	# have runtime linking enabled, and use it for executables.
16553	# For shared libraries, we enable/disable runtime linking
16554	# depending on the kind of the shared library created -
16555	# when "with_aix_soname,aix_use_runtimelinking" is:
16556	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16557	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16558	#            lib.a           static archive
16559	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16560	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16561	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16562	#            lib.a(lib.so.V) shared, rtl:no
16563	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16564	#            lib.a           static archive
16565	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16566	  for ld_flag in $LDFLAGS; do
16567	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16568	    aix_use_runtimelinking=yes
16569	    break
16570	  fi
16571	  done
16572	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16573	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16574	    # so we don't have lib.a shared libs to link our executables.
16575	    # We have to force runtime linking in this case.
16576	    aix_use_runtimelinking=yes
16577	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16578	  fi
16579	  ;;
16580	esac
16581
16582	exp_sym_flag='-bexport'
16583	no_entry_flag='-bnoentry'
16584      fi
16585
16586      # When large executables or shared objects are built, AIX ld can
16587      # have problems creating the table of contents.  If linking a library
16588      # or program results in "error TOC overflow" add -mminimal-toc to
16589      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16590      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16591
16592      archive_cmds=''
16593      hardcode_direct=yes
16594      hardcode_direct_absolute=yes
16595      hardcode_libdir_separator=':'
16596      link_all_deplibs=yes
16597      file_list_spec='$wl-f,'
16598      case $with_aix_soname,$aix_use_runtimelinking in
16599      aix,*) ;; # traditional, no import file
16600      svr4,* | *,yes) # use import file
16601	# The Import File defines what to hardcode.
16602	hardcode_direct=no
16603	hardcode_direct_absolute=no
16604	;;
16605      esac
16606
16607      if test yes = "$GCC"; then
16608	case $host_os in aix4.[012]|aix4.[012].*)
16609	# We only want to do this on AIX 4.2 and lower, the check
16610	# below for broken collect2 doesn't work under 4.3+
16611	  collect2name=`$CC -print-prog-name=collect2`
16612	  if test -f "$collect2name" &&
16613	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16614	  then
16615	  # We have reworked collect2
16616	  :
16617	  else
16618	  # We have old collect2
16619	  hardcode_direct=unsupported
16620	  # It fails to find uninstalled libraries when the uninstalled
16621	  # path is not listed in the libpath.  Setting hardcode_minus_L
16622	  # to unsupported forces relinking
16623	  hardcode_minus_L=yes
16624	  hardcode_libdir_flag_spec='-L$libdir'
16625	  hardcode_libdir_separator=
16626	  fi
16627	  ;;
16628	esac
16629	shared_flag='-shared'
16630	if test yes = "$aix_use_runtimelinking"; then
16631	  shared_flag="$shared_flag "'$wl-G'
16632	fi
16633	# Need to ensure runtime linking is disabled for the traditional
16634	# shared library, or the linker may eventually find shared libraries
16635	# /with/ Import File - we do not want to mix them.
16636	shared_flag_aix='-shared'
16637	shared_flag_svr4='-shared $wl-G'
16638      else
16639	# not using gcc
16640	if test ia64 = "$host_cpu"; then
16641	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16642	# chokes on -Wl,-G. The following line is correct:
16643	  shared_flag='-G'
16644	else
16645	  if test yes = "$aix_use_runtimelinking"; then
16646	    shared_flag='$wl-G'
16647	  else
16648	    shared_flag='$wl-bM:SRE'
16649	  fi
16650	  shared_flag_aix='$wl-bM:SRE'
16651	  shared_flag_svr4='$wl-G'
16652	fi
16653      fi
16654
16655      export_dynamic_flag_spec='$wl-bexpall'
16656      # It seems that -bexpall does not export symbols beginning with
16657      # underscore (_), so it is better to generate a list of symbols to export.
16658      always_export_symbols=yes
16659      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16660	# Warning - without using the other runtime loading flags (-brtl),
16661	# -berok will link without error, but may produce a broken library.
16662	allow_undefined_flag='-berok'
16663        # Determine the default libpath from the value encoded in an
16664        # empty executable.
16665        if test set = "${lt_cv_aix_libpath+set}"; then
16666  aix_libpath=$lt_cv_aix_libpath
16667else
16668  if test ${lt_cv_aix_libpath_+y}
16669then :
16670  printf %s "(cached) " >&6
16671else $as_nop
16672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673/* end confdefs.h.  */
16674
16675int
16676main (void)
16677{
16678
16679  ;
16680  return 0;
16681}
16682_ACEOF
16683if ac_fn_c_try_link "$LINENO"
16684then :
16685
16686  lt_aix_libpath_sed='
16687      /Import File Strings/,/^$/ {
16688	  /^0/ {
16689	      s/^0  *\([^ ]*\) *$/\1/
16690	      p
16691	  }
16692      }'
16693  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16694  # Check for a 64-bit object if we didn't find anything.
16695  if test -z "$lt_cv_aix_libpath_"; then
16696    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16697  fi
16698fi
16699rm -f core conftest.err conftest.$ac_objext conftest.beam \
16700    conftest$ac_exeext conftest.$ac_ext
16701  if test -z "$lt_cv_aix_libpath_"; then
16702    lt_cv_aix_libpath_=/usr/lib:/lib
16703  fi
16704
16705fi
16706
16707  aix_libpath=$lt_cv_aix_libpath_
16708fi
16709
16710        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16711        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
16712      else
16713	if test ia64 = "$host_cpu"; then
16714	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16715	  allow_undefined_flag="-z nodefs"
16716	  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"
16717	else
16718	 # Determine the default libpath from the value encoded in an
16719	 # empty executable.
16720	 if test set = "${lt_cv_aix_libpath+set}"; then
16721  aix_libpath=$lt_cv_aix_libpath
16722else
16723  if test ${lt_cv_aix_libpath_+y}
16724then :
16725  printf %s "(cached) " >&6
16726else $as_nop
16727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728/* end confdefs.h.  */
16729
16730int
16731main (void)
16732{
16733
16734  ;
16735  return 0;
16736}
16737_ACEOF
16738if ac_fn_c_try_link "$LINENO"
16739then :
16740
16741  lt_aix_libpath_sed='
16742      /Import File Strings/,/^$/ {
16743	  /^0/ {
16744	      s/^0  *\([^ ]*\) *$/\1/
16745	      p
16746	  }
16747      }'
16748  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16749  # Check for a 64-bit object if we didn't find anything.
16750  if test -z "$lt_cv_aix_libpath_"; then
16751    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16752  fi
16753fi
16754rm -f core conftest.err conftest.$ac_objext conftest.beam \
16755    conftest$ac_exeext conftest.$ac_ext
16756  if test -z "$lt_cv_aix_libpath_"; then
16757    lt_cv_aix_libpath_=/usr/lib:/lib
16758  fi
16759
16760fi
16761
16762  aix_libpath=$lt_cv_aix_libpath_
16763fi
16764
16765	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16766	  # Warning - without using the other run time loading flags,
16767	  # -berok will link without error, but may produce a broken library.
16768	  no_undefined_flag=' $wl-bernotok'
16769	  allow_undefined_flag=' $wl-berok'
16770	  if test yes = "$with_gnu_ld"; then
16771	    # We only use this code for GNU lds that support --whole-archive.
16772	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16773	  else
16774	    # Exported symbols can be pulled into shared objects from archives
16775	    whole_archive_flag_spec='$convenience'
16776	  fi
16777	  archive_cmds_need_lc=yes
16778	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16779	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16780	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16781	  if test svr4 != "$with_aix_soname"; then
16782	    # This is similar to how AIX traditionally builds its shared libraries.
16783	    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'
16784	  fi
16785	  if test aix != "$with_aix_soname"; then
16786	    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'
16787	  else
16788	    # used by -dlpreopen to get the symbols
16789	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16790	  fi
16791	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16792	fi
16793      fi
16794      ;;
16795
16796    amigaos*)
16797      case $host_cpu in
16798      powerpc)
16799            # see comment about AmigaOS4 .so support
16800            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16801            archive_expsym_cmds=''
16802        ;;
16803      m68k)
16804            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)'
16805            hardcode_libdir_flag_spec='-L$libdir'
16806            hardcode_minus_L=yes
16807        ;;
16808      esac
16809      ;;
16810
16811    bsdi[45]*)
16812      export_dynamic_flag_spec=-rdynamic
16813      ;;
16814
16815    cygwin* | mingw* | pw32* | cegcc*)
16816      # When not using gcc, we currently assume that we are using
16817      # Microsoft Visual C++ or Intel C++ Compiler.
16818      # hardcode_libdir_flag_spec is actually meaningless, as there is
16819      # no search path for DLLs.
16820      case $cc_basename in
16821      cl* | icl*)
16822	# Native MSVC or ICC
16823	hardcode_libdir_flag_spec=' '
16824	allow_undefined_flag=unsupported
16825	always_export_symbols=yes
16826	file_list_spec='@'
16827	# Tell ltmain to make .lib files, not .a files.
16828	libext=lib
16829	# Tell ltmain to make .dll files, not .so files.
16830	shrext_cmds=.dll
16831	# FIXME: Setting linknames here is a bad hack.
16832	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16833	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16834            cp "$export_symbols" "$output_objdir/$soname.def";
16835            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16836          else
16837            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16838          fi~
16839          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16840          linknames='
16841	# The linker will not automatically build a static lib if we build a DLL.
16842	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16843	enable_shared_with_static_runtimes=yes
16844	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16845	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16846	# Don't use ranlib
16847	old_postinstall_cmds='chmod 644 $oldlib'
16848	postlink_cmds='lt_outputfile="@OUTPUT@"~
16849          lt_tool_outputfile="@TOOL_OUTPUT@"~
16850          case $lt_outputfile in
16851            *.exe|*.EXE) ;;
16852            *)
16853              lt_outputfile=$lt_outputfile.exe
16854              lt_tool_outputfile=$lt_tool_outputfile.exe
16855              ;;
16856          esac~
16857          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16858            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16859            $RM "$lt_outputfile.manifest";
16860          fi'
16861	;;
16862      *)
16863	# Assume MSVC and ICC wrapper
16864	hardcode_libdir_flag_spec=' '
16865	allow_undefined_flag=unsupported
16866	# Tell ltmain to make .lib files, not .a files.
16867	libext=lib
16868	# Tell ltmain to make .dll files, not .so files.
16869	shrext_cmds=.dll
16870	# FIXME: Setting linknames here is a bad hack.
16871	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16872	# The linker will automatically build a .lib file if we build a DLL.
16873	old_archive_from_new_cmds='true'
16874	# FIXME: Should let the user specify the lib program.
16875	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16876	enable_shared_with_static_runtimes=yes
16877	;;
16878      esac
16879      ;;
16880
16881    darwin* | rhapsody*)
16882
16883
16884  archive_cmds_need_lc=no
16885  hardcode_direct=no
16886  hardcode_automatic=yes
16887  hardcode_shlibpath_var=unsupported
16888  if test yes = "$lt_cv_ld_force_load"; then
16889    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\"`'
16890
16891  else
16892    whole_archive_flag_spec=''
16893  fi
16894  link_all_deplibs=yes
16895  allow_undefined_flag=$_lt_dar_allow_undefined
16896  case $cc_basename in
16897     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16898     *) _lt_dar_can_shared=$GCC ;;
16899  esac
16900  if test yes = "$_lt_dar_can_shared"; then
16901    output_verbose_link_cmd=func_echo_all
16902    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16903    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16904    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"
16905    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"
16906
16907  else
16908  ld_shlibs=no
16909  fi
16910
16911      ;;
16912
16913    dgux*)
16914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16915      hardcode_libdir_flag_spec='-L$libdir'
16916      hardcode_shlibpath_var=no
16917      ;;
16918
16919    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16920    # support.  Future versions do this automatically, but an explicit c++rt0.o
16921    # does not break anything, and helps significantly (at the cost of a little
16922    # extra space).
16923    freebsd2.2*)
16924      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16925      hardcode_libdir_flag_spec='-R$libdir'
16926      hardcode_direct=yes
16927      hardcode_shlibpath_var=no
16928      ;;
16929
16930    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16931    freebsd2.*)
16932      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16933      hardcode_direct=yes
16934      hardcode_minus_L=yes
16935      hardcode_shlibpath_var=no
16936      ;;
16937
16938    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16939    freebsd* | dragonfly* | midnightbsd*)
16940      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16941      hardcode_libdir_flag_spec='-R$libdir'
16942      hardcode_direct=yes
16943      hardcode_shlibpath_var=no
16944      ;;
16945
16946    hpux9*)
16947      if test yes = "$GCC"; then
16948	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'
16949      else
16950	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'
16951      fi
16952      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16953      hardcode_libdir_separator=:
16954      hardcode_direct=yes
16955
16956      # hardcode_minus_L: Not really in the search PATH,
16957      # but as the default location of the library.
16958      hardcode_minus_L=yes
16959      export_dynamic_flag_spec='$wl-E'
16960      ;;
16961
16962    hpux10*)
16963      if test yes,no = "$GCC,$with_gnu_ld"; then
16964	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16965      else
16966	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16967      fi
16968      if test no = "$with_gnu_ld"; then
16969	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16970	hardcode_libdir_separator=:
16971	hardcode_direct=yes
16972	hardcode_direct_absolute=yes
16973	export_dynamic_flag_spec='$wl-E'
16974	# hardcode_minus_L: Not really in the search PATH,
16975	# but as the default location of the library.
16976	hardcode_minus_L=yes
16977      fi
16978      ;;
16979
16980    hpux11*)
16981      if test yes,no = "$GCC,$with_gnu_ld"; then
16982	case $host_cpu in
16983	hppa*64*)
16984	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16985	  ;;
16986	ia64*)
16987	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16988	  ;;
16989	*)
16990	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16991	  ;;
16992	esac
16993      else
16994	case $host_cpu in
16995	hppa*64*)
16996	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16997	  ;;
16998	ia64*)
16999	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17000	  ;;
17001	*)
17002
17003	  # Older versions of the 11.00 compiler do not understand -b yet
17004	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17005	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17006printf %s "checking if $CC understands -b... " >&6; }
17007if test ${lt_cv_prog_compiler__b+y}
17008then :
17009  printf %s "(cached) " >&6
17010else $as_nop
17011  lt_cv_prog_compiler__b=no
17012   save_LDFLAGS=$LDFLAGS
17013   LDFLAGS="$LDFLAGS -b"
17014   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17015   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17016     # The linker can only warn and ignore the option if not recognized
17017     # So say no if there are warnings
17018     if test -s conftest.err; then
17019       # Append any errors to the config.log.
17020       cat conftest.err 1>&5
17021       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17022       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17023       if diff conftest.exp conftest.er2 >/dev/null; then
17024         lt_cv_prog_compiler__b=yes
17025       fi
17026     else
17027       lt_cv_prog_compiler__b=yes
17028     fi
17029   fi
17030   $RM -r conftest*
17031   LDFLAGS=$save_LDFLAGS
17032
17033fi
17034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17035printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17036
17037if test yes = "$lt_cv_prog_compiler__b"; then
17038    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17039else
17040    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17041fi
17042
17043	  ;;
17044	esac
17045      fi
17046      if test no = "$with_gnu_ld"; then
17047	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17048	hardcode_libdir_separator=:
17049
17050	case $host_cpu in
17051	hppa*64*|ia64*)
17052	  hardcode_direct=no
17053	  hardcode_shlibpath_var=no
17054	  ;;
17055	*)
17056	  hardcode_direct=yes
17057	  hardcode_direct_absolute=yes
17058	  export_dynamic_flag_spec='$wl-E'
17059
17060	  # hardcode_minus_L: Not really in the search PATH,
17061	  # but as the default location of the library.
17062	  hardcode_minus_L=yes
17063	  ;;
17064	esac
17065      fi
17066      ;;
17067
17068    irix5* | irix6* | nonstopux*)
17069      if test yes = "$GCC"; then
17070	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'
17071	# Try to use the -exported_symbol ld option, if it does not
17072	# work, assume that -exports_file does not work either and
17073	# implicitly export all symbols.
17074	# This should be the same for all languages, so no per-tag cache variable.
17075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17076printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17077if test ${lt_cv_irix_exported_symbol+y}
17078then :
17079  printf %s "(cached) " >&6
17080else $as_nop
17081  save_LDFLAGS=$LDFLAGS
17082	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17083	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h.  */
17085int foo (void) { return 0; }
17086_ACEOF
17087if ac_fn_c_try_link "$LINENO"
17088then :
17089  lt_cv_irix_exported_symbol=yes
17090else $as_nop
17091  lt_cv_irix_exported_symbol=no
17092fi
17093rm -f core conftest.err conftest.$ac_objext conftest.beam \
17094    conftest$ac_exeext conftest.$ac_ext
17095           LDFLAGS=$save_LDFLAGS
17096fi
17097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17098printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17099	if test yes = "$lt_cv_irix_exported_symbol"; then
17100          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'
17101	fi
17102      else
17103	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'
17104	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'
17105      fi
17106      archive_cmds_need_lc='no'
17107      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17108      hardcode_libdir_separator=:
17109      inherit_rpath=yes
17110      link_all_deplibs=yes
17111      ;;
17112
17113    linux*)
17114      case $cc_basename in
17115      tcc*)
17116	# Fabrice Bellard et al's Tiny C Compiler
17117	ld_shlibs=yes
17118	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17119	;;
17120      esac
17121      ;;
17122
17123    netbsd*)
17124      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17125	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17126      else
17127	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17128      fi
17129      hardcode_libdir_flag_spec='-R$libdir'
17130      hardcode_direct=yes
17131      hardcode_shlibpath_var=no
17132      ;;
17133
17134    newsos6)
17135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136      hardcode_direct=yes
17137      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17138      hardcode_libdir_separator=:
17139      hardcode_shlibpath_var=no
17140      ;;
17141
17142    *nto* | *qnx*)
17143      ;;
17144
17145    openbsd* | bitrig*)
17146      if test -f /usr/libexec/ld.so; then
17147	hardcode_direct=yes
17148	hardcode_shlibpath_var=no
17149	hardcode_direct_absolute=yes
17150	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17151	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17152	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17153	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17154	  export_dynamic_flag_spec='$wl-E'
17155	else
17156	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17157	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17158	fi
17159      else
17160	ld_shlibs=no
17161      fi
17162      ;;
17163
17164    os2*)
17165      hardcode_libdir_flag_spec='-L$libdir'
17166      hardcode_minus_L=yes
17167      allow_undefined_flag=unsupported
17168      shrext_cmds=.dll
17169      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17170	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17171	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17172	$ECHO EXPORTS >> $output_objdir/$libname.def~
17173	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17174	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17175	emximp -o $lib $output_objdir/$libname.def'
17176      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17177	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17178	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17179	$ECHO EXPORTS >> $output_objdir/$libname.def~
17180	prefix_cmds="$SED"~
17181	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17182	  prefix_cmds="$prefix_cmds -e 1d";
17183	fi~
17184	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17185	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17186	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17187	emximp -o $lib $output_objdir/$libname.def'
17188      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17189      enable_shared_with_static_runtimes=yes
17190      file_list_spec='@'
17191      ;;
17192
17193    osf3*)
17194      if test yes = "$GCC"; then
17195	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17196	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'
17197      else
17198	allow_undefined_flag=' -expect_unresolved \*'
17199	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'
17200      fi
17201      archive_cmds_need_lc='no'
17202      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17203      hardcode_libdir_separator=:
17204      ;;
17205
17206    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17207      if test yes = "$GCC"; then
17208	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17209	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'
17210	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17211      else
17212	allow_undefined_flag=' -expect_unresolved \*'
17213	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'
17214	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~
17215          $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'
17216
17217	# Both c and cxx compiler support -rpath directly
17218	hardcode_libdir_flag_spec='-rpath $libdir'
17219      fi
17220      archive_cmds_need_lc='no'
17221      hardcode_libdir_separator=:
17222      ;;
17223
17224    solaris*)
17225      no_undefined_flag=' -z defs'
17226      if test yes = "$GCC"; then
17227	wlarc='$wl'
17228	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17229	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17230          $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'
17231      else
17232	case `$CC -V 2>&1` in
17233	*"Compilers 5.0"*)
17234	  wlarc=''
17235	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17236	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17237            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17238	  ;;
17239	*)
17240	  wlarc='$wl'
17241	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17242	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17243            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17244	  ;;
17245	esac
17246      fi
17247      hardcode_libdir_flag_spec='-R$libdir'
17248      hardcode_shlibpath_var=no
17249      case $host_os in
17250      solaris2.[0-5] | solaris2.[0-5].*) ;;
17251      *)
17252	# The compiler driver will combine and reorder linker options,
17253	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17254	# but is careful enough not to reorder.
17255	# Supported since Solaris 2.6 (maybe 2.5.1?)
17256	if test yes = "$GCC"; then
17257	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17258	else
17259	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17260	fi
17261	;;
17262      esac
17263      link_all_deplibs=yes
17264      ;;
17265
17266    sunos4*)
17267      if test sequent = "$host_vendor"; then
17268	# Use $CC to link under sequent, because it throws in some extra .o
17269	# files that make .init and .fini sections work.
17270	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17271      else
17272	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17273      fi
17274      hardcode_libdir_flag_spec='-L$libdir'
17275      hardcode_direct=yes
17276      hardcode_minus_L=yes
17277      hardcode_shlibpath_var=no
17278      ;;
17279
17280    sysv4)
17281      case $host_vendor in
17282	sni)
17283	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17284	  hardcode_direct=yes # is this really true???
17285	;;
17286	siemens)
17287	  ## LD is ld it makes a PLAMLIB
17288	  ## CC just makes a GrossModule.
17289	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17290	  reload_cmds='$CC -r -o $output$reload_objs'
17291	  hardcode_direct=no
17292        ;;
17293	motorola)
17294	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17295	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17296	;;
17297      esac
17298      runpath_var='LD_RUN_PATH'
17299      hardcode_shlibpath_var=no
17300      ;;
17301
17302    sysv4.3*)
17303      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304      hardcode_shlibpath_var=no
17305      export_dynamic_flag_spec='-Bexport'
17306      ;;
17307
17308    sysv4*MP*)
17309      if test -d /usr/nec; then
17310	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17311	hardcode_shlibpath_var=no
17312	runpath_var=LD_RUN_PATH
17313	hardcode_runpath_var=yes
17314	ld_shlibs=yes
17315      fi
17316      ;;
17317
17318    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17319      no_undefined_flag='$wl-z,text'
17320      archive_cmds_need_lc=no
17321      hardcode_shlibpath_var=no
17322      runpath_var='LD_RUN_PATH'
17323
17324      if test yes = "$GCC"; then
17325	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17326	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327      else
17328	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17329	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17330      fi
17331      ;;
17332
17333    sysv5* | sco3.2v5* | sco5v6*)
17334      # Note: We CANNOT use -z defs as we might desire, because we do not
17335      # link with -lc, and that would cause any symbols used from libc to
17336      # always be unresolved, which means just about no library would
17337      # ever link correctly.  If we're not using GNU ld we use -z text
17338      # though, which does catch some bad symbols but isn't as heavy-handed
17339      # as -z defs.
17340      no_undefined_flag='$wl-z,text'
17341      allow_undefined_flag='$wl-z,nodefs'
17342      archive_cmds_need_lc=no
17343      hardcode_shlibpath_var=no
17344      hardcode_libdir_flag_spec='$wl-R,$libdir'
17345      hardcode_libdir_separator=':'
17346      link_all_deplibs=yes
17347      export_dynamic_flag_spec='$wl-Bexport'
17348      runpath_var='LD_RUN_PATH'
17349
17350      if test yes = "$GCC"; then
17351	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17352	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353      else
17354	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356      fi
17357      ;;
17358
17359    uts4*)
17360      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17361      hardcode_libdir_flag_spec='-L$libdir'
17362      hardcode_shlibpath_var=no
17363      ;;
17364
17365    *)
17366      ld_shlibs=no
17367      ;;
17368    esac
17369
17370    if test sni = "$host_vendor"; then
17371      case $host in
17372      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17373	export_dynamic_flag_spec='$wl-Blargedynsym'
17374	;;
17375      esac
17376    fi
17377  fi
17378
17379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17380printf "%s\n" "$ld_shlibs" >&6; }
17381test no = "$ld_shlibs" && can_build_shared=no
17382
17383with_gnu_ld=$with_gnu_ld
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399#
17400# Do we need to explicitly link libc?
17401#
17402case "x$archive_cmds_need_lc" in
17403x|xyes)
17404  # Assume -lc should be added
17405  archive_cmds_need_lc=yes
17406
17407  if test yes,yes = "$GCC,$enable_shared"; then
17408    case $archive_cmds in
17409    *'~'*)
17410      # FIXME: we may have to deal with multi-command sequences.
17411      ;;
17412    '$CC '*)
17413      # Test whether the compiler implicitly links with -lc since on some
17414      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17415      # to ld, don't add -lc before -lgcc.
17416      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17417printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17418if test ${lt_cv_archive_cmds_need_lc+y}
17419then :
17420  printf %s "(cached) " >&6
17421else $as_nop
17422  $RM conftest*
17423	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17424
17425	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17426  (eval $ac_compile) 2>&5
17427  ac_status=$?
17428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429  test $ac_status = 0; } 2>conftest.err; then
17430	  soname=conftest
17431	  lib=conftest
17432	  libobjs=conftest.$ac_objext
17433	  deplibs=
17434	  wl=$lt_prog_compiler_wl
17435	  pic_flag=$lt_prog_compiler_pic
17436	  compiler_flags=-v
17437	  linker_flags=-v
17438	  verstring=
17439	  output_objdir=.
17440	  libname=conftest
17441	  lt_save_allow_undefined_flag=$allow_undefined_flag
17442	  allow_undefined_flag=
17443	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17444  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17445  ac_status=$?
17446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17447  test $ac_status = 0; }
17448	  then
17449	    lt_cv_archive_cmds_need_lc=no
17450	  else
17451	    lt_cv_archive_cmds_need_lc=yes
17452	  fi
17453	  allow_undefined_flag=$lt_save_allow_undefined_flag
17454	else
17455	  cat conftest.err 1>&5
17456	fi
17457	$RM conftest*
17458
17459fi
17460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17461printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17462      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17463      ;;
17464    esac
17465  fi
17466  ;;
17467esac
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17621printf %s "checking dynamic linker characteristics... " >&6; }
17622
17623if test yes = "$GCC"; then
17624  case $host_os in
17625    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17626    *) lt_awk_arg='/^libraries:/' ;;
17627  esac
17628  case $host_os in
17629    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17630    *) lt_sed_strip_eq='s|=/|/|g' ;;
17631  esac
17632  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17633  case $lt_search_path_spec in
17634  *\;*)
17635    # if the path contains ";" then we assume it to be the separator
17636    # otherwise default to the standard path separator (i.e. ":") - it is
17637    # assumed that no part of a normal pathname contains ";" but that should
17638    # okay in the real world where ";" in dirpaths is itself problematic.
17639    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17640    ;;
17641  *)
17642    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17643    ;;
17644  esac
17645  # Ok, now we have the path, separated by spaces, we can step through it
17646  # and add multilib dir if necessary...
17647  lt_tmp_lt_search_path_spec=
17648  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17649  # ...but if some path component already ends with the multilib dir we assume
17650  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17651  case "$lt_multi_os_dir; $lt_search_path_spec " in
17652  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17653    lt_multi_os_dir=
17654    ;;
17655  esac
17656  for lt_sys_path in $lt_search_path_spec; do
17657    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17658      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17659    elif test -n "$lt_multi_os_dir"; then
17660      test -d "$lt_sys_path" && \
17661	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17662    fi
17663  done
17664  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17665BEGIN {RS = " "; FS = "/|\n";} {
17666  lt_foo = "";
17667  lt_count = 0;
17668  for (lt_i = NF; lt_i > 0; lt_i--) {
17669    if ($lt_i != "" && $lt_i != ".") {
17670      if ($lt_i == "..") {
17671        lt_count++;
17672      } else {
17673        if (lt_count == 0) {
17674          lt_foo = "/" $lt_i lt_foo;
17675        } else {
17676          lt_count--;
17677        }
17678      }
17679    }
17680  }
17681  if (lt_foo != "") { lt_freq[lt_foo]++; }
17682  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17683}'`
17684  # AWK program above erroneously prepends '/' to C:/dos/paths
17685  # for these hosts.
17686  case $host_os in
17687    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17688      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17689  esac
17690  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17691else
17692  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17693fi
17694library_names_spec=
17695libname_spec='lib$name'
17696soname_spec=
17697shrext_cmds=.so
17698postinstall_cmds=
17699postuninstall_cmds=
17700finish_cmds=
17701finish_eval=
17702shlibpath_var=
17703shlibpath_overrides_runpath=unknown
17704version_type=none
17705dynamic_linker="$host_os ld.so"
17706sys_lib_dlsearch_path_spec="/lib /usr/lib"
17707need_lib_prefix=unknown
17708hardcode_into_libs=no
17709
17710# when you set need_version to no, make sure it does not cause -set_version
17711# flags to be left without arguments
17712need_version=unknown
17713
17714
17715
17716case $host_os in
17717aix3*)
17718  version_type=linux # correct to gnu/linux during the next big refactor
17719  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17720  shlibpath_var=LIBPATH
17721
17722  # AIX 3 has no versioning support, so we append a major version to the name.
17723  soname_spec='$libname$release$shared_ext$major'
17724  ;;
17725
17726aix[4-9]*)
17727  version_type=linux # correct to gnu/linux during the next big refactor
17728  need_lib_prefix=no
17729  need_version=no
17730  hardcode_into_libs=yes
17731  if test ia64 = "$host_cpu"; then
17732    # AIX 5 supports IA64
17733    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17734    shlibpath_var=LD_LIBRARY_PATH
17735  else
17736    # With GCC up to 2.95.x, collect2 would create an import file
17737    # for dependence libraries.  The import file would start with
17738    # the line '#! .'.  This would cause the generated library to
17739    # depend on '.', always an invalid library.  This was fixed in
17740    # development snapshots of GCC prior to 3.0.
17741    case $host_os in
17742      aix4 | aix4.[01] | aix4.[01].*)
17743      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17744	   echo ' yes '
17745	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17746	:
17747      else
17748	can_build_shared=no
17749      fi
17750      ;;
17751    esac
17752    # Using Import Files as archive members, it is possible to support
17753    # filename-based versioning of shared library archives on AIX. While
17754    # this would work for both with and without runtime linking, it will
17755    # prevent static linking of such archives. So we do filename-based
17756    # shared library versioning with .so extension only, which is used
17757    # when both runtime linking and shared linking is enabled.
17758    # Unfortunately, runtime linking may impact performance, so we do
17759    # not want this to be the default eventually. Also, we use the
17760    # versioned .so libs for executables only if there is the -brtl
17761    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17762    # To allow for filename-based versioning support, we need to create
17763    # libNAME.so.V as an archive file, containing:
17764    # *) an Import File, referring to the versioned filename of the
17765    #    archive as well as the shared archive member, telling the
17766    #    bitwidth (32 or 64) of that shared object, and providing the
17767    #    list of exported symbols of that shared object, eventually
17768    #    decorated with the 'weak' keyword
17769    # *) the shared object with the F_LOADONLY flag set, to really avoid
17770    #    it being seen by the linker.
17771    # At run time we better use the real file rather than another symlink,
17772    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17773
17774    case $with_aix_soname,$aix_use_runtimelinking in
17775    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17776    # soname into executable. Probably we can add versioning support to
17777    # collect2, so additional links can be useful in future.
17778    aix,yes) # traditional libtool
17779      dynamic_linker='AIX unversionable lib.so'
17780      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17781      # instead of lib<name>.a to let people know that these are not
17782      # typical AIX shared libraries.
17783      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17784      ;;
17785    aix,no) # traditional AIX only
17786      dynamic_linker='AIX lib.a(lib.so.V)'
17787      # We preserve .a as extension for shared libraries through AIX4.2
17788      # and later when we are not doing run time linking.
17789      library_names_spec='$libname$release.a $libname.a'
17790      soname_spec='$libname$release$shared_ext$major'
17791      ;;
17792    svr4,*) # full svr4 only
17793      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17794      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17795      # We do not specify a path in Import Files, so LIBPATH fires.
17796      shlibpath_overrides_runpath=yes
17797      ;;
17798    *,yes) # both, prefer svr4
17799      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17800      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17801      # unpreferred sharedlib libNAME.a needs extra handling
17802      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"'
17803      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"'
17804      # We do not specify a path in Import Files, so LIBPATH fires.
17805      shlibpath_overrides_runpath=yes
17806      ;;
17807    *,no) # both, prefer aix
17808      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17809      library_names_spec='$libname$release.a $libname.a'
17810      soname_spec='$libname$release$shared_ext$major'
17811      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17812      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)'
17813      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"'
17814      ;;
17815    esac
17816    shlibpath_var=LIBPATH
17817  fi
17818  ;;
17819
17820amigaos*)
17821  case $host_cpu in
17822  powerpc)
17823    # Since July 2007 AmigaOS4 officially supports .so libraries.
17824    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17825    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17826    ;;
17827  m68k)
17828    library_names_spec='$libname.ixlibrary $libname.a'
17829    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17830    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'
17831    ;;
17832  esac
17833  ;;
17834
17835beos*)
17836  library_names_spec='$libname$shared_ext'
17837  dynamic_linker="$host_os ld.so"
17838  shlibpath_var=LIBRARY_PATH
17839  ;;
17840
17841bsdi[45]*)
17842  version_type=linux # correct to gnu/linux during the next big refactor
17843  need_version=no
17844  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17845  soname_spec='$libname$release$shared_ext$major'
17846  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17847  shlibpath_var=LD_LIBRARY_PATH
17848  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17849  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17850  # the default ld.so.conf also contains /usr/contrib/lib and
17851  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17852  # libtool to hard-code these into programs
17853  ;;
17854
17855cygwin* | mingw* | pw32* | cegcc*)
17856  version_type=windows
17857  shrext_cmds=.dll
17858  need_version=no
17859  need_lib_prefix=no
17860
17861  case $GCC,$cc_basename in
17862  yes,*)
17863    # gcc
17864    library_names_spec='$libname.dll.a'
17865    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17866    postinstall_cmds='base_file=`basename \$file`~
17867      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17868      dldir=$destdir/`dirname \$dlpath`~
17869      test -d \$dldir || mkdir -p \$dldir~
17870      $install_prog $dir/$dlname \$dldir/$dlname~
17871      chmod a+x \$dldir/$dlname~
17872      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17873        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17874      fi'
17875    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17876      dlpath=$dir/\$dldll~
17877       $RM \$dlpath'
17878    shlibpath_overrides_runpath=yes
17879
17880    case $host_os in
17881    cygwin*)
17882      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17883      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17884
17885      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17886      ;;
17887    mingw* | cegcc*)
17888      # MinGW DLLs use traditional 'lib' prefix
17889      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17890      ;;
17891    pw32*)
17892      # pw32 DLLs use 'pw' prefix rather than 'lib'
17893      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17894      ;;
17895    esac
17896    dynamic_linker='Win32 ld.exe'
17897    ;;
17898
17899  *,cl* | *,icl*)
17900    # Native MSVC or ICC
17901    libname_spec='$name'
17902    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17903    library_names_spec='$libname.dll.lib'
17904
17905    case $build_os in
17906    mingw*)
17907      sys_lib_search_path_spec=
17908      lt_save_ifs=$IFS
17909      IFS=';'
17910      for lt_path in $LIB
17911      do
17912        IFS=$lt_save_ifs
17913        # Let DOS variable expansion print the short 8.3 style file name.
17914        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17915        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17916      done
17917      IFS=$lt_save_ifs
17918      # Convert to MSYS style.
17919      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17920      ;;
17921    cygwin*)
17922      # Convert to unix form, then to dos form, then back to unix form
17923      # but this time dos style (no spaces!) so that the unix form looks
17924      # like /cygdrive/c/PROGRA~1:/cygdr...
17925      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17926      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17927      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17928      ;;
17929    *)
17930      sys_lib_search_path_spec=$LIB
17931      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17932        # It is most probably a Windows format PATH.
17933        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17934      else
17935        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17936      fi
17937      # FIXME: find the short name or the path components, as spaces are
17938      # common. (e.g. "Program Files" -> "PROGRA~1")
17939      ;;
17940    esac
17941
17942    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17943    postinstall_cmds='base_file=`basename \$file`~
17944      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17945      dldir=$destdir/`dirname \$dlpath`~
17946      test -d \$dldir || mkdir -p \$dldir~
17947      $install_prog $dir/$dlname \$dldir/$dlname'
17948    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17949      dlpath=$dir/\$dldll~
17950       $RM \$dlpath'
17951    shlibpath_overrides_runpath=yes
17952    dynamic_linker='Win32 link.exe'
17953    ;;
17954
17955  *)
17956    # Assume MSVC and ICC wrapper
17957    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17958    dynamic_linker='Win32 ld.exe'
17959    ;;
17960  esac
17961  # FIXME: first we should search . and the directory the executable is in
17962  shlibpath_var=PATH
17963  ;;
17964
17965darwin* | rhapsody*)
17966  dynamic_linker="$host_os dyld"
17967  version_type=darwin
17968  need_lib_prefix=no
17969  need_version=no
17970  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17971  soname_spec='$libname$release$major$shared_ext'
17972  shlibpath_overrides_runpath=yes
17973  shlibpath_var=DYLD_LIBRARY_PATH
17974  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17975
17976  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17977  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17978  ;;
17979
17980dgux*)
17981  version_type=linux # correct to gnu/linux during the next big refactor
17982  need_lib_prefix=no
17983  need_version=no
17984  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17985  soname_spec='$libname$release$shared_ext$major'
17986  shlibpath_var=LD_LIBRARY_PATH
17987  ;;
17988
17989freebsd* | dragonfly* | midnightbsd*)
17990  # DragonFly does not have aout.  When/if they implement a new
17991  # versioning mechanism, adjust this.
17992  if test -x /usr/bin/objformat; then
17993    objformat=`/usr/bin/objformat`
17994  else
17995    case $host_os in
17996    freebsd[23].*) objformat=aout ;;
17997    *) objformat=elf ;;
17998    esac
17999  fi
18000  version_type=freebsd-$objformat
18001  case $version_type in
18002    freebsd-elf*)
18003      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18004      soname_spec='$libname$release$shared_ext$major'
18005      need_version=no
18006      need_lib_prefix=no
18007      ;;
18008    freebsd-*)
18009      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18010      need_version=yes
18011      ;;
18012  esac
18013  shlibpath_var=LD_LIBRARY_PATH
18014  case $host_os in
18015  freebsd2.*)
18016    shlibpath_overrides_runpath=yes
18017    ;;
18018  freebsd3.[01]* | freebsdelf3.[01]*)
18019    shlibpath_overrides_runpath=yes
18020    hardcode_into_libs=yes
18021    ;;
18022  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18023  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18024    shlibpath_overrides_runpath=no
18025    hardcode_into_libs=yes
18026    ;;
18027  *) # from 4.6 on, and DragonFly
18028    shlibpath_overrides_runpath=yes
18029    hardcode_into_libs=yes
18030    ;;
18031  esac
18032  ;;
18033
18034haiku*)
18035  version_type=linux # correct to gnu/linux during the next big refactor
18036  need_lib_prefix=no
18037  need_version=no
18038  dynamic_linker="$host_os runtime_loader"
18039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18040  soname_spec='$libname$release$shared_ext$major'
18041  shlibpath_var=LIBRARY_PATH
18042  shlibpath_overrides_runpath=no
18043  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18044  hardcode_into_libs=yes
18045  ;;
18046
18047hpux9* | hpux10* | hpux11*)
18048  # Give a soname corresponding to the major version so that dld.sl refuses to
18049  # link against other versions.
18050  version_type=sunos
18051  need_lib_prefix=no
18052  need_version=no
18053  case $host_cpu in
18054  ia64*)
18055    shrext_cmds='.so'
18056    hardcode_into_libs=yes
18057    dynamic_linker="$host_os dld.so"
18058    shlibpath_var=LD_LIBRARY_PATH
18059    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18060    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18061    soname_spec='$libname$release$shared_ext$major'
18062    if test 32 = "$HPUX_IA64_MODE"; then
18063      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18064      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18065    else
18066      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18067      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18068    fi
18069    ;;
18070  hppa*64*)
18071    shrext_cmds='.sl'
18072    hardcode_into_libs=yes
18073    dynamic_linker="$host_os dld.sl"
18074    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18075    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18076    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18077    soname_spec='$libname$release$shared_ext$major'
18078    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18079    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18080    ;;
18081  *)
18082    shrext_cmds='.sl'
18083    dynamic_linker="$host_os dld.sl"
18084    shlibpath_var=SHLIB_PATH
18085    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18086    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18087    soname_spec='$libname$release$shared_ext$major'
18088    ;;
18089  esac
18090  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18091  postinstall_cmds='chmod 555 $lib'
18092  # or fails outright, so override atomically:
18093  install_override_mode=555
18094  ;;
18095
18096interix[3-9]*)
18097  version_type=linux # correct to gnu/linux during the next big refactor
18098  need_lib_prefix=no
18099  need_version=no
18100  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101  soname_spec='$libname$release$shared_ext$major'
18102  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18103  shlibpath_var=LD_LIBRARY_PATH
18104  shlibpath_overrides_runpath=no
18105  hardcode_into_libs=yes
18106  ;;
18107
18108irix5* | irix6* | nonstopux*)
18109  case $host_os in
18110    nonstopux*) version_type=nonstopux ;;
18111    *)
18112	if test yes = "$lt_cv_prog_gnu_ld"; then
18113		version_type=linux # correct to gnu/linux during the next big refactor
18114	else
18115		version_type=irix
18116	fi ;;
18117  esac
18118  need_lib_prefix=no
18119  need_version=no
18120  soname_spec='$libname$release$shared_ext$major'
18121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18122  case $host_os in
18123  irix5* | nonstopux*)
18124    libsuff= shlibsuff=
18125    ;;
18126  *)
18127    case $LD in # libtool.m4 will add one of these switches to LD
18128    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18129      libsuff= shlibsuff= libmagic=32-bit;;
18130    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18131      libsuff=32 shlibsuff=N32 libmagic=N32;;
18132    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18133      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18134    *) libsuff= shlibsuff= libmagic=never-match;;
18135    esac
18136    ;;
18137  esac
18138  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18139  shlibpath_overrides_runpath=no
18140  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18141  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18142  hardcode_into_libs=yes
18143  ;;
18144
18145# No shared lib support for Linux oldld, aout, or coff.
18146linux*oldld* | linux*aout* | linux*coff*)
18147  dynamic_linker=no
18148  ;;
18149
18150linux*android*)
18151  version_type=none # Android doesn't support versioned libraries.
18152  need_lib_prefix=no
18153  need_version=no
18154  library_names_spec='$libname$release$shared_ext'
18155  soname_spec='$libname$release$shared_ext'
18156  finish_cmds=
18157  shlibpath_var=LD_LIBRARY_PATH
18158  shlibpath_overrides_runpath=yes
18159
18160  # This implies no fast_install, which is unacceptable.
18161  # Some rework will be needed to allow for fast_install
18162  # before this can be enabled.
18163  hardcode_into_libs=yes
18164
18165  dynamic_linker='Android linker'
18166  # Don't embed -rpath directories since the linker doesn't support them.
18167  hardcode_libdir_flag_spec='-L$libdir'
18168  ;;
18169
18170# This must be glibc/ELF.
18171linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18172  version_type=linux # correct to gnu/linux during the next big refactor
18173  need_lib_prefix=no
18174  need_version=no
18175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18176  soname_spec='$libname$release$shared_ext$major'
18177  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18178  shlibpath_var=LD_LIBRARY_PATH
18179  shlibpath_overrides_runpath=no
18180
18181  # Some binutils ld are patched to set DT_RUNPATH
18182  if test ${lt_cv_shlibpath_overrides_runpath+y}
18183then :
18184  printf %s "(cached) " >&6
18185else $as_nop
18186  lt_cv_shlibpath_overrides_runpath=no
18187    save_LDFLAGS=$LDFLAGS
18188    save_libdir=$libdir
18189    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18190	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192/* end confdefs.h.  */
18193
18194int
18195main (void)
18196{
18197
18198  ;
18199  return 0;
18200}
18201_ACEOF
18202if ac_fn_c_try_link "$LINENO"
18203then :
18204  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18205then :
18206  lt_cv_shlibpath_overrides_runpath=yes
18207fi
18208fi
18209rm -f core conftest.err conftest.$ac_objext conftest.beam \
18210    conftest$ac_exeext conftest.$ac_ext
18211    LDFLAGS=$save_LDFLAGS
18212    libdir=$save_libdir
18213
18214fi
18215
18216  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18217
18218  # This implies no fast_install, which is unacceptable.
18219  # Some rework will be needed to allow for fast_install
18220  # before this can be enabled.
18221  hardcode_into_libs=yes
18222
18223  # Ideally, we could use ldconfig to report *all* directores which are
18224  # searched for libraries, however this is still not possible.  Aside from not
18225  # being certain /sbin/ldconfig is available, command
18226  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18227  # even though it is searched at run-time.  Try to do the best guess by
18228  # appending ld.so.conf contents (and includes) to the search path.
18229  if test -f /etc/ld.so.conf; then
18230    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' ' '`
18231    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18232  fi
18233
18234  # We used to test for /lib/ld.so.1 and disable shared libraries on
18235  # powerpc, because MkLinux only supported shared libraries with the
18236  # GNU dynamic linker.  Since this was broken with cross compilers,
18237  # most powerpc-linux boxes support dynamic linking these days and
18238  # people can always --disable-shared, the test was removed, and we
18239  # assume the GNU/Linux dynamic linker is in use.
18240  dynamic_linker='GNU/Linux ld.so'
18241  ;;
18242
18243netbsd*)
18244  version_type=sunos
18245  need_lib_prefix=no
18246  need_version=no
18247  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18248    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18249    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18250    dynamic_linker='NetBSD (a.out) ld.so'
18251  else
18252    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18253    soname_spec='$libname$release$shared_ext$major'
18254    dynamic_linker='NetBSD ld.elf_so'
18255  fi
18256  shlibpath_var=LD_LIBRARY_PATH
18257  shlibpath_overrides_runpath=yes
18258  hardcode_into_libs=yes
18259  ;;
18260
18261newsos6)
18262  version_type=linux # correct to gnu/linux during the next big refactor
18263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18264  shlibpath_var=LD_LIBRARY_PATH
18265  shlibpath_overrides_runpath=yes
18266  ;;
18267
18268*nto* | *qnx*)
18269  version_type=qnx
18270  need_lib_prefix=no
18271  need_version=no
18272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18273  soname_spec='$libname$release$shared_ext$major'
18274  shlibpath_var=LD_LIBRARY_PATH
18275  shlibpath_overrides_runpath=no
18276  hardcode_into_libs=yes
18277  dynamic_linker='ldqnx.so'
18278  ;;
18279
18280openbsd* | bitrig*)
18281  version_type=sunos
18282  sys_lib_dlsearch_path_spec=/usr/lib
18283  need_lib_prefix=no
18284  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18285    need_version=no
18286  else
18287    need_version=yes
18288  fi
18289  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18290  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18291  shlibpath_var=LD_LIBRARY_PATH
18292  shlibpath_overrides_runpath=yes
18293  ;;
18294
18295os2*)
18296  libname_spec='$name'
18297  version_type=windows
18298  shrext_cmds=.dll
18299  need_version=no
18300  need_lib_prefix=no
18301  # OS/2 can only load a DLL with a base name of 8 characters or less.
18302  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18303    v=$($ECHO $release$versuffix | tr -d .-);
18304    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18305    $ECHO $n$v`$shared_ext'
18306  library_names_spec='${libname}_dll.$libext'
18307  dynamic_linker='OS/2 ld.exe'
18308  shlibpath_var=BEGINLIBPATH
18309  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18310  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18311  postinstall_cmds='base_file=`basename \$file`~
18312    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18313    dldir=$destdir/`dirname \$dlpath`~
18314    test -d \$dldir || mkdir -p \$dldir~
18315    $install_prog $dir/$dlname \$dldir/$dlname~
18316    chmod a+x \$dldir/$dlname~
18317    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18318      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18319    fi'
18320  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18321    dlpath=$dir/\$dldll~
18322    $RM \$dlpath'
18323  ;;
18324
18325osf3* | osf4* | osf5*)
18326  version_type=osf
18327  need_lib_prefix=no
18328  need_version=no
18329  soname_spec='$libname$release$shared_ext$major'
18330  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18331  shlibpath_var=LD_LIBRARY_PATH
18332  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18333  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18334  ;;
18335
18336rdos*)
18337  dynamic_linker=no
18338  ;;
18339
18340solaris*)
18341  version_type=linux # correct to gnu/linux during the next big refactor
18342  need_lib_prefix=no
18343  need_version=no
18344  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18345  soname_spec='$libname$release$shared_ext$major'
18346  shlibpath_var=LD_LIBRARY_PATH
18347  shlibpath_overrides_runpath=yes
18348  hardcode_into_libs=yes
18349  # ldd complains unless libraries are executable
18350  postinstall_cmds='chmod +x $lib'
18351  ;;
18352
18353sunos4*)
18354  version_type=sunos
18355  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18356  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18357  shlibpath_var=LD_LIBRARY_PATH
18358  shlibpath_overrides_runpath=yes
18359  if test yes = "$with_gnu_ld"; then
18360    need_lib_prefix=no
18361  fi
18362  need_version=yes
18363  ;;
18364
18365sysv4 | sysv4.3*)
18366  version_type=linux # correct to gnu/linux during the next big refactor
18367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18368  soname_spec='$libname$release$shared_ext$major'
18369  shlibpath_var=LD_LIBRARY_PATH
18370  case $host_vendor in
18371    sni)
18372      shlibpath_overrides_runpath=no
18373      need_lib_prefix=no
18374      runpath_var=LD_RUN_PATH
18375      ;;
18376    siemens)
18377      need_lib_prefix=no
18378      ;;
18379    motorola)
18380      need_lib_prefix=no
18381      need_version=no
18382      shlibpath_overrides_runpath=no
18383      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18384      ;;
18385  esac
18386  ;;
18387
18388sysv4*MP*)
18389  if test -d /usr/nec; then
18390    version_type=linux # correct to gnu/linux during the next big refactor
18391    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18392    soname_spec='$libname$shared_ext.$major'
18393    shlibpath_var=LD_LIBRARY_PATH
18394  fi
18395  ;;
18396
18397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18398  version_type=sco
18399  need_lib_prefix=no
18400  need_version=no
18401  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18402  soname_spec='$libname$release$shared_ext$major'
18403  shlibpath_var=LD_LIBRARY_PATH
18404  shlibpath_overrides_runpath=yes
18405  hardcode_into_libs=yes
18406  if test yes = "$with_gnu_ld"; then
18407    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18408  else
18409    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18410    case $host_os in
18411      sco3.2v5*)
18412        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18413	;;
18414    esac
18415  fi
18416  sys_lib_dlsearch_path_spec='/usr/lib'
18417  ;;
18418
18419tpf*)
18420  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18421  version_type=linux # correct to gnu/linux during the next big refactor
18422  need_lib_prefix=no
18423  need_version=no
18424  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18425  shlibpath_var=LD_LIBRARY_PATH
18426  shlibpath_overrides_runpath=no
18427  hardcode_into_libs=yes
18428  ;;
18429
18430uts4*)
18431  version_type=linux # correct to gnu/linux during the next big refactor
18432  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18433  soname_spec='$libname$release$shared_ext$major'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  ;;
18436
18437*)
18438  dynamic_linker=no
18439  ;;
18440esac
18441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18442printf "%s\n" "$dynamic_linker" >&6; }
18443test no = "$dynamic_linker" && can_build_shared=no
18444
18445variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18446if test yes = "$GCC"; then
18447  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18448fi
18449
18450if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18451  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18452fi
18453
18454if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18455  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18456fi
18457
18458# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18459configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18460
18461# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18462func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18463
18464# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18465configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18564printf %s "checking how to hardcode library paths into programs... " >&6; }
18565hardcode_action=
18566if test -n "$hardcode_libdir_flag_spec" ||
18567   test -n "$runpath_var" ||
18568   test yes = "$hardcode_automatic"; then
18569
18570  # We can hardcode non-existent directories.
18571  if test no != "$hardcode_direct" &&
18572     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18573     # have to relink, otherwise we might link with an installed library
18574     # when we should be linking with a yet-to-be-installed one
18575     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18576     test no != "$hardcode_minus_L"; then
18577    # Linking always hardcodes the temporary library directory.
18578    hardcode_action=relink
18579  else
18580    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18581    hardcode_action=immediate
18582  fi
18583else
18584  # We cannot hardcode anything, or else we can only hardcode existing
18585  # directories.
18586  hardcode_action=unsupported
18587fi
18588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18589printf "%s\n" "$hardcode_action" >&6; }
18590
18591if test relink = "$hardcode_action" ||
18592   test yes = "$inherit_rpath"; then
18593  # Fast installation is not supported
18594  enable_fast_install=no
18595elif test yes = "$shlibpath_overrides_runpath" ||
18596     test no = "$enable_shared"; then
18597  # Fast installation is not necessary
18598  enable_fast_install=needless
18599fi
18600
18601
18602
18603
18604
18605
18606  if test yes != "$enable_dlopen"; then
18607  enable_dlopen=unknown
18608  enable_dlopen_self=unknown
18609  enable_dlopen_self_static=unknown
18610else
18611  lt_cv_dlopen=no
18612  lt_cv_dlopen_libs=
18613
18614  case $host_os in
18615  beos*)
18616    lt_cv_dlopen=load_add_on
18617    lt_cv_dlopen_libs=
18618    lt_cv_dlopen_self=yes
18619    ;;
18620
18621  mingw* | pw32* | cegcc*)
18622    lt_cv_dlopen=LoadLibrary
18623    lt_cv_dlopen_libs=
18624    ;;
18625
18626  cygwin*)
18627    lt_cv_dlopen=dlopen
18628    lt_cv_dlopen_libs=
18629    ;;
18630
18631  darwin*)
18632    # if libdl is installed we need to link against it
18633    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18634printf %s "checking for dlopen in -ldl... " >&6; }
18635if test ${ac_cv_lib_dl_dlopen+y}
18636then :
18637  printf %s "(cached) " >&6
18638else $as_nop
18639  ac_check_lib_save_LIBS=$LIBS
18640LIBS="-ldl  $LIBS"
18641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642/* end confdefs.h.  */
18643
18644/* Override any GCC internal prototype to avoid an error.
18645   Use char because int might match the return type of a GCC
18646   builtin and then its argument prototype would still apply.  */
18647char dlopen ();
18648int
18649main (void)
18650{
18651return dlopen ();
18652  ;
18653  return 0;
18654}
18655_ACEOF
18656if ac_fn_c_try_link "$LINENO"
18657then :
18658  ac_cv_lib_dl_dlopen=yes
18659else $as_nop
18660  ac_cv_lib_dl_dlopen=no
18661fi
18662rm -f core conftest.err conftest.$ac_objext conftest.beam \
18663    conftest$ac_exeext conftest.$ac_ext
18664LIBS=$ac_check_lib_save_LIBS
18665fi
18666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18667printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18668if test "x$ac_cv_lib_dl_dlopen" = xyes
18669then :
18670  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18671else $as_nop
18672
18673    lt_cv_dlopen=dyld
18674    lt_cv_dlopen_libs=
18675    lt_cv_dlopen_self=yes
18676
18677fi
18678
18679    ;;
18680
18681  tpf*)
18682    # Don't try to run any link tests for TPF.  We know it's impossible
18683    # because TPF is a cross-compiler, and we know how we open DSOs.
18684    lt_cv_dlopen=dlopen
18685    lt_cv_dlopen_libs=
18686    lt_cv_dlopen_self=no
18687    ;;
18688
18689  *)
18690    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18691if test "x$ac_cv_func_shl_load" = xyes
18692then :
18693  lt_cv_dlopen=shl_load
18694else $as_nop
18695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18696printf %s "checking for shl_load in -ldld... " >&6; }
18697if test ${ac_cv_lib_dld_shl_load+y}
18698then :
18699  printf %s "(cached) " >&6
18700else $as_nop
18701  ac_check_lib_save_LIBS=$LIBS
18702LIBS="-ldld  $LIBS"
18703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704/* end confdefs.h.  */
18705
18706/* Override any GCC internal prototype to avoid an error.
18707   Use char because int might match the return type of a GCC
18708   builtin and then its argument prototype would still apply.  */
18709char shl_load ();
18710int
18711main (void)
18712{
18713return shl_load ();
18714  ;
18715  return 0;
18716}
18717_ACEOF
18718if ac_fn_c_try_link "$LINENO"
18719then :
18720  ac_cv_lib_dld_shl_load=yes
18721else $as_nop
18722  ac_cv_lib_dld_shl_load=no
18723fi
18724rm -f core conftest.err conftest.$ac_objext conftest.beam \
18725    conftest$ac_exeext conftest.$ac_ext
18726LIBS=$ac_check_lib_save_LIBS
18727fi
18728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18729printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18730if test "x$ac_cv_lib_dld_shl_load" = xyes
18731then :
18732  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18733else $as_nop
18734  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18735if test "x$ac_cv_func_dlopen" = xyes
18736then :
18737  lt_cv_dlopen=dlopen
18738else $as_nop
18739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18740printf %s "checking for dlopen in -ldl... " >&6; }
18741if test ${ac_cv_lib_dl_dlopen+y}
18742then :
18743  printf %s "(cached) " >&6
18744else $as_nop
18745  ac_check_lib_save_LIBS=$LIBS
18746LIBS="-ldl  $LIBS"
18747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748/* end confdefs.h.  */
18749
18750/* Override any GCC internal prototype to avoid an error.
18751   Use char because int might match the return type of a GCC
18752   builtin and then its argument prototype would still apply.  */
18753char dlopen ();
18754int
18755main (void)
18756{
18757return dlopen ();
18758  ;
18759  return 0;
18760}
18761_ACEOF
18762if ac_fn_c_try_link "$LINENO"
18763then :
18764  ac_cv_lib_dl_dlopen=yes
18765else $as_nop
18766  ac_cv_lib_dl_dlopen=no
18767fi
18768rm -f core conftest.err conftest.$ac_objext conftest.beam \
18769    conftest$ac_exeext conftest.$ac_ext
18770LIBS=$ac_check_lib_save_LIBS
18771fi
18772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18773printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18774if test "x$ac_cv_lib_dl_dlopen" = xyes
18775then :
18776  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18777else $as_nop
18778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18779printf %s "checking for dlopen in -lsvld... " >&6; }
18780if test ${ac_cv_lib_svld_dlopen+y}
18781then :
18782  printf %s "(cached) " >&6
18783else $as_nop
18784  ac_check_lib_save_LIBS=$LIBS
18785LIBS="-lsvld  $LIBS"
18786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787/* end confdefs.h.  */
18788
18789/* Override any GCC internal prototype to avoid an error.
18790   Use char because int might match the return type of a GCC
18791   builtin and then its argument prototype would still apply.  */
18792char dlopen ();
18793int
18794main (void)
18795{
18796return dlopen ();
18797  ;
18798  return 0;
18799}
18800_ACEOF
18801if ac_fn_c_try_link "$LINENO"
18802then :
18803  ac_cv_lib_svld_dlopen=yes
18804else $as_nop
18805  ac_cv_lib_svld_dlopen=no
18806fi
18807rm -f core conftest.err conftest.$ac_objext conftest.beam \
18808    conftest$ac_exeext conftest.$ac_ext
18809LIBS=$ac_check_lib_save_LIBS
18810fi
18811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18812printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18813if test "x$ac_cv_lib_svld_dlopen" = xyes
18814then :
18815  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18816else $as_nop
18817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18818printf %s "checking for dld_link in -ldld... " >&6; }
18819if test ${ac_cv_lib_dld_dld_link+y}
18820then :
18821  printf %s "(cached) " >&6
18822else $as_nop
18823  ac_check_lib_save_LIBS=$LIBS
18824LIBS="-ldld  $LIBS"
18825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826/* end confdefs.h.  */
18827
18828/* Override any GCC internal prototype to avoid an error.
18829   Use char because int might match the return type of a GCC
18830   builtin and then its argument prototype would still apply.  */
18831char dld_link ();
18832int
18833main (void)
18834{
18835return dld_link ();
18836  ;
18837  return 0;
18838}
18839_ACEOF
18840if ac_fn_c_try_link "$LINENO"
18841then :
18842  ac_cv_lib_dld_dld_link=yes
18843else $as_nop
18844  ac_cv_lib_dld_dld_link=no
18845fi
18846rm -f core conftest.err conftest.$ac_objext conftest.beam \
18847    conftest$ac_exeext conftest.$ac_ext
18848LIBS=$ac_check_lib_save_LIBS
18849fi
18850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18851printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18852if test "x$ac_cv_lib_dld_dld_link" = xyes
18853then :
18854  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18855fi
18856
18857
18858fi
18859
18860
18861fi
18862
18863
18864fi
18865
18866
18867fi
18868
18869
18870fi
18871
18872    ;;
18873  esac
18874
18875  if test no = "$lt_cv_dlopen"; then
18876    enable_dlopen=no
18877  else
18878    enable_dlopen=yes
18879  fi
18880
18881  case $lt_cv_dlopen in
18882  dlopen)
18883    save_CPPFLAGS=$CPPFLAGS
18884    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18885
18886    save_LDFLAGS=$LDFLAGS
18887    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18888
18889    save_LIBS=$LIBS
18890    LIBS="$lt_cv_dlopen_libs $LIBS"
18891
18892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18893printf %s "checking whether a program can dlopen itself... " >&6; }
18894if test ${lt_cv_dlopen_self+y}
18895then :
18896  printf %s "(cached) " >&6
18897else $as_nop
18898  	  if test yes = "$cross_compiling"; then :
18899  lt_cv_dlopen_self=cross
18900else
18901  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18902  lt_status=$lt_dlunknown
18903  cat > conftest.$ac_ext <<_LT_EOF
18904#line $LINENO "configure"
18905#include "confdefs.h"
18906
18907#if HAVE_DLFCN_H
18908#include <dlfcn.h>
18909#endif
18910
18911#include <stdio.h>
18912
18913#ifdef RTLD_GLOBAL
18914#  define LT_DLGLOBAL		RTLD_GLOBAL
18915#else
18916#  ifdef DL_GLOBAL
18917#    define LT_DLGLOBAL		DL_GLOBAL
18918#  else
18919#    define LT_DLGLOBAL		0
18920#  endif
18921#endif
18922
18923/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18924   find out it does not work in some platform. */
18925#ifndef LT_DLLAZY_OR_NOW
18926#  ifdef RTLD_LAZY
18927#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18928#  else
18929#    ifdef DL_LAZY
18930#      define LT_DLLAZY_OR_NOW		DL_LAZY
18931#    else
18932#      ifdef RTLD_NOW
18933#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18934#      else
18935#        ifdef DL_NOW
18936#          define LT_DLLAZY_OR_NOW	DL_NOW
18937#        else
18938#          define LT_DLLAZY_OR_NOW	0
18939#        endif
18940#      endif
18941#    endif
18942#  endif
18943#endif
18944
18945/* When -fvisibility=hidden is used, assume the code has been annotated
18946   correspondingly for the symbols needed.  */
18947#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18948int fnord () __attribute__((visibility("default")));
18949#endif
18950
18951int fnord () { return 42; }
18952int main ()
18953{
18954  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18955  int status = $lt_dlunknown;
18956
18957  if (self)
18958    {
18959      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18960      else
18961        {
18962	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18963          else puts (dlerror ());
18964	}
18965      /* dlclose (self); */
18966    }
18967  else
18968    puts (dlerror ());
18969
18970  return status;
18971}
18972_LT_EOF
18973  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18974  (eval $ac_link) 2>&5
18975  ac_status=$?
18976  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18977  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18978    (./conftest; exit; ) >&5 2>/dev/null
18979    lt_status=$?
18980    case x$lt_status in
18981      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18982      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18983      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18984    esac
18985  else :
18986    # compilation failed
18987    lt_cv_dlopen_self=no
18988  fi
18989fi
18990rm -fr conftest*
18991
18992
18993fi
18994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18995printf "%s\n" "$lt_cv_dlopen_self" >&6; }
18996
18997    if test yes = "$lt_cv_dlopen_self"; then
18998      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19000printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19001if test ${lt_cv_dlopen_self_static+y}
19002then :
19003  printf %s "(cached) " >&6
19004else $as_nop
19005  	  if test yes = "$cross_compiling"; then :
19006  lt_cv_dlopen_self_static=cross
19007else
19008  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19009  lt_status=$lt_dlunknown
19010  cat > conftest.$ac_ext <<_LT_EOF
19011#line $LINENO "configure"
19012#include "confdefs.h"
19013
19014#if HAVE_DLFCN_H
19015#include <dlfcn.h>
19016#endif
19017
19018#include <stdio.h>
19019
19020#ifdef RTLD_GLOBAL
19021#  define LT_DLGLOBAL		RTLD_GLOBAL
19022#else
19023#  ifdef DL_GLOBAL
19024#    define LT_DLGLOBAL		DL_GLOBAL
19025#  else
19026#    define LT_DLGLOBAL		0
19027#  endif
19028#endif
19029
19030/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19031   find out it does not work in some platform. */
19032#ifndef LT_DLLAZY_OR_NOW
19033#  ifdef RTLD_LAZY
19034#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19035#  else
19036#    ifdef DL_LAZY
19037#      define LT_DLLAZY_OR_NOW		DL_LAZY
19038#    else
19039#      ifdef RTLD_NOW
19040#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19041#      else
19042#        ifdef DL_NOW
19043#          define LT_DLLAZY_OR_NOW	DL_NOW
19044#        else
19045#          define LT_DLLAZY_OR_NOW	0
19046#        endif
19047#      endif
19048#    endif
19049#  endif
19050#endif
19051
19052/* When -fvisibility=hidden is used, assume the code has been annotated
19053   correspondingly for the symbols needed.  */
19054#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19055int fnord () __attribute__((visibility("default")));
19056#endif
19057
19058int fnord () { return 42; }
19059int main ()
19060{
19061  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19062  int status = $lt_dlunknown;
19063
19064  if (self)
19065    {
19066      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19067      else
19068        {
19069	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19070          else puts (dlerror ());
19071	}
19072      /* dlclose (self); */
19073    }
19074  else
19075    puts (dlerror ());
19076
19077  return status;
19078}
19079_LT_EOF
19080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19081  (eval $ac_link) 2>&5
19082  ac_status=$?
19083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19085    (./conftest; exit; ) >&5 2>/dev/null
19086    lt_status=$?
19087    case x$lt_status in
19088      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19089      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19090      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19091    esac
19092  else :
19093    # compilation failed
19094    lt_cv_dlopen_self_static=no
19095  fi
19096fi
19097rm -fr conftest*
19098
19099
19100fi
19101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19102printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19103    fi
19104
19105    CPPFLAGS=$save_CPPFLAGS
19106    LDFLAGS=$save_LDFLAGS
19107    LIBS=$save_LIBS
19108    ;;
19109  esac
19110
19111  case $lt_cv_dlopen_self in
19112  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19113  *) enable_dlopen_self=unknown ;;
19114  esac
19115
19116  case $lt_cv_dlopen_self_static in
19117  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19118  *) enable_dlopen_self_static=unknown ;;
19119  esac
19120fi
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138striplib=
19139old_striplib=
19140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19141printf %s "checking whether stripping libraries is possible... " >&6; }
19142if test -z "$STRIP"; then
19143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19144printf "%s\n" "no" >&6; }
19145else
19146  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19147    old_striplib="$STRIP --strip-debug"
19148    striplib="$STRIP --strip-unneeded"
19149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19150printf "%s\n" "yes" >&6; }
19151  else
19152    case $host_os in
19153    darwin*)
19154      # FIXME - insert some real tests, host_os isn't really good enough
19155      striplib="$STRIP -x"
19156      old_striplib="$STRIP -S"
19157      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19158printf "%s\n" "yes" >&6; }
19159      ;;
19160    freebsd*)
19161      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19162        old_striplib="$STRIP --strip-debug"
19163        striplib="$STRIP --strip-unneeded"
19164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165printf "%s\n" "yes" >&6; }
19166      else
19167        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168printf "%s\n" "no" >&6; }
19169      fi
19170      ;;
19171    *)
19172      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173printf "%s\n" "no" >&6; }
19174      ;;
19175    esac
19176  fi
19177fi
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190  # Report what library types will actually be built
19191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19192printf %s "checking if libtool supports shared libraries... " >&6; }
19193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19194printf "%s\n" "$can_build_shared" >&6; }
19195
19196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19197printf %s "checking whether to build shared libraries... " >&6; }
19198  test no = "$can_build_shared" && enable_shared=no
19199
19200  # On AIX, shared libraries and static libraries use the same namespace, and
19201  # are all built from PIC.
19202  case $host_os in
19203  aix3*)
19204    test yes = "$enable_shared" && enable_static=no
19205    if test -n "$RANLIB"; then
19206      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19207      postinstall_cmds='$RANLIB $lib'
19208    fi
19209    ;;
19210
19211  aix[4-9]*)
19212    if test ia64 != "$host_cpu"; then
19213      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19214      yes,aix,yes) ;;			# shared object as lib.so file only
19215      yes,svr4,*) ;;			# shared object as lib.so archive member only
19216      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19217      esac
19218    fi
19219    ;;
19220  esac
19221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19222printf "%s\n" "$enable_shared" >&6; }
19223
19224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19225printf %s "checking whether to build static libraries... " >&6; }
19226  # Make sure either enable_shared or enable_static is yes.
19227  test yes = "$enable_shared" || enable_static=yes
19228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19229printf "%s\n" "$enable_static" >&6; }
19230
19231
19232
19233
19234fi
19235ac_ext=c
19236ac_cpp='$CPP $CPPFLAGS'
19237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240
19241CC=$lt_save_CC
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257        ac_config_commands="$ac_config_commands libtool"
19258
19259
19260
19261
19262# Only expand once:
19263
19264
19265
19266
19267
19268# Define a configure option for an alternate module directory
19269
19270# Check whether --with-xorg-module-dir was given.
19271if test ${with_xorg_module_dir+y}
19272then :
19273  withval=$with_xorg_module_dir; moduledir="$withval"
19274else $as_nop
19275  moduledir="$libdir/xorg/modules"
19276fi
19277
19278
19279# Store the list of server defined optional extensions in REQUIRED_MODULES
19280
19281
19282	SAVE_CFLAGS="$CFLAGS"
19283	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19284	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285/* end confdefs.h.  */
19286
19287#include "xorg-server.h"
19288#if !defined XV
19289#error XV not defined
19290#endif
19291
19292int
19293main (void)
19294{
19295
19296  ;
19297  return 0;
19298}
19299_ACEOF
19300if ac_fn_c_try_compile "$LINENO"
19301then :
19302  _EXT_CHECK=yes
19303else $as_nop
19304  _EXT_CHECK=no
19305fi
19306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19307	CFLAGS="$SAVE_CFLAGS"
19308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19309printf %s "checking if XV is defined... " >&6; }
19310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19311printf "%s\n" "$_EXT_CHECK" >&6; }
19312	if test "$_EXT_CHECK" != no; then
19313		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19314	fi
19315
19316
19317
19318	SAVE_CFLAGS="$CFLAGS"
19319	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19320	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321/* end confdefs.h.  */
19322
19323#include "xorg-server.h"
19324#if !defined DPMSExtension
19325#error DPMSExtension not defined
19326#endif
19327
19328int
19329main (void)
19330{
19331
19332  ;
19333  return 0;
19334}
19335_ACEOF
19336if ac_fn_c_try_compile "$LINENO"
19337then :
19338  _EXT_CHECK=yes
19339else $as_nop
19340  _EXT_CHECK=no
19341fi
19342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19343	CFLAGS="$SAVE_CFLAGS"
19344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19345printf %s "checking if DPMSExtension is defined... " >&6; }
19346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19347printf "%s\n" "$_EXT_CHECK" >&6; }
19348	if test "$_EXT_CHECK" != no; then
19349		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19350	fi
19351
19352
19353# Obtain compiler/linker options for the driver dependencies
19354
19355pkg_failed=no
19356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19357printf %s "checking for XORG... " >&6; }
19358
19359if test -n "$XORG_CFLAGS"; then
19360    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19361 elif test -n "$PKG_CONFIG"; then
19362    if test -n "$PKG_CONFIG" && \
19363    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19364  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19365  ac_status=$?
19366  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19367  test $ac_status = 0; }; then
19368  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19369		      test "x$?" != "x0" && pkg_failed=yes
19370else
19371  pkg_failed=yes
19372fi
19373 else
19374    pkg_failed=untried
19375fi
19376if test -n "$XORG_LIBS"; then
19377    pkg_cv_XORG_LIBS="$XORG_LIBS"
19378 elif test -n "$PKG_CONFIG"; then
19379    if test -n "$PKG_CONFIG" && \
19380    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19381  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19382  ac_status=$?
19383  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384  test $ac_status = 0; }; then
19385  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19386		      test "x$?" != "x0" && pkg_failed=yes
19387else
19388  pkg_failed=yes
19389fi
19390 else
19391    pkg_failed=untried
19392fi
19393
19394
19395
19396if test $pkg_failed = yes; then
19397   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398printf "%s\n" "no" >&6; }
19399
19400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19401        _pkg_short_errors_supported=yes
19402else
19403        _pkg_short_errors_supported=no
19404fi
19405        if test $_pkg_short_errors_supported = yes; then
19406	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19407        else
19408	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19409        fi
19410	# Put the nasty error message in config.log where it belongs
19411	echo "$XORG_PKG_ERRORS" >&5
19412
19413	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19414
19415$XORG_PKG_ERRORS
19416
19417Consider adjusting the PKG_CONFIG_PATH environment variable if you
19418installed software in a non-standard prefix.
19419
19420Alternatively, you may set the environment variables XORG_CFLAGS
19421and XORG_LIBS to avoid the need to call pkg-config.
19422See the pkg-config man page for more details." "$LINENO" 5
19423elif test $pkg_failed = untried; then
19424     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425printf "%s\n" "no" >&6; }
19426	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19427printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19428as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19429is in your PATH or set the PKG_CONFIG environment variable to the full
19430path to pkg-config.
19431
19432Alternatively, you may set the environment variables XORG_CFLAGS
19433and XORG_LIBS to avoid the need to call pkg-config.
19434See the pkg-config man page for more details.
19435
19436To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19437See \`config.log' for more details" "$LINENO" 5; }
19438else
19439	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19440	XORG_LIBS=$pkg_cv_XORG_LIBS
19441        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19442printf "%s\n" "yes" >&6; }
19443
19444fi
19445
19446pkg_failed=no
19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19448printf %s "checking for XEXT... " >&6; }
19449
19450if test -n "$XEXT_CFLAGS"; then
19451    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19452 elif test -n "$PKG_CONFIG"; then
19453    if test -n "$PKG_CONFIG" && \
19454    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19455  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19456  ac_status=$?
19457  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458  test $ac_status = 0; }; then
19459  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19460		      test "x$?" != "x0" && pkg_failed=yes
19461else
19462  pkg_failed=yes
19463fi
19464 else
19465    pkg_failed=untried
19466fi
19467if test -n "$XEXT_LIBS"; then
19468    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19469 elif test -n "$PKG_CONFIG"; then
19470    if test -n "$PKG_CONFIG" && \
19471    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19472  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19473  ac_status=$?
19474  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475  test $ac_status = 0; }; then
19476  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19477		      test "x$?" != "x0" && pkg_failed=yes
19478else
19479  pkg_failed=yes
19480fi
19481 else
19482    pkg_failed=untried
19483fi
19484
19485
19486
19487if test $pkg_failed = yes; then
19488   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489printf "%s\n" "no" >&6; }
19490
19491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19492        _pkg_short_errors_supported=yes
19493else
19494        _pkg_short_errors_supported=no
19495fi
19496        if test $_pkg_short_errors_supported = yes; then
19497	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19498        else
19499	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19500        fi
19501	# Put the nasty error message in config.log where it belongs
19502	echo "$XEXT_PKG_ERRORS" >&5
19503
19504	HAVE_XEXTPROTO_71="no"
19505elif test $pkg_failed = untried; then
19506     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19507printf "%s\n" "no" >&6; }
19508	HAVE_XEXTPROTO_71="no"
19509else
19510	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19511	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19512        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19513printf "%s\n" "yes" >&6; }
19514	HAVE_XEXTPROTO_71="yes";
19515printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19516
19517fi
19518 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19519  HAVE_XEXTPROTO_71_TRUE=
19520  HAVE_XEXTPROTO_71_FALSE='#'
19521else
19522  HAVE_XEXTPROTO_71_TRUE='#'
19523  HAVE_XEXTPROTO_71_FALSE=
19524fi
19525
19526
19527# Checks for libraries.
19528SAVE_CPPFLAGS="$CPPFLAGS"
19529CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19530ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19531" "$ac_c_undeclared_builtin_options" "CFLAGS"
19532if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19533then :
19534  XSERVER_LIBPCIACCESS=yes
19535else $as_nop
19536  XSERVER_LIBPCIACCESS=no
19537fi
19538ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
19539"
19540if test "x$ac_cv_header_xf86Modes_h" = xyes
19541then :
19542  XMODES=yes
19543else $as_nop
19544  XMODES=no
19545fi
19546
19547CPPFLAGS="$SAVE_CPPFLAGS"
19548
19549if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19550
19551pkg_failed=no
19552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19553printf %s "checking for PCIACCESS... " >&6; }
19554
19555if test -n "$PCIACCESS_CFLAGS"; then
19556    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19557 elif test -n "$PKG_CONFIG"; then
19558    if test -n "$PKG_CONFIG" && \
19559    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19560  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19561  ac_status=$?
19562  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563  test $ac_status = 0; }; then
19564  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19565		      test "x$?" != "x0" && pkg_failed=yes
19566else
19567  pkg_failed=yes
19568fi
19569 else
19570    pkg_failed=untried
19571fi
19572if test -n "$PCIACCESS_LIBS"; then
19573    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19574 elif test -n "$PKG_CONFIG"; then
19575    if test -n "$PKG_CONFIG" && \
19576    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19577  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19578  ac_status=$?
19579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19580  test $ac_status = 0; }; then
19581  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19582		      test "x$?" != "x0" && pkg_failed=yes
19583else
19584  pkg_failed=yes
19585fi
19586 else
19587    pkg_failed=untried
19588fi
19589
19590
19591
19592if test $pkg_failed = yes; then
19593   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594printf "%s\n" "no" >&6; }
19595
19596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19597        _pkg_short_errors_supported=yes
19598else
19599        _pkg_short_errors_supported=no
19600fi
19601        if test $_pkg_short_errors_supported = yes; then
19602	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19603        else
19604	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19605        fi
19606	# Put the nasty error message in config.log where it belongs
19607	echo "$PCIACCESS_PKG_ERRORS" >&5
19608
19609	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19610
19611$PCIACCESS_PKG_ERRORS
19612
19613Consider adjusting the PKG_CONFIG_PATH environment variable if you
19614installed software in a non-standard prefix.
19615
19616Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19617and PCIACCESS_LIBS to avoid the need to call pkg-config.
19618See the pkg-config man page for more details." "$LINENO" 5
19619elif test $pkg_failed = untried; then
19620     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621printf "%s\n" "no" >&6; }
19622	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19623printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19624as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19625is in your PATH or set the PKG_CONFIG environment variable to the full
19626path to pkg-config.
19627
19628Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19629and PCIACCESS_LIBS to avoid the need to call pkg-config.
19630See the pkg-config man page for more details.
19631
19632To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19633See \`config.log' for more details" "$LINENO" 5; }
19634else
19635	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19636	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19637        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19638printf "%s\n" "yes" >&6; }
19639
19640fi
19641fi
19642 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19643  XSERVER_LIBPCIACCESS_TRUE=
19644  XSERVER_LIBPCIACCESS_FALSE='#'
19645else
19646  XSERVER_LIBPCIACCESS_TRUE='#'
19647  XSERVER_LIBPCIACCESS_FALSE=
19648fi
19649
19650 if test "x$XMODES" = xyes; then
19651  XMODES_TRUE=
19652  XMODES_FALSE='#'
19653else
19654  XMODES_TRUE='#'
19655  XMODES_FALSE=
19656fi
19657
19658
19659if test "x$XMODES" = xyes; then
19660
19661printf "%s\n" "#define HAVE_XMODES 1" >>confdefs.h
19662
19663fi
19664# Check whether --enable-xaa was given.
19665if test ${enable_xaa+y}
19666then :
19667  enableval=$enable_xaa; XAA="$enableval"
19668else $as_nop
19669  XAA=auto
19670fi
19671
19672if test "x$XAA" != xno; then
19673        save_CFLAGS=$CFLAGS
19674        save_CPPFLAGS=$CPPFLAGS
19675        CFLAGS=$XORG_CFLAGS
19676        CPPFLAGS="$XORG_CFLAGS"
19677               for ac_header in xaa.h
19678do :
19679  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19680if test "x$ac_cv_header_xaa_h" = xyes
19681then :
19682  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19683 XAA=yes
19684else $as_nop
19685  XAA=no
19686fi
19687
19688done
19689        CFLAGS=$save_CFLAGS
19690        CPPFLAGS=$save_CPPFLAGS
19691fi
19692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19693printf %s "checking whether to include XAA support... " >&6; }
19694 if test "x$XAA" = xyes; then
19695  XAA_TRUE=
19696  XAA_FALSE='#'
19697else
19698  XAA_TRUE='#'
19699  XAA_FALSE=
19700fi
19701
19702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19703printf "%s\n" "$XAA" >&6; }
19704
19705
19706
19707DRIVER_NAME=siliconmotion
19708
19709
19710ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19711
19712cat >confcache <<\_ACEOF
19713# This file is a shell script that caches the results of configure
19714# tests run on this system so they can be shared between configure
19715# scripts and configure runs, see configure's option --config-cache.
19716# It is not useful on other systems.  If it contains results you don't
19717# want to keep, you may remove or edit it.
19718#
19719# config.status only pays attention to the cache file if you give it
19720# the --recheck option to rerun configure.
19721#
19722# `ac_cv_env_foo' variables (set or unset) will be overridden when
19723# loading this file, other *unset* `ac_cv_foo' will be assigned the
19724# following values.
19725
19726_ACEOF
19727
19728# The following way of writing the cache mishandles newlines in values,
19729# but we know of no workaround that is simple, portable, and efficient.
19730# So, we kill variables containing newlines.
19731# Ultrix sh set writes to stderr and can't be redirected directly,
19732# and sets the high bit in the cache file unless we assign to the vars.
19733(
19734  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19735    eval ac_val=\$$ac_var
19736    case $ac_val in #(
19737    *${as_nl}*)
19738      case $ac_var in #(
19739      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19740printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19741      esac
19742      case $ac_var in #(
19743      _ | IFS | as_nl) ;; #(
19744      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19745      *) { eval $ac_var=; unset $ac_var;} ;;
19746      esac ;;
19747    esac
19748  done
19749
19750  (set) 2>&1 |
19751    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19752    *${as_nl}ac_space=\ *)
19753      # `set' does not quote correctly, so add quotes: double-quote
19754      # substitution turns \\\\ into \\, and sed turns \\ into \.
19755      sed -n \
19756	"s/'/'\\\\''/g;
19757	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19758      ;; #(
19759    *)
19760      # `set' quotes correctly as required by POSIX, so do not add quotes.
19761      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19762      ;;
19763    esac |
19764    sort
19765) |
19766  sed '
19767     /^ac_cv_env_/b end
19768     t clear
19769     :clear
19770     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19771     t end
19772     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19773     :end' >>confcache
19774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19775  if test -w "$cache_file"; then
19776    if test "x$cache_file" != "x/dev/null"; then
19777      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19778printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19779      if test ! -f "$cache_file" || test -h "$cache_file"; then
19780	cat confcache >"$cache_file"
19781      else
19782        case $cache_file in #(
19783        */* | ?:*)
19784	  mv -f confcache "$cache_file"$$ &&
19785	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19786        *)
19787	  mv -f confcache "$cache_file" ;;
19788	esac
19789      fi
19790    fi
19791  else
19792    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19793printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19794  fi
19795fi
19796rm -f confcache
19797
19798test "x$prefix" = xNONE && prefix=$ac_default_prefix
19799# Let make expand exec_prefix.
19800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19801
19802DEFS=-DHAVE_CONFIG_H
19803
19804ac_libobjs=
19805ac_ltlibobjs=
19806U=
19807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19808  # 1. Remove the extension, and $U if already installed.
19809  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19810  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19811  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19812  #    will be set to the directory where LIBOBJS objects are built.
19813  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19814  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19815done
19816LIBOBJS=$ac_libobjs
19817
19818LTLIBOBJS=$ac_ltlibobjs
19819
19820
19821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19822printf %s "checking that generated files are newer than configure... " >&6; }
19823   if test -n "$am_sleep_pid"; then
19824     # Hide warnings about reused PIDs.
19825     wait $am_sleep_pid 2>/dev/null
19826   fi
19827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19828printf "%s\n" "done" >&6; }
19829if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19830  as_fn_error $? "conditional \"AMDEP\" was never defined.
19831Usually this means the macro was only invoked conditionally." "$LINENO" 5
19832fi
19833if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19834  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19835Usually this means the macro was only invoked conditionally." "$LINENO" 5
19836fi
19837 if test -n "$EXEEXT"; then
19838  am__EXEEXT_TRUE=
19839  am__EXEEXT_FALSE='#'
19840else
19841  am__EXEEXT_TRUE='#'
19842  am__EXEEXT_FALSE=
19843fi
19844
19845if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19846  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19847Usually this means the macro was only invoked conditionally." "$LINENO" 5
19848fi
19849if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19850  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19851Usually this means the macro was only invoked conditionally." "$LINENO" 5
19852fi
19853if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
19854  as_fn_error $? "conditional \"XMODES\" was never defined.
19855Usually this means the macro was only invoked conditionally." "$LINENO" 5
19856fi
19857if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19858  as_fn_error $? "conditional \"XAA\" was never defined.
19859Usually this means the macro was only invoked conditionally." "$LINENO" 5
19860fi
19861
19862: "${CONFIG_STATUS=./config.status}"
19863ac_write_fail=0
19864ac_clean_files_save=$ac_clean_files
19865ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19867printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19868as_write_fail=0
19869cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19870#! $SHELL
19871# Generated by $as_me.
19872# Run this file to recreate the current configuration.
19873# Compiler output produced by configure, useful for debugging
19874# configure, is in config.log if it exists.
19875
19876debug=false
19877ac_cs_recheck=false
19878ac_cs_silent=false
19879
19880SHELL=\${CONFIG_SHELL-$SHELL}
19881export SHELL
19882_ASEOF
19883cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19884## -------------------- ##
19885## M4sh Initialization. ##
19886## -------------------- ##
19887
19888# Be more Bourne compatible
19889DUALCASE=1; export DUALCASE # for MKS sh
19890as_nop=:
19891if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19892then :
19893  emulate sh
19894  NULLCMD=:
19895  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19896  # is contrary to our usage.  Disable this feature.
19897  alias -g '${1+"$@"}'='"$@"'
19898  setopt NO_GLOB_SUBST
19899else $as_nop
19900  case `(set -o) 2>/dev/null` in #(
19901  *posix*) :
19902    set -o posix ;; #(
19903  *) :
19904     ;;
19905esac
19906fi
19907
19908
19909
19910# Reset variables that may have inherited troublesome values from
19911# the environment.
19912
19913# IFS needs to be set, to space, tab, and newline, in precisely that order.
19914# (If _AS_PATH_WALK were called with IFS unset, it would have the
19915# side effect of setting IFS to empty, thus disabling word splitting.)
19916# Quoting is to prevent editors from complaining about space-tab.
19917as_nl='
19918'
19919export as_nl
19920IFS=" ""	$as_nl"
19921
19922PS1='$ '
19923PS2='> '
19924PS4='+ '
19925
19926# Ensure predictable behavior from utilities with locale-dependent output.
19927LC_ALL=C
19928export LC_ALL
19929LANGUAGE=C
19930export LANGUAGE
19931
19932# We cannot yet rely on "unset" to work, but we need these variables
19933# to be unset--not just set to an empty or harmless value--now, to
19934# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19935# also avoids known problems related to "unset" and subshell syntax
19936# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19937for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19938do eval test \${$as_var+y} \
19939  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19940done
19941
19942# Ensure that fds 0, 1, and 2 are open.
19943if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19944if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19945if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19946
19947# The user is always right.
19948if ${PATH_SEPARATOR+false} :; then
19949  PATH_SEPARATOR=:
19950  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19951    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19952      PATH_SEPARATOR=';'
19953  }
19954fi
19955
19956
19957# Find who we are.  Look in the path if we contain no directory separator.
19958as_myself=
19959case $0 in #((
19960  *[\\/]* ) as_myself=$0 ;;
19961  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962for as_dir in $PATH
19963do
19964  IFS=$as_save_IFS
19965  case $as_dir in #(((
19966    '') as_dir=./ ;;
19967    */) ;;
19968    *) as_dir=$as_dir/ ;;
19969  esac
19970    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19971  done
19972IFS=$as_save_IFS
19973
19974     ;;
19975esac
19976# We did not find ourselves, most probably we were run as `sh COMMAND'
19977# in which case we are not to be found in the path.
19978if test "x$as_myself" = x; then
19979  as_myself=$0
19980fi
19981if test ! -f "$as_myself"; then
19982  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19983  exit 1
19984fi
19985
19986
19987
19988# as_fn_error STATUS ERROR [LINENO LOG_FD]
19989# ----------------------------------------
19990# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19991# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19992# script with STATUS, using 1 if that was 0.
19993as_fn_error ()
19994{
19995  as_status=$1; test $as_status -eq 0 && as_status=1
19996  if test "$4"; then
19997    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19998    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19999  fi
20000  printf "%s\n" "$as_me: error: $2" >&2
20001  as_fn_exit $as_status
20002} # as_fn_error
20003
20004
20005
20006# as_fn_set_status STATUS
20007# -----------------------
20008# Set $? to STATUS, without forking.
20009as_fn_set_status ()
20010{
20011  return $1
20012} # as_fn_set_status
20013
20014# as_fn_exit STATUS
20015# -----------------
20016# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20017as_fn_exit ()
20018{
20019  set +e
20020  as_fn_set_status $1
20021  exit $1
20022} # as_fn_exit
20023
20024# as_fn_unset VAR
20025# ---------------
20026# Portably unset VAR.
20027as_fn_unset ()
20028{
20029  { eval $1=; unset $1;}
20030}
20031as_unset=as_fn_unset
20032
20033# as_fn_append VAR VALUE
20034# ----------------------
20035# Append the text in VALUE to the end of the definition contained in VAR. Take
20036# advantage of any shell optimizations that allow amortized linear growth over
20037# repeated appends, instead of the typical quadratic growth present in naive
20038# implementations.
20039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20040then :
20041  eval 'as_fn_append ()
20042  {
20043    eval $1+=\$2
20044  }'
20045else $as_nop
20046  as_fn_append ()
20047  {
20048    eval $1=\$$1\$2
20049  }
20050fi # as_fn_append
20051
20052# as_fn_arith ARG...
20053# ------------------
20054# Perform arithmetic evaluation on the ARGs, and store the result in the
20055# global $as_val. Take advantage of shells that can avoid forks. The arguments
20056# must be portable across $(()) and expr.
20057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20058then :
20059  eval 'as_fn_arith ()
20060  {
20061    as_val=$(( $* ))
20062  }'
20063else $as_nop
20064  as_fn_arith ()
20065  {
20066    as_val=`expr "$@" || test $? -eq 1`
20067  }
20068fi # as_fn_arith
20069
20070
20071if expr a : '\(a\)' >/dev/null 2>&1 &&
20072   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20073  as_expr=expr
20074else
20075  as_expr=false
20076fi
20077
20078if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20079  as_basename=basename
20080else
20081  as_basename=false
20082fi
20083
20084if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20085  as_dirname=dirname
20086else
20087  as_dirname=false
20088fi
20089
20090as_me=`$as_basename -- "$0" ||
20091$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20092	 X"$0" : 'X\(//\)$' \| \
20093	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20094printf "%s\n" X/"$0" |
20095    sed '/^.*\/\([^/][^/]*\)\/*$/{
20096	    s//\1/
20097	    q
20098	  }
20099	  /^X\/\(\/\/\)$/{
20100	    s//\1/
20101	    q
20102	  }
20103	  /^X\/\(\/\).*/{
20104	    s//\1/
20105	    q
20106	  }
20107	  s/.*/./; q'`
20108
20109# Avoid depending upon Character Ranges.
20110as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20111as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20112as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20113as_cr_digits='0123456789'
20114as_cr_alnum=$as_cr_Letters$as_cr_digits
20115
20116
20117# Determine whether it's possible to make 'echo' print without a newline.
20118# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20119# for compatibility with existing Makefiles.
20120ECHO_C= ECHO_N= ECHO_T=
20121case `echo -n x` in #(((((
20122-n*)
20123  case `echo 'xy\c'` in
20124  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20125  xy)  ECHO_C='\c';;
20126  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20127       ECHO_T='	';;
20128  esac;;
20129*)
20130  ECHO_N='-n';;
20131esac
20132
20133# For backward compatibility with old third-party macros, we provide
20134# the shell variables $as_echo and $as_echo_n.  New code should use
20135# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20136as_echo='printf %s\n'
20137as_echo_n='printf %s'
20138
20139rm -f conf$$ conf$$.exe conf$$.file
20140if test -d conf$$.dir; then
20141  rm -f conf$$.dir/conf$$.file
20142else
20143  rm -f conf$$.dir
20144  mkdir conf$$.dir 2>/dev/null
20145fi
20146if (echo >conf$$.file) 2>/dev/null; then
20147  if ln -s conf$$.file conf$$ 2>/dev/null; then
20148    as_ln_s='ln -s'
20149    # ... but there are two gotchas:
20150    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20151    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20152    # In both cases, we have to default to `cp -pR'.
20153    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20154      as_ln_s='cp -pR'
20155  elif ln conf$$.file conf$$ 2>/dev/null; then
20156    as_ln_s=ln
20157  else
20158    as_ln_s='cp -pR'
20159  fi
20160else
20161  as_ln_s='cp -pR'
20162fi
20163rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20164rmdir conf$$.dir 2>/dev/null
20165
20166
20167# as_fn_mkdir_p
20168# -------------
20169# Create "$as_dir" as a directory, including parents if necessary.
20170as_fn_mkdir_p ()
20171{
20172
20173  case $as_dir in #(
20174  -*) as_dir=./$as_dir;;
20175  esac
20176  test -d "$as_dir" || eval $as_mkdir_p || {
20177    as_dirs=
20178    while :; do
20179      case $as_dir in #(
20180      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20181      *) as_qdir=$as_dir;;
20182      esac
20183      as_dirs="'$as_qdir' $as_dirs"
20184      as_dir=`$as_dirname -- "$as_dir" ||
20185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20186	 X"$as_dir" : 'X\(//\)[^/]' \| \
20187	 X"$as_dir" : 'X\(//\)$' \| \
20188	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20189printf "%s\n" X"$as_dir" |
20190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20191	    s//\1/
20192	    q
20193	  }
20194	  /^X\(\/\/\)[^/].*/{
20195	    s//\1/
20196	    q
20197	  }
20198	  /^X\(\/\/\)$/{
20199	    s//\1/
20200	    q
20201	  }
20202	  /^X\(\/\).*/{
20203	    s//\1/
20204	    q
20205	  }
20206	  s/.*/./; q'`
20207      test -d "$as_dir" && break
20208    done
20209    test -z "$as_dirs" || eval "mkdir $as_dirs"
20210  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20211
20212
20213} # as_fn_mkdir_p
20214if mkdir -p . 2>/dev/null; then
20215  as_mkdir_p='mkdir -p "$as_dir"'
20216else
20217  test -d ./-p && rmdir ./-p
20218  as_mkdir_p=false
20219fi
20220
20221
20222# as_fn_executable_p FILE
20223# -----------------------
20224# Test if FILE is an executable regular file.
20225as_fn_executable_p ()
20226{
20227  test -f "$1" && test -x "$1"
20228} # as_fn_executable_p
20229as_test_x='test -x'
20230as_executable_p=as_fn_executable_p
20231
20232# Sed expression to map a string onto a valid CPP name.
20233as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20234
20235# Sed expression to map a string onto a valid variable name.
20236as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20237
20238
20239exec 6>&1
20240## ----------------------------------- ##
20241## Main body of $CONFIG_STATUS script. ##
20242## ----------------------------------- ##
20243_ASEOF
20244test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20245
20246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20247# Save the log message, to keep $0 and so on meaningful, and to
20248# report actual input values of CONFIG_FILES etc. instead of their
20249# values after options handling.
20250ac_log="
20251This file was extended by xf86-video-siliconmotion $as_me 1.7.10, which was
20252generated by GNU Autoconf 2.71.  Invocation command line was
20253
20254  CONFIG_FILES    = $CONFIG_FILES
20255  CONFIG_HEADERS  = $CONFIG_HEADERS
20256  CONFIG_LINKS    = $CONFIG_LINKS
20257  CONFIG_COMMANDS = $CONFIG_COMMANDS
20258  $ $0 $@
20259
20260on `(hostname || uname -n) 2>/dev/null | sed 1q`
20261"
20262
20263_ACEOF
20264
20265case $ac_config_files in *"
20266"*) set x $ac_config_files; shift; ac_config_files=$*;;
20267esac
20268
20269case $ac_config_headers in *"
20270"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20271esac
20272
20273
20274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20275# Files that config.status was made for.
20276config_files="$ac_config_files"
20277config_headers="$ac_config_headers"
20278config_commands="$ac_config_commands"
20279
20280_ACEOF
20281
20282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283ac_cs_usage="\
20284\`$as_me' instantiates files and other configuration actions
20285from templates according to the current configuration.  Unless the files
20286and actions are specified as TAGs, all are instantiated by default.
20287
20288Usage: $0 [OPTION]... [TAG]...
20289
20290  -h, --help       print this help, then exit
20291  -V, --version    print version number and configuration settings, then exit
20292      --config     print configuration, then exit
20293  -q, --quiet, --silent
20294                   do not print progress messages
20295  -d, --debug      don't remove temporary files
20296      --recheck    update $as_me by reconfiguring in the same conditions
20297      --file=FILE[:TEMPLATE]
20298                   instantiate the configuration file FILE
20299      --header=FILE[:TEMPLATE]
20300                   instantiate the configuration header FILE
20301
20302Configuration files:
20303$config_files
20304
20305Configuration headers:
20306$config_headers
20307
20308Configuration commands:
20309$config_commands
20310
20311Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues>."
20312
20313_ACEOF
20314ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20315ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20317ac_cs_config='$ac_cs_config_escaped'
20318ac_cs_version="\\
20319xf86-video-siliconmotion config.status 1.7.10
20320configured by $0, generated by GNU Autoconf 2.71,
20321  with options \\"\$ac_cs_config\\"
20322
20323Copyright (C) 2021 Free Software Foundation, Inc.
20324This config.status script is free software; the Free Software Foundation
20325gives unlimited permission to copy, distribute and modify it."
20326
20327ac_pwd='$ac_pwd'
20328srcdir='$srcdir'
20329INSTALL='$INSTALL'
20330MKDIR_P='$MKDIR_P'
20331AWK='$AWK'
20332test -n "\$AWK" || AWK=awk
20333_ACEOF
20334
20335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20336# The default lists apply if the user does not specify any file.
20337ac_need_defaults=:
20338while test $# != 0
20339do
20340  case $1 in
20341  --*=?*)
20342    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20343    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20344    ac_shift=:
20345    ;;
20346  --*=)
20347    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20348    ac_optarg=
20349    ac_shift=:
20350    ;;
20351  *)
20352    ac_option=$1
20353    ac_optarg=$2
20354    ac_shift=shift
20355    ;;
20356  esac
20357
20358  case $ac_option in
20359  # Handling of the options.
20360  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20361    ac_cs_recheck=: ;;
20362  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20363    printf "%s\n" "$ac_cs_version"; exit ;;
20364  --config | --confi | --conf | --con | --co | --c )
20365    printf "%s\n" "$ac_cs_config"; exit ;;
20366  --debug | --debu | --deb | --de | --d | -d )
20367    debug=: ;;
20368  --file | --fil | --fi | --f )
20369    $ac_shift
20370    case $ac_optarg in
20371    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20372    '') as_fn_error $? "missing file argument" ;;
20373    esac
20374    as_fn_append CONFIG_FILES " '$ac_optarg'"
20375    ac_need_defaults=false;;
20376  --header | --heade | --head | --hea )
20377    $ac_shift
20378    case $ac_optarg in
20379    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20380    esac
20381    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20382    ac_need_defaults=false;;
20383  --he | --h)
20384    # Conflict between --help and --header
20385    as_fn_error $? "ambiguous option: \`$1'
20386Try \`$0 --help' for more information.";;
20387  --help | --hel | -h )
20388    printf "%s\n" "$ac_cs_usage"; exit ;;
20389  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20390  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20391    ac_cs_silent=: ;;
20392
20393  # This is an error.
20394  -*) as_fn_error $? "unrecognized option: \`$1'
20395Try \`$0 --help' for more information." ;;
20396
20397  *) as_fn_append ac_config_targets " $1"
20398     ac_need_defaults=false ;;
20399
20400  esac
20401  shift
20402done
20403
20404ac_configure_extra_args=
20405
20406if $ac_cs_silent; then
20407  exec 6>/dev/null
20408  ac_configure_extra_args="$ac_configure_extra_args --silent"
20409fi
20410
20411_ACEOF
20412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20413if \$ac_cs_recheck; then
20414  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20415  shift
20416  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20417  CONFIG_SHELL='$SHELL'
20418  export CONFIG_SHELL
20419  exec "\$@"
20420fi
20421
20422_ACEOF
20423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20424exec 5>>config.log
20425{
20426  echo
20427  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20428## Running $as_me. ##
20429_ASBOX
20430  printf "%s\n" "$ac_log"
20431} >&5
20432
20433_ACEOF
20434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20435#
20436# INIT-COMMANDS
20437#
20438AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20439
20440
20441# The HP-UX ksh and POSIX shell print the target directory to stdout
20442# if CDPATH is set.
20443(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20444
20445sed_quote_subst='$sed_quote_subst'
20446double_quote_subst='$double_quote_subst'
20447delay_variable_subst='$delay_variable_subst'
20448enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20449macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20450macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20451enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20452pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20453enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20454shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20455SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20456ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20457PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20458host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20459host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20460host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20461build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20462build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20463build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20464SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20465Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20466GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20467EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20468FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20469LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20470NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20471LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20472max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20473ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20474exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20475lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20476lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20477lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20478lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20479lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20480reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20481reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20482FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20483OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20484deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20485file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20486file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20487want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20488DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20489sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20490AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20491lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20492AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20493archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20494STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20495RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20496old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20497old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20498old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20499lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20500CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20501CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20502compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20503GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20504lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20505lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20506lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20507lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20508lt_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"`'
20509lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20510nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20511lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20512lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20513objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20514MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20515lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20516lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20517lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20518lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20519lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20520need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20521MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20522DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20523NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20524LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20525OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20526OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20527libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20528shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20529extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20530archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20531enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20532export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20533whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20534compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20535old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20536old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20537archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20538archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20539module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20540module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20541with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20542allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20543no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20544hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20545hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20546hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20547hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20548hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20549hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20550hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20551inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20552link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20553always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20554export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20555exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20556include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20557prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20558postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20559file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20560variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20561need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20562need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20563version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20564runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20565shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20566shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20567libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20568library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20569soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20570install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20571postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20572postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20573finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20574finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20575hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20576sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20577configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20578configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20579hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20580enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20581enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20582enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20583old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20584striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20585
20586LTCC='$LTCC'
20587LTCFLAGS='$LTCFLAGS'
20588compiler='$compiler_DEFAULT'
20589
20590# A function that is used when there is no print builtin or printf.
20591func_fallback_echo ()
20592{
20593  eval 'cat <<_LTECHO_EOF
20594\$1
20595_LTECHO_EOF'
20596}
20597
20598# Quote evaled strings.
20599for var in SHELL \
20600ECHO \
20601PATH_SEPARATOR \
20602SED \
20603GREP \
20604EGREP \
20605FGREP \
20606LD \
20607NM \
20608LN_S \
20609lt_SP2NL \
20610lt_NL2SP \
20611reload_flag \
20612FILECMD \
20613OBJDUMP \
20614deplibs_check_method \
20615file_magic_cmd \
20616file_magic_glob \
20617want_nocaseglob \
20618DLLTOOL \
20619sharedlib_from_linklib_cmd \
20620AR \
20621archiver_list_spec \
20622STRIP \
20623RANLIB \
20624CC \
20625CFLAGS \
20626compiler \
20627lt_cv_sys_global_symbol_pipe \
20628lt_cv_sys_global_symbol_to_cdecl \
20629lt_cv_sys_global_symbol_to_import \
20630lt_cv_sys_global_symbol_to_c_name_address \
20631lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20632lt_cv_nm_interface \
20633nm_file_list_spec \
20634lt_cv_truncate_bin \
20635lt_prog_compiler_no_builtin_flag \
20636lt_prog_compiler_pic \
20637lt_prog_compiler_wl \
20638lt_prog_compiler_static \
20639lt_cv_prog_compiler_c_o \
20640need_locks \
20641MANIFEST_TOOL \
20642DSYMUTIL \
20643NMEDIT \
20644LIPO \
20645OTOOL \
20646OTOOL64 \
20647shrext_cmds \
20648export_dynamic_flag_spec \
20649whole_archive_flag_spec \
20650compiler_needs_object \
20651with_gnu_ld \
20652allow_undefined_flag \
20653no_undefined_flag \
20654hardcode_libdir_flag_spec \
20655hardcode_libdir_separator \
20656exclude_expsyms \
20657include_expsyms \
20658file_list_spec \
20659variables_saved_for_relink \
20660libname_spec \
20661library_names_spec \
20662soname_spec \
20663install_override_mode \
20664finish_eval \
20665old_striplib \
20666striplib; do
20667    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20668    *[\\\\\\\`\\"\\\$]*)
20669      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20670      ;;
20671    *)
20672      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20673      ;;
20674    esac
20675done
20676
20677# Double-quote double-evaled strings.
20678for var in reload_cmds \
20679old_postinstall_cmds \
20680old_postuninstall_cmds \
20681old_archive_cmds \
20682extract_expsyms_cmds \
20683old_archive_from_new_cmds \
20684old_archive_from_expsyms_cmds \
20685archive_cmds \
20686archive_expsym_cmds \
20687module_cmds \
20688module_expsym_cmds \
20689export_symbols_cmds \
20690prelink_cmds \
20691postlink_cmds \
20692postinstall_cmds \
20693postuninstall_cmds \
20694finish_cmds \
20695sys_lib_search_path_spec \
20696configure_time_dlsearch_path \
20697configure_time_lt_sys_library_path; do
20698    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20699    *[\\\\\\\`\\"\\\$]*)
20700      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20701      ;;
20702    *)
20703      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20704      ;;
20705    esac
20706done
20707
20708ac_aux_dir='$ac_aux_dir'
20709
20710# See if we are running on zsh, and set the options that allow our
20711# commands through without removal of \ escapes INIT.
20712if test -n "\${ZSH_VERSION+set}"; then
20713   setopt NO_GLOB_SUBST
20714fi
20715
20716
20717    PACKAGE='$PACKAGE'
20718    VERSION='$VERSION'
20719    RM='$RM'
20720    ofile='$ofile'
20721
20722
20723
20724
20725_ACEOF
20726
20727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728
20729# Handling of arguments.
20730for ac_config_target in $ac_config_targets
20731do
20732  case $ac_config_target in
20733    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20734    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20735    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20736    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20737    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20738    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20739
20740  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20741  esac
20742done
20743
20744
20745# If the user did not use the arguments to specify the items to instantiate,
20746# then the envvar interface is used.  Set only those that are not.
20747# We use the long form for the default assignment because of an extremely
20748# bizarre bug on SunOS 4.1.3.
20749if $ac_need_defaults; then
20750  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20751  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20752  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20753fi
20754
20755# Have a temporary directory for convenience.  Make it in the build tree
20756# simply because there is no reason against having it here, and in addition,
20757# creating and moving files from /tmp can sometimes cause problems.
20758# Hook for its removal unless debugging.
20759# Note that there is a small window in which the directory will not be cleaned:
20760# after its creation but before its name has been assigned to `$tmp'.
20761$debug ||
20762{
20763  tmp= ac_tmp=
20764  trap 'exit_status=$?
20765  : "${ac_tmp:=$tmp}"
20766  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20767' 0
20768  trap 'as_fn_exit 1' 1 2 13 15
20769}
20770# Create a (secure) tmp directory for tmp files.
20771
20772{
20773  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20774  test -d "$tmp"
20775}  ||
20776{
20777  tmp=./conf$$-$RANDOM
20778  (umask 077 && mkdir "$tmp")
20779} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20780ac_tmp=$tmp
20781
20782# Set up the scripts for CONFIG_FILES section.
20783# No need to generate them if there are no CONFIG_FILES.
20784# This happens for instance with `./config.status config.h'.
20785if test -n "$CONFIG_FILES"; then
20786
20787
20788ac_cr=`echo X | tr X '\015'`
20789# On cygwin, bash can eat \r inside `` if the user requested igncr.
20790# But we know of no other shell where ac_cr would be empty at this
20791# point, so we can use a bashism as a fallback.
20792if test "x$ac_cr" = x; then
20793  eval ac_cr=\$\'\\r\'
20794fi
20795ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20796if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20797  ac_cs_awk_cr='\\r'
20798else
20799  ac_cs_awk_cr=$ac_cr
20800fi
20801
20802echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20803_ACEOF
20804
20805
20806{
20807  echo "cat >conf$$subs.awk <<_ACEOF" &&
20808  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20809  echo "_ACEOF"
20810} >conf$$subs.sh ||
20811  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20812ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20813ac_delim='%!_!# '
20814for ac_last_try in false false false false false :; do
20815  . ./conf$$subs.sh ||
20816    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20817
20818  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20819  if test $ac_delim_n = $ac_delim_num; then
20820    break
20821  elif $ac_last_try; then
20822    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20823  else
20824    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20825  fi
20826done
20827rm -f conf$$subs.sh
20828
20829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20830cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20831_ACEOF
20832sed -n '
20833h
20834s/^/S["/; s/!.*/"]=/
20835p
20836g
20837s/^[^!]*!//
20838:repl
20839t repl
20840s/'"$ac_delim"'$//
20841t delim
20842:nl
20843h
20844s/\(.\{148\}\)..*/\1/
20845t more1
20846s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20847p
20848n
20849b repl
20850:more1
20851s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20852p
20853g
20854s/.\{148\}//
20855t nl
20856:delim
20857h
20858s/\(.\{148\}\)..*/\1/
20859t more2
20860s/["\\]/\\&/g; s/^/"/; s/$/"/
20861p
20862b
20863:more2
20864s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20865p
20866g
20867s/.\{148\}//
20868t delim
20869' <conf$$subs.awk | sed '
20870/^[^""]/{
20871  N
20872  s/\n//
20873}
20874' >>$CONFIG_STATUS || ac_write_fail=1
20875rm -f conf$$subs.awk
20876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20877_ACAWK
20878cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20879  for (key in S) S_is_set[key] = 1
20880  FS = ""
20881
20882}
20883{
20884  line = $ 0
20885  nfields = split(line, field, "@")
20886  substed = 0
20887  len = length(field[1])
20888  for (i = 2; i < nfields; i++) {
20889    key = field[i]
20890    keylen = length(key)
20891    if (S_is_set[key]) {
20892      value = S[key]
20893      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20894      len += length(value) + length(field[++i])
20895      substed = 1
20896    } else
20897      len += 1 + keylen
20898  }
20899
20900  print line
20901}
20902
20903_ACAWK
20904_ACEOF
20905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20906if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20907  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20908else
20909  cat
20910fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20911  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20912_ACEOF
20913
20914# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20915# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20916# trailing colons and then remove the whole line if VPATH becomes empty
20917# (actually we leave an empty line to preserve line numbers).
20918if test "x$srcdir" = x.; then
20919  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20920h
20921s///
20922s/^/:/
20923s/[	 ]*$/:/
20924s/:\$(srcdir):/:/g
20925s/:\${srcdir}:/:/g
20926s/:@srcdir@:/:/g
20927s/^:*//
20928s/:*$//
20929x
20930s/\(=[	 ]*\).*/\1/
20931G
20932s/\n//
20933s/^[^=]*=[	 ]*$//
20934}'
20935fi
20936
20937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20938fi # test -n "$CONFIG_FILES"
20939
20940# Set up the scripts for CONFIG_HEADERS section.
20941# No need to generate them if there are no CONFIG_HEADERS.
20942# This happens for instance with `./config.status Makefile'.
20943if test -n "$CONFIG_HEADERS"; then
20944cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20945BEGIN {
20946_ACEOF
20947
20948# Transform confdefs.h into an awk script `defines.awk', embedded as
20949# here-document in config.status, that substitutes the proper values into
20950# config.h.in to produce config.h.
20951
20952# Create a delimiter string that does not exist in confdefs.h, to ease
20953# handling of long lines.
20954ac_delim='%!_!# '
20955for ac_last_try in false false :; do
20956  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20957  if test -z "$ac_tt"; then
20958    break
20959  elif $ac_last_try; then
20960    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20961  else
20962    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20963  fi
20964done
20965
20966# For the awk script, D is an array of macro values keyed by name,
20967# likewise P contains macro parameters if any.  Preserve backslash
20968# newline sequences.
20969
20970ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20971sed -n '
20972s/.\{148\}/&'"$ac_delim"'/g
20973t rset
20974:rset
20975s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20976t def
20977d
20978:def
20979s/\\$//
20980t bsnl
20981s/["\\]/\\&/g
20982s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20983D["\1"]=" \3"/p
20984s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20985d
20986:bsnl
20987s/["\\]/\\&/g
20988s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20989D["\1"]=" \3\\\\\\n"\\/p
20990t cont
20991s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20992t cont
20993d
20994:cont
20995n
20996s/.\{148\}/&'"$ac_delim"'/g
20997t clear
20998:clear
20999s/\\$//
21000t bsnlc
21001s/["\\]/\\&/g; s/^/"/; s/$/"/p
21002d
21003:bsnlc
21004s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21005b cont
21006' <confdefs.h | sed '
21007s/'"$ac_delim"'/"\\\
21008"/g' >>$CONFIG_STATUS || ac_write_fail=1
21009
21010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011  for (key in D) D_is_set[key] = 1
21012  FS = ""
21013}
21014/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21015  line = \$ 0
21016  split(line, arg, " ")
21017  if (arg[1] == "#") {
21018    defundef = arg[2]
21019    mac1 = arg[3]
21020  } else {
21021    defundef = substr(arg[1], 2)
21022    mac1 = arg[2]
21023  }
21024  split(mac1, mac2, "(") #)
21025  macro = mac2[1]
21026  prefix = substr(line, 1, index(line, defundef) - 1)
21027  if (D_is_set[macro]) {
21028    # Preserve the white space surrounding the "#".
21029    print prefix "define", macro P[macro] D[macro]
21030    next
21031  } else {
21032    # Replace #undef with comments.  This is necessary, for example,
21033    # in the case of _POSIX_SOURCE, which is predefined and required
21034    # on some systems where configure will not decide to define it.
21035    if (defundef == "undef") {
21036      print "/*", prefix defundef, macro, "*/"
21037      next
21038    }
21039  }
21040}
21041{ print }
21042_ACAWK
21043_ACEOF
21044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21045  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21046fi # test -n "$CONFIG_HEADERS"
21047
21048
21049eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21050shift
21051for ac_tag
21052do
21053  case $ac_tag in
21054  :[FHLC]) ac_mode=$ac_tag; continue;;
21055  esac
21056  case $ac_mode$ac_tag in
21057  :[FHL]*:*);;
21058  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21059  :[FH]-) ac_tag=-:-;;
21060  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21061  esac
21062  ac_save_IFS=$IFS
21063  IFS=:
21064  set x $ac_tag
21065  IFS=$ac_save_IFS
21066  shift
21067  ac_file=$1
21068  shift
21069
21070  case $ac_mode in
21071  :L) ac_source=$1;;
21072  :[FH])
21073    ac_file_inputs=
21074    for ac_f
21075    do
21076      case $ac_f in
21077      -) ac_f="$ac_tmp/stdin";;
21078      *) # Look for the file first in the build tree, then in the source tree
21079	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21080	 # because $ac_f cannot contain `:'.
21081	 test -f "$ac_f" ||
21082	   case $ac_f in
21083	   [\\/$]*) false;;
21084	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21085	   esac ||
21086	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21087      esac
21088      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21089      as_fn_append ac_file_inputs " '$ac_f'"
21090    done
21091
21092    # Let's still pretend it is `configure' which instantiates (i.e., don't
21093    # use $as_me), people would be surprised to read:
21094    #    /* config.h.  Generated by config.status.  */
21095    configure_input='Generated from '`
21096	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21097	`' by configure.'
21098    if test x"$ac_file" != x-; then
21099      configure_input="$ac_file.  $configure_input"
21100      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21101printf "%s\n" "$as_me: creating $ac_file" >&6;}
21102    fi
21103    # Neutralize special characters interpreted by sed in replacement strings.
21104    case $configure_input in #(
21105    *\&* | *\|* | *\\* )
21106       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21107       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21108    *) ac_sed_conf_input=$configure_input;;
21109    esac
21110
21111    case $ac_tag in
21112    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21113      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21114    esac
21115    ;;
21116  esac
21117
21118  ac_dir=`$as_dirname -- "$ac_file" ||
21119$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21120	 X"$ac_file" : 'X\(//\)[^/]' \| \
21121	 X"$ac_file" : 'X\(//\)$' \| \
21122	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21123printf "%s\n" X"$ac_file" |
21124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21125	    s//\1/
21126	    q
21127	  }
21128	  /^X\(\/\/\)[^/].*/{
21129	    s//\1/
21130	    q
21131	  }
21132	  /^X\(\/\/\)$/{
21133	    s//\1/
21134	    q
21135	  }
21136	  /^X\(\/\).*/{
21137	    s//\1/
21138	    q
21139	  }
21140	  s/.*/./; q'`
21141  as_dir="$ac_dir"; as_fn_mkdir_p
21142  ac_builddir=.
21143
21144case "$ac_dir" in
21145.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21146*)
21147  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21148  # A ".." for each directory in $ac_dir_suffix.
21149  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21150  case $ac_top_builddir_sub in
21151  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21152  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21153  esac ;;
21154esac
21155ac_abs_top_builddir=$ac_pwd
21156ac_abs_builddir=$ac_pwd$ac_dir_suffix
21157# for backward compatibility:
21158ac_top_builddir=$ac_top_build_prefix
21159
21160case $srcdir in
21161  .)  # We are building in place.
21162    ac_srcdir=.
21163    ac_top_srcdir=$ac_top_builddir_sub
21164    ac_abs_top_srcdir=$ac_pwd ;;
21165  [\\/]* | ?:[\\/]* )  # Absolute name.
21166    ac_srcdir=$srcdir$ac_dir_suffix;
21167    ac_top_srcdir=$srcdir
21168    ac_abs_top_srcdir=$srcdir ;;
21169  *) # Relative name.
21170    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21171    ac_top_srcdir=$ac_top_build_prefix$srcdir
21172    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21173esac
21174ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21175
21176
21177  case $ac_mode in
21178  :F)
21179  #
21180  # CONFIG_FILE
21181  #
21182
21183  case $INSTALL in
21184  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21185  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21186  esac
21187  ac_MKDIR_P=$MKDIR_P
21188  case $MKDIR_P in
21189  [\\/$]* | ?:[\\/]* ) ;;
21190  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21191  esac
21192_ACEOF
21193
21194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21195# If the template does not know about datarootdir, expand it.
21196# FIXME: This hack should be removed a few years after 2.60.
21197ac_datarootdir_hack=; ac_datarootdir_seen=
21198ac_sed_dataroot='
21199/datarootdir/ {
21200  p
21201  q
21202}
21203/@datadir@/p
21204/@docdir@/p
21205/@infodir@/p
21206/@localedir@/p
21207/@mandir@/p'
21208case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21209*datarootdir*) ac_datarootdir_seen=yes;;
21210*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21212printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21213_ACEOF
21214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21215  ac_datarootdir_hack='
21216  s&@datadir@&$datadir&g
21217  s&@docdir@&$docdir&g
21218  s&@infodir@&$infodir&g
21219  s&@localedir@&$localedir&g
21220  s&@mandir@&$mandir&g
21221  s&\\\${datarootdir}&$datarootdir&g' ;;
21222esac
21223_ACEOF
21224
21225# Neutralize VPATH when `$srcdir' = `.'.
21226# Shell code in configure.ac might set extrasub.
21227# FIXME: do we really want to maintain this feature?
21228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21229ac_sed_extra="$ac_vpsub
21230$extrasub
21231_ACEOF
21232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21233:t
21234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21235s|@configure_input@|$ac_sed_conf_input|;t t
21236s&@top_builddir@&$ac_top_builddir_sub&;t t
21237s&@top_build_prefix@&$ac_top_build_prefix&;t t
21238s&@srcdir@&$ac_srcdir&;t t
21239s&@abs_srcdir@&$ac_abs_srcdir&;t t
21240s&@top_srcdir@&$ac_top_srcdir&;t t
21241s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21242s&@builddir@&$ac_builddir&;t t
21243s&@abs_builddir@&$ac_abs_builddir&;t t
21244s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21245s&@INSTALL@&$ac_INSTALL&;t t
21246s&@MKDIR_P@&$ac_MKDIR_P&;t t
21247$ac_datarootdir_hack
21248"
21249eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21250  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21251
21252test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21253  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21254  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21255      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21257which seems to be undefined.  Please make sure it is defined" >&5
21258printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21259which seems to be undefined.  Please make sure it is defined" >&2;}
21260
21261  rm -f "$ac_tmp/stdin"
21262  case $ac_file in
21263  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21264  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21265  esac \
21266  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21267 ;;
21268  :H)
21269  #
21270  # CONFIG_HEADER
21271  #
21272  if test x"$ac_file" != x-; then
21273    {
21274      printf "%s\n" "/* $configure_input  */" >&1 \
21275      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21276    } >"$ac_tmp/config.h" \
21277      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21278    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21280printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21281    else
21282      rm -f "$ac_file"
21283      mv "$ac_tmp/config.h" "$ac_file" \
21284	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21285    fi
21286  else
21287    printf "%s\n" "/* $configure_input  */" >&1 \
21288      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21289      || as_fn_error $? "could not create -" "$LINENO" 5
21290  fi
21291# Compute "$ac_file"'s index in $config_headers.
21292_am_arg="$ac_file"
21293_am_stamp_count=1
21294for _am_header in $config_headers :; do
21295  case $_am_header in
21296    $_am_arg | $_am_arg:* )
21297      break ;;
21298    * )
21299      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21300  esac
21301done
21302echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21303$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21304	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21305	 X"$_am_arg" : 'X\(//\)$' \| \
21306	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21307printf "%s\n" X"$_am_arg" |
21308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21309	    s//\1/
21310	    q
21311	  }
21312	  /^X\(\/\/\)[^/].*/{
21313	    s//\1/
21314	    q
21315	  }
21316	  /^X\(\/\/\)$/{
21317	    s//\1/
21318	    q
21319	  }
21320	  /^X\(\/\).*/{
21321	    s//\1/
21322	    q
21323	  }
21324	  s/.*/./; q'`/stamp-h$_am_stamp_count
21325 ;;
21326
21327  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21328printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21329 ;;
21330  esac
21331
21332
21333  case $ac_file$ac_mode in
21334    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21335  # Older Autoconf quotes --file arguments for eval, but not when files
21336  # are listed without --file.  Let's play safe and only enable the eval
21337  # if we detect the quoting.
21338  # TODO: see whether this extra hack can be removed once we start
21339  # requiring Autoconf 2.70 or later.
21340  case $CONFIG_FILES in #(
21341  *\'*) :
21342    eval set x "$CONFIG_FILES" ;; #(
21343  *) :
21344    set x $CONFIG_FILES ;; #(
21345  *) :
21346     ;;
21347esac
21348  shift
21349  # Used to flag and report bootstrapping failures.
21350  am_rc=0
21351  for am_mf
21352  do
21353    # Strip MF so we end up with the name of the file.
21354    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21355    # Check whether this is an Automake generated Makefile which includes
21356    # dependency-tracking related rules and includes.
21357    # Grep'ing the whole file directly is not great: AIX grep has a line
21358    # limit of 2048, but all sed's we know have understand at least 4000.
21359    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21360      || continue
21361    am_dirpart=`$as_dirname -- "$am_mf" ||
21362$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21363	 X"$am_mf" : 'X\(//\)[^/]' \| \
21364	 X"$am_mf" : 'X\(//\)$' \| \
21365	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21366printf "%s\n" X"$am_mf" |
21367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21368	    s//\1/
21369	    q
21370	  }
21371	  /^X\(\/\/\)[^/].*/{
21372	    s//\1/
21373	    q
21374	  }
21375	  /^X\(\/\/\)$/{
21376	    s//\1/
21377	    q
21378	  }
21379	  /^X\(\/\).*/{
21380	    s//\1/
21381	    q
21382	  }
21383	  s/.*/./; q'`
21384    am_filepart=`$as_basename -- "$am_mf" ||
21385$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21386	 X"$am_mf" : 'X\(//\)$' \| \
21387	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21388printf "%s\n" X/"$am_mf" |
21389    sed '/^.*\/\([^/][^/]*\)\/*$/{
21390	    s//\1/
21391	    q
21392	  }
21393	  /^X\/\(\/\/\)$/{
21394	    s//\1/
21395	    q
21396	  }
21397	  /^X\/\(\/\).*/{
21398	    s//\1/
21399	    q
21400	  }
21401	  s/.*/./; q'`
21402    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21403      && sed -e '/# am--include-marker/d' "$am_filepart" \
21404        | $MAKE -f - am--depfiles" >&5
21405   (cd "$am_dirpart" \
21406      && sed -e '/# am--include-marker/d' "$am_filepart" \
21407        | $MAKE -f - am--depfiles) >&5 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } || am_rc=$?
21411  done
21412  if test $am_rc -ne 0; then
21413    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21414printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21415as_fn_error $? "Something went wrong bootstrapping makefile fragments
21416    for automatic dependency tracking.  If GNU make was not used, consider
21417    re-running the configure script with MAKE=\"gmake\" (or whatever is
21418    necessary).  You can also try re-running configure with the
21419    '--disable-dependency-tracking' option to at least be able to build
21420    the package (albeit without support for automatic dependency tracking).
21421See \`config.log' for more details" "$LINENO" 5; }
21422  fi
21423  { am_dirpart=; unset am_dirpart;}
21424  { am_filepart=; unset am_filepart;}
21425  { am_mf=; unset am_mf;}
21426  { am_rc=; unset am_rc;}
21427  rm -f conftest-deps.mk
21428}
21429 ;;
21430    "libtool":C)
21431
21432    # See if we are running on zsh, and set the options that allow our
21433    # commands through without removal of \ escapes.
21434    if test -n "${ZSH_VERSION+set}"; then
21435      setopt NO_GLOB_SUBST
21436    fi
21437
21438    cfgfile=${ofile}T
21439    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21440    $RM "$cfgfile"
21441
21442    cat <<_LT_EOF >> "$cfgfile"
21443#! $SHELL
21444# Generated automatically by $as_me ($PACKAGE) $VERSION
21445# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21446# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21447
21448# Provide generalized library-building support services.
21449# Written by Gordon Matzigkeit, 1996
21450
21451# Copyright (C) 2014 Free Software Foundation, Inc.
21452# This is free software; see the source for copying conditions.  There is NO
21453# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21454
21455# GNU Libtool is free software; you can redistribute it and/or modify
21456# it under the terms of the GNU General Public License as published by
21457# the Free Software Foundation; either version 2 of of the License, or
21458# (at your option) any later version.
21459#
21460# As a special exception to the GNU General Public License, if you
21461# distribute this file as part of a program or library that is built
21462# using GNU Libtool, you may include this file under the  same
21463# distribution terms that you use for the rest of that program.
21464#
21465# GNU Libtool is distributed in the hope that it will be useful, but
21466# WITHOUT ANY WARRANTY; without even the implied warranty of
21467# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21468# GNU General Public License for more details.
21469#
21470# You should have received a copy of the GNU General Public License
21471# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21472
21473
21474# The names of the tagged configurations supported by this script.
21475available_tags=''
21476
21477# Configured defaults for sys_lib_dlsearch_path munging.
21478: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21479
21480# ### BEGIN LIBTOOL CONFIG
21481
21482# Whether or not to build static libraries.
21483build_old_libs=$enable_static
21484
21485# Which release of libtool.m4 was used?
21486macro_version=$macro_version
21487macro_revision=$macro_revision
21488
21489# Whether or not to build shared libraries.
21490build_libtool_libs=$enable_shared
21491
21492# What type of objects to build.
21493pic_mode=$pic_mode
21494
21495# Whether or not to optimize for fast installation.
21496fast_install=$enable_fast_install
21497
21498# Shared archive member basename,for filename based shared library versioning on AIX.
21499shared_archive_member_spec=$shared_archive_member_spec
21500
21501# Shell to use when invoking shell scripts.
21502SHELL=$lt_SHELL
21503
21504# An echo program that protects backslashes.
21505ECHO=$lt_ECHO
21506
21507# The PATH separator for the build system.
21508PATH_SEPARATOR=$lt_PATH_SEPARATOR
21509
21510# The host system.
21511host_alias=$host_alias
21512host=$host
21513host_os=$host_os
21514
21515# The build system.
21516build_alias=$build_alias
21517build=$build
21518build_os=$build_os
21519
21520# A sed program that does not truncate output.
21521SED=$lt_SED
21522
21523# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21524Xsed="\$SED -e 1s/^X//"
21525
21526# A grep program that handles long lines.
21527GREP=$lt_GREP
21528
21529# An ERE matcher.
21530EGREP=$lt_EGREP
21531
21532# A literal string matcher.
21533FGREP=$lt_FGREP
21534
21535# A BSD- or MS-compatible name lister.
21536NM=$lt_NM
21537
21538# Whether we need soft or hard links.
21539LN_S=$lt_LN_S
21540
21541# What is the maximum length of a command?
21542max_cmd_len=$max_cmd_len
21543
21544# Object file suffix (normally "o").
21545objext=$ac_objext
21546
21547# Executable file suffix (normally "").
21548exeext=$exeext
21549
21550# whether the shell understands "unset".
21551lt_unset=$lt_unset
21552
21553# turn spaces into newlines.
21554SP2NL=$lt_lt_SP2NL
21555
21556# turn newlines into spaces.
21557NL2SP=$lt_lt_NL2SP
21558
21559# convert \$build file names to \$host format.
21560to_host_file_cmd=$lt_cv_to_host_file_cmd
21561
21562# convert \$build files to toolchain format.
21563to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21564
21565# A file(cmd) program that detects file types.
21566FILECMD=$lt_FILECMD
21567
21568# An object symbol dumper.
21569OBJDUMP=$lt_OBJDUMP
21570
21571# Method to check whether dependent libraries are shared objects.
21572deplibs_check_method=$lt_deplibs_check_method
21573
21574# Command to use when deplibs_check_method = "file_magic".
21575file_magic_cmd=$lt_file_magic_cmd
21576
21577# How to find potential files when deplibs_check_method = "file_magic".
21578file_magic_glob=$lt_file_magic_glob
21579
21580# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21581want_nocaseglob=$lt_want_nocaseglob
21582
21583# DLL creation program.
21584DLLTOOL=$lt_DLLTOOL
21585
21586# Command to associate shared and link libraries.
21587sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21588
21589# The archiver.
21590AR=$lt_AR
21591
21592# Flags to create an archive (by configure).
21593lt_ar_flags=$lt_ar_flags
21594
21595# Flags to create an archive.
21596AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21597
21598# How to feed a file listing to the archiver.
21599archiver_list_spec=$lt_archiver_list_spec
21600
21601# A symbol stripping program.
21602STRIP=$lt_STRIP
21603
21604# Commands used to install an old-style archive.
21605RANLIB=$lt_RANLIB
21606old_postinstall_cmds=$lt_old_postinstall_cmds
21607old_postuninstall_cmds=$lt_old_postuninstall_cmds
21608
21609# Whether to use a lock for old archive extraction.
21610lock_old_archive_extraction=$lock_old_archive_extraction
21611
21612# A C compiler.
21613LTCC=$lt_CC
21614
21615# LTCC compiler flags.
21616LTCFLAGS=$lt_CFLAGS
21617
21618# Take the output of nm and produce a listing of raw symbols and C names.
21619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21620
21621# Transform the output of nm in a proper C declaration.
21622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21623
21624# Transform the output of nm into a list of symbols to manually relocate.
21625global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21626
21627# Transform the output of nm in a C name address pair.
21628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21629
21630# Transform the output of nm in a C name address pair when lib prefix is needed.
21631global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21632
21633# The name lister interface.
21634nm_interface=$lt_lt_cv_nm_interface
21635
21636# Specify filename containing input files for \$NM.
21637nm_file_list_spec=$lt_nm_file_list_spec
21638
21639# The root where to search for dependent libraries,and where our libraries should be installed.
21640lt_sysroot=$lt_sysroot
21641
21642# Command to truncate a binary pipe.
21643lt_truncate_bin=$lt_lt_cv_truncate_bin
21644
21645# The name of the directory that contains temporary libtool files.
21646objdir=$objdir
21647
21648# Used to examine libraries when file_magic_cmd begins with "file".
21649MAGIC_CMD=$MAGIC_CMD
21650
21651# Must we lock files when doing compilation?
21652need_locks=$lt_need_locks
21653
21654# Manifest tool.
21655MANIFEST_TOOL=$lt_MANIFEST_TOOL
21656
21657# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21658DSYMUTIL=$lt_DSYMUTIL
21659
21660# Tool to change global to local symbols on Mac OS X.
21661NMEDIT=$lt_NMEDIT
21662
21663# Tool to manipulate fat objects and archives on Mac OS X.
21664LIPO=$lt_LIPO
21665
21666# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21667OTOOL=$lt_OTOOL
21668
21669# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21670OTOOL64=$lt_OTOOL64
21671
21672# Old archive suffix (normally "a").
21673libext=$libext
21674
21675# Shared library suffix (normally ".so").
21676shrext_cmds=$lt_shrext_cmds
21677
21678# The commands to extract the exported symbol list from a shared archive.
21679extract_expsyms_cmds=$lt_extract_expsyms_cmds
21680
21681# Variables whose values should be saved in libtool wrapper scripts and
21682# restored at link time.
21683variables_saved_for_relink=$lt_variables_saved_for_relink
21684
21685# Do we need the "lib" prefix for modules?
21686need_lib_prefix=$need_lib_prefix
21687
21688# Do we need a version for libraries?
21689need_version=$need_version
21690
21691# Library versioning type.
21692version_type=$version_type
21693
21694# Shared library runtime path variable.
21695runpath_var=$runpath_var
21696
21697# Shared library path variable.
21698shlibpath_var=$shlibpath_var
21699
21700# Is shlibpath searched before the hard-coded library search path?
21701shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21702
21703# Format of library name prefix.
21704libname_spec=$lt_libname_spec
21705
21706# List of archive names.  First name is the real one, the rest are links.
21707# The last name is the one that the linker finds with -lNAME
21708library_names_spec=$lt_library_names_spec
21709
21710# The coded name of the library, if different from the real name.
21711soname_spec=$lt_soname_spec
21712
21713# Permission mode override for installation of shared libraries.
21714install_override_mode=$lt_install_override_mode
21715
21716# Command to use after installation of a shared archive.
21717postinstall_cmds=$lt_postinstall_cmds
21718
21719# Command to use after uninstallation of a shared archive.
21720postuninstall_cmds=$lt_postuninstall_cmds
21721
21722# Commands used to finish a libtool library installation in a directory.
21723finish_cmds=$lt_finish_cmds
21724
21725# As "finish_cmds", except a single script fragment to be evaled but
21726# not shown.
21727finish_eval=$lt_finish_eval
21728
21729# Whether we should hardcode library paths into libraries.
21730hardcode_into_libs=$hardcode_into_libs
21731
21732# Compile-time system search path for libraries.
21733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21734
21735# Detected run-time system search path for libraries.
21736sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21737
21738# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21739configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21740
21741# Whether dlopen is supported.
21742dlopen_support=$enable_dlopen
21743
21744# Whether dlopen of programs is supported.
21745dlopen_self=$enable_dlopen_self
21746
21747# Whether dlopen of statically linked programs is supported.
21748dlopen_self_static=$enable_dlopen_self_static
21749
21750# Commands to strip libraries.
21751old_striplib=$lt_old_striplib
21752striplib=$lt_striplib
21753
21754
21755# The linker used to build libraries.
21756LD=$lt_LD
21757
21758# How to create reloadable object files.
21759reload_flag=$lt_reload_flag
21760reload_cmds=$lt_reload_cmds
21761
21762# Commands used to build an old-style archive.
21763old_archive_cmds=$lt_old_archive_cmds
21764
21765# A language specific compiler.
21766CC=$lt_compiler
21767
21768# Is the compiler the GNU compiler?
21769with_gcc=$GCC
21770
21771# Compiler flag to turn off builtin functions.
21772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21773
21774# Additional compiler flags for building library objects.
21775pic_flag=$lt_lt_prog_compiler_pic
21776
21777# How to pass a linker flag through the compiler.
21778wl=$lt_lt_prog_compiler_wl
21779
21780# Compiler flag to prevent dynamic linking.
21781link_static_flag=$lt_lt_prog_compiler_static
21782
21783# Does compiler simultaneously support -c and -o options?
21784compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21785
21786# Whether or not to add -lc for building shared libraries.
21787build_libtool_need_lc=$archive_cmds_need_lc
21788
21789# Whether or not to disallow shared libs when runtime libs are static.
21790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21791
21792# Compiler flag to allow reflexive dlopens.
21793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21794
21795# Compiler flag to generate shared objects directly from archives.
21796whole_archive_flag_spec=$lt_whole_archive_flag_spec
21797
21798# Whether the compiler copes with passing no objects directly.
21799compiler_needs_object=$lt_compiler_needs_object
21800
21801# Create an old-style archive from a shared archive.
21802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21803
21804# Create a temporary old-style archive to link instead of a shared archive.
21805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21806
21807# Commands used to build a shared archive.
21808archive_cmds=$lt_archive_cmds
21809archive_expsym_cmds=$lt_archive_expsym_cmds
21810
21811# Commands used to build a loadable module if different from building
21812# a shared archive.
21813module_cmds=$lt_module_cmds
21814module_expsym_cmds=$lt_module_expsym_cmds
21815
21816# Whether we are building with GNU ld or not.
21817with_gnu_ld=$lt_with_gnu_ld
21818
21819# Flag that allows shared libraries with undefined symbols to be built.
21820allow_undefined_flag=$lt_allow_undefined_flag
21821
21822# Flag that enforces no undefined symbols.
21823no_undefined_flag=$lt_no_undefined_flag
21824
21825# Flag to hardcode \$libdir into a binary during linking.
21826# This must work even if \$libdir does not exist
21827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21828
21829# Whether we need a single "-rpath" flag with a separated argument.
21830hardcode_libdir_separator=$lt_hardcode_libdir_separator
21831
21832# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21833# DIR into the resulting binary.
21834hardcode_direct=$hardcode_direct
21835
21836# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21837# DIR into the resulting binary and the resulting library dependency is
21838# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21839# library is relocated.
21840hardcode_direct_absolute=$hardcode_direct_absolute
21841
21842# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21843# into the resulting binary.
21844hardcode_minus_L=$hardcode_minus_L
21845
21846# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21847# into the resulting binary.
21848hardcode_shlibpath_var=$hardcode_shlibpath_var
21849
21850# Set to "yes" if building a shared library automatically hardcodes DIR
21851# into the library and all subsequent libraries and executables linked
21852# against it.
21853hardcode_automatic=$hardcode_automatic
21854
21855# Set to yes if linker adds runtime paths of dependent libraries
21856# to runtime path list.
21857inherit_rpath=$inherit_rpath
21858
21859# Whether libtool must link a program against all its dependency libraries.
21860link_all_deplibs=$link_all_deplibs
21861
21862# Set to "yes" if exported symbols are required.
21863always_export_symbols=$always_export_symbols
21864
21865# The commands to list exported symbols.
21866export_symbols_cmds=$lt_export_symbols_cmds
21867
21868# Symbols that should not be listed in the preloaded symbols.
21869exclude_expsyms=$lt_exclude_expsyms
21870
21871# Symbols that must always be exported.
21872include_expsyms=$lt_include_expsyms
21873
21874# Commands necessary for linking programs (against libraries) with templates.
21875prelink_cmds=$lt_prelink_cmds
21876
21877# Commands necessary for finishing linking programs.
21878postlink_cmds=$lt_postlink_cmds
21879
21880# Specify filename containing input files.
21881file_list_spec=$lt_file_list_spec
21882
21883# How to hardcode a shared library path into an executable.
21884hardcode_action=$hardcode_action
21885
21886# ### END LIBTOOL CONFIG
21887
21888_LT_EOF
21889
21890    cat <<'_LT_EOF' >> "$cfgfile"
21891
21892# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21893
21894# func_munge_path_list VARIABLE PATH
21895# -----------------------------------
21896# VARIABLE is name of variable containing _space_ separated list of
21897# directories to be munged by the contents of PATH, which is string
21898# having a format:
21899# "DIR[:DIR]:"
21900#       string "DIR[ DIR]" will be prepended to VARIABLE
21901# ":DIR[:DIR]"
21902#       string "DIR[ DIR]" will be appended to VARIABLE
21903# "DIRP[:DIRP]::[DIRA:]DIRA"
21904#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21905#       "DIRA[ DIRA]" will be appended to VARIABLE
21906# "DIR[:DIR]"
21907#       VARIABLE will be replaced by "DIR[ DIR]"
21908func_munge_path_list ()
21909{
21910    case x$2 in
21911    x)
21912        ;;
21913    *:)
21914        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21915        ;;
21916    x:*)
21917        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21918        ;;
21919    *::*)
21920        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21921        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21922        ;;
21923    *)
21924        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21925        ;;
21926    esac
21927}
21928
21929
21930# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21931func_cc_basename ()
21932{
21933    for cc_temp in $*""; do
21934      case $cc_temp in
21935        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21936        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21937        \-*) ;;
21938        *) break;;
21939      esac
21940    done
21941    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21942}
21943
21944
21945# ### END FUNCTIONS SHARED WITH CONFIGURE
21946
21947_LT_EOF
21948
21949  case $host_os in
21950  aix3*)
21951    cat <<\_LT_EOF >> "$cfgfile"
21952# AIX sometimes has problems with the GCC collect2 program.  For some
21953# reason, if we set the COLLECT_NAMES environment variable, the problems
21954# vanish in a puff of smoke.
21955if test set != "${COLLECT_NAMES+set}"; then
21956  COLLECT_NAMES=
21957  export COLLECT_NAMES
21958fi
21959_LT_EOF
21960    ;;
21961  esac
21962
21963
21964
21965ltmain=$ac_aux_dir/ltmain.sh
21966
21967
21968  # We use sed instead of cat because bash on DJGPP gets confused if
21969  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21970  # text mode, it properly converts lines to CR/LF.  This bash problem
21971  # is reportedly fixed, but why not run on old versions too?
21972  $SED '$q' "$ltmain" >> "$cfgfile" \
21973     || (rm -f "$cfgfile"; exit 1)
21974
21975   mv -f "$cfgfile" "$ofile" ||
21976    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21977  chmod +x "$ofile"
21978
21979 ;;
21980
21981  esac
21982done # for ac_tag
21983
21984
21985as_fn_exit 0
21986_ACEOF
21987ac_clean_files=$ac_clean_files_save
21988
21989test $ac_write_fail = 0 ||
21990  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21991
21992
21993# configure is writing to config.log, and then calls config.status.
21994# config.status does its own redirection, appending to config.log.
21995# Unfortunately, on DOS this fails, as config.log is still kept open
21996# by configure, so config.status won't be able to write to it; its
21997# output is simply discarded.  So we exec the FD to /dev/null,
21998# effectively closing config.log, so it can be properly (re)opened and
21999# appended to by config.status.  When coming back to configure, we
22000# need to make the FD available again.
22001if test "$no_create" != yes; then
22002  ac_cs_success=:
22003  ac_config_status_args=
22004  test "$silent" = yes &&
22005    ac_config_status_args="$ac_config_status_args --quiet"
22006  exec 5>/dev/null
22007  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22008  exec 5>>config.log
22009  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22010  # would make configure fail if this is the last instruction.
22011  $ac_cs_success || as_fn_exit 1
22012fi
22013if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22015printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22016fi
22017
22018
22019